Camera view is blocked, uniform image

asked 2019-04-02 06:52:00 -0600

tobix10 gravatar image

updated 2019-04-04 03:32:26 -0600

Hi, how would you approach a problem of detecting if camera view is blocked?

Simplest solution is to calculate standard deviation and look for really low values, but it is good when whole view is blocked. What to do if for example 3/4 of the view is obstructed?

Other solution is to calculate percentage of pixels that are below some threshold. I am not convinced that is good enough, because of two reasons:

  1. it is not easy to determine threshold for RGB image
  2. pixels should lie in the same region
edit retag flag offensive close merge delete