Subcriber able to switch between multiple callback function
I have a class which contains a 2 callback function, and based on a boolean it determines which one to use.. The problem is that the state of the boolean get sets in the constructor, and main kept spinning it. so the boolean gets reset..
How overcome this problem, they the callback function both retrieve images and based on the boolean perform different vision actions.