Friday, April 26, 2019

Using openCV to study a resilient rat

One rat still remains in our house, we see its little droppings in the living room and the stench from under the sink. The pest control are having trouble capturing it so I setup a cheap wide angle camera and observe.
Sifting through 8 hours of footage ain't fun so I asked the help of OpenCV based DVR-scan as well as ffmpeg.

Here are the command lines on Windows:
To merge bits of videos:
(for %i in (*.mp4) do @echo file '%i') > mylist.txt
ffmpeg -f concat -safe 0 -i mylist.txt -c copy ../../output-2019-04-26-08.mp4
To extract footage motion from hours of video:
for %i in (output*.mp4) do dvr-scan -i %i -o scanned%i.mp4

You need is ffmpeg and DVR-scan

No comments:

Post a Comment