Arducam 64MP camera for OpenCV trying to get pycamera2 working

  1. Where did you get the camera module(s)?
    website

  2. Model number of the product(s)?
    64mp

  3. What hardware/platform were you working on?
    rpi Linux drone 5.15.74-v8+ #1595 SMP PREEMPT Wed Oct 26 11:07:24 BST 2022 aarch64 GNU/Linux

  4. Instructions you have followed. (link/manual/etc.)
    Installed using normal instructions in pdf, and then installed picamera2 using
    Picamera2 with Arducam V1/V2/HQ/16MP-AF/64MP-AF/Pivariety Cameras (Guide) - Arducam

  5. Problems you were having?
    Running the demo program in the above instruction for picamera, I get this:

python3 notpicamera2.py 
[0:10:53.251100054] [964]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3897-c3c878a9
[0:10:53.256846721] [968]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'arducam_64mp'
[0:10:53.256894740] [968]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
Open i2c bus error: No such file or directory
[0:10:53.267545147] [968]  WARN RPI raspberrypi.cpp:1280 Mismatch between Unicam and CamHelper for embedded data usage!
[0:10:53.268291499] [968] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:10:53.268420128] [968]  INFO RPI raspberrypi.cpp:1404 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media1 and ISP device /dev/media4
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.9/site-packages/picamera2/previews/qt_previews.py", line 36, in createpreview
    qpicamera2 = parent.make_picamera2_widget(cam, width=parent.width, height=parent.height,
  File "/home/pi/.local/lib/python3.9/site-packages/picamera2/previews/qt_previews.py", line 135, in make_picamera2_widget
    from picamera2.previews.qt import QGlPicamera2
  File "/home/pi/.local/lib/python3.9/site-packages/picamera2/previews/qt.py", line 1, in <module>
    from .q_gl_picamera2 import EglState, QGlPicamera2
  File "/home/pi/.local/lib/python3.9/site-packages/picamera2/previews/q_gl_picamera2.py", line 21, in <module>
    from OpenGL.GLES2.OES.EGL_image import *
  File "/usr/lib/python3/dist-packages/OpenGL/GLES2/__init__.py", line 2, in <module>
    from OpenGL.raw.GLES2._types import *
  File "/usr/lib/python3/dist-packages/OpenGL/raw/GLES2/_types.py", line 5, in <module>
    _error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
AttributeError: 'NoneType' object has no attribute 'glGetError'
Aborted
(venv) [email protected]:~/projectfiles $ 


  1. The dmesg log from your hardware?
    sudo dmesg | grep error
    [ 5.689996] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2

  2. Troubleshooting attempts you’ve made?
    I renamed picamera2.py to a different name and overcame the issue of it not running…

  3. What help do you need?
    How can I get the system to recongize the camera and take a picture without an error.
    Thanks.

Hi,
Can you access the camera by libcamera?

Yes.

After installing picamera2; I just got an image with this:

Well this is a workaround but not suitable for most of the use. I was expecting to get a camera working with current lib.
Be aware before bying this camera:
Not working for me with opencv apps
Not working with gstreamer
Not working with the last kernels.
Only working with libcamera2 whereas this is in early dev phase and most of the application are not using it.
I will then go for onother solution until this one get out of dev phase.
Just to warn people before they buy this one.

Hi,
OpenCV:
I have posted our example code for you, have you run it?
Gstreamer:
I also took screenshots that show that it works on our side.
Lastest kernel:
I do not know why you say that the camera is not working with the latest kernel. Have you tried it?

Well I want to use you camera without having to code everything.
At the moment to make a simple photobooth with Pi booth, I am not able to use you camera after hours of search. It is working out of the box with all the other raspberry camera I have.
If I do a dist Upgrade the driver is not working anymore except if something change in the last 2 weeks.
GStreamer is still crashing : I have never been able to get it working : advise saying it is a GStreamer issue is not correct as it is working on your setup. I shared my setup and it is not (both seems to be the same).You have a nice product on the paper but when it comes to daily use it is not so nice and we have to spend lot of time.