It appears we have bats inside the house below the roof – but where do they get in? Bats also emit heat, so one day I came up with the idea to use an infrared (IR) camera to record their trajectories, so maybe we can find out from those trajectories where they enter the house…
Hardware used
- ELP 1080p 2MP IR LED outdoor camera
supports Windows/Linux/Mac universal USB UVC driver
1 / 2.7 “ OV2710 CMOS sensor - Linux computer with Ubuntu 14.04
How does it work
The code uses OpenCV, takes pictures (640 x 480 @ 30 Hz) and to record the trajectories it computes the pixel maxima of all frames within a certain time span (e.g. 5 minutes):
VideoCapture cap(1); while (true){ cap >> frame; // capture next video frame imMin = max(imMin, frame); // compute maximum of all captured frames }
Download code: trajectory
Results
The recordings of the first night already show some bat trajectories (nice!) – As next, I’ll try to find a better place for the camera (try out different places)…
Another (however more expensive) idea would be to use an commercial heat sensing camera – here’s an 12 minutes example recording I found for such a camera: