The demo_ego_blur_gen1.py script is a CLI tool used to detect and blur faces and license plates in images (PNG, JPEG) or videos (MP4) using Gen1 models. It supports both face and license plate detection, allowing you to specify model paths, confidence thresholds, and scaling factors for the blur area.
To use the tool, you must provide at least one model path (face or license plate) and at least one input file (image or video).
# Example: Blur faces in an image
python gen1/script/demo_ego_blur_gen1.py \
--face_model_path /path/to/face_model.pt \
--input_image_path input.jpg \
--output_image_path output.jpg
# Example: Blur license plates in a video
python gen1/script/demo_ego_blur_gen1.py \
--lp_model_path /path/to/lp_model.pt \
--input_video_path input.mp4 \
--output_video_path output.mp4 \
--output_video_fps 30