I wrote a script using opencv to read bottle level.
https://imgur.com/a/6VmQVQ0 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?