同步操作将从 OAL/TengineKit 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
TengineKit, developed by OPEN AI LAB.
TengineKit is an easy-to-integrate face detection and face landmarks SDK. At present, it can run on various mobile phones at very low latency.
or
CPU | Time consuming | Frame rate |
---|---|---|
Kirin 980 | 14ms | 71fps |
Qualcomm 855 | 15ms | 67fps |
Kirin 970 | 17ms | 59fps |
Qualcomm 835 | 18ms | 56fps |
Kirin 710F | 19ms | 53fps |
Qualcomm 439 | 26ms | 38fps |
MediaTek Helio P60 | 27ms | 37fps |
Qualcomm 450B | 28ms | 36fps |
The build.gradle
in Project add
repositories {
...
jcenter()
mavenCentral()
...
}
allprojects {
repositories {
...
jcenter()
mavenCentral()
...
}
}
The build.gradle
in Main Module add
dependencies {
...
implementation 'com.tengine.android:tenginekit:1.0.7'
...
}
Android
When using sdk, you can refer to face api to complete the functions you need.
<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"/>
Android code under the "sample/Android" folder.
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.
This part is to get data from Camera, as the SDK input.
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.
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.
About the use of TengineKit and face-related technical exchanges, you can join the following QQ groups(Group Answer:TengineKit):
ImageHandle to do Zoom, rotate, crop, and change picture format
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。