RaspberryPi icon indicating copy to clipboard operation
RaspberryPi copied to clipboard

RPi Multi-Camera V2.1 - "init_camera.sh" appears to "freeze."

Open MattTucker22689 opened this issue 5 years ago • 6 comments

So, I'm not 100% sure what's going on. "init_camera.sh" appears to "freeze." The readout that I'm getting is:

pi@raspberrypi:~/RaspberryPi/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.1 $ sudo ./init_camera.sh ----Test i2c1 Error: Could not open file /dev/i2c-1' or /dev/i2c/1': No such file or directory ----Configure Adapter Board V2.1 Error: Could not open file /dev/i2c-1' or /dev/i2c/1': No such file or directory Adapter Board V2.1 configure OK ----install v4l2 driver v4l2 driver install OK ----Detecting the /dev/video0 device video0 detected! ---Start testing each camera if all of them are normal, after it finished,you will see four image in the current path. Start testing the camera A Error: Could not open file /dev/i2c-1' or /dev/i2c/1': No such file or directory Start testing the camera B Error: Could not open file /dev/i2c-1' or /dev/i2c/1': No such file or directory Start testing the camera C Error: Could not open file /dev/i2c-1' or /dev/i2c/1': No such file or directory Camera control callback cmd=0x4f525245mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board

This is the point that it consistently stops at.

I'm using an RPi 4(4gig ram), a 7" touch screen, and two 8mp V2 cameras with your V2 MultiCam Adapter.

And when I run "4cam_cv3.py" it just gives me 4 "blank" squares.

Here are the two images that it's taken. As you can see, they appear identical which they shouldn't be capture_1 capture_2

MattTucker22689 avatar May 13 '20 04:05 MattTucker22689

You should enable the i2c1 firstly. run sudo raspi-config 1 2

ArduCAM avatar May 18 '20 01:05 ArduCAM

I did. I finally got the error message to go away. But was still running into problems with it freezing.

I'm reimaging the SD and going to try again from scratch.

Screen Shot 2020-05-22 at 12 30 23 AM Screen Shot 2020-05-22 at 12 36 35 AM Screen Shot 2020-05-22 at 12 41 22 AM

MattTucker22689 avatar May 22 '20 06:05 MattTucker22689

So... I have it sort of running. "init_camera.sh" works now. And it is depositing two images into the folder.

Screen Shot 2020-06-13 at 4 20 14 AM Screen Shot 2020-06-13 at 4 20 44 AM

But when I try to run "4cam_cv2.py" or "4cam_cv3.py" I only get four "empty" squares.

Screen Shot 2020-06-13 at 4 18 54 AM

MattTucker22689 avatar Jun 13 '20 09:06 MattTucker22689

I just bumped the GPU up to 256, and rebooted.

Running "4cam_cv2.py" I now get this error: Screen Shot 2020-06-13 at 4 39 37 AM

Running "4cam_cv3.py" I get this: Screen Shot 2020-06-13 at 4 41 06 AM

And just to check if maybe I was missing a package or anything I tried reinstalling openCV: Screen Shot 2020-06-13 at 4 42 16 AM

I tried running "4cam_1.py" and "4cam_2.py" using Python 3 but it gave me a formatting error.

MattTucker22689 avatar Jun 13 '20 09:06 MattTucker22689

So, after some digging... It appears the problem is with the version of OpenCV that installs now.

The current default appears to be OpenCV 3.2.0. Screen Shot 2020-06-14 at 5 36 48 AM

Which, apparently replaced cv2.cv with just cv2. (https://stackoverflow.com/questions/33177376/what-is-the-cv2-cv-replacement-in-opencv3/33199152)

But... when I made the replacement I instantly ran into a new problem... Screen Shot 2020-06-14 at 5 50 03 AM

Thoughts?

MattTucker22689 avatar Jun 14 '20 10:06 MattTucker22689

After a LOT of hunting around.... this is what I've found: https://github.com/skvark/opencv-python/issues/355

Thoughts????

@ArduCAM

MattTucker22689 avatar Jul 02 '20 08:07 MattTucker22689