我在这里安装了Javacv jar文件: http://www.java2s.com/Code/Jar/j/Downloadjavacvjar.htm
解压缩zip文件后,我将.jar文件放在jre文件夹内的ext文件夹中。
但是每当我导入适当的库后尝试运行这样的代码
IplImage img;
while (true) {
//inser grabed video fram to IplImage img
img = grabber.grab();
//Set canvas size as per dimentions of video frame.
canvas.setCanvasSize(grabber.getImageWidth(), grabber.getImageHeight());
if (img != null) {
//Flip image horizontally
cvFlip(img, img, 1);
//Show video frame in canvas
canvas.showImage(img);
}
我收到这样的错误:
错误:无法访问指针
if (img != null) {
未找到com.googlecode.javacpp.Pointer的类文件