mltu icon indicating copy to clipboard operation
mltu copied to clipboard

cv2 error

Open sachin7695 opened this issue 8 months ago • 1 comments

this is the error i am getting while running the train.py script can you help me where exactly i am going wrong Traceback (most recent call last): File "E:\ML\ml_projects\project_folder\icpr\img_to_word\train.py", line 129, in model.fit( File "E:\ML\envs\python3\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler raise e.with_traceback(filtered_tb) from None File "E:\ML\envs\python3\lib\site-packages\mltu\dataProvider.py", line 142, in getitem data, annotation = preprocessor(data, annotation) File "E:\ML\envs\python3\lib\site-packages\mltu\preprocessors.py", line 9, in call return cv2.imread(image_path, self._method), label cv2.error: OpenCV(4.10.0) :-1: error: (-5:Bad argument) in function 'imread'

Overload resolution failed:

  • Argument 'flags' is required to be an integer
  • dst is not a numpy array, neither a scalar
  • Expected Ptrcv::UMat for argument 'dst'

sachin7695 avatar Jun 25 '24 14:06 sachin7695