Skip to content

minimal python script showing how to control the camera with gstreamer in sailfish phones

License

Notifications You must be signed in to change notification settings

slowcyclist/selfie-sailfish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

selfie-sailfish

minimal python script showing how to control the camera with gstreamer in sailfish phones

The simple selfie.py script takes a selfie after 1 second (the time for the camera to adjust focus and brightness)

It builds a gstreamer pipeline connecting the camera (droidcamsrc) viewfinder pad to a fakesink and the photo pad to a filesink, and triggers the shot ("start-capture") after a delay. When the "photo-capture-end" message is seen, the program quits.

The HDR.py script is a simple variation on the above, using the main camera and a "multifilesink". It shoots a series of pictures with different exposure correction. Needs to be operated on a fixed stand. Note : I do not claim it is actually suited for HDR photography, it is just a toy example. For practical HDR shots, one would want many more things : a real viewfinder, freeze the focus between shots, etc.

About

minimal python script showing how to control the camera with gstreamer in sailfish phones

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages