Sign in to follow this  
Followers 0
huskies

Is it possible to check security tapes for movements

8 posts in this topic

So we have over 60 hours of security footage and during that time I know someone touched an equipment in the warehouse and it's now causing trouble. Is there a way to scan through the video file and check for movements and save the screenshots of those?

I know that there is an example script that can compare 2 images and find differences between them by pixels


<It Shall Be Done>

Share this post


Link to post
Share on other sites



Yes, lookup the PixelSearch function.

Share this post


Link to post
Share on other sites

So we have over 60 hours of security footage and during that time I know someone touched an equipment in the warehouse and it's now causing trouble. Is there a way to scan through the video file and check for movements and save the screenshots of those?

I know that there is an example script that can compare 2 images and find differences between them by pixels

At a very primative level, you could run the video and screen capture each frame during the whole footage. Then choose an area of the screen to monitor for changes in colour and log those frames. I would suggest several locations being monitored in a relatively small area (say the equiverlent of 2 square foot near the device/location that has been tampered with.

Sorry I cannot be of more help at the moment but my son is programming one of these pieces of software but he is only 12 and needs a lot of help. He has onlt got the screen capture at this stage which I have included below if it helps:

#include <ScreenCapture.au3>
dim $counter
dim $numericstring
dim $filename
dim $loop
$counter = 0
;*********************************************************************************
while $loop <>6
$counter = $counter + 1
$numericstring = String($counter)

$filename = "\Capture-" & $numericstring & ".jpg"
sleep (3000) ;Delay currently 3 seconds
_Main()
wend

;*********************************************************************************
Func _Main()
    Local $hBmp

    ; Capture full screen
    $hBmp = _ScreenCapture_Capture ("")

    ; Save bitmap to file
    _ScreenCapture_SaveImage (@MyDocumentsDir & $filename, $hBmp)

EndFunc   ;==>_Main

He has used BMP as JPEG'S are lossy and therefore change the image by smoothing out a given area dependant on the quality thus loosing clarity and, when looking for changes in video footage, reducing it's chances of detecting movement.

All the best, I feel for you, it used to be my job checking video and did my head in!

Gingerbloke

Share this post


Link to post
Share on other sites

you may want to look @ Andrew Kirillov script.

Its not an Autoit script but i think it may help.

ftc

It would be nice to have an AUTOIT equiverlent, We could then adjust it to our needs. I will keep you posted on my boys progress for the future. I do not have the answer but I am sure someone will!!

Gingerbloke

Share this post


Link to post
Share on other sites

thanks everyone!


<It Shall Be Done>

Share this post


Link to post
Share on other sites

Have you checked out AVISynth? It's a dedicated frameserver, multi-threaded, free and has many motion detection functions. Why reinvent the wheel?

Even if you've never heard of it, it's so easy to learn, you'll be up and running within 30 min. If it's just motion detection, you should be able to get much better than realtime (perhaps 4x) analysis speed.

QED

Share this post


Link to post
Share on other sites

So we have over 60 hours of security footage and during that time I know someone touched an equipment in the warehouse and it's now causing trouble. Is there a way to scan through the video file and check for movements and save the screenshots of those?

Take a look at ImageMagick. It is a free, extremely powerful command-line image processing tool. It can do diff'ing amongst an unbelievably large number of operations. Diffing is introduced here:

http://www.imagemagick.org/script/compare.php

Being command-line, it is easy to interface to AutoIt.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0