Java program to call the camera to implement the JSP program camera data acquisition __js

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.