OV2311 Slow Frame rate using .capture()

Hi all,

I am using OV2311 with a Raspberry Pi Model B to grab some images and send them to a remote machine. I am using the .capture() method to grab frames, but the frame rate is slower than I expected. I am writing everything in Python.

I read through this blog post and ran arducamstill to check the sensor FPS, and it output 59 FPS.

I used this code to measure average capture time, which was ~25 FPS for JPEG encoding.

I am wondering if there is any faster way to get frames encoded as JPEGs.

What is the timing of these calls?

img = self.frame.as_array.reshape(self.height, self.width)
cv.namedWindow(header, cv.WINDOW_NORMAL)
cv.resizeWindow(header, 160, 130)
cv.imshow(header, img)
cv.moveWindow(header, x_pos, y_pos)

Hello there!


I’m using 0V2311 with RPI to grub some photos. However, I get error messages as below when I use this generic code.

import time
import picamera

with picamera.PiCamera() as camera:



mmal: mmal_vc_component_create: failed to create component ‘vc.ril.camera’ (1:EN OMEM)
mmal: mmal_component_create_core: could not create component ‘vc.ril.camera’ (1)
Traceback (most recent call last):
File “activity1.py”, line 4, in <module>
with picamera.PiCamera() as camera:
File “/usr/lib/python2.7/dist-packages/picamera/camera.py”, line 431, in ini t
self._init_camera(camera_num, stereo_mode, stereo_decimate)
File “/usr/lib/python2.7/dist-packages/picamera/camera.py”, line 460, in _init _camera
"Camera is not enabled. Try running ‘sudo raspi-config’ "
picamera.exc.PiCameraError: Camera is not enabled. Try running ‘sudo raspi-confi g’ and ensure that the camera has been enabled.