Detection of abandoned luggage in complex environment
How to install and use our abandonned luggage detector:
- first of all, download from our github and extract the archive, or clone the project.
- Go into the project file with command :
cd abandoned_luggage
- After that you should download the model best.pt and place it in the project root.
- (OPTIONAL), create a new environement
- then, from a powershell (windows) or a terminal (linux):
pip install -r ./requirements.txt
- to run the program(be careful that python is recognized as a command, else try python3, py, py3, or add python to the environement variable 'PATH'):
python ./detect.py # to run with your camera in real time with 128p (bad quality, depends on your computer), good frame per seconds
python ./detect.py --imgsz 640 # good results, very demanding on your computer
python ./detect.py --source video.mp4 # to analyze your own video, frame per frame, defaut is in 128p
python ./detect.py --imgsz 640 --source video.mp4 # best results by far, 640p, on your own video