nadermx / backgroundremover

Background Remover lets you Remove Background from images and video using AI with a simple command line interface that is free and open source.
https://www.backgroundremoverai.com
MIT License
6.81k stars 573 forks source link

:bug: Fix issue with framerate count #158

Closed vincexiv closed 1 month ago

vincexiv commented 1 month ago

framerate_count is in the regex form '\d+,\n', which when the function int() is called with it, fails. To solve this, I strip both the '\n' and ',' by calling .strip().strip(',') on that output to result in '\d+' which when int() is called with results in no error thrown

vincexiv commented 1 month ago

This is a fix to issue #157 . @nadermx , kindly check

nadermx commented 1 month ago

I figure this is the same issue that this pull request closed? https://github.com/nadermx/backgroundremover/commit/d3b44c7a5f59eff2a72049836a8c512be09d778f

vincexiv commented 1 month ago

I figure this is the same issue that this pull request closed? d3b44c7

Yeah