项目作者: arjunarao619

项目描述 :
Facial Detection with facial profile communication using android AsyncHttp
高级语言: Java
项目地址: git://github.com/arjunarao619/FaceDetect.git
创建时间: 2019-07-11T02:30:11Z
项目社区:https://github.com/arjunarao619/FaceDetect

开源协议:

下载


FaceDetect

An Android Application for detecting and registering face profiles With FaceMe backend.

1. Home Screen


Size Limit CLI

  • Home Screen can be used to load or create a new Face Profile. Clicking Show Profile brings up a dialog where FaceID is to be entered.
  • On entering FaceID, a GET request is launched and image is displayed in LoadImageActivity.java.


Size Limit CLI

Standard backend URL is:

  • Image Show URL
    1. http://192.168.7.115/api/v1/showface/image/
  • Profile Show URL
    1. http://192.168.7.115/api/v1/showface/profile/

    2. Detect Page


Size Limit CLI

  • DetectActivity.java is responsible for the following tasks:

    • Capturing image using Androidx camera API
    • Detecting face and drawing bounding box using Firebase FaceDetect API
    • Posting profile JSON and image (encoded in multipart-form-data) to backend

    Example of profile JSON

    1. {"person_name":"donna chim","person_id":"donnachim","photo_name":"donnachim","photo_url":"http://192.168.7.115/api/v1/showface/image/nourl/donnachim/"
    2. ,"rectangle_vector":{"x":577.979736328125,"y":349.3026123046875,"width":1052.13232421875,"height":823.4552001953125}}
  • Multipart POST is done with Android Async-HTTP. With async-http, image upload is done
    on a worker thread. A progressdialog is displayed during all network operations.