You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(yolov8) C:\Users\s\Desktop\文件\project>backgroundremover -i "C:\Users\s\Downloads\VID20240430173530.mp4" -tv -o "output.mov"
Traceback (most recent call last):
File "C:\Users\s\anaconda3\envs\yolov8\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\s\anaconda3\envs\yolov8\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\s\anaconda3\envs\yolov8\Scripts\backgroundremover.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "C:\Users\s\anaconda3\envs\yolov8\lib\site-packages\backgroundremover\cmd\cli.py", line 196, in main
utilities.transparentvideo(os.path.abspath(args.output.name), os.path.abspath(args.input.name),
File "C:\Users\s\anaconda3\envs\yolov8\lib\site-packages\backgroundremover\utilities.py", line 241, in transparentvideo
matte_key(temp_file, file_path,
File "C:\Users\s\anaconda3\envs\yolov8\lib\site-packages\backgroundremover\utilities.py", line 92, in matte_key
total_frames = int(framerate_output)
ValueError: invalid literal for int() with base 10: '9222,\n\n'
Good Job.
So I just change utilities.py line 92
to
https://stackoverflow.com/questions/25359288/how-to-know-total-number-of-frame-in-a-file-with-cv2-in-python
The error is:
ValueError: invalid literal for int() with base 10: '9222,\n\n'
The total frames is 9222, so you can use
or use OpenCV to get frames.
System Windows11
The text was updated successfully, but these errors were encountered: