Application of JNI-layer camera in Android 2.1

Source: Internet
Author: User

As a reference for implementing image recognition at the Java layer. We recommend that you use the JNI layer to extract data.

 

-- Leon

 

 

Http://blog.csdn.net/chenji001/archive/2010/08/25/5836685.aspx

In Android, if you want to process preivew data (such as face tracking), the callback function at the Java layer will cause frequent memory application and copy. Even if you use the latest setpreviewcallbackwithbuffer function, memory copy across the JNI layer cannot be escaped. In addition, ourAlgorithmIt is often C, so it is more troublesome to have another layer of JNI.

Therefore, the good method is to use the camera object and cameralistener (inheritance class) directly under JNI. Write a Java-layer camera for the final application.Program.

Difficult, just record:

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.