maintaing same brightness throughout video

General discussion about topics related to OpenMV.
krishnakumar77777
Posts: 41
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: 935
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: 41
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: 935
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: 41
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: 935
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: 41
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: 3259
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,
krishnakumar77777
Posts: 41
Joined: Mon Oct 15, 2018 6:34 am

Re: maintaing same brightness throughout video

Postby krishnakumar77777 » Fri Dec 21, 2018 10:36 am

hi,
lightness threshold means?what i want to use from get-statitics function? L or A or B? median or mean or standard deviation? help please
User avatar
kwagyeman
Posts: 3259
Joined: Sun May 24, 2015 2:10 pm

Re: maintaing same brightness throughout video

Postby kwagyeman » Fri Dec 21, 2018 11:06 am

Hi, use the median of the L channel and adjust the the automatic exposure accordingly.
Nyamekye,
krishnakumar77777
Posts: 41
Joined: Mon Oct 15, 2018 6:34 am

Re: maintaing same brightness throughout video

Postby krishnakumar77777 » Fri Dec 21, 2018 8:04 pm

Hi,
I am also using the polarizing filter which i bought from you.
krishnakumar77777
Posts: 41
Joined: Mon Oct 15, 2018 6:34 am

Re: maintaing same brightness throughout video

Postby krishnakumar77777 » Mon Jan 07, 2019 10:53 pm

Hi,
i need to detect white colored object within 3-5cm under sunlight using an color sensor. Which sensor best fit for this?
User avatar
kwagyeman
Posts: 3259
Joined: Sun May 24, 2015 2:10 pm

Re: maintaing same brightness throughout video

Postby kwagyeman » Mon Jan 07, 2019 11:59 pm

Hi, the OV7725?
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests