SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Raspberry pi Camera Module tips needed

Mon Aug 18, 2014 8:02 pm

Hi everyone,

I have been trying to get better quality photos with my camera module.
How can I get less blur and noise ? Even sometimes i try with spot lights to have good lightning but can not get good photos.
I do now that i mustn't expect the best photos from camera module but i am also curious if there is some useful tips to snap better photos.. I use "raspistill" command..

Cheers,
Last edited by SirNight on Wed Sep 10, 2014 6:51 pm, edited 1 time in total.

gordon77
Posts: 4992
Joined: Sun Aug 05, 2012 3:12 pm

Re: Raspberry pi Camera Module tips needed

Mon Aug 18, 2014 8:59 pm

What settings are you using in raspistill ?

For lower noise use low ISO.

Why is it blurred ? Shutter speed or focus ?

SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Re: Raspberry pi Camera Module tips needed

Tue Aug 19, 2014 9:26 pm

gordon77 wrote:What settings are you using in raspistill ?

For lower noise use low ISO.

Why is it blurred ? Shutter speed or focus ?
Hi Gordon,

Thx for your answer,
I use like this, " raspistill -awb off -awbg 1.9,1.3 -ss 30000 -ISO 100 -n -t 1 -o test.jpg "
Can i do some improvements? So, please tell me what you think..

gordon77
Posts: 4992
Joined: Sun Aug 05, 2012 3:12 pm

Re: Raspberry pi Camera Module tips needed

Tue Aug 19, 2014 9:37 pm

You have a low ISO and a fast shutter speed.

So unless you are moving the camera or its out of focus l don't know what to suggest.

Expecting too much from a £20 camera ? I think they are very good for the cost.

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Raspberry pi Camera Module tips needed

Tue Aug 19, 2014 10:03 pm

Could it be a focusing problem. Maybe less than minimal focusing distance?

SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Re: Raspberry pi Camera Module tips needed

Tue Aug 19, 2014 10:16 pm

Yes gordon, Thx for your help..
Dirks , How can adjust to focus then ? any tips ?


DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Raspberry pi Camera Module tips needed

Wed Aug 20, 2014 7:58 am

Minimum distance (w/o changes) seems to be about 60cm
http://www.raspberrypi.org/forums/viewtopic.php?t=43985

User avatar
RaTTuS
Posts: 10558
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Raspberry pi Camera Module tips needed

Wed Aug 20, 2014 8:07 am

post an image so we can see what it is you are seeing
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Re: Raspberry pi Camera Module tips needed

Fri Aug 29, 2014 12:38 pm

RaTTuS wrote:post an image so we can see what it is you are seeing

Hi, There are the sample photos from two different cameras
Last edited by SirNight on Wed Sep 10, 2014 6:50 pm, edited 1 time in total.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8739
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Raspberry pi Camera Module tips needed

Tue Sep 02, 2014 10:17 am

Something is not right with your setup. The AWB gains are stored in the EXIF header ("strings foo.jpg | grep gain" to read them) and for your two images read
"gain_r=1.664 gain_b=1.000" for 1.jpg and
"gain_r=1.781 gain_b=1.156" for 2.jpg.
Those should both be the same at or around your specified settings.
Likewise the exposure times on both are 15ms when you said you added the -ss 30000 to the command line. Analog gain is at x1.0 (256) which is what you would expect for ISO100, but the rest doesn't add up.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Re: Raspberry pi Camera Module tips needed

Tue Sep 02, 2014 12:19 pm

6by9 wrote:Something is not right with your setup. The AWB gains are stored in the EXIF header ("strings foo.jpg | grep gain" to read them) and for your two images read
"gain_r=1.664 gain_b=1.000" for 1.jpg and
"gain_r=1.781 gain_b=1.156" for 2.jpg.
Yes definately something is wrong with my setup.. Let me explain what i do.
All Raspberries use the same settings . Actually I push all shot parameters to Raspberries.
And then broadcasting sends signal to execute this code below; (I so often change it and push it with ansible to see differance)

I dont understand what's the matter. :?
Last edited by SirNight on Wed Sep 10, 2014 6:49 pm, edited 1 time in total.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Raspberry pi Camera Module tips needed

Tue Sep 02, 2014 11:56 pm

You haven't yet mentioned if you've checked that all your Pis are running up-to-date firmware :roll:

What do the commands 'vcgencmd version' and 'uname -a' report on each of your Pis?

Using a limited sample-set of just a single Raspberry Pi (with up-to-date firmware) and a single Pi camera, but taking 3 pictures with pointing the camera at very different areas of brightness, running your sample command of

Code: Select all

raspistill -awb off -awbg 1.7,1.5 -ISO 100 -n -t 400 -sh 40 -ss 11000 -o captureN.jpg
and then running the 'grep gains' command from 6by9's post, gives me three different images that all have 'gain_r=1.699 gain_b=1.500'

And it's not clear where your original problem report of 'bluriness' comes into this?

SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Re: Raspberry pi Camera Module tips needed

Wed Sep 03, 2014 8:09 pm

Hi,

I made a new test.

First , i checked all my raspis version by using ' vcgencmd version ' and ' uname -a ' commands.
They reported; (only 6 of them)

They have the same version. also I remember 6by9 told me "AWB gains were added back in March, so it must be after that date." according to him there is no problem.

And then I used raspi still command that is "raspistill -awb off "
later I read their info by " strings test.jpg | grep gain "
They reported; They all look the same , except " f= " and " tg= ", what do they stand for ?


Then, I was thinking perhaps my trigger script makes problem when it calls "raspistill".
I triggered with my script and took all the photos. Gains are the same, however " tg= " and " f= " changes


The most interesting thing is, They still look different from each other..

I am going to be crazy soon... :roll:

Thank you for your help guys, I really appreciate it.
AndrewS wrote: And it's not clear where your original problem report of 'bluriness' comes into this?
The situation changed... I wish, there was only focus problem... :?
Last edited by SirNight on Wed Sep 10, 2014 6:47 pm, edited 1 time in total.

SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Re: Raspberry pi Camera Module tips needed

Sat Sep 06, 2014 4:32 pm

any comments or suggestion so far?

User avatar
RaTTuS
Posts: 10558
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Raspberry pi Camera Module tips needed

Mon Sep 08, 2014 7:55 am

my comment would be :-
each camera needs to be calibrated with WB to itself - setup a white screen and get the figures for each one ,
then you can use that as the basis on the same camera
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Re: Raspberry pi Camera Module tips needed

Mon Sep 08, 2014 1:40 pm

I see,
So we can say Raspberry pi camera modules somehow aren't produced at the same quality.
Perhaps sensor or other problem with the camera module should be issued?

User avatar
RaTTuS
Posts: 10558
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Raspberry pi Camera Module tips needed

Mon Sep 08, 2014 2:26 pm

dunno - but there will be differences - the awb option will correct ...
what happens when you have that switched off and you read the vales - are they vastly different from each other ?

also just do a
raspistill -o test.jpg
on each of them and post them to see if they look bad?
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
Cancelor
Posts: 775
Joined: Wed Aug 28, 2013 4:09 pm
Location: UK

Re: Raspberry pi Camera Module tips needed

Mon Sep 08, 2014 4:39 pm

SirNight wrote:I see,
So we can say Raspberry pi camera modules somehow aren't produced at the same quality.
Perhaps sensor or other problem with the camera module should be issued?
Quality is not the same as identical, that is why things need calibrating.
Can't find the thread you want? Try googling : YourSearchHere site:raspberrypi.org

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Raspberry pi Camera Module tips needed

Mon Sep 08, 2014 6:27 pm

Nobody appears to have suggested the obvious (to me at any rate) step of swapping the cameras between the Pis and seeing what changes......
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

Return to “General discussion”