varungupta31 / dashcam_anonymizer

Code to Blur Human Faces and Vehicle License Plates in Video and Images using a SoTA Object Detection model YOLOv8
MIT License
23 stars 2 forks source link

I want to output a video with the vehicle number plates and person faces blurred. However, an error occurs when I try to do this #9

Closed divya70063 closed 2 months ago

divya70063 commented 2 months ago

Speed: 4.3ms preprocess, 441.3ms inference, 1.9ms postprocess per image at shape (1, 3, 640, 1088) Results saved to runs/detect/yolo_videos_pred7 337 labels saved to runs/detect/yolo_videos_pred7/labels Traceback (most recent call last): File "blur_videos.py", line 45, in videos = sorted(glob.glob(f"{config['videos_path']}/*.mp4"), key=sort_videos) File "blur_videos.py", line 43, in sort_videos return int(item.split("/")[1].replace(".mp4","")) ValueError: invalid literal for int() with base 10: 'media'

varungupta31 commented 2 months ago

Please follow the instructions described in the README.

The blur_videos.py script currently expects the videos to be named numerically [1.mp4, 111.mp4]

It seems that your file name is non-numeric.

varungupta31 commented 2 months ago

Feel free to re-open in case of issues.

divya70063 commented 2 months ago

Hi

Regarding error will showing my laptop windows and python code using please provide code and iam changing code line detecting only Indian vehicle I want all country vehicles as well as face also not blurring.

From: Varun Gupta @.> Sent: 01 July 2024 19:30 To: varungupta31/dashcam_anonymizer @.> Cc: Gundugolanu divya Bharathi @.>; Author @.> Subject: Re: [varungupta31/dashcam_anonymizer] I want to output a video with the vehicle number plates and person faces blurred. However, an error occurs when I try to do this (Issue #9)

You don't often get email from @.**@.>. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

Feel free to re-open in case of issues.

— Reply to this email directly, view it on GitHubhttps://github.com/varungupta31/dashcam_anonymizer/issues/9#issuecomment-2200234712, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJPRBZWFDHDYV2JJABJ74E3ZKFOF5AVCNFSM6AAAAABJ7PK56KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQGIZTINZRGI. You are receiving this because you authored the thread.Message ID: @.**@.>>

varungupta31 commented 2 months ago

Regarding error will showing my laptop windows and python code using please provide code and iam changing code line detecting only Indian vehicle I want all country vehicles as well as face also not blurring.

Uhm, I don't think I understand your concern. Can you please be more legible?