简体   繁体   English

无法在Eclipse中运行网络摄像头

[英]Can't run webcam in Eclipse

import JMyron.*;
public class WebCamera {
    public WebCamera() {
        // TODO Auto-generated constructor stub
    }

    int height = 320, width = 240;
    JMyron my = new JMyron();

    void setup() {
        my.start(width, height);
        my.update();
        my.stop();
    }

    public void main(String[] args) {

        setup();
        System.out.println("Hello World");
    }

}

This is my simple program What i have done is downloaded the JMyron library, imported the three .dll files into my java project folder (WebCam in my case), added the JMyron.jar file through the Add External Jars in Project menu and then wrote a simple code. 这是我的简单程序,我下载了JMyron库,将这三个.dll文件导入了我的java项目文件夹(在我的情况下为WebCam),通过在Project菜单中的Add External Jars添加了JMyron.jar文件,然后编写了一个简单的代码。 However, the project folder shows a red exclamation mark and the code terminates when i run it after compiling (for that i use ctrl + S) 但是,项目文件夹显示红色感叹号,并且在编译后运行它时代码终止(为此,我使用ctrl + S)

The Problems shown are : 显示的问题是:

Description Resource Path Location Type The project cannot be built until build path errors are resolved WebCam Unknown Java Problem 说明资源路径位置类型在解决构建路径错误之前无法构建项目WebCam未知Java问题

Description Resource Path Location Type Project 'WebCam' is missing required library: 'C:\\Users\\Sony\\Desktop\\Habe\\Habe\\opencv\\javac.zip' WebCam Build path Build Path Problem 说明资源路径位置类型项目'WebCam'缺少必需的库:'C:\\ Users \\ Sony \\ Desktop \\ Habe \\ Habe \\ opencv \\ javac.zip'WebCam构建路径构建路径问题

Did you add the libraries correctly ? 您是否正确添加了库?

Can you confirm that JMyron is not depending on a CV lib like http://code.google.com/p/javacv/ ? 您可以确认JMyron不依赖于像http://code.google.com/p/javacv/之类的CV库吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM