⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webcamapplet.java

📁 有关嵌入式的摄像头视频采集的论文
💻 JAVA
字号:
/* * WebCamApplet.java * * Created on February 25, 2002, 8:47 AM */import java.io.*;import java.awt.*;import java.applet.*;import java.net.URL;import java.net.MalformedURLException;/** * * @author  mike morrison */public class WebCamApplet extends Applet {    private ImageDownloader downloader;    private ImageCanvas ic;    /** Creates a new instance of WebCamApplet */    public WebCamApplet() {            }    public void init () {        try{                        int width = Integer.parseInt(this.getParameter("width"));            int height = Integer.parseInt(this.getParameter("height"));	    int defFPS = Integer.parseInt(this.getParameter("FPS"));            URL hostURL = new URL(getParameter("URL"));            setLayout(new GridLayout());            ic = new ImageCanvas(this,hostURL.getHost(),hostURL.getPort(),defFPS,width,height);            add(ic);        }catch(NumberFormatException e){            e.printStackTrace();        }catch(MalformedURLException e){            e.printStackTrace();        }    }    public void stop(){        ic.disconnect();        ic = null;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -