My goal is to detect if there is an object in a picture. To do this, I'm using OpenCV on my Pi, and functions like Gaussian/Canny. I am unable to do this, either I detect an object when there is not, or I don't detect an object when there is one.
I just want to know if there is object in the picture or not. I don't specially need the location. For example with these two pictures.