I am running the officialArducamUVCPythonDemo for the Arducam 108MP camera. Initially, it worked as expected, but now I am getting the following error when executing the demo, without any modifications:
Traceback (most recent call last):
File “/home/calibration/READIXCAM/ArducamUVCPythonDemo/arducam_demo.py”, line 113, in
frame = arducam108mp_isp(frame.reshape(9000, 12000), ccm, ccm_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: cannot reshape array of size 1843200 into shape (9000,12000)
Setup and Steps:
I am running the original demo code without modifications.
The command I use is:
(venv) calibration@kibble-cal:~/READIXCAM/ArducamUVCPythonDemo$ python arducam_demo.py -W 1280 -H 720 --ccm --tuning-file arducam_108mp.json -F --wait-frames 8
The error appears after waiting for 8 frames.
I have tested this on two different machines, and the problem persists.
The frame size received is 1,843,200 elements, but the script expects 9000 × 12000 = 108,000,000 elements.
my quess is its lack of memory cause they app is trying to resize a frame so it first has to have the buffer for one size then has to make another buffer it would resize the frame into and there is just not enough memory available for it.
Execute the following command to download the bug report tool:
This will output an “arducam-bug-report.txt” file in the current directory. Please put this file on the google drive or other place so that I can check it.
I have executed the steps mentioned, and the following error appears:
./arducam-camera-bug-report
Traceback (most recent call last):
File “/home/calibration/ArducamUVCPythonDemo/./arducam-camera-bug-report”, line 142, in
cmd_out = run_prog(args.c, args.t)
File “/home/calibration/ArducamUVCPythonDemo/./arducam-camera-bug-report”, line 54, in run_prog
p = subprocess.Popen(cmd, text=True, stdout=subprocess.PIPE,
File “/usr/lib/python3.10/subprocess.py”, line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.10/subprocess.py”, line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘libcamera-still’
It is important to mention that this is using a Desktop PC with Ubuntu.
|Distributor ID:|Ubuntu|
|Description:|Ubuntu 22.04.5 LTS|
|Release:|22.04|
|Codename:|jammy|
“FileNotFoundError: [Errno 2] No such file or directory: ‘libcamera-still’”
you dont have arducam libcamera-tools installed.
also im not sure if ubuntu has arducam drivers instealled either out of the box so u maybe need to install those also
Hi @RicardoREADIX
It appears that the camera module is being detected as a UVC 2.0 device rather than a UVC 3.0 device.
Could you confirm whether it’s connected to a USB 3.0 port?
Additionally, please share the output of the following command in your terminal so we can investigate further: :))
Thank you very much,
I solved the problem, it was the extension cable which is USB 2.0, I changed it for USB 3 and it worked.
On the other hand, I tried to install the ‘libcamera-still’ libraries on my Ubuntu 22.04.5 LTS desktop PC and it was not possible, I spent the whole day trying.
Hello, I was having this same issue. Somehow, flipping the USB-C connected to the Arducam 180 degrees and plugging it back in solved the issue. For me, it also changed the index of the Arducam to the default (0) rather than 1. I am unsure if this is a quirk of the laptop I am using, but I thought I would add that this solved my issue. Also, for the record, I was using the cable that came with the model.