Problem with small size of acquired frames

Hi

I built an environment for the ToF camera on my RaspberryPi3 without using the latest image provided by analogdevices.

I was able to confirm the operation of the ToF camera with "firstframe.py".

However, there was a problem that the size of the acquired frame became too small.

Latest image: frame details: width: 640 height: 960 type: depth_ir

In my case: frame details: width: 640 height: 480 type: depth_ir

How do I get the correct frame size?

Kenta

Parents
  • 0
    •  Analog Employees 
    on Feb 4, 2021 11:12 AM

    Hi Kenta,

    Are you sure you are using the same version of the sdk on both images? Could you tell me what version are you using (maybe provide the commit hash)?

    Also, try to modify the script and print the actual size of the array right at the end of the script:

    print(image.shape)

  • I have confirmed the hash commit and frame size.

    Latest image: commit bf025d86e979a851dedcabe43379bc12511e23d6

    (HEAD, tag: v1.6.0, origin/master, origin/HEAD)

    image.shape=(480,640)

    In my case: commit 1824ef5e7a7c4f19deef072965075bc7f38bb04c

    (HEAD -> master, origin/master, origin/HEAD)

    image.shape=(240,640)

    The version seems to be a little different. To change the kernel, I used the following command.

    git checkout rpi-4.19.y

    I would like to try to build the environment by specifying the hash commit value here.

    Please let me know if there is a simple solution.

Reply
  • I have confirmed the hash commit and frame size.

    Latest image: commit bf025d86e979a851dedcabe43379bc12511e23d6

    (HEAD, tag: v1.6.0, origin/master, origin/HEAD)

    image.shape=(480,640)

    In my case: commit 1824ef5e7a7c4f19deef072965075bc7f38bb04c

    (HEAD -> master, origin/master, origin/HEAD)

    image.shape=(240,640)

    The version seems to be a little different. To change the kernel, I used the following command.

    git checkout rpi-4.19.y

    I would like to try to build the environment by specifying the hash commit value here.

    Please let me know if there is a simple solution.

Children