Bat tracking using infrared camera

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 sensorelp_1080p_2mp_ir_outdoor_cam
  • Linux computer with Ubuntu 14.04

How does it work
record_bat_trajectory

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)…

bats_trajectory   

bats_trajectory2

bats_trajectory3

bats_trajectory4

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:

bats_trajectory_example

 

Leave a Reply

Your email address will not be published. Required fields are marked *

IMPORTANT! To be able to proceed, please enter the magic word 'naadeg' so we know hat you are a human)

Enter the magic word:
Please leave these two fields as-is:

A blog on projects with robotics, computer vision, 3D printing, microcontrollers, car diagnostics, localization & mapping, digital filters, LiDAR and more