Bartzi / stn-ocr

Code for the paper STN-OCR: A single Neural Network for Text Detection and Text Recognition
https://arxiv.org/abs/1707.08831
GNU General Public License v3.0
499 stars 137 forks source link

opencv error #24

Open LittleMisss opened 6 years ago

LittleMisss commented 6 years ago

Excuse me. When I compiled the mxnet project, this error message appeared: src/io/image_aug_default.cc:499:26: error: ‘CV_BGR2HLS’ was not declared in this scope cvtColor(res, res, CV_BGR2HLS); ^ src/io/image_det_aug_default.cc:561:32: error: ‘CV_HLS2BGR’ was not declared in this scope cv::cvtColor(res, res, CV_HLS2BGR); ^ src/io/image_aug_default.cc:519:26: error: ‘CV_HLS2BGR’ was not declared in this scope cvtColor(res, res, CV_HLS2BGR); ^ src/io/image_io.cc: In function ‘void mxnet::io::ImdecodeImpl(int, bool, void*, size_t, mxnet::NDArray*)’: src/io/image_io.cc:175:28: error: ‘CV_BGR2RGB’ was not declared in this scope cv::cvtColor(dst, dst, CV_BGR2RGB); ^ Makefile:443: recipe for target 'build/src/io/image_aug_default.o' failed make: *** [build/src/io/image_aug_default.o] Error 1 make: *** Waiting for unfinished jobs.... Makefile:443: recipe for target 'build/src/io/image_det_aug_default.o' failed make: *** [build/src/io/image_det_aug_default.o] Error 1 Makefile:443: recipe for target 'build/src/io/image_io.o' failed make: *** [build/src/io/image_io.o] Error 1 So,i want to know the Python and the opencv version information.and how i should fix this question. thanks!

Bartzi commented 6 years ago

Hi, you can fix this by building MXNet without openCV! OpenCV is not required for this code to work.

liangxi627 commented 6 years ago

@LittleMisss Have you solved the problem? I meet the same error

LittleMisss commented 6 years ago

I have not solved this problem.I choosed the CTD Net. @liangxi627

Bartzi commented 6 years ago

You might have already been able to find this, but here it says that you might not have OpenCV properly installed, that is everything I can do for you, since it is an MXNet problem.