maintaing same brightness throughout video

General discussion about topics related to OpenMV.
krishnakumar77777
Posts: 16
Joined: Mon Oct 15, 2018 6:34 am

maintaing same brightness throughout video

Postby krishnakumar77777 » Thu Nov 29, 2018 4:46 am

Hi,
How can i keep the brightness of video same throughout the video where the openmv cam will be moved in all x,y and z direction seperately in outdoor?
User avatar
iabdalkader
Posts: 634
Joined: Sun May 24, 2015 3:53 pm

Re: maintaing same brightness throughout video

Postby iabdalkader » Thu Nov 29, 2018 11:08 am

krishnakumar77777 wrote:
Thu Nov 29, 2018 4:46 am
Hi,
How can i keep the brightness of video same throughout the video where the openmv cam will be moved in all x,y and z direction seperately in outdoor?
Disable auto-functions ?

http://docs.openmv.io/search.html?q=set ... ea=default
krishnakumar77777
Posts: 16
Joined: Mon Oct 15, 2018 6:34 am

Re: maintaing same brightness throughout video

Postby krishnakumar77777 » Thu Nov 29, 2018 11:17 pm

By disabling all these,can i get the same amount of light even when the openmv moves?I explain my scenario. I want to detect lemon fruit in the plant in outdoor by making the scanning using movement of openmv cam on a slide. Can disabling helps me out?
User avatar
iabdalkader
Posts: 634
Joined: Sun May 24, 2015 3:53 pm

Re: maintaing same brightness throughout video

Postby iabdalkader » Fri Nov 30, 2018 10:43 am

krishnakumar77777 wrote:
Thu Nov 29, 2018 11:17 pm
By disabling all these,can i get the same amount of light even when the openmv moves?I explain my scenario. I want to detect lemon fruit in the plant in outdoor by making the scanning using movement of openmv cam on a slide. Can disabling helps me out?
Yes, but you should let them run for a while to set some initial values, try this:

Code: Select all

sensor.skip_frames(time=1000)
sensor.set_auto_gain(False)
sensor.set_auto_exposure(False)
krishnakumar77777
Posts: 16
Joined: Mon Oct 15, 2018 6:34 am

Re: maintaing same brightness throughout video

Postby krishnakumar77777 » Sat Dec 08, 2018 3:38 am

what will the polarizer filter do?
User avatar
iabdalkader
Posts: 634
Joined: Sun May 24, 2015 3:53 pm

Re: maintaing same brightness throughout video

Postby iabdalkader » Sat Dec 08, 2018 7:38 pm

krishnakumar77777 wrote:
Sat Dec 08, 2018 3:38 am
what will the polarizer filter do?
As I understand it, it attenuates a certain wavelength so you can use it in direct sunlight, it's like sun glasses. See the comparison photos in the product description:

https://openmv.io/collections/products/ ... ing-filter

I don't think that's what you need. It should be enough to disable the auto-functions like I mentioned.
jisheng
Posts: 33
Joined: Wed Apr 12, 2017 9:42 pm

Re: maintaing same brightness throughout video

Postby jisheng » Mon Dec 10, 2018 9:56 pm

I think you are talking about making each frame have the same light even if the light outdoors changes. do i understand correctly?
krishnakumar77777
Posts: 16
Joined: Mon Oct 15, 2018 6:34 am

Re: maintaing same brightness throughout video

Postby krishnakumar77777 » Mon Dec 17, 2018 5:17 am

yes jisheng. you got it correctly. can you help me?
User avatar
kwagyeman
Posts: 2467
Joined: Sun May 24, 2015 2:10 pm

Re: maintaing same brightness throughout video

Postby kwagyeman » Tue Dec 18, 2018 11:16 am

Um, to do this you'd want to change the sensor exposure value based on the value returned by get_stats(). So, see the sensor control scripts and adjust the exposure up or down depending on if you're above or below some lightness threshold.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 5 guests