tag:blogger.com,1999:blog-9007601562606157016.post8119932713374546416..comments2023-05-11T16:21:37.725+01:00Comments on <Stuff about="code" />: Time Lapse Video with Raspberry Pi CameraMartin O'Hanlonhttp://www.blogger.com/profile/03047799173301971515noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-9007601562606157016.post-63153435424986491722014-12-01T15:35:33.555+00:002014-12-01T15:35:33.555+00:00Thanks, I can see where I went wrong now!Thanks, I can see where I went wrong now!Anonymoushttps://www.blogger.com/profile/06221872366407935120noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-39018651015348002072014-12-01T09:58:48.570+00:002014-12-01T09:58:48.570+00:00It would be anoption of the raspistill command, so...It would be anoption of the raspistill command, so to change sharpness to -50:<br /><br />filename=$(date -u +"%Y%m%d_%H%M%S")_%04d.jpg<br />/opt/vc/bin/raspistill -o /home/pi/images/$filename -tl 1000 -t 7200000 -sh -50 > /home/pi/camera.log 2>&1 &<br /><br />I found all the raspistill commands here:<br /><br />http://www.raspberrypi.org/documentation/raspbian/applications/camera.mdMartin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-61512142165361224742014-11-30T09:04:12.748+00:002014-11-30T09:04:12.748+00:00A script that really works, but please, where in t...A script that really works, but please, where in the script do requests for awb and sharpness go. Everything I've tried seems to stop the script workingAnonymoushttps://www.blogger.com/profile/06221872366407935120noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-52873968910959113502013-08-16T17:52:19.869+01:002013-08-16T17:52:19.869+01:00Thanks allot
As i was not very succesfull with th...Thanks allot<br /><br />As i was not very succesfull with the timefrime option of raspistill (the brightmess was good on the first image and then got darker and darker for the next 5 images or so) i wrote this little script:<br /><br />#!/bin/bash<br /><br />numImages=600<br />preHeat=2000<br />awb=cloud<br />quality=85<br /><br /><br />for i in $(seq $numImages)<br />do<br /> filename=$(printf "frame_%04d.jpg" $i)<br /> raspistill -n -w 1920 -h 1080 -t $preHeat -q $quality -o $filename -awb $awb<br /> sleep 8<br />done<br />Unknownhttps://www.blogger.com/profile/12066693254861639006noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-74064966994497902002013-06-15T20:10:47.133+01:002013-06-15T20:10:47.133+01:00You can control almost anything electrical, includ...You can control almost anything electrical, including using relays to turn off lights google 'raspberry pi home automation' and have a look at a piface, its a great addon for the pi which has leds, motors and relays. Careful playing with electrics though!<br /><br />I think i paid about £15 for the camera, dont know how much theynare in the states though.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-68693442878268905582013-06-15T00:14:28.820+01:002013-06-15T00:14:28.820+01:00How much does a camera for Pi cost?How much does a camera for Pi cost?Nicholas Harrishttps://www.blogger.com/profile/10647157439664975151noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-49585994690747756732013-06-14T22:50:47.690+01:002013-06-14T22:50:47.690+01:00Hmm.. Is there anything else physical that you can...Hmm.. Is there anything else physical that you can change with the Raspberry Pi? Like the power lights?Nicholas Harrishttps://www.blogger.com/profile/10647157439664975151noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-37317117890464604702013-06-13T20:58:59.177+01:002013-06-13T20:58:59.177+01:00Not if you dont want to, there are plenty of. Addo...Not if you dont want to, there are plenty of. Addon boards, or you could get female to male jumper leads which will connect straight to the gpio pins on the pi and plug into a breadboard.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-15936455724188947512013-06-13T16:18:40.881+01:002013-06-13T16:18:40.881+01:00Hmm... Does that require soldering? I'm not th...Hmm... Does that require soldering? I'm not that type of person. But maybe I can get my brother to do it if it is required...Nicholas Harrishttps://www.blogger.com/profile/10647157439664975151noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-13355705822702356792013-06-13T15:40:49.904+01:002013-06-13T15:40:49.904+01:00You should get into gpio programming see this post...You should get into gpio programming see this post about getting an led to flash. www.stuffaboutcode.com/2012/11/raspberry-pi-getting-led-to-flash.html?m=1Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-39289212999785779662013-06-13T15:11:17.198+01:002013-06-13T15:11:17.198+01:00That would be awesome too! But how do you make the...That would be awesome too! But how do you make the LED light flash?Nicholas Harrishttps://www.blogger.com/profile/10647157439664975151noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-15916732180865780962013-06-13T06:40:18.255+01:002013-06-13T06:40:18.255+01:00Easy done, although it doesnt have to be take a pi...Easy done, although it doesnt have to be take a picture it could be anything, light an led maybe?Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-10832462318219220462013-06-13T03:52:28.443+01:002013-06-13T03:52:28.443+01:00This is awesome! I did a little research, and I ca...This is awesome! I did a little research, and I came across something. It is how to run Terminal commands from Python. (The link: http://ubuntuforums.org/showthread.php?t=729192). Anyway, I thought of something. What if you put all the code for taking pictures, and packed it into a file, like take-picture. Then, code in Minecraft Pi with Python, and make it so when you right-click a certain block, it takes a picture with the camera. Like using if to detect the block hitting, and then do the command ./take-picture. That would be cool! I would do this myself if I had a camera Pi.Nicholas Harrishttps://www.blogger.com/profile/10647157439664975151noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-86058475962543942992013-06-12T10:43:57.758+01:002013-06-12T10:43:57.758+01:00Hi Rob
No you shouldn't need to use root I us...Hi Rob<br /><br />No you shouldn't need to use root I use the pi user without any problems. Out of interest does it work when you use sudo? They might suggest you problems are permission based.<br /><br />MartMartin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-81736830449023153032013-06-10T17:00:33.339+01:002013-06-10T17:00:33.339+01:00Stu,
Are you logging in as root or pi user? I ge...Stu, <br /><br />Are you logging in as root or pi user? I get errors in the camera log when using pi. <br /><br />Do I need to use root? RSThinkshttps://www.blogger.com/profile/02400476187509765361noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-79350237463540872492013-06-06T23:20:47.258+01:002013-06-06T23:20:47.258+01:00I can confirm that this script and Martin's gu...I can confirm that this script and Martin's guidance does work. To avoid spelling mistakes I would copy and paste straight into nano text editor on the RPi. You will need to make sure that the RPi cam is set up in raspiconfig. If you want to disable to red light (whilst useful for troubleshooting, it will reflect off glass into the camera), you can add "disable_camera_led=1" to the /boot/config.txt file (sudo nano /boot/config.txt). I prefer to use mencoder to compile the video (search for "DesignSpark timelapse" webpage for advice and look in the comments) as Windows Movie Maker really needs a high power PC to get this done. Anonymoushttps://www.blogger.com/profile/01743512915635254759noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-42922743619374345612013-06-06T15:40:14.997+01:002013-06-06T15:40:14.997+01:00Tried again from scratch. Checked the code 3 times...Tried again from scratch. Checked the code 3 times, no spelling mistakes etc.<br /><br />On checking the log, there are multiple entries about not being able to create files in the images directory.<br /><br />I'm logging in as the default 'pi' user. Could this issue be connected to that?<br /><br />When I do a test using 'raspistill -o image.jpg' it always works.<br /><br />Baffled.RSThinkshttps://www.blogger.com/profile/02400476187509765361noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-7405415132135802172013-06-03T01:22:54.601+01:002013-06-03T01:22:54.601+01:00Thanks for reply, not had chance to try again yet....Thanks for reply, not had chance to try again yet. Let you know how I get on. ThanksRSThinkshttps://www.blogger.com/profile/02400476187509765361noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-73296516861102893492013-05-30T23:12:28.046+01:002013-05-30T23:12:28.046+01:00The CSI camera is connected directly to the GPU I ...The CSI camera is connected directly to the GPU I think (I don't know the exact details) and it's extremely fast, capable of 30fps at full 1080 resolution. All USB cameras I know are really slow (no more than 3 or 4 fps) making them unusable for many purposes.EduardoFloreshttps://www.blogger.com/profile/04090943834547093060noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-65613508620253653652013-05-30T06:14:10.190+01:002013-05-30T06:14:10.190+01:00I suppose it depends on the usb cam you using but...I suppose it depends on the usb cam you using but I would say:<br />- smaller<br />- cheaper<br />- quality, cam board is 1080p<br />- lower power usage<br />- doesn't tie up a usb port you could use for something else. Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-9288281538810263392013-05-30T03:46:13.455+01:002013-05-30T03:46:13.455+01:00Hi,
Is there any benefit to using the Pi Camera to...Hi,<br />Is there any benefit to using the Pi Camera to do stuff in preference to a standard USB webcam??<br /><br />thanks<br /><br />PhilAnonymoushttps://www.blogger.com/profile/01973171271101347755noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-38497033945379402282013-05-29T19:55:23.537+01:002013-05-29T19:55:23.537+01:00Have you followed the guide to setup your camera i...Have you followed the guide to setup your camera including enabling it in raspiconfigMartin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-4965226264585935392013-05-29T19:18:39.116+01:002013-05-29T19:18:39.116+01:00Hey, This is a bit of a strange one, I can't g...Hey, This is a bit of a strange one, I can't get this script to work, and on further investigation I can't even get the pi to take a picture manually using the "raspistill -o image.jpg" command.<br /><br />The script will start up and everything, but it "takes" a empty picture!!<br /><br />Any Ideas?<br />Chris Bhttps://www.blogger.com/profile/11170915492886246870noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-73714359974995956992013-05-28T23:03:55.759+01:002013-05-28T23:03:55.759+01:00Hi Rob,
Have you called the directory images and ...Hi Rob,<br /><br />Have you called the directory images and Images (it is case-sensitive)?<br /><br />I would check the camera.log file, run cat ~/camera.log, and see if there are any errors being written to it. <br /><br />Does the light for the camera come on when you run the script?<br /><br />Let me know how you get on.<br /><br />MartMartin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-89198387571997487892013-05-28T21:48:04.114+01:002013-05-28T21:48:04.114+01:00Having a problem. Images directory remains empty. ...Having a problem. Images directory remains empty. Followed your tutorial to the letter. <br /><br />Can use 'raspistill -o image.jpg' to grab a frame but none of the scripts want to grab an image and save to the images folder. <br /><br />I see the messages on starting and stopping the script and the camera light turns on... <br /><br />Nit sure what's good wrong. RSThinkshttps://www.blogger.com/profile/02400476187509765361noreply@blogger.com