(-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

前端 未结 5 819
逝去的感伤
逝去的感伤 2020-12-19 00:54

I am trying to recognize text from an image to then have the text outputted; however, this error spits out:

Traceback (most recent call last):

5条回答
  •  别那么骄傲
    2020-12-19 01:15

    I think your source path should be:

    src_path = "C:/Users/Benji's Beast/Desktop/"
    

    Because in here get_string(src_path + "cont.jpg") you've concatenated the image name.

提交回复
热议问题