Hi, could you provide a version of your Motorized focus Camera code that solely uses opencv? Raspistill and raspivid don't work with 64bit RPiOS, and pip3 install picamera fails because pip never finds a compatible version. Your python code is already using cv2, so I can't imagine making a slightly different version using opencv commands should be challenging. If anyone is interested, you can use this in python to take in and display the camera snapshots:
`cap = cv2.VideoCapture(0)
ret, frame = cap.read()
cv2.imshow('preview',frame)'
There are also some other tools that you could use to handle converting things into raw RGB images like they do in Autofocus.py.
I don't know about the C/C++ side of things though...
I'm currently running my raspberry pi 4 (8gb) with Debian buster 64bit RPiOS (aarch64 architecture) with Deep learning toolkits from Qengineering
Hi, could you provide a version of your Motorized focus Camera code that solely uses opencv? Raspistill and raspivid don't work with 64bit RPiOS, and pip3 install picamera fails because pip never finds a compatible version. Your python code is already using cv2, so I can't imagine making a slightly different version using opencv commands should be challenging. If anyone is interested, you can use this in python to take in and display the camera snapshots: `cap = cv2.VideoCapture(0) ret, frame = cap.read() cv2.imshow('preview',frame)'
There are also some other tools that you could use to handle converting things into raw RGB images like they do in Autofocus.py.
I don't know about the C/C++ side of things though...
I'm currently running my raspberry pi 4 (8gb) with Debian buster 64bit RPiOS (aarch64 architecture) with Deep learning toolkits from Qengineering