Skip to content

Compilation Issue #1

@olijouve

Description

@olijouve

Hi,
Your work seems very nice but I'm facing an issue trying to compile it.

gcc -c *.cpp -I$PATH/include -std=c++11 -I../libmyocr
detect.cpp: In function ‘void process(cv::Mat&)’:
detect.cpp:368:21: error: cannot declare variable ‘recogniser’ to be of abstract type ‘ocr::RecogniserAbsDiff’
RecogniserAbsDiff recogniser(MRZ::charset, "OCRB");
^
In file included from detect.cpp:18:0:
../libmyocr/RecogniserAbsDiff.h:11:7: note: because the following virtual functions are pure within ‘ocr::RecogniserAbsDiff’:
class RecogniserAbsDiff : public Recogniser {
^
In file included from detect.cpp:15:0:
../libmyocr/ocr.h:12:15: note: virtual char ocr::Recogniser::recognise(const cv::Mat&, bool)
virtual char recognise(const cv::Mat& img, bool black_on_white = false) = 0;

Do you have any releasable functional code or do you see an easy way to resolve that ?
Unfortunately i'm not as comfortable in c++ as i would like to deal it by myself.

Enjoy your day
Olivier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions