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

Timelapse #3

Closed torstenhaase closed 10 years ago

torstenhaase commented 10 years ago

Hi Tim, I downloaded your program and it's works perfect! Thanks for developing it! Could you include a front end page for the Raspistill time lapse function? That would be really great! If you want, I could provide you some ideas for features :)

Because I have a monitor attached to the pi I saw that you show a preview on the display. I think you can remove that with the -n parameter. That would lead to a lower battery consumption if you run the pi off an external battery.

Thanks again for developing it. I would be great if you could add some new features.

Take Care Torsten

TimJuni commented 10 years ago

Hey Torsten, thanks for the notice with the -n parameter. I will change that with the next update.

I have not used the time lapse feature yet. Maybe you can describe a little bit more in detail how you would like to use the web interface for the time lapse feature?

Greetings, Tim

torstenhaase commented 10 years ago

Hi Tim, with the time lapse feature you can make a series of pictures and create a movie afterwards. For example with "raspistill -o timelapse_%04d.jpg -tl 15000 -t 14400000" you make a series of pictures every 15s (=15000 ms) for 4 hours (=14400000 ms). They are named "timelapse_0001.jpg" with the counter incremented for each picture.

For the web interface you basically just need those three parameters as a text box and maybe a folder name to store all pictures in. As a goodie you could also add the following parameters to the settings page:

-ISO, --ISO : Set capture ISO -ev, --ev : Set EV compensation (-25 to 25) -ex, --exposure : Set exposure mode (see Notes) -awb, --awb : Set AWB mode (see Notes) -mm, --metering : Set metering mode (see Notes) -ss, --shutter : Set shutter speed in microseconds

Before you start the time lapse you can find the right position of the cam with you "Take Picture" function.

My idea for that feature is to put the pi, the cam and an mobile power pack into a waterproof box. Over an WIFI adapter in AP mode you can access the pi over you mobile phone and start the time lapse. With the mobile power pack you can leave it there for a few hours.

For better quality you could also exchange the raspistill to gphoto2 and take a normal digital camera instead of the raspberry pi one. As I understood the architecture of your web interface that should be quite easy.

I hope that helps. Have a nice weekend! Take Care Torsten

TimJuni commented 10 years ago

Hey Torsten,

i've added a first time-lapse mode to raspistillWeb. Please run 'git pull' and tell me about your experiences. For now it is a little bit buggy but it should be able to do some time-lapse captures. Plus you can download the series of pictures directly from the webinterface (to generate a video on a faster cpu).

i will continue to work on it as soon as i have the time :) Cheers, Tim

torstenhaase commented 10 years ago

Hi Tim, I updated my version and it looks really good. Great work! I also like the feature to download all pictures at once. I will do a few time-lapses and then get back to you. One thing I recognized was that you enter all times in ms. I would change that to seconds because that is easier then calculating. Even better would be more textfields for hours and minutes. That would save you the calculating.

Take Care Torsten

torstenhaase commented 10 years ago

Hi Tim, I found the time for a more detailed feedback. Again I have to say: Great Work! I did some time lapses and it worked all fine. Some things I recognized:

1) It would great if you add the parameter for turning into settings. I had to do one upside down because I couldn't find a better place for the Pi. May some radio buttons with "Normal" and the two flips. -hf, --hflip : Set horizontal flip -vf, --vflip : Set vertical flip 2) In setting it would be great if you show the actual width and high before you change it. Also maybe you can add some typical resolutions like 5MP, 4MP..., FullHD, 1280HD... as radio buttons. If somebody wants a totally strange resolution you can add an "Other" with the height and width text fields 3) The link unter "RaspistillWeb" doesn't work. It links to "#". 4) It would be great if you could cancel a time lapse 5) Another idea is that when you click on the time lapse button and there is a time lapse running that you show the newest picture and maybe "Picture 356/1000" and time remaining 1h 53min 6) Before you start the time lapse you show the values for interval and time. It would be great if you could show the other settings like size as well.

Thanks again for your work.

Take Care Torsten

torstenhaase commented 10 years ago

Hi Tim, sorry for closing. I pushed the wrong button...

TimJuni commented 10 years ago

Hey Torsten,

thanks for your feedback. Some of these features are definitely necessary.

1, 2 and 3 are definitely possible, however the typical resolutions next to the custom resolutions can be a little harder to implement. You mentioned, that it should be possible to see the actual width/height before editing them. Actually they are visible already - have a look at the grey entry of the width/height field.

For 4, 5 and 6 i will probably need to implement the time-lapse feature with multiple raspistill calls rather than using the -tl option, but it should be possible without too much effort.

Again, thanks for your feedback. If you want you can seperate your feature request in different github "issues". It is a little bit easier for me to work on a single issue instead of a feature collection in one thread :)

Regards, Tim

torstenhaase commented 10 years ago

Hi Tim,

I created a separate Issue #4 for feature 4 to 6. This one is now only for 1 to 3 :) I'll check why I didn't see the current width and height.

Thanks for you great work Take Care Torsten

TimJuni commented 10 years ago

Added the image rotation. I hope that this solves your issue. Notice that image rotation is slightly different than image flip. In my opinion an image flip is mostly useless :)

TimJuni commented 10 years ago

Hey Torsten, i've updated the settings page, so that all features from #3 should be implemented now. I will add the EV compensation, metering mode and the shutter speed as soon as possible.

have fun, Tim