I am making an android app which detects any object in front of the user while he is walking. I am using the canny edge detector method from openCV library to do so.
I want that whenever this method gets any edges on the screen from the video it should return some value. For this the idea is to see if there are any white pixels in the canny mode of the feed.
But I do not know how to do this with a video and if this has to be done with images then how to convert a live video to still images continuously?