Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7074287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:02:10+00:00 2026-05-28T06:02:10+00:00

my question is similar to this one: OpenCV: Detect blinking lights in a video

  • 0

my question is similar to this one:
OpenCV: Detect blinking lights in a video feed

I have a LED light, and my camera runs at 30fps. At each frame, I ant to know whether the light is on or not. Similar to the previous question I also want to get the location of that point.

I now wonder how to use openCV for this instance (I am new). It would be easy if the light would just be one pixel, but given considerable background noise and the size of the LED, how can I detect the greatest light source in the image. I have to assume that I cannot set the exposure freely (on an iPhone).

I am new to image processing so how would I got about it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:02:11+00:00Added an answer on May 28, 2026 at 6:02 am

    if the background is just noisy, but does not change so much you can you backgroudn subtraction:

    you have 2 frames, and you do Frame2-Frame1, then you apply a threshold (the value of the threshold depends on the intensity of the LED so you should test it), and you set to black the pixles lower than the threshold and to white the pixels higher than the threshold.

    this is very easy if you convert your image in a grayscale one.

    should be somenthign like this:

    cvAbsDiff(img2, img1, img2);
    cvThreshold(img2, img2, (double)threshold_value, 255 (if you are using an rgb image), CV_THRESH_BINARY);
    

    if your led is off you should fine just noise, while if you led is on you will expect to find a white region where your light is illuminting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question similar to This one . But I want to implement
I have a question similar to this one , except with Javascript instead of
My question is similar to this one but for a Rails app. I have
I have a question similar to this one , only that my question is
I have a question similar to this one , but my dataset is a
I'm looking for an answer to a question similar to this one: protect users'
my question is similar to this one , but I don't want to use
This question is similar to this one, but with an extra wrinkle: Auto-removing all
This question is similar to this one How do I add options to a
My question is similar to this one , but I would like to replicate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.