I have just downloaded and compiled the github repository as per your instructions and I still get the results below. Is the hardware faulty?
pi@raspberrypi:~/MIPI_Camera/RPI $ ./arducamstill -t 0 -m 1 -awb 1 -ae 1 <---This failed to load an image and just hung!
Open camera...
Found sensor imx219 at address 10
mode: 0, width: 800, height: 600, pixelformat: pRAA, desc: (null)
mode: 1, width: 1280, height: 720, pixelformat: pRAA, desc: (null)
mode: 2, width: 1600, height: 1200, pixelformat: pRAA, desc: (null)
mode: 3, width: 1920, height: 1080, pixelformat: pBAA, desc: (null)
mode: 4, width: 2592, height: 1944, pixelformat: pRAA, desc: (null)
mode: 5, width: 3264, height: 1848, pixelformat: pRAA, desc: (null)
mode: 6, width: 3264, height: 2464, pixelformat: pRAA, desc: (null)
mode: 7, width: 1600, height: 600, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 8, width: 2560, height: 720, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 9, width: 3840, height: 1080, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 10, width: 5184, height: 1944, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 11, width: 6528, height: 1848, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 12, width: 6528, height: 2464, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
index: 0, CID: 0x00980911, desc: V4L2_CID_EXPOSURE, min: 0, max: 65535, default: 1606, current: 1000
Can't open the file
mmal: Failed to fix lens shading, use the default mode!
Failed to set focus, the camera may not support this control.
Failed to set focus, the camera may not support this control.
Start preview...
Current mode: 1, width: 1280, height: 720, pixelformat: pRAA, desc: (null)
pi@raspberrypi:~/MIPI_Camera/RPI $ ./arducamstill
Open camera…
Found sensor imx219 at address 10
mode: 0, width: 800, height: 600, pixelformat: pRAA, desc: (null)
mode: 1, width: 1280, height: 720, pixelformat: pRAA, desc: (null)
mode: 2, width: 1600, height: 1200, pixelformat: pRAA, desc: (null)
mode: 3, width: 1920, height: 1080, pixelformat: pBAA, desc: (null)
mode: 4, width: 2592, height: 1944, pixelformat: pRAA, desc: (null)
mode: 5, width: 3264, height: 1848, pixelformat: pRAA, desc: (null)
mode: 6, width: 3264, height: 2464, pixelformat: pRAA, desc: (null)
mode: 7, width: 1600, height: 600, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 8, width: 2560, height: 720, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 9, width: 3840, height: 1080, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 10, width: 5184, height: 1944, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 11, width: 6528, height: 1848, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
mode: 12, width: 6528, height: 2464, pixelformat: pRAA, desc: Used for Arducam synchronized stereo camera HAT
index: 0, CID: 0x00980911, desc: V4L2_CID_EXPOSURE, min: 0, max: 65535, default: 1606, current: 876
Can’t open the file
mmal: Failed to fix lens shading, use the default mode!
Failed to set focus, the camera may not support this control.
Failed to set focus, the camera may not support this control.
Start preview…
Current mode: 0, width: 800, height: 600, pixelformat: pRAA, desc: (null)
[Framerate]: 21 pfs, [Exposure]: 2493, [Focus]: 0000,[Rgain]: 0100, [Bgain]: 0100
pi@raspberrypi:~/MIPI_Camera/RPI/stereo_depth_demo $ python 1_test.py
Open camera…
Found sensor imx219 at address 10
mode: 7, width: 1600, height: 600
mode: 8, width: 2560, height: 720
mode: 9, width: 3840, height: 1080
mode: 10, width: 5184, height: 1944
mode: 11, width: 6528, height: 1848
mode: 12, width: 6528, height: 2464
Please enter the mode number:12
mmal: Failed to fix lens shading, use the default mode!
Current mode: 12,resolution: 6528x2464
^CTraceback (most recent call last):
File “1_test.py”, line 83, in <module>
frame = get_frame(camera)
File “1_test.py”, line 48, in get_frame
image = cv2.cvtColor(image, cv2.COLOR_YUV2BGR_I420)
KeyboardInterrupt
pi@raspberrypi:~/MIPI_Camera/RPI/stereo_depth_demo $ python 2_chess_cycle.py
Open camera…
Found sensor imx219 at address 10
Can’t open the file
mmal: Failed to fix lens shading, use the default mode!
Current mode: 2,resolution: 1600x1200
Used camera resolution: 1600 x 1200
Scaled image resolution: 1280 x 480
Starting photo sequence
Traceback (most recent call last):
File “2_chess_cycle.py”, line 88, in <module>
frame = get_frame(camera)
File “2_chess_cycle.py”, line 44, in get_frame
image = frame.as_array.reshape(int(height * 1.5), width)
File “/home/pi/MIPI_Camera/RPI/stereo_depth_demo/arducam_mipicamera.py”, line 266, in as_array
return np.ctypeslib.as_array(self.buffer_ptr[0].data, shape=(self.length,))
ValueError: NULL pointer access