2016-11-30 08:03:51 -0600 | received badge | ● Student (source) |
2016-11-14 03:04:42 -0600 | received badge | ● Famous Question (source) |
2016-02-03 02:09:16 -0600 | received badge | ● Notable Question (source) |
2015-09-16 02:32:03 -0600 | received badge | ● Popular Question (source) |
2014-11-06 05:34:52 -0600 | asked a question | Mat_<uchar> Hi, could someone please explain what the code listed below. I tried to understand the tutorial of anpr in Mastering CV but my c++ capabilities are very low. Exists a comparable object or function in Java? Thanks Manuel |
2014-11-05 10:18:34 -0600 | received badge | ● Scholar (source) |
2014-11-05 10:18:29 -0600 | received badge | ● Supporter (source) |
2014-11-05 10:16:52 -0600 | received badge | ● Critic (source) |
2014-11-05 10:04:06 -0600 | commented answer | OpenCV Error: Assertion failed Thanks for answering. I have checked the koordinates, widths and heights of the detected rects. One of them has a calculated koordinate r.width+r.x which is wider than the orignial. The original has a width of 505px and one of the rects 507px. How could I avoid this exception? thanks |
2014-11-05 09:03:36 -0600 | asked a question | OpenCV Error: Assertion failed Hi, hopefully my english is good enough for describing my problem. I am working only a short time on opencv. In a little project I tried to detect the number plates from cars. The detection works very well. Only the last function in my script throws an exception. I tried to create a new mat from the picture and the rectangle but that throws the following exception: OpenCV Error: Assertion failed (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 cv::Mat::Mat, file ........\opencv\modules\core\src\matrix.cpp, line 323 Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: ........\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 But the detection works fine. the picture shows that the script creates rectangles around them. Could somebody help me? * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package demoOpenCV; import java.util.ArrayList; import java.util.Iterator; import java.util.ListIterator; import org.opencv.core.Core; import org.opencv.core.CvType; import org.opencv.core.Mat; import org.opencv.core.MatOfPoint; import org.opencv.core.MatOfPoint2f; import org.opencv.core.Point; import org.opencv.core.Rect; import org.opencv.core.MatOfRect; import org.opencv.core.RotatedRect; import org.opencv.core.Scalar; import org.opencv.core.Size; import org.opencv.highgui.Highgui; import org.opencv.imgproc.Imgproc; import static org.opencv.imgproc.Imgproc.MORPH_RECT; /**
|