Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input array is not a valid matrix in function cvPointSeqFromMat #35

Open
famunir opened this issue Jul 28, 2018 · 0 comments
Open

Input array is not a valid matrix in function cvPointSeqFromMat #35

famunir opened this issue Jul 28, 2018 · 0 comments

Comments

@famunir
Copy link

famunir commented Jul 28, 2018

Hello,

I am trying to debug the project on ICDAR 2013 dataset. When I run the project, the project exits with code 134 (interrupted by signal 6: SIGABRT) with following error

file /home/opencv-2.4.11/modules/imgproc/src/utils.cpp, line 54
terminate called after throwing an instance of 'cv::Exception'
what(): /home/opencv-2.4.11/modules/imgproc/src/utils.cpp:54: error: (-5) _Input array is not a valid matrix in function cvPointSeqFromMat


The error appears only for few images.

Simulation Setup:

  1. First, I tried to run the project with default parameters
    int edgeThreshold = 12;
    int kMin = 9;
    int kMax = 11;
  2. Then I changed the parameters as followed:
    int edgeThreshold = 13;
    int kMin = 4;
    int kMax = 10;
    Changing the parameters solved the issue for few images. However, for some other images the same problem arose.

Can anybody help me with this?

Additional Info:
When I change int kMin = 4 and int kMax = 10, execution gives same error for different images. I think this problem occurs when "regionSet.size()==0" defined in FastTextLineDetector.cpp is null. But I have no idea that why it goes empty.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant