- Open terminal and clone git repository.
git clone https://github.com/aktumar/DOP_human_detection.git
- Create the virtual environment.
virtualenv venv
- Activate the virtual environment.
Windows
venv\Scripts\activate
Ubuntu/Linux
source venv/bin/activate
- Run a requirements.txt file to install project’s dependencies
pip install -r requirements.txt
To see all the logs on the user interface, before running, you need to open cutelog with the command:
start cutelog
To run program use following command:
- Use your local camera. Write 'true' to run camera
python run.py -c true
-
Use RTSP with given .ini file. Choose one computer(camera).
.ini file filling example: rtsp://admin:[email protected]:554/Streaming/Channels/101
[10]
USERNAME = admin
PASSWORD = 12345
IP_ADDRESS = 192.168.1.210
PORT = 554
DIR = Streaming/Channels
COMPUTER = 101
python run.py -u 10
- Use local video path. Make sure that you have entered the correct directory for the video folder.
python run.py -v 1.mp4
Constantly using a neural network to recognize and monitor a person's actions in order to detect cheating in the UNT can be extremely laborious. To reduce server load, you can preprocess frames and send only specific parts of the frames for recognition. In this area, an examinee is typically singled out for performing certain actions that are different from the standard state. The following is a description of this algorithm:
- The frame's parts that differ from the previous one are identified.
- These areas are highlighted by boxes and include both significant and minor changes. As a result, you can eliminate even the tiniest details at this stage.
- When we have a lot of boxes, we can classify them by determining the coordinates of their neighbors. At this point, each of the box's four corners is involved. The window's parameters are used to determine the maximum distance between neighboring points.
- Once the boxes have been classified, each cluster is merged into a single box.
- However, it is worth considering that most of the frames contain third-party movements, such as a passerby or another examiner in the background. This is accomplished by selecting the largest box in terms of area.