Josh-Larson / CameraBoardAPI

An API to interface with the Camera Board on the Raspberry Pi.
17 stars 7 forks source link

images go t black #5

Closed rmsalinas closed 10 years ago

rmsalinas commented 11 years ago

Hi Josh,

I've been testing your changes. Good idea to add take_picture!

Nevertheless, I can not get good results when capturing. When I run the test, the first image obtained is very dark. However, the rest of the images are completely black. I've check that it is not because take_picture, it is always the first image very dark, and the rest in black. (No matter if I use BMP or JPEG, get the same result). I've been playing around with iso, brightness and exposure values, but I did not succeed. When I try with raspistill, the images are ok. I have put the images for you to check at https://dl.dropboxusercontent.com/u/89571862/images.zip

Cheers, Rafa

Josh-Larson commented 11 years ago

I apologize for the latency of my response here, but I have been swamped with school tasks. I tested with both BMP and JPEG and I did find the first image was (sometimes) noticeably darker, but only with JPEG was the final images black. With BMP it worked just fine, or at least with what I got. I do not have any guesses as to why the JPEG error happened yet, but I'll try to work on it more this weekend.

exilaus commented 11 years ago

Confirm jpg are really darkest.

rmsalinas commented 11 years ago

HI, I have tested with Bmp and images are better. I am testing in a dark room, and only illuminated objects are visible. So I have tried to play a bit with iso. However, no mattern the value I set, it has no effect on the images captured. It is like if the iso value were ignored.

I have added command line options to the main program to allow user play with params.

Josh-Larson commented 11 years ago

Pretty sure I figured out one of the issues: first image darker, but it requires testing (which I am unable to do at the moment due to hardware issues). I am pretty sure the delay before a capture while the camera is on is the key, for instance in the Raspi* applications they had a timeout/delay before taking the image.