Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.5.4) C:\build\mas
ter_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed
) !_src.empty() in function 'cv::cvtColor'
]
    at org.opencv.imgproc.Imgproc.cvtColor_1(Native Method)
    at org.opencv.imgproc.Imgproc.cvtColor(Imgproc.java:7021)
    at reyo.sdk.utils.img.Test.compareHist_2(Test.java:75)
    at reyo.sdk.utils.img.Test.main(Test.java:38)

出现这个问题,一般是路径上面的错误,仔细查看自己输入的图片路径是否正确

相关文章:

  • 2021-11-04
  • 2021-04-24
  • 2021-11-27
  • 2022-01-04
  • 2021-08-15
  • 2022-02-13
  • 2021-11-01
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-08-13
  • 2021-09-02
  • 2022-12-23
  • 2021-08-18
相关资源
相似解决方案