2018-10-06 16:21:31 -0600 | received badge | ● Notable Question (source) |
2017-12-05 04:50:23 -0600 | received badge | ● Popular Question (source) |
2016-12-16 14:40:47 -0600 | asked a question | error: (-215) sz.width % 2 == 0 && sz.height % 3 == 0 && depth == CV_8U in function void cv::cvtColor(cv::InputArray, cv::OutputArray, int, int) Good day guys, currently I am working on developing an android app which finds the biggest rectangle in camera preview in run time(To detect a page or a rectangular object) and perform OCR to it. I have problem in detecting image in run time. It shows the following error. FATAL EXCEPTION: main Process: sansys.helpinghands, PID: 978 CvException [org.opencv.core.CvException: cv::Exception: /Volumes/Linux/builds/master_pack-android/opencv/modules/imgproc/src/color.cpp:8282: error: (-215) sz.width % 2 == 0 && sz.height % 3 == 0 && depth == CV_8U in function void cv::cvtColor(cv::InputArray, cv::OutputArray, int, int) ] at org.opencv.imgproc.Imgproc.cvtColor_0(Native Method) at org.opencv.imgproc.Imgproc.cvtColor(Imgproc.java:1715) at sansys.helpinghands.CameraPreview.processFrame(CameraPreview.java:201) at sansys.helpinghands.CameraPreview.onPreviewFrame(CameraPreview.java:65) at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1129) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5443) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) I have presented my code below. ThanksCamera preview class (more) |
2016-12-09 07:01:27 -0600 | commented question | OpenCV Error: Bad argument (Unknown array type) in cv::cvarrToMat @berak followed ur advice it works .Still have a problem the image is not as desired i have added the image |
2016-12-09 06:50:23 -0600 | commented question | OpenCV Error: Bad argument (Unknown array type) in cv::cvarrToMat @berak The image is loading. how to use imwrite function on MatofPoint.The function find() returns a Matofpoint.How do i get an output in for of image.Sorry this might be a silly question but help me through it.I have presented the image in a link. Thanks :) |
2016-12-09 06:37:16 -0600 | commented question | OpenCV Error: Bad argument (Unknown array type) in cv::cvarrToMat @berak Getting the following error OpenCV Error: Bad argument (Unknown array type) in cv::cvarrToMat, file ........\opencv\modules\core\src\matrix.cpp, line 698 Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: ........\opencv\modules\core\src\matrix.cpp:698: error: (-5) Unknown array type in function cv::cvarrToMat ] at org.opencv.imgproc.Imgproc.drawContours_1(Native Method) at org.opencv.imgproc.Imgproc.drawContours(Imgproc.java:5222) at detection.main(detection.java:107) |
2016-12-09 06:36:32 -0600 | received badge | ● Editor (source) |
2016-12-09 06:32:54 -0600 | asked a question | OpenCV Error: Bad argument (Unknown array type) in cv::cvarrToMat Good Day Guys, I am detecting a paper by finding out biggest rectangle in an image which is performed by code given below which i found in the link link text. andjava code Image link text But still not able to retrive the found biggest rectangle the the image (more) |