SoCoDoug
New Member
Posts: 8
Raspberry Pi: Yes
Other Device: SkyWeatherPi
|
Post by SoCoDoug on Aug 9, 2019 9:02:10 GMT -8
Is it possible to adjust the SkyCamera's exposure settings? When I first setup my SkyWeather, the camera was doing fine adjusting to changes in brightness of the scene. After the recent software update, it is now over-exposed and washed out. Not sure what changed. Any suggestions? Here is the link to my WeatherStem page. The 8/8 video is washed out. The prior videos are not. skyweather.weatherstem.com/pdubne
|
|
|
Post by SDL on Aug 10, 2019 6:59:02 GMT -8
You can change the parameters in SkyCamera.py Look up and read about the picamera module. That is where you can set a ton of parameters. Still using the PiCamera module in V042, so the parameters might have to be tweaked. I see something similar on the University of Idaho's site: skyweather.weatherstem.com/uoficscdaWe willl look at it for V043 (which just has some minor bugs fixed) BP
|
|
|
Post by topher2880 on Aug 10, 2019 18:09:48 GMT -8
Im completely over exposed also, since the update to V42, plus the time and date data no longer printed on the snapshot
|
|
|
Post by SDL on Aug 11, 2019 13:25:27 GMT -8
Time and Date is weird. Works for us. I'm adding a bit of debugging code in 043 to try to narrow this down.
Overexposure is verified. We will fix it for V043.
BP
|
|
|
Post by SDL on Aug 11, 2019 14:53:44 GMT -8
V043 is up. It does not have a fix for the overexposure problem but I have added debug code. Basically I save a copy of the picture each minute in a skycamera-raw.jpg file under the static directory.
Next time you have an over exposure up on WeatherSTEM, go grab and display that file (skycamera.jpg) and the unprocessed file (skycamera-raw.jpg) and post the result. That will tell me where the problem is. We are trying the same process.
Post your results!
BP
|
|
|
Post by SDL on Aug 11, 2019 15:32:20 GMT -8
Here is a picture comparison of skycamera-raw.jpg (left) and skycamera.jpg (right). from V043 You have to grab them both inside of a minute by the way. It is a cloudy day in Coeur d'Alene so it is hard to see. They look about the same. I'll wait for the sun and run again. Best, BP Attachments:
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Aug 11, 2019 16:23:07 GMT -8
V43 appears to run fine... My pictures are also over exposed a little - it really depends on the day and how bright it is... but both normal jpg and raw appear identical
|
|
|
Post by SDL on Aug 11, 2019 16:48:46 GMT -8
Hmmm.. OK. Hold on. In V044 (out in next day or so), I'll add a better debugging system. Files are getting written over.
BP
|
|
|
Post by topher2880 on Aug 12, 2019 19:08:25 GMT -8
I cant seem to work out where I am meant to change the camera settings in SkyCamera.py I have upgraded to V043 after still not being able to get WxLink working. I am getting so over exposed that Im getting a green output. Attached is the raw. F/2.9, 1/5587seconds exposure at iso800 If i can adjust the ISO and F, should be able to find a sweet spot, even at a 1/5587 speed
|
|
|
Post by SDL on Aug 13, 2019 16:33:57 GMT -8
It is in SkyCamera.py but in the routine takeSkyCameraPicture routine. We will be fooling with this tomorrow.
BP
|
|
|
Post by topher2880 on Aug 13, 2019 21:33:37 GMT -8
I couldnt find it I added this to where I figured some settings probably should go and it seemed to work: camera.iso = 100 camera.shutter_speed = 750 camera.awb_mode = 'off' camera.awb_gains = (1.45, 1.45) SunControl board seems dead now, so got bigger issues than photos
|
|
|
Post by SDL on Aug 14, 2019 13:12:35 GMT -8
Can you show where you put this in the code? So we can test it out. That sounds like it would fix the overexposure.
BP
|
|
|
Post by topher2880 on Aug 14, 2019 16:50:03 GMT -8
if (config.SWDEBUG): print ("--------------------") print ("SkyCam Picture Taken") print ("--------------------") camera = picamera.PiCamera()
try: camera.rotation = 180 #camera.rotation = 270 camera.resolution = (1920, 1080) # Camera warm-up time camera.iso = 100 camera.shutter_speed = 750 camera.awb_mode = 'off' camera.awb_gains = (1.45, 1.45)
camera.capture('static/skycamera.jpg') camera.capture('static/skycamera-raw.jpg')
Ive been playing around with ISO settings (camera.iso = 0 for auto) and also awb.mode on sports and a few other things to try and limit the exposure time, while trying to get correct colour saturation.
|
|
|
Post by topher2880 on Aug 14, 2019 17:04:08 GMT -8
* correction, AWB mode with sunlight/auto/off/ etc - exposure_mode for sports etc
|
|
|
Post by SDL on Aug 15, 2019 11:12:51 GMT -8
That is the correct place. Have you found a good setting yet?
BP
|
|