It is not an import error. It is maybe because of the fact that image that you are trying to convert is not RGB.
On Monday, April 17, 2017 at 7:35:12 AM UTC-4, Vinay Chandran wrote: > > > Whenever I try to import pytesseract i get this error, > > img2gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) > > error: ..\..\..\modules\imgproc\src\color.cpp:3739: error: (-215) scn == 3 > || scn == 4 in function cv::cvtColor > > Any help would be much appreciated > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/99584729-08e1-4014-9dce-e07f2560fc61%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

