A recent project needs to implement camera image acquisition, after a series of toss, finally realized this function, now tidy up.
In the Java technology itself, to achieve two development of the camera, capture camera pictures, need to use to JMF,JMF suitable for use in the J2SE program, I need to call the camera in the Web program, it is obvious that JMF is uncertain, want to write an applet program, Just that thing requires that the client must have a JRE environment, which is not appropriate for me, you can not expect users to visit your site first download a large JRE to install and then visit again.
Since JMF does not apply, how do we implement a control camera snapshot in a Java project? itself in the Windows platform we can use video capture card, such as two development kits to achieve access to video data, but now the camera is USB, even notebook computer screen with a camera, this case using acquisition card two times development package is not applicable, Can only write their own program to do a similar "camera photography software" things, after a series of analysis, finally realized in the Web program to call the camera, you can through the JS code control photos, through the Ajax technology to upload data, Although I did not test in the ASP.net program, it should support. NET technology, but also can be implemented in the ASP.net project to collect camera data, such as to take photos through the camera, shoot some stickers and so on.
Wordy a large pile, the program placed in the CSDN download resources, the next to do two of the development of the camera without looking everywhere, direct download use can.
Camera Program Download Address http://peihexian.iteye.com/blog/1045576
Compressed package contains a pure web-based camera photo capture sample program, contains a jquery framework based on AJAX data Manipulation program examples, specifically how to call the camera to see the sample code, I believe that a little bit of knowledge of the technology should be able to understand, there is a complete Java technology based photo sampling program, Using the JSP page to collect photos, Serlvet program to receive camera photo data.
The following is a sample run effect for a program: