Hi, I'm developing Python on Raspberry Pi 4 using the 64-bit Bookworm OS and using the Venv virtual environment.
I'm going to use picamera2 to utilize the V2 camera.
After Raspberry Pi is finished, the camera turns on well if you reconnect the camera and run libcamera-hello,
If you run the Python code with picamera2 and then libcamera-hello again
>> Error: *** failed to accumulate camera
The error /base/soc/i2c0mux/i2c@1/imx219@10 *** <<< This error occurs.
No matter how much I search, I don't know the solution.
If you run the code with picamera2 written on it
>>> AttributeError: 'Picamera2' object has no attribute 'capture' <<< This error occurs.
Below is the Python code I ran.
from picamera2 import Picamera2
from time import sleep
camera = Picamera2()
camera.resolution = (1024, 768)
camera.start_preview()
sleep(2)
camera.capture('/home/dot/boinDOT/ocr/test.jpg')
I can't figure out how to fix this. Please help
I'm going to use picamera2 to utilize the V2 camera.
After Raspberry Pi is finished, the camera turns on well if you reconnect the camera and run libcamera-hello,
If you run the Python code with picamera2 and then libcamera-hello again
>> Error: *** failed to accumulate camera
The error /base/soc/i2c0mux/i2c@1/imx219@10 *** <<< This error occurs.
No matter how much I search, I don't know the solution.
If you run the code with picamera2 written on it
>>> AttributeError: 'Picamera2' object has no attribute 'capture' <<< This error occurs.
Below is the Python code I ran.
from picamera2 import Picamera2
from time import sleep
camera = Picamera2()
camera.resolution = (1024, 768)
camera.start_preview()
sleep(2)
camera.capture('/home/dot/boinDOT/ocr/test.jpg')
I can't figure out how to fix this. Please help
Statistics: Posted by gjgodls02 — Sun May 05, 2024 12:44 pm — Replies 2 — Views 54