Skip to content

Working with opencv4 #4

@brossaip

Description

@brossaip

Hi!

I'm using your binarization implementation and it has worked well for me. Thanks a lot for your implementation. Unfortunately, it has stopped to work when I have updated opencv to release 4.

I have modified the makefile replacing the compiling command by:
g++ binarizewolfjolion.cpp -o binarizewolfjolion 'pkg-config --libs --cflags opencv4' -lstdc++

In the code I have had to add #include <opencv2/imgcodecs.hpp> and to replaceMat input = imread(inputname,CV_LOAD_IMAGE_GRAYSCALE); by Mat input = imread(inputname,cv::ImreadModes::IMREAD_GRAYSCALE);

That's all.

I hope is useful for someone.

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