问题:

error: (-210:Unsupported format or combination of formats) [Start]FindContours supports only CV_8UC1 images when mode != CV_RETR_FLOODFILL otherwise supports CV_32SC1 images only in function 'cvStartFindContours_Impl'

 

 

这个问题是因为使用opencv读取的图片未进行cv2的灰度化操作。

 

可以直接在 cv2.imread(url) 变为:cv2.imread(url,0)可以解决。

 

error: (-210:Unsupported format or combination of formats) [Start]FindContours supports only CV_8UC1 images when mode != CV_RETR_FLOODFILL otherwise supports CV_32SC1 images only in

 

 error: (-210:Unsupported format or combination of formats) [Start]FindContours supports only CV_8UC1 images when mode != CV_RETR_FLOODFILL otherwise supports CV_32SC1 images only in

 

 

相关文章:

  • 2022-01-23
  • 2022-02-11
  • 2021-06-20
  • 2021-05-25
  • 2021-06-09
  • 2021-05-14
  • 2021-12-04
  • 2021-12-30
猜你喜欢
  • 2022-02-01
  • 2022-12-23
  • 2021-04-14
  • 2021-05-17
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案