mdsousa
Posts: 39
Joined: Wed Feb 12, 2014 4:29 pm
Location: New Hampshire
Contact: Website

removing motion blur from moving picamera

Sun Jul 13, 2014 11:53 pm

Hi

I've built a system of two picameras along with some other hardware and storage to collect road data while driving. I've created a blog discussing this project: http://auvrnh.blogspot.com/, and am having one particular problem.

If I speed up the camera's shutter speed using the python command shutter_speed() would that effectively remove the motion blur? I'm collecting right now at a resolution of 1920x1080 at 5fps. I understand that the picamera's shutter_speed depends a lot on the view's illumination which can be a problem on the road with the diversity of light conditions from sun/clouds/shade etc.

Thanks...

towolf
Posts: 421
Joined: Fri Jan 18, 2013 2:11 pm

Re: removing motion blur from moving picamera

Wed Jul 16, 2014 3:06 pm

You need to use what raspicam call the "sports" exposure preset.

mdsousa
Posts: 39
Joined: Wed Feb 12, 2014 4:29 pm
Location: New Hampshire
Contact: Website

Re: removing motion blur from moving picamera

Thu Jul 17, 2014 10:01 pm

Thanks toworlf,
towolf wrote:You need to use what raspicam call the "sports" exposure preset.
Is there a python analogue to raspicam's sports exposure preset?

User avatar
waveform80
Posts: 303
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK

Re: removing motion blur from moving picamera

Sat Jul 19, 2014 9:15 pm

mdsousa wrote:Thanks toworlf,
towolf wrote:You need to use what raspicam call the "sports" exposure preset.
Is there a python analogue to raspicam's sports exposure preset?
Yup - that's the exposure_mode attribute in picamera.

Dave.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: removing motion blur from moving picamera

Wed Jul 23, 2014 10:55 pm

waveform80 wrote:
mdsousa wrote:Is there a python analogue to raspicam's sports exposure preset?
Yup - that's the exposure_mode attribute in picamera.
...which is simply documented with "The possible values can be obtained from the PiCamera.EXPOSURE_MODES attribute."

Are the PiCamera.EXPOSURE_MODES listed in the online HTML documentation?

User avatar
waveform80
Posts: 303
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK

Re: removing motion blur from moving picamera

Thu Jul 24, 2014 12:46 pm

AndrewS wrote:
waveform80 wrote:
mdsousa wrote:Is there a python analogue to raspicam's sports exposure preset?
Yup - that's the exposure_mode attribute in picamera.
...which is simply documented with "The possible values can be obtained from the PiCamera.EXPOSURE_MODES attribute."

Are the PiCamera.EXPOSURE_MODES listed in the online HTML documentation?
Not at the moment (because I'm lazy and didn't fancy keeping the list up to date in two places), and I figured anyone interested in the property could just do something like:

Code: Select all

$ python
Python 2.7.3 (default, Jan 13 2013, 11:20:46) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import picamera
>>> picamera.PiCamera.EXPOSURE_MODES
{u'auto': 1, u'fireworks': 12, u'verylong': 9, u'fixedfps': 10, u'backlight': 4, u'antishake': 11, u'snow': 7, u'sports': 6, u'nightpreview': 3, u'night': 2, u'beach': 8, u'spotlight': 5}
Still, you're right that it does mean that anyone searching the docs for "sports" won't find anything, so it's probably worth listing the keys in the docs; I'll bung it in a ticket for 1.7.


Dave.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: removing motion blur from moving picamera

Thu Jul 24, 2014 12:52 pm

waveform80 wrote:
AndrewS wrote:Are the PiCamera.EXPOSURE_MODES listed in the online HTML documentation?
Not at the moment (because I'm lazy and didn't fancy keeping the list up to date in two places)
You could modify your documentation-build script to automatically extract the list from the code (along with any other enums where appropriate), and insert it into the documentation? ;)

User avatar
waveform80
Posts: 303
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK

Re: removing motion blur from moving picamera

Fri Jul 25, 2014 7:07 pm

AndrewS wrote:
waveform80 wrote:
AndrewS wrote:Are the PiCamera.EXPOSURE_MODES listed in the online HTML documentation?
Not at the moment (because I'm lazy and didn't fancy keeping the list up to date in two places)
You could modify your documentation-build script to automatically extract the list from the code (along with any other enums where appropriate), and insert it into the documentation? ;)
Tempting, but I don't know how much reign ReadTheDocs gives projects to run arbitrary code when building docs. I'll try and find out - if it's an option I'll certainly try and take it!

Dave.

Return to “Camera board”