Skip to content

Camera Monitor | 深度学习 视频监控 钉钉预警 人物识别 动作识别

License

Notifications You must be signed in to change notification settings

wangke0809/GiaoCameraRobot

Repository files navigation

GiaoCameraRobot is the mascot of SIPL Lab.

passing codecov passing

English | 中文

Overview

I named her Xiao Giao, and she could monitor every movement in the laboratory through the camera.

Xiao Giao uses OpenCV to obtain camera data, uses TinyFace to detect faces, and recognizes people and actions by fine-tuning ResNet50. Send DingTalk notifications when someone is detected entering or leaving.

Getting Started

Installation

  • Clone this repo:
git clone https://github.com/wangke0809/GiaoCameraRobot.git
cd GiaoCameraRobot
  • Install PyTorch 0.4+ and torchvision.
    • For pip users, please type the command pip install -r requirements.txt.

Configuration

cp config.py.example config.py

Get the region to be monitored:

cd tools
python getMonitorRegion.py

Get image detection threshold:

cd tools
python getDiffThreshold.py

Fill the region and threshold into config.py

Download TinyFace pre-trained model into current directory, and download ResNet50 pre-trained model into tools directory.

Run

python GiaoRobot.py

Train the Model

Of course, you can't run normally by following the above steps, because the model has not been trained yet! You need to close the person and action detection module first, and collect enough training samples through face detection.

Step 1: Prepare training dataset

cd tools
python imagesDrawBoxes.py

Step 2: Annotate training dataset

cd tools
python getTrainDataSet.py

Step 3: Train the model

cd tools
python trainModel.py

Related Projects

About

Camera Monitor | 深度学习 视频监控 钉钉预警 人物识别 动作识别

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages