PiCapture Using Python picamera and opencv Reply To: Using Python picamera and opencv

#765
mike101video
Participant

Thanks for getting back to me. I’m sure I must be doing something wrong. The code I’m testing with is:
from time import sleep
from picamera import PiCamera

camera = PiCamera( sensor_mode = 6, resolution=(640,480))

#camera.start_preview()
# Camera warm-up time
print “camera ready”
sleep(2)
camera.start_recording(‘/media/pi/USB20FD/current/testvid.h264’)
print “Video Cap Underway”
sleep(10)
camera.stop_recording()
print “End of recoding”

Playing it back with omxplayer shows the size as 640×5480 – but with the actual image is top Left hand corner.

Any example code would be appricated.

Thanks

mike101videoReply To: Using Python picamera and opencv