Open Adi-18 opened 3 years ago
It looks like the main JAR file for JavaCPP is missing from the class path. Make sure all JAR files are in the class path.
Thank you for the replay. I have already included JavaCPP. The problem is only, if I start demo as JavaFX-Project in my NetBeans 8.2. As "normal" project it works (also when I start code by context menu -> run file on that file).
If you're trying to use the javafx-maven-plugin, be aware that it's still not fully functional, see issue #1435. If you need to use that plugin, make sure it's set to use the class path, and not the module path.
/cc @johanvos
I don't use javafx-maven-plugin. Its on Java 8 in Netbeans 8.2.
Sounds like a bug in JavaFX 8... Time to upgrade maybe? It's a 6-year-old release that is no longer supported.
Since JavaFX is out of jdk and not easy to porting my project with many of unknowns, this is not an option at the moment
Same Problem while calling this:
private static OpenCVFrameConverter.ToIplImage iplConv = new OpenCVFrameConverter.ToIplImage();
for converting to ImageView.
BTW: bevore I used FmpegFrameGrabber grabber = FFmpegFrameGrabber.createDefault(1);
and this worked perfectly for WebCam. Why this is no more possible?
BTW: bevore I used
FmpegFrameGrabber grabber = FFmpegFrameGrabber.createDefault(1);
and this worked perfectly for WebCam. Why this is no more possible?
That never worked. FFmpeg needs a String
, not an int
.
Yes, I know, that's why I have had to use the factory method FFmpegFrameGrabber.createDefault(int deviceNumber) -> http://bytedeco.org/javacv/apidocs/org/bytedeco/javacv/OpenCVFrameGrabber.html
What you're probably talking about is FrameGrabber.createDefault(1)
and that probably returns you an OpenCVFrameGrabber
, yes.
I use new version 1.5.5 with example code JavaFxPlayVideo.java on JavaFX 8
For grabbing local webcam I use
FrameGrabber grabber = new OpenCVFrameGrabber(1);
becauseFFmpegFrameGrabber grabber = FFmpegFrameGrabber.createDefault(1);
is no more possible (yes 1 is correct).In normal Java-Project I can run this example, but when I create it with NetBeans as a JavaFX project, I get an exception: