Giter Site home page Giter Site logo

robust-text-detection's Introduction

This is my upcoming project: https://plusplusone.herokuapp.com

Please register your email address if you're interested in it.


Robust-Text-Detection

Robust Text Detection implementation based on Chen, Huizhong, et al. "Robust Text Detection in Natural Images with Edge-Enhanced Maximally Stable Extremal Regions." Image Processing (ICIP), 2011 18th IEEE International Conference on. IEEE, 2011.

which you can find the original literature here: http://www.stanford.edu/~hchen2/papers/ICIP2011_RobustTextDetection.pdf It is also partly based on Automatically Detect and Recognize Text in Natural Images example which is available here: http://www.mathworks.de/de/help/vision/examples/automatically-detect-and-recognize-text-in-natural-images.html#zmw57dd0e829

This implementation is partly motivated by the fact that helperGrowEdges and helperStrokeWidth functions on Matlab which aren't openly available to the public or non latest Matlab owner, thus those 2 functions are implemented from the scratch based on the literature and some of my own assumptions (e.g. how many pixels to prune, etc)

Feel free to correct my code, if you spotted the mistakes

robust-text-detection's People

Contributors

subokita avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

robust-text-detection's Issues

Why does it have trouble with small fonts?

Hi there, this is a really good text detector. However, why does it have trouble with small font size?
For example, in this image some characters are missed.

Are there any tuning parameters I can change to help it along?

smaltext

Output debug images

Saburo,
Nice job :)

Could you output debug images(cv::imwrie or cv::imshow) on each major step of the algorithm in RobustTextDetection::apply like we see in Matlab version?

Thank you in advance.

Usage license for the code?

Thanks for your efforts on this library - we'd love to try it in a project, but there's no license associated with it. Are you willing to explicitly release it under a common open source license by adding that into the root directory / readme?

Support Multiple Bounding Boxes Enclosing Text Regions

Saburo,
Could you add support of Multiple Bounding Boxes Enclosing Text Regions like in Matlab version (step6, part2)?
As far as I undetstand this will require changes of the lines 115-131 of RobustTextDetection.cpp.

Thank you in advance.

Error when building

When debug to this function, it shows the error "Access violation reading location 0xCDCDCDD1"
Mat RobustTextDetection::createMSERMask(Mat& grey) {
/* Find MSER components */
vector<vector> contours;
MSER mser(8, param.minMSERArea, param.maxMSERArea, 0.25, 0.1, 100, 1.01, 0.03, 5);
mser(grey, contours);

/* Create a binary mask out of the MSER */
Mat mser_mask(grey.size(), CV_8UC1, Scalar(0));

for (size_t i = 0; i < contours.size(); i++) {
    for (Point& point : contours[i])
        mser_mask.at<uchar>(point) = 255;
}

return mser_mask;

}

Error for rectangular images

For rectangular images I always see this error:

Error in file "c:/2.PNG" processing: ........\opencv\modules\core\src\matrix.cpp:323: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function cv::Mat::Mat

Example of the image:
2

cant get MSER class

cant you explain me where i must pust MSER class include on my code?? i read your code but i cant get it where is MSER class at all thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.