ArduCAM / Arducam_tof_camera

51 stars 20 forks source link

Can not install python ArduCamDepthCamera package on a jetson #24

Open adriaciurana opened 1 year ago

adriaciurana commented 1 year ago

Hello, I'm trying to install the python package. Also I already installed the C++ library and works well. But at the moment that I try to install ArduCamDepthCamera package, I obtain the following error:

debian@jetson:~/tof_camera_example/build$ pip3 install ArduCamDepthCamera

Collecting ArduCamDepthCamera
  Could not find a version that satisfies the requirement ArduCamDepthCamera (from versions: )
No matching distribution found for ArduCamDepthCamera

Maybe is not available on the jetson?

Edit: Seems that there are no version for 3.6 on arm64: https://pypi.org/project/ArduCamDepthCamera/#files

Thanks, Adrià

dennis-ard commented 1 year ago

hi, We just tested that it can be installed, but pip needs to be updated to the latest version.

adriaciurana commented 1 year ago

hi, We just tested that it can be installed, but pip needs to be updated to the latest version.

Oh true! Thanks.

One last question, in the C++ version I see that exists two methods setMode and setControl can be used. I don't see the possibility of having access using the python API.

On the other hand setControl when mode=RANGE, how is it different from setMode?

I want to use the 2m mode on python.

Thanks, Adria

dennis-ard commented 1 year ago

hi, This part of the function is available in the 0.0.9 version of the python library.

# Set camera range mode.
set_rang = 2 # or 4
cam.setControl(ac.TOFControl.RANG,set_rang)
# Get frame format information,Contains frame type and frame width, height and timestamp.
format = frame. getFrameFormat();

My pleasure.

adriaciurana commented 1 year ago

Cool! Thank you very much! So nice have this support!

On the other hand I don't know whether to create another issue but I'm finding a curious error that doesn't let me move forward.

I am using a jetson nano with a carrier b01. Along with it I use the tof and I want to use another csi2 imx219 camera (also arducam).

But it is not detected in the system, it does not even appear in the dmesg.

I have the feeling that by installing the tof drivers, the imx219 (which usually works without drivers) becomes incompatible.

I also tried different imx219 cameras and both csi2 slots.

Do you know anything about it? This problem is totally blocking my current work.

Thanks.

dennis-ard commented 1 year ago

It is my pleasure to serve you, Better to reopen a question for a different problem. About imx219 can not be detected, you can refer to the website configuration jetson-io . Configure jetson-io as camera IMX219-A and Arducam-B, A and B correspond to camera interface 0 and 1.