cocoa-xu / evision

Evision: An OpenCV-Erlang/Elixir binding
https://evision.app
Apache License 2.0
337 stars 22 forks source link

Error in Evision.findContours function #123

Closed sanjaykv02 closed 1 year ago

sanjaykv02 commented 1 year ago

Respected ma'am, please go through with following error occur in the mentioned function

iex(29)> Evision.findContours(img, 1, 1)
{:error,
"OpenCV(4.6.0) /home/runner/work/evision/evision/3rd_party/opencv/opencv-4.6.0/modules/imgproc/src/contours.cpp:195: 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'\n"}
iex(30)> 

This function was working fine, two hours ago, but now returning above error.

sanjaykv02 commented 1 year ago

in above mentioned function Evision.Mat arg should be in terms of black and white format then this error will not be occur.