Skip to content

Possible bug in text/erfilter - SIGSEGV #1316

@Jaykob

Description

@Jaykob
Detailed description

I just updated the text module to the newest commit and received a SIGSEGV in the ERStat* ERFilterNM::er_tree_filter ( InputArray image, ERStat * stat, ERStat *parent, ERStat *prev ) (erfilter.cpp) function.

Browsing through the commits I found #876 which changes quite a few lines in this function and line 796 causes the error in my case:

region = region(Rect(1, 1, rect.width, rect.height));

Reverting fixed it for me:

rect.width += 2;
rect.height += 2;
region = region(rect);
System information (version)
  • OpenCV => 3.3.0
  • Operating System / Platform => macOS 10.12.5
  • Compiler => clang

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions