gitanat / simple-ocr-opencv

A simple python OCR engine using opencv
GNU Affero General Public License v3.0
525 stars 175 forks source link

Opencv #8

Closed sethuraman81 closed 8 years ago

sethuraman81 commented 8 years ago

Hello,

I tried to use this repository however getting an error

TypeError: only length-1 arrays can be converted to Python scalars

self.classifier.train( features, image_file.ground.classes ) File simple-ocr-opencv-master\classification.py", line 56, in train

i am using Python 2.7 Opencv 3.1.0 and numpy version 1.9.1

am faily new to python and opencv, any suggestions or pointers is much appreciated.

Thanks

gitanat commented 8 years ago

Hi, This is written for OpenCV 2. heartz contributed some changes for opencv 3, can you check the opencv3 branch and let me know if it works for you?

gitanat commented 8 years ago

Did this work for you?

sethuraman81 commented 8 years ago

HI,

Yes it does work, Thanks for the message it went in to my emails-forums tab and didn't notice earlier