False positives

I’ve used object detection to determine if a logo is present on a tv screen. On cable news channels, when present, the logo is always in the same location and the same size. My problem is the code usually works but gives random indications that the logo is present when it is not.

The project ID is 613385.

The hardware is an ESP32-CAM with a telescopic lens that produces an image of the logo that fills about 25% of the total.

I’ve tried changing the number of input data images of both the logo and the background to no avail.

Also, my last attempt was to split the logo input data into two parts (labels) and require both to be detected to verify presence of the logo.

Thanks in advance for your attention.