Go to advanced search

by cruster
Sat Apr 11, 2015 2:49 pm
Forum: Camera board
Topic: Picamera. Manual control possible?
Replies: 8
Views: 3895

Re: Picamera. Manual control possible?

Hi Gordon, I hadn't tried it for -2 stops, +2 stops, but I will now. Thanks for that suggestion. If that does work - I guess I could incorporate the raspistill command into my python program through an os call ?

Kinda along the lines -

Code: Select all

os.system("raspistill -o photo1.jpg")
by cruster
Sat Apr 11, 2015 1:33 pm
Forum: Camera board
Topic: Picamera. Manual control possible?
Replies: 8
Views: 3895

Re: Picamera. Manual control possible?

Sometimes I will see -2, normal, +2. Other times I will see -2,-2,normal(ish) I can`t seem to pinpoint what the problem is and I`m starting to wonder if you need to take control of all the manual settings. It 'feels' as if somethings bottoming out. You said you got reliable results? Would you share ...
by cruster
Mon Apr 06, 2015 2:38 pm
Forum: Camera board
Topic: lens mounts and official rpi cam Vs knockoffs
Replies: 1
Views: 724

Re: lens mounts and official rpi cam Vs knockoffs

Search ebay for 'raspberrypi M12 lens mount' the mounting hole pitch diameter you require is 21mm. You could also try Arducam.com. They supply a good quality 'knockoff' with a slightly longer lens (on a CS fitting) than the stock piCam comes with.
by cruster
Mon Apr 06, 2015 12:21 pm
Forum: Camera board
Topic: Picamera. Manual control possible?
Replies: 8
Views: 3895

Re: Picamera. Manual control possible?

Here is one attempt I tried. Works for some lighting conditions but not for others. I suspect I have to take into account all of the cameras possible variables, but I have no idea how they relate to each other. Some interact with each other like 'framerate' and 'shutter_speed' Anyone with Picamera e...
by cruster
Sun Apr 05, 2015 10:25 pm
Forum: Camera board
Topic: Picamera. Manual control possible?
Replies: 8
Views: 3895

Picamera. Manual control possible?

camera.shutter_speed camera.exposure_speed camera.iso camera.framerate camera.exposure_compensation (-25 to 25) camera.awb_gains camera.digital_gains camera.analog_gains camera.awb_mode camera.exposure_mode (using either auto or off) camera.brightness So... with the camera first set to auto to creat...
by cruster
Thu Mar 26, 2015 2:02 pm
Forum: Camera board
Topic: PiCamera "-st" command?
Replies: 2
Views: 1772

Re: PiCamera "-st" command?

Fantastic! Thanks v much for your reply :-) I've been trying out the Arducam module with its stock 6mm lens and each image had a cyan overtone about it. But if I ran raspistill with the -st switch the images were considerably cleaner. There now just remains the problem why the images are blurred tow...
by cruster
Wed Mar 25, 2015 8:59 pm
Forum: Camera board
Topic: PiCamera "-st" command?
Replies: 2
Views: 1772

PiCamera "-st" command?

Is there a Python picamera equivalent of "-st" ( force recomputation of statistics on stills capture pass)

i.e: a python equivalent of the command "raspistill -st -o test.jpg"

Chris
by cruster
Fri Mar 20, 2015 8:38 pm
Forum: Python
Topic: Python "Inkey$" equivalent?
Replies: 5
Views: 2877

Re: Python "Inkey$" equivalent?

Thank you rurwin, I'll certainly give it a try.
by cruster
Fri Mar 20, 2015 4:25 pm
Forum: Python
Topic: Python "Inkey$" equivalent?
Replies: 5
Views: 2877

Re: Python "Inkey$" equivalent?

Simplified - #!/usr/bin/python import thread import time key = 0 delay =1 # Define keyboard thread def watch_keyboard(threadName, delay): # THREAD 1 looks at keyboard every global key # delay value while 1: time.sleep(delay) key = raw_input() try: thread.start_new_thread( watch_keyboard, ("Keyboard"...
by cruster
Fri Mar 20, 2015 3:52 pm
Forum: Python
Topic: Python "Inkey$" equivalent?
Replies: 5
Views: 2877

Re: Python "Inkey$" equivalent?

Thanks. I've managed to get something working using threads. Thread1 checks the keyboard using raw_input, Thread2 takes whatever keyboard input (if any) Thread1 sees. The beauty is that Thread2 doesn't get paused waiting for user input, that all happens in Thread1. Whether there's a better way of do...
by cruster
Fri Mar 20, 2015 1:08 pm
Forum: Python
Topic: Python "Inkey$" equivalent?
Replies: 5
Views: 2877

Python "Inkey$" equivalent?

Hi all, I have a program loop which I would like have capture a keystroke, but without the loop pausing to wait for the users input which it does if I use raw_input, input. I'd rather not use pygame as it appears that always wants to enable a display(?) - which I don't need as I am running headless....
by cruster
Sat Feb 21, 2015 2:09 pm
Forum: Beginners
Topic: Remove login prompt
Replies: 4
Views: 2957

Re: Remove login prompt

