Skip to content

learnn-ai/learn-ai-backend-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

learn.ai Rust Backend

Handles part of the Learn.ai backend. Responsible for calculating engagement scores for the largest face in each image.

Overview

  • Sends binary image via POST request endpoint
  • Is sent through the Azure Face API
  • Parses all face detection data to Rust structs
  • Calculates an engagement score from many different features

Engagement Score calculation

Engagement score Head yaw normalization Head pitch normalization Emotion normalization graph Emotion normalization

Building

Before you are able to run the server, you must create a file called config.rs and add this code to it:

pub static KEY: &'static str = "<Azure Face API key here>";
pub static ENDPOINT: &'static str = "<Azure Face API endpoint here>";

Afterwards, place the config.rs under the src folder.

Now you use Cargo, the Rust package manager, to build the executable. Once you have installed Cargo, clone this repository, add your config.rs, and run:

cargo build --release

the resulting executable will be under target/release/.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages