Giter Site home page Giter Site logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024

Original comment by [email protected] on 29 Jan 2011 at 12:50

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Sorry, didn't work for me...

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77a12a1d, pid=1964, tid=576
#
# JRE version: 6.0_23-b05
# Java VM: Java HotSpot(TM) Client VM (19.0-b09 mixed mode, sharing windows-x86 
)
# Problematic frame:
# C  [ntdll.dll+0x32a1d]


Tested with OpenCV 2.1, Windows 7 Professional 64bit, Netbeans IDE 6.9.1

no Idea what is wrong.

But thanks für the samples, now i just need to get them working :)

Original comment by [email protected] on 14 Feb 2011 at 3:51

Attachments:

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Please, check the file paths to all the PNG files - i.e. 
- image0.png
- image1.png
- image0.png (dont forget the last one)

Original comment by [email protected] on 14 Feb 2011 at 7:19

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Thanks for the quick answer, but i already checked that. To be sure about that, 
i just deleted the images, now i get a different Error (Runtime Error - Array 
should be CvMat or IplImage...), so this is not the Problem. 
With the last one i guess you mean image0-1.png

I already figured out, that the cvCalcOpticalFlowPyrLK causes the problem.

Now i tried on another System, Vista 32bit, OpenCV 2.1, Netbeans 3.8: same 
problem


I would say there is something wrong with the environment, but no idea what. I 
have the latest Java Version, OpenCV 2.1, added the .jar (JNA and JavaCv) to my 
Project. That shuold have been all.

Original comment by [email protected] on 15 Feb 2011 at 7:05

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
I have almost the same configuration as you mentioned before:
OpenCV 2.1, Windows 7 Professional 64bit, Eclipse IDE (not importatnt), JRE 
version 1.6.0_23

I think that the problem is in DLLs

You can try these DLLs:
http://spl.utko.feec.vutbr.cz/cs/component/content/article/21-zpracovani-medicin
skych-signalu/261-rapidminer-5-opencv-extension

Download the i686 version
http://spl.utko.feec.vutbr.cz/images/stories/rapidminer/rmx_opencv/opencv210_Win
_i686.zip

Run the JRE with this VM argument:
-Djna.library.path=c:\path\to\downloaded\DLLs


Original comment by [email protected] on 15 Feb 2011 at 8:48

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Sorry, i dont really know what i should download here. 
The first link points to a homepage with a lot of dead links, do you mean i 
should try something with rapidminer?

second link does not work either

Original comment by [email protected] on 15 Feb 2011 at 9:16

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Sorry for that and thank you for notifying me about that. The links on the site 
should be now corrected. 

i686
http://spl.utko.feec.vutbr.cz/images/stories/rapidminer/rmx_opencv/opencv210_win
_i686.zip

and 

AMD64
http://spl.utko.feec.vutbr.cz/images/stories/rapidminer/rmx_opencv/opencv210_win
_amd64.zip

-RB-

Original comment by [email protected] on 15 Feb 2011 at 10:24

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Thanks, links work fine now!
I did what yous suggested, downloaded the new .dlls, and ran the code with the 
VM argument (of course with my own path to the .dlls).

I'm sorry to say, that nothing changed, still the same Error. But i have some 
new information which might help:

Sometimes the build is successful! I dit not change anything, but in maybe 1 of 
20 builds i do not get an Error.(I really keep on klicking and re-executing the 
program until it works). This happens both with your new .dlls and also with 
the old .dlls
The whole thing is getting even more confusing now, I have no idea what cuold 
cause such an undeterministic behaviour...


But thanks a lot for your effort, i really appreciate it

Original comment by [email protected] on 15 Feb 2011 at 12:16

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
These lines are incorrect:
                CvPoint2D32f[] cornersB = new CvPoint2D32f[MAX_CORNERS];
                for (int i = 0; i < MAX_CORNERS; i++) {
                        cornersB[i] = new CvPoint2D32f();
                }
Please refer to the README.txt to see how we need to allocate arrays.. 

Original comment by [email protected] on 15 Feb 2011 at 1:21

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
thank you Samuel!

i replaced the array allocation with:
CvPoint2D32f[] cornersB = CvPoint2D32f.createArray(MAX_CORNERS);

now it works! I am very glad that my environment was set up corretly, was 
beginning to doubt myself.

Still, i am very greatful for the examples


Original comment by [email protected] on 15 Feb 2011 at 2:01

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Added (a fixed version of this) sample to the samples in latest version. Thank 
you for your contribution. Please change status to "Verified" if satisfied.

Original comment by [email protected] on 19 Feb 2011 at 3:56

  • Changed state: Fixed

from javacv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.