Sorry, I should have mentioned the os - yes it's Raspberry Debian. There is a line 1:2345:respawn:/sbin/getty --noclear 38400 tty1. I've now commented this out and replaced it with: 1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1 Perfect! The Pi boots up and no login/password request...
by cruster
Sat Feb 21, 2015 1:38 pm
Forum: Beginners
Topic: Remove login prompt
Replies: 4
Views: 2957

Remove login prompt

Hi, Raspberrypi B+ (Not PI 2) How do I remove the login and password prompt after boot? According to this site: http://www.opentechguides.com/how-to/article/raspberry-pi/5/raspberry-pi-auto-start.html I should edit /etc/inittab, commenting out: #1:2345:respawn:/sbin/getty 115200 tty1 and replacing i...
by cruster
Mon Oct 27, 2014 4:50 pm
Forum: Camera board
Topic: Different exposures
Replies: 4
Views: 1457

Re: Different exposures

Wow! Many thanks for taking the time for such a detailed reply - thank you very much!! It does look as if my idea won't work after all. Not to worry, I'll just have to live with it - if that's the length of time it takes, then that's the length of time it takes! What I may try tonight is saving the ...
by cruster
Mon Oct 27, 2014 10:32 am
Forum: Camera board
Topic: Different exposures
Replies: 4
Views: 1457

Re: Different exposures

I'd like to access the settings ideally from within my program (Python). Thanks for the link to the get settings command. I'm guessing that these values (analogue gain and shutter speed) are the ones set by camera.exposure_mode = 'auto', so if I store them, and then set camera.exposure_mode = 'off' ...
by cruster
Sun Oct 26, 2014 10:05 pm
Forum: Camera board
Topic: Raw file extension?
Replies: 2
Views: 8226

Re: Raw file extension?

ethanol100 thanks very much for your very helpful and detailed reply. You've pointed me in the right direction. Thanks! :D
by cruster
Sun Oct 26, 2014 8:56 pm
Forum: Camera board
Topic: Different exposures
Replies: 4
Views: 1457

Different exposures

Hi, I'm currently taking 3 separate full frame still images using Python, by adjusting camera.exposure_compensation like so - camera.exposure_compensation = -10 time.sleep(d/2) camera.capture('/home/pi/flash/stills/%smiN.jpg'%count,format='jpeg',quality=100) camera.exposure_compensation = 0 time.sle...
by cruster
Sun Oct 26, 2014 8:21 pm
Forum: Camera board
Topic: Raw file extension?
Replies: 2
Views: 8226

Raw file extension?

Hi all, I've written a short Python script which takes a series of full frame (2592x1944) still images. After comparing results of .png and .jpeg at 100% quality, I have decided to stick with using .png My question: After having read the picamera manual and drawing a blank... What are the correct fi...
by cruster
Thu Oct 23, 2014 10:59 am
Forum: Python
Topic: Pi Camera .png
Replies: 5
Views: 3420

Re: Pi Camera .png

Thanks! I have it working now.
by cruster
Wed Oct 22, 2014 7:04 pm
Forum: Python
Topic: Pi Camera .png
Replies: 5
Views: 3420

Re: Pi Camera .png

Ok, tried this, with and without the comma before the % frame and it just errors.
Can someone please let me know what the correct syntax should be to save a still in .png format?

Code: Select all

camera.capture('/home/pi/flash/stills/frame%02d.png',format="png", % frame)
by cruster
Wed Oct 22, 2014 6:00 pm
Forum: Python
Topic: Pi Camera .png
Replies: 5
Views: 3420

Re: Pi Camera .png

DirkS wrote:See http://picamera.readthedocs.org/en/rele ... ra.capture
(see 'format' parameter).
Perfect! This is exactly the info I was searching for (and failing miserably) Thanks! :D
by cruster
Wed Oct 22, 2014 5:58 pm
Forum: Camera board
Topic: Real-time picamera motion vector visualisation
Replies: 1
Views: 3702

Re: Real-time picamera motion vector visualisation

Wow! interesting stuff. Thanks for posting.
by cruster
Wed Oct 22, 2014 5:41 pm
Forum: Python
Topic: Pi Camera .png
Replies: 5
Views: 3420

Pi Camera .png

Can any kind soul please advise me what the command is to save still images from the raspberry pi camera in .png format? I've written this (snippet below) and it works well but I'd rather not have .jpgs. I have looked at the documentation but can't get a handle on what the correct command is. Thanks...
by cruster
Mon Sep 08, 2014 10:32 pm
Forum: Troubleshooting
Topic: Volume was not properly unmounted ...
Replies: 46
Views: 127202

Re: Volume was not properly unmounted ...

It work for me: sudo umount /boot sudo git clone http://daniel-baumann.ch/git/software/dosfstools.git sudo cd dosfstools sudo make sudo make install sudo ./fsck.fat -V /dev/mmcblk0p1 sudo ./fsck.fat -a /dev/mmcblk0p1 sudo mount /boot from: http://lusorobotica.com/index.php?topic=7158.0 In the line:...
by cruster
Sun Sep 07, 2014 2:26 pm
Forum: Troubleshooting
Topic: Wireless Network Woes
Replies: 1
Views: 517

Re: Wireless Network Woes

Doh!

Error in 8188eu.conf file,
line read: options 8188eurtw_power_mgnt=0
Should have read: options 8188eu rtw_power_mgnt=0

Wireless has been up continously for half an hour, so looks as if solved...

Go to advanced search