blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.22k stars 1.76k forks source link

False detections at night / 1-channel greyscale issue? #67

Open mr-onion-2 opened 5 years ago

mr-onion-2 commented 5 years ago

I get lots of false detections from spider webs and moths etc at night in infrared.

This article suggests that images from an infrared camera are single channel, while most models are trained on 3 channel RGB Images.

There is also this on tensorflow github with some more info if needed.

Solution as per the links appears to be to stack the single channel 3 times to form a 3-channel input.

Hopeful this is possible and not too much work :)

sample1 sample2

blakeblackshear commented 5 years ago

I get these false positives from time to time too. They rarely cause my mqtt sensor to trigger because they are moving so fast. There are several ways I could approach this, but haven't gotten to it yet. One of my main goals is for this to be reliable enough to wake me up in the night if needed, so I will iron this out eventually.

mr-onion-2 commented 5 years ago

Thanks for the quick response. Glad it's not just me. Not sure if I'm just unlucky but I get loads. I've had this spider in various different positions 4 times this evening! Look forward to the fix - thanks :) 455921747_492787

scstraus commented 5 years ago

One thing that helps with spiders close to the cameras at least is external IR illuminators. But, I also have a lot more false positives at night. Would be nice to see similar accuracy at night as what's possible during the day.

mcondren commented 4 years ago

I am having this problem with birds/spiders at night as well. Unfortunately, it happened right after 12 months of no issues and after I had set up alarms that woke us up in the night.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

bagobones commented 2 years ago

Going to add a particularly annoying example for me, when my cameras switch from day to night mode the driver and passenger seats get detected as people.