Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Page Properties

Target release

Type // to add a target release date

Epic

Type /Jira to add Jira epics and issues

Document status

Status
titleDRAFT

Document owner

@ mention owner

Designer

@ designer

Tech lead

@ lead

Technical writers

@ writers

QA

Problem Statement

Currently, the technology service needs to pass the photos of examination candidates to CTI monthly so that the photos can be inserted into HikCentral accordingly. The APFace project (Stage 1) aims to create a function which could automate the process, by passing the photos of examination candidates who have exam on the present week, from S3 to HikCentral. The HikCentral Face Recognition Terminal in the exam hall can then authenticate the entries of candidates based on the inserted photos.

...

Requirement

Notes

Get the list of students who have exam on the present week

The DB view should include: Student Number, Gender and Completion Date

Retrieve photos from S3 based on the students list

  • The photos' filenames are the Student ID

  • Accepted formats of student photos: PNG, JPEG, JPG

Insert the photos into HikCentral via OpenAPI

  • The photos will be saved in HikCentral, with the following specifications

    • ID: Student ID

    • First Name: Student ID

    • Last Name: “APU“

    • Department: “APU“

    • beginTime: Present day

    • endTime: Completion Date + 7

    • faceData: Photo encoded in Base64

    • Remark: Photo’s S3 version ID

  • The function will send photo into HikCentral via OpenAPI.

Update the details/photo if necessary

  • Photo will be updated if the record doesn’t have a photo OR remark != S3 version ID

  • endTime will be updated if it’s not same with the Completion Date + 7

  • If photo is updated, remark should be updated to the latest S3 version ID as well.

IP of HikCentral Server

The Lambda function will use port 8080.

Resources used by the backend system:

  • Python v3.11.6

  • OracleDB View

  • S3 - Student Photos

  • HikCentral Professional Server and OpenAPI

...