matiasandina / python_camera

Code for different python camera apps
MIT License
0 stars 0 forks source link

Resolution is handled by resizing #7

Open matiasandina opened 11 months ago

matiasandina commented 11 months ago
        # 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.