Arducam 64MP Ultra High-Resolution Autofocus Raspberry Pi Camera Module

Hey Kyle, any thoughts on supporting this camera in the near future?

Doesn’t it just use libcamera? This library is already available in Mycodo.

I guess there are some arguments that can be passed to libcamera that are specific for this camera (such as autofocus).

yes, it just uses libcamera. but it’s looking for those specific arguments like autofocus. can I file be tweaked for to use a specific arguments?

I also own this camera and would second having the ability to use autofocus with it would be amazing.

You can always add any additional libcamera options you want with the Custom Options setting, such as --autofocus.

Unfortunately it is not that simple. When you go to add the arducam as a libcamera the mycodo sees libcamera-apps-lite as a missing dependency. When I installed the dependency I am unable to use the camera. Below is command line output before resolving the libcamera-apps-lite dependency (the image was obtained and worked fine):

pi@mycodo-1:~ $ libcamera-still -o test2.jpg --autofocus
Preview window unavailable
[0:37:29.060610189] [4727] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3897-c3c878a9
[0:37:29.091271628] [4729] WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for ‘imx519’
[0:37:29.091336571] [4729] WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:37:29.110753353] [4729] WARN RPI raspberrypi.cpp:1280 Mismatch between Unicam and CamHelper for embedded data usage!
[0:37:29.111627860] [4729] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:37:29.111802783] [4729] INFO RPI raspberrypi.cpp:1404 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media0 and ISP device /dev/media3
[0:37:29.112445089] [4727] INFO Camera camera.cpp:1035 configuring streams: (0) 2328x1748-YUV420
[0:37:29.112838398] [4729] INFO RPI raspberrypi.cpp:765 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:37:34.359469177] [4727] INFO Camera camera.cpp:1035 configuring streams: (0) 4656x3496-YUV420 (1) 4656x3496-SRGGB10_CSI2P
[0:37:34.360141853] [4729] INFO RPI raspberrypi.cpp:765 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 4656x3496-SRGGB10_1X10 - Selected unicam format: 4656x3496-pRAA
Still capture image received

If I install libcamera-apps-lite it overwrites the vendor supplied libcamera-still which lacks the ‘–autofocus’ option. Is there a way to ignore or modify the check for the dependency?

Ok, so I got this working (although it may not be the best way to go about it).

  1. Edit ~/Mycodo/mycodo/ and commented out the original dependency line and changed it to below:
    (‘apt’, ‘libcamera-apps’, ‘libcamera-apps’)
    # (‘apt’, ‘libcamera-apps-lite’, ‘libcamera-apps-lite’)

  2. sudo ln -s /usr/local/bin/libcamera-still /usr/bin/libcamera-still

  3. Edit camera settings in mycodo and added ‘–autofocus’ to Custom options.

1 Like

Who is this vendor?

Is this simply the package repository not using the latest version of libcamera with arducam support?

The vendor is Arducam. I’m not sure why they chose to modify the package but I suspect it was to add the autofocus option. I believe they forked the libcamera package to provide additional options.