Skip to content

📷 Create real-time object availability checker for surveillance application with StarkSPY

License

Notifications You must be signed in to change notification settings

CHAITron/StarkSPY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status License: MIT

StarkSPY

Parking Application

StarkSPY is a Linux bounding box marking tool and video surveillance based on OpenCV library for checking availability of target object in real time. There are two programs consist of marking tool(GenBOX.py), which allow you to create bounding area, and the main program(SpyCAM.py) with using object detection algorithm. Furthermore, You can program more actions, when object attempts your marked bounding area. (e.g. print texts, counters, change status, etc.)

It is written in Python3 and uses OpenCV for its graphical interface.

MobileNet-SSD is convolution neural networks model used to perform object detection. It is trained with PASCAL VOC (Visual Object Classes) dataset, so there are 21 classes to choose including: "background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor".

The created box positions are according to OpenCV showup window. It will be saved in plain text file.Then it will be used again in the main program.

Usages

cd StarkSPY/

  1. You need to draw bounding area first
  • rectangle marking: python3 GenBOX -s rectangle
    • circle marking: python3 GenBOX -s circle
  1. Use your marked areas in real-time capturing
    • python3 SpyCAM

Instruction manual

Mouse control for rectangle marking

Action Description
First Left Click Mark upper left point of box
Left Click Again Adjust bottom right point of box

Mouse control for circle marking

Action Description
First Left Click Mark center point of circle
Left Click Again Adjust the circumference of circle

Keyboard Shortcuts

Shortcut Description
s save drawed boxes and begin new box
r reset all boxes (clear all)
q save all then exit program

More Information

https://medium.com/@chaitat.u/autonomous-availability-checker-with-starkspy-295ad0b92d0b?source=friends_link&sk=c76c05d04519e5ada4e89c300c8122a9