Camera SDK

Version : NUWA Camera SDK v1.1

Camera SDKIntroductionAdd member to nuwa family systemSample Code to lunch Register camera SDK serviceunregister camera SDKSupport Recognition Typeuse callback to get result data:Parser outdata of each recognition typeFACE_DETECTIONFACE_RECOGNITIONFACE_TRACKOBJ_RECOGNITION

Introduction

we can use the NUWA Camera SDK to resolve recognition people or objects, and all the function that is connected to camera service.

Due to all functions of camera SDK are async(Based on AIDL) design, App needs to register a callback to receive all kinds of notifications and results from Robot,and we need to point which function we want to use first, and before we use FACE_RECOGNITION function we need to use the face recognition app to add people's face(remember) as a family member, otherwise sdk can not know the people who it is seeing.

Please find NUWA Camera SDK sample code on

Support product list : Kebbi Air series (AIR-H200、AIR-H201、AIR-H202、AIR-H203)

Add member to nuwa family system

There are two way to add people's face to face recognition list

  1. Use 「Add Members」 to recognition face of new family member.
  2. Lunch 「Add Members」by programming

Sample Code to lunch

 

 

Register camera SDK service

Application should register receive which recognition result when start use NUWA Camera SDK

unregister camera SDK

After application finish or activity suspend, don't to forget to unregister NUWA Camera SDK.

Support Recognition Type

use callback to get result data:

Parser outdata of each recognition type

FACE_DETECTION

Detect all face rectangle coordinate on camera.

We use ObjectMapper/TypeReference class to extraction list of face rectangle data.

Import library (build.gradle) :

Sample code :

Reference library :

FACE_RECOGNITION

It allow recognition face in center of screen.

We can get name、face rect、wear mask information、age、etc..... Import library (build.gradle) :

Sample code :

If you did not found FaceRecData to parser json format of recognition result, please declare this class on your project.

FACE_TRACK

Use to get face move coordinate on screen smoothly.

Sample code : ongoing

 

OBJ_RECOGNITION

OBJ_RECOGNITION use NUWA AI model to recognition what object is.

Pre-training data list : https://developer-docs.nuwarobotics.com/sdk/CameraSDK/obj/obj_list.html

We use ObjectMapper/TypeReference class to extraction list of face rectangle data.

Import library (build.gradle) :

Sample code :