Skip to content

Real-time yolov4 object detection for webcam video stream in flask framework

Notifications You must be signed in to change notification settings

Accioy/yolov4-webcam-flask

Repository files navigation

Environment requirements

python3 modules: tensorflow==2.3.0 opencv-python matplotlib flask redis celery

RUN

tfmodel

python run_flask_server_yolov4tf.py

The model path is defined in line 193 saved_model_loaded = tf.saved_model.load('model/yolov4-416', tags=[tag_constants.SERVING]).

tflite model

python run_flask_server_yolov4tflite.py

The model path is defined in line 53 interpreter,inputs,output_details = load_model_lite('model/yolov4-416-fp16.tflite').

local camera test for tf model and tflite model:

python infer_tf.py
python infertflite_chg0.py

About

Real-time yolov4 object detection for webcam video stream in flask framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published