Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

中文版本

Gradle Configure

The build.gradle in Project add

    repositories {
        ...
        jcenter()
        mavenCentral()
        ...
    }

    allprojects {
        repositories {
            ...
            jcenter()
            mavenCentral()
            ...    
        }
    }
    

The build.gradle in Main Module add,select which function you need.But the core is must.

    dependencies {
        ...
        // Must have and must be the newest!!!!
        implementation 'com.tengine.tenginekit:core:0.0.6'
        // Function on Face
        implementation 'com.tengine.tenginekit:face:0.0.3'
        // Function on Hand
        implementation 'com.tengine.tenginekit:hand:0.0.2'
        // Function on Body
        implementation 'com.tengine.tenginekit:body:0.0.3'
        ...
    }

Since jfrog will not be updated after May 1, 2021, we cannot continuously update the SDK library. At the same time, jfrog will stop providing services on February 1, 2022, and our SDK will not be able to provide normal services after the time point.

System

Android

  • Min Sdk Version 19

Usage

  • API : Use API to complete the functions you need.
  • Usage : Specific usage

Permission

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>

<uses-permission android:name="android.permission.CAMERA"/>

Sample

Android code under the "sample/" folder.

Access Guide

In setRotation of TengineKit Api, there are two parameters ori and is_screen_rotate, which are the rotation angle and whether to follow the screen rotation. Whether the android:screenOrientation parameter in the Manifest follows the screen can be set. Not setting this parameter is to follow the screen rotation.

Process

1.Device preview

This part is to get data from Camera, as the SDK input.

2.Angle

We use the vertical screen as an angle of 0 degrees. Since the data collected by the Android camera always deviates by 90, it is necessary to set + (-90) when setting the ori parameter. The actual rotation angle of Android is to add a function through the sensor Calculate to get. For details, see the example in the Demo project.

3.Rendering

When rendering, it is rendered at an angle of 0°, which is the normal output that people see under normal circumstances. The Android part has Canvas and Opengl rendering. Using Opengl rendering can make your apk better.

ImageHandle

ImageHandle to do Zoom, rotate, crop, and change picture format