{"id":208,"date":"2022-08-30T14:57:31","date_gmt":"2022-08-30T14:57:31","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/08\/18\/problem-about-javacv-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:57:31","modified_gmt":"2022-08-30T14:57:31","slug":"problem-about-javacv-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-javacv-record-and-share-programming-errors\/","title":{"rendered":"problem about javacv-Record and share programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/db447d0a0adfbba8c5ad3a48f3ca6472?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsujan duminda<br \/>\nopencv javacv<br \/>\nonce I tried to run below code I have bot this error. If is there someone else know opencv please help me .Thank youpublic static void main(String[] args) {IplImage imgA = cvLoadImage(&#8220;I:\/1.jpg&#8221;,CV_LOAD_IMAGE_GRAYSCALE);IplImage imgB = cvLoadImage(&#8220;I:\/2.jpg&#8221;,CV_LOAD_IMAGE_GRAYSCALE);CvSize img_sz = cvGetSize(imgA);int win_size = 15;\/\/ IplImage imgC = cvLoadImage(&#8220;OpticalFlow1.png&#8221;,\/\/ CV_LOAD_IMAGE_UNCHANGED);IplImage imgC = cvLoadImage(&#8220;I:\/1.jpg&#8221;,CV_LOAD_IMAGE_UNCHANGED);\/\/ Get the features for trackingIplImage eig_image = cvCreateImage(img_sz, IPL_DEPTH_32F, 1);IplImage tmp_image = cvCreateImage(img_sz, IPL_DEPTH_32F, 1);int[] corner_count = { MAX_CORNERS }<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4a7c1d7933724074db00448246ff7fd6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSL_User<br \/>\njava image-processing opencv javacv<br \/>\nPlease can some expert person explain me whether we can use the cvHaarDetectObjects() method to detect squares and get width and heights? I found a code that use this method for face-detection but I need to know whether I can use it for rectangle detection.String src=&#8221;src\/squiredetection\/MY.JPG&#8221;;IplImage grabbedImage = cvLoadImage(src);IplImage grayImage = IplImage.create(grabbedImage.width(), grabbedImage.height(), IPL_DEPTH_8U, 1);c<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/db447d0a0adfbba8c5ad3a48f3ca6472?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsujan duminda<br \/>\nopencv javacv<br \/>\nI downloaded this javacv example . when i try to run this code from eclipse it shows this kind of error. please help me to solve this error. Thank youException in thread &#8220;AWT-EventQueue-0&#8221; java.lang.UnsatisfiedLinkError:<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6bd72e91ca6e57e553998a9e5e1be593?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJonathan<br \/>\njava opencv javacv<br \/>\nIt&#8217;s the first day of learning JavaCV for me. And this is the first test example which I use just to make sure that my setup is done correctly. Unfortunately I can&#8217;t run the example and I barely understand the code and all dependencies so it&#8217;s really hard for me to find out what is missing. Below I&#8217;ll post my project setup and also the errors I get.Also the example I use is from: http:\/\/ganeshtiwaridotcomdotnp.blogspot.com\/2011\/12\/javacv-capture-save-flip-show-live.htmlcodeimport static com.googlecode.javacv.cpp.opencv_core.cvFlip; import static com.googlecode.javacv.cpp.opencv_highgui.cvSaveImage; import com.googlecode.javacv.CanvasFrame; import com.googlecode.javacv.FrameGrabber; impor<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/278bc945fc3012ec014a3dc0ababfbcc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSimbi<br \/>\njava opencv javacv<br \/>\nI created a java application which displays images and lets the user select any area within this image using 4 points.What I want to do now is to take thi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9a67cf687eaf0b300417ffd768ac5178?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCharsmud<br \/>\njava javacv<br \/>\nI am trying to detect rectangles inside of a given image. I am using the following code:package com.test;import static com.googlecode.javacv.cpp.opencv_core.*; import static com.googlecode.javacv.cpp.opencv_imgproc.*; import static com.googlecode.javacv.cpp.opencv_highgui.*;import java.lang.reflect.Array;import com.googlecode.javacpp.Loader; import com.googlecode.javacpp.Pointer; import com.googlecode.javacv.CanvasFrame; import com.googlecode.javacv.cpp.opencv_core.IplImage; import com.googlecode.javacv.cpp.opencv_objdetect.CvHaarClassifierCascade;public class CornerDetection {private static final String CASCADE_FILE = &#8220;haarcascade_frontalface_alt.xml&#8221;;public static void test(CvMat filename) {if (filename != null) {cvSmooth(filename, filename, CV_BLUR, 9, 9, 2, 2); cvThreshold(filename, filename, 100, 1000, CV_BLUR);int N = 7;int aperature_size = N;double lowThresh = 20;do<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8574d352c7357e36b830cce587542b0a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2001167<br \/>\nandroid javacv<br \/>\nI Use JavaCV On Android 4.0.3 it run to error with OpenCV Error: Assertion failed (ssize.area() &gt; 0) in unknown function, file C:\\slave\\WinInstallerMegaPack\\src\\opencv\\modules\\imgproc\\src\\imgwarp.cpp, line 1432Finding features&#8230;Exception in thread &#8220;main&#8221; java.lang.RuntimeException: C:\\slave\\WinInstallerMegaPack\\src\\opencv\\modules\\imgproc\\src\\imgwarp.cpp:1432: e<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/29e3e56a1c43d912d2a13eb6a13ab536?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLngly<br \/>\nopencv javacv<br \/>\nI&#8217;m trying to fit an ellipse to a set of 2D integer points in javacv and keep running into problems. So my question is, what kind of data does cvFitEllipse2 expect?From OpenCV&#8217;s manual I found thatCvBox2D cvFitEllipse2(const CvArr* points)Parameters points \u2013 Input 2D point set, stored in:std::vector or Mat (C++ interface) CvSeq* or CvMat* (C interface) Nx2 numpy array (Python interface)I have tried both CvSeq as well as CvMat the following way:1 CvSeqCvMemStorage mem = cvCreateMemStorage(0); CvSeq seq = cvCreateSeq(0, Loader.si<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9913ba2741fe653b0968def6460a1782?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nNotIllogical<br \/>\njava opencv javacv unsatisfiedlinkerror<br \/>\nI have made a application to grab video from a webcam and detect motion using OpenCV and JavaCV. I am trying to export as an executable jar using eclipse. The program runs fine in eclipse as does the exe jar on the computer I coded the program on. What I am trying to accomplish is to make the exe Jar run on computers that don&#8217;t have OpenCV installed. Basically what I would consider a portable application. When I run the exe jar on a different computer that has nothing installed other than the JRE I get unsatisfied link errors seen below.Exception in thread &#8220;Video Thread&#8221; java.lang.UnsatisfiedLinkError: C:\\Users\\JohnD\\AppData\\Local\\Temp\\javacpp91062429652918\\jniopencv_core.dll: Can&#8217;t find depende<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8edcff60cdcca2ad650758fa524d4990?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJeromy French<br \/>\njava windows-7 opencv javacv unsatisfiedlinkerror<br \/>\nIn my project I want to capture image from my webcam.I configured step by step following the instructions from this &#8220;OpenCV-JavaCV : eclipse project configuration windows 7&#8221; blog post.After configuration is finished, i tested samples codes and the application found my webcamSETUP: Setting up device 0SETUP: Namuga 1.3M WebcamSETUP: Couldn&#8217;t find preview pin using SmartTeeSETUP: Capture callback setSETUP: Device is setup an<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f38a91ad33e0ba62f880975dfcf49ed8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nvlad417<br \/>\njava image-processing javacv<br \/>\nI am using JavaCV, attempting to access an RGB pixel. All the following attempts lead to either a RuntimeException (OpenCV Error: One of arguments&#8217; values is out of range (index is out of range) in unknown function, file ..\\..\\..\\src\\opencv\\modules\\core\\src\\array.cpp, line 1797) or IndexOutOfBoundsException:CvScalar crntPx = opencv_core.cvGet2D(<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5d370ec68bcd00e4924c5c8332d10943?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ngloomtojoy<br \/>\nopencv histogram javacv grayscale<br \/>\ni am new to this website, please let me know if i have made any mistake on my post. I have some questions regarding calculating and drawing histogram in javacv. Below are the codes that i have written based on some information that i have searched:There is this error that i get: OpenCV Error: One of arguments&#8217; values is out of range (index is out of range) in unknown function, file &#8230;&#8230;\\src\\opencv\\modules\\core\\src\\array.cpp, line 1691private CvHistogram getHistogram(IplImage image) {\/\/get histogram data, input has been converted to grayscale beforehand IplImage[] hsvImage1 = {image};\/\/bins and value-rangeint numberOfBins = 256;float minRange = 0.0f;float maxRange = 255.0f;\/\/ Allocate histo<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-08-18 11:16:11. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>sujan duminda opencv javacv once I tried to run below code I have bot this error. If is there someone else know opencv please help me .Thank youpublic static void main(String[] args) {IplImage imgA = cvLoadImage(&#8220;I:\/1.jpg&#8221;,CV_LOAD_IMAGE_GRAYSCALE);IplImage imgB = cvLoadImage(&#8220;I:\/2.jpg&#8221;,CV_LOAD_IMAGE_GRAYSCALE);CvSize img_sz = cvGetSize(imgA);int win_size = 15;\/\/ IplImage imgC = cvLoadImage(&#8220;OpticalFlow1.png&#8221;,\/\/ CV_LOAD_IMAGE_UNCHANGED);IplImage imgC = cvLoadImage(&#8220;I:\/1.jpg&#8221;,CV_LOAD_IMAGE_UNCHANGED);\/\/ Get the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}