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

With IPP option on, Arithmetic exception happens in webcam_demo when switch to arbitrary oriented grouping. #71

Closed
thorikawa opened this issue Aug 20, 2014 · 2 comments · Fixed by opencv/opencv#3135

Comments

@thorikawa
Copy link
Contributor

Steps to reproduce:

  1. Build opencv (as of August 18) with IPP option on and with contrib modules.
  2. Build and run webcam_demo
  3. Press 'g' to switch to arbitrary oriented grouping.
  4. Exception happens.

Back Trace:

Program received signal EXC_ARITHMETIC, Arithmetic exception.
0x000000010026bca9 in cv::meanStdDev (_src=@0x7fff5fbf77a8, _mean=@0x7fff5fbf7788, _sdv=@0x7fff5fbf7768, _mask=@0x10084b628) at /Users/poly/workspace/opencv/modules/core/src/stat.cpp:1040
1040         int rows = src.size[0], cols = (int)(total_size/rows);
(gdb) bt
#0  0x000000010026bca9 in cv::meanStdDev (_src=@0x7fff5fbf77a8, _mean=@0x7fff5fbf7788, _sdv=@0x7fff5fbf7768, _mask=@0x10084b628) at /Users/poly/workspace/opencv/modules/core/src/stat.cpp:1040
#1  0x0000000101a29fd2 in cv::text::MaxMeaningfulClustering::probability (this=0x7fff5fbfb270, cluster=@0x1038ed008) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:2684
#2  0x0000000101a23072 in cv::text::MaxMeaningfulClustering::build_merge_info (this=0x7fff5fbfb270, Z=0x1037aa060, X=0x1038a2400, N=25, dim=7, use_full_merge_rule=false, merge_info=0x7fff5fbfadb0, meaningful_clusters=0x7fff5fbfb300) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:2366
#3  0x0000000101a20d2e in cv::text::MaxMeaningfulClustering::operator() (this=0x7fff5fbfb270, data=0x1038a2400, num=25, dim=7, method=0 '\0', metric=2 '\002', meaningful_clusters=0x7fff5fbfb300) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:2269
#4  0x0000000101a4b29c in cv::text::erGroupingGK (_image=@0x7fff5fbfcf40, _src=@0x7fff5fbfcf20, regions=@0x7fff5fbfd830, groups=@0x7fff5fbfcfd0, text_boxes=@0x7fff5fbfcfb8, filename=@0x7fff5fbfcf08, minProbability=0.5) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:3086
#5  0x0000000101a49db3 in cv::text::erGrouping (image=@0x7fff5fbfcf40, channels=@0x7fff5fbfcf20, regions=@0x7fff5fbfd830, groups=@0x7fff5fbfcfd0, groups_rects=@0x7fff5fbfcfb8, method=1, filename=@0x7fff5fbfcf08, minProbability=0.5) at /Users/poly/workspace/opencv_contrib/modules/text/src/erfilter.cpp:4084
#6  0x0000000100004a7d in main (argc=1, argv=0x7fff5fbff778) at webcam_demo.cpp:222
```'
@thorikawa
Copy link
Contributor Author

Sent PR to opencv repo. opencv/opencv#3135

@thorikawa
Copy link
Contributor Author

Fixed.

allnes pushed a commit to allnes/opencv_contrib that referenced this issue Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants