-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
MotionDetector example to JavaFX? #1101
Comments
can you be more specific about your error? I mean in which line the exception occurred? what is the error you got? did you got something like this |
… factory methods that prevent premature deallocation (issue bytedeco/javacv#1101)
The cause of this issue is probably similar to bytedeco/javacpp#272. I've just fixed this for It is also possible to work around this by making sure that In any case, |
I've tried testing on a snapshot and also converting to a field but I get the same error. All the examples I've seen are using IplImage so I'm confused at what I should replace methods like: |
The snapshots are not ready for all platforms. You'll have to wait tomorrow
for that.
We can refer to OpenCV's documentation for the equivalences.
|
The fix has now been released with JavaCV 1.4.4, enjoy! And thanks for reporting this issue. |
Hello,
I am currently working through the MotionDetector sample at "https://github.com/bytedeco/javacv/blob/master/samples/MotionDetector.java" but I am having trouble getting this into JavaFX.
The part I am having trouble with is displaying each frame into an ImageView rather than a CanvasFrame. I used a JavaFXFrameConverter to convert IplImage but I got an error where it only supports 3 channels so I modified the code to create an IplImage with 3 channels. When running the code, I run into "The crash happened outside the Java Virtual Machine in native code."
Is there a better a way to do this example properly in JavaFX?
I have modified the code into:
The text was updated successfully, but these errors were encountered: