TimJuni / raspistillWeb

Little python web interface for raspistill to take photos with the RaspberryPi
GNU General Public License v3.0
20 stars 11 forks source link

Modify ui for gphoto2 #10

Open torstenhaase opened 9 years ago

torstenhaase commented 9 years ago

Hi Tim, I am glad you continued working on your project because I think it is great. Because I really like it I have some ideas how to improve it for even better pictures and time lapses.

The key is the gphoto2 library to get access to „real“ cameras and their improved picture quality. Could you modify your interface that it uses the gphoto2 command instead of the the raspistill one?

GPhoto2 does have parameter for time-lapse photography but I think the better idea would be to use cron instead. If you use cron you don’t have a permanent USB connection to the camera. That means you can run other gphoto2 calls in between to e.g. check the battery level or copy some pictures from the camera. You can also kill any gphoto2 processes before starting a new one so in case the connection does fail you can still continue taking pictures. The most important argument for using cron is that you can use a camera with charging ability over USB. It doesn’t charge while connected via USB but I think it should charge in between the calls. That means as long as you can power the pi (maybe with a huge battery pack) you can shoot unlimited pictures.

As I am not as good as you in programming I would really appreciate if you could implement those ideas. Let me know what you think!

Thanks & Take Care Torsten

TimJuni commented 9 years ago

Hey Torsten,

great input! It should be easy to integrate the library into raspistillWeb, since i use a single method call to take a photo. Moreover i have noticed that my camera is supported by gPhoto. Hence i should be able to test the implementation and take some cool timelapse recordings. Regarding the charging ability for the camera i am not sure whether it is possible or not to charge the camera when no picture is taken. I guess this heavily depends on the camera model.

Do you already have some underwater recordings? I would like to see them if they are available somewhere :)

Best regards, Tim

torstenhaase commented 9 years ago

Hi Tim,

great that you like my ideas. I am looking forward to Version 1.3. I'll do some testing as soon as it is available. So far I haven't done any fancy time-lapse videos. I put the camera into the waterproof housing to put it outside not underwater. I am sure it will resist rain but not 100% sure that it will work underwater. Don't know if I want to try it :) I did a few time lapses in my garden but the are not that good to share them with the public.

Best Regards Tim