Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature: train face/register student #11

Open
swatopar opened this issue Jan 22, 2020 · 0 comments
Open

Add feature: train face/register student #11

swatopar opened this issue Jan 22, 2020 · 0 comments

Comments

@swatopar
Copy link

swatopar commented Jan 22, 2020

prerequisite: Make StudentJsonModel

Create an Azure function that is triggered by writing to the takmil registration container. Use the existing azure function as starter code for writing an Azure function and implement the below pseudocode

[func("registerStudent")]
Register(StudentModel model)
{
personGroup = NewOrExistingPersonGroup(model.school);
personGroupPerson = NewPerson(model.school, model.id);
foreach (photo in data.registration_photos)
{
add(dat.school, dat.person, photos);
}
var res = trainasync(dat.school);
// make repository calls to add to db
await res;
while (await trainingStatus != complete) {
await Task.Delay(1000);
}
// await any repository calls

}

Timeline

Week 6

@swatopar swatopar assigned heobim10 and unassigned heobim10 Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants