To use yolov5 to count class students which cameras are hikcameras.
Using yolov5 training by myself to get student heads and count the number of class. Using onvif to control hikvision cameras to goto preset position, get stream image data and put iimages into model to get head number. In the end, your can upload the student number with pymysql to mysql. All information can store as logger.
- you should set your camera ip in
./config/defaults.py
, add your own ips. - set passwd and username in
camSubCountingClass.py
this line - run mainControl.py
python mainControl.py
- you can change the time table in
./config/defaults.py
orsystem.yaml
- your can change epoch time, which is all ips run one epoch time. default is 300s.