转载:
http://ltu164.ltu.edu/itseng/version.htm Web camera is a very cheap device nowadays. After reading this page, you will enter the world of vision processing in Java.
Please follow the order of steps. The order is very important. Don't skip any step. Otherwise, you will be in trouble. ^_^
-
Step1: Install your camera drive.
-
Step 2: Install Java Media Framework API (JMF 2.1.1.e ). You can download it from Sun. It's free.
-
Step 3: After install JMF, your will find a "JMStudio" icon at your desktop. Please double click to open it.
-
Step 4:Create a file to put all your java source code. For example: c:\Robot\.
-
Step 5:Download this and unzip it to the directory that you will put your java code. So, you will find c:\Robot\jmfdemo\ and c:\Robot\video.properties
-
Step 6: Double click "video.properties" to open it. Update the last number at the first line to make sure it is the same with the number that you get from JMStudio.
- Step 7: Download this to test. Save it at the same directory with unzip file. For example: c:\Robot\Test.java (written by David Chamulak).
- Step 8: Compile Test.java and execute it.
Now, you are all set. Go ahead to study Test.java. You will find lots of fun from it. Good Luck!