gheinrich / bibnumber

Recognize bib numbers from racing photos
118 stars 39 forks source link

It should build on alpine #10

Open vicary opened 6 years ago

vicary commented 6 years ago

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?

huugooo commented 6 years ago

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 :

`#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

vicary commented 6 years ago

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...

dayanand-nani commented 6 years ago

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