flashing led detection with changing ambiant light

OpenMV related project discussion.
User avatar
chrisPyres66
Posts: 54
Joined: Mon Jul 16, 2018 9:22 am
Location: France

flashing led detection with changing ambiant light

Postby chrisPyres66 » Wed Dec 05, 2018 9:48 am

Dear all,

I would like to discuss the best way (accuracy and consumption) to detect a flashing green led with a changing ambiant light from night to day.
The led is lighting very quickly (around 20ms) every 4s.

To be accurate, i used QQQVGA frame rate to have 84fps and catch the flashing light.

I tried these three methods to detect the light :
  • images difference: very sensitive to ambiant light change and to reflecting ambiant light
    find_blob : very sensitive to ambiant light change and to reflecting ambiant light
    grayscale threshold: very sensitive to reflecting ambiant light
Have you an idea which is the best method ?

Thanks,
User avatar
kwagyeman
Posts: 2467
Joined: Sun May 24, 2015 2:10 pm

Re: flashing led detection with changing ambiant light

Postby kwagyeman » Wed Dec 05, 2018 12:10 pm

I'd use get_stats() to get the color distribution of the area the light is in and then monitor the area color distribution over time. When the LED is flashing it should change the green color average of the area.
Nyamekye,

Return to “Project Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests