It should build on alpine
During make -C bibnumber/Debug I got the following errors.
../textdetection.cpp:230:3: error: 'rectangle' is not a member of 'cv'
cv::rectangle(tmp_mat, it->first, it->second, c);
^~
../textdetection.cpp:231:3: error: 'putText' is not a member of 'cv'
cv::putText(tmp_mat, txt, it->first, cv::FONT_HERSHEY_SIMPLEX, 0.3, c);
^~
I am using opencv-dev@testing despite testing state it should theoretically not having namespace errors like this.
Should I specify the cv namespace somewhere in compile time?
Hi! Are you on OSX ?
Me, yes. After searching, reading a lot a forums and install a lot of useless things, I advanced a little, but stayed stuck later. But I can maybe help you :
- If you've install the last opencv version (v3 on 2018) be sure you have opencv 2.4 too (brew install opencv@2)
- In bidnumber/textdetection.cpp, add
#include <opencv2/imgproc.hpp> - In bidnumber/textrecognition.cpp, add :
#include <opencv2/highgui/highgui.hpp> #include <opencv2/core/core.hpp> #include <opencv/cv.hpp> #include "<pencv2/ocl/ocl.hpp> #include <opencv2/ml/ml.hpp>
To be honest with you, that help me...a little.. and after many other issues, I try it on Debian => perfect
I was building inside a docker container (from praekeltfoundation/alpine-buildpack-deps) on macOS, the host OS should not matter in this case.
But since we both ended up editing the source code instead of compiler options, I guess it's worth a look into your direction.
I was actually able to build from buildpack-deps which is based on debian, but it carries a huge load of *-devel packages in order to work...
Hi Guys,
Can you please share me the steps of installation on windows.. I have trying to set up this from couple of weeks. Tried everything. Unfortunately, Nothing worked out.
I have installed all the pre-requested softwares.
Kindly share the steps of installation.
Thanks -- Daya