# Check if the frame is not at the desired resolution and resize if needed
if frame.shape[0] != self.resolution[0] or frame.shape[1] != self.resolution[1]:
frame = cv2.resize(frame, (self.resolution[0], self.resolution[1]))
return frame
This will be done when dealing with cv2 objects instead of picam objects and it's because for some reason cv2 is not talking properly to the camera.
This will be done when dealing with cv2 objects instead of picam objects and it's because for some reason cv2 is not talking properly to the camera.