I wrote a script using opencv to read bottle level.
https://i.stack.imgur.com/JMaDE.jpg is an example of the project
My question is:
Every time that show the red line I need to call a two-second interval function, but in that range there may be other red lines. So, how can I call a function for each red line?