I know that you didn't want to create a cvShowImage() function because
you said that it is much more efficient to use Java's own Canvas
method that can include hardware acceleration for faster operation.
But I was wondering, can you please provide some simple code that show
how to do this best?
Such as a simple program that loads a JPG file using JavaCV and
displays it on the screen in the correct way. (Or maybe a simple
program that grabs a camera frame and displays that on the screen). If
you can put the code on this newsgroup or include it with JavaCV then
I'm sure it will help a lot of people to quickly use JavaCV.
Cheers,
Shervin.
Well, there is no any "correct way" to use JavaCV. People can use OpenCV
and Java as the always have, and simply use some of the helper methods
that I provide in JavaCV.. But if they want, they can also use special
functionality specific to JavaCV that I added because I found it useful
as generic abstractions, such as the CanvasFrame and FrameGrabber.. here
is a simple reference program using those to grab a frame and display it
FYI:
import name.audet.samuel.javacv.*;
public class SingleFrameGrabber {
public static void main(String[] args) throws Exception {
CanvasFrame frame = new CanvasFrame(false, "Single Frame");
FrameGrabber grabber = new OpenCVFrameGrabber(0);
grabber.start();
frame.showImage(grabber.grab());
grabber.stop();
}
}
Samuel
hello,
please help me i want to display image as an input then perform an operations on it, like rotate,blur,zoom.Using javacv and i'm using netbeans,i have code executed but i should display in GUI.How to do i dont know.....
In panel one side input image it should be same and when we perform operations on it should display on other side of the panel.help me.....
with regards,
padmavati