project-anuvaad / Project-Saral

Project Saral should be viewed as an OCR-plus application that is capable of doing OCR and can also understand the structure of the physical input.
MIT License
0 stars 1 forks source link

Feature: Capture Training Data in the response #73

Closed dileep-gadiraju closed 2 years ago

dileep-gadiraju commented 2 years ago

Feature: Capture Training Data in the response based on login storeTrainingData flag. Default value of this flag should be false.

dileep-gadiraju commented 2 years ago

Saral SDK code changed to capture the roi Mat image and encode (Base64) and include it in SDK response as result.roiImage element.

dileep-gadiraju commented 2 years ago

Backend changes as per design implemented by @apurvabisht97. So assigning to Arman to complete frontend changes and testing.

apurvabisht97 commented 2 years ago

For Training Data in marks collection we have added two more fields that is studentIdTrainingData and trainingData in marksInfo.

Example:-

{ "studentIdTrainingData": [], "studentAvailability": true, "createdOn": "1634884011708", "section": "B", "studentId": "30000001", "securedMarks": 0, "totalMarks": 0, "marksInfo": [{ "trainingData": [], "questionId": "QUESTION1", "obtainedMarks": "55" }, { "trainingData": [], "questionId": "QUESTION4", "obtainedMarks": "55" }], "schoolId": "3", "examDate": "05/10/2021", "subject": "Hindi", "classId": "4", "__v": 0 }

And in school API we have added one field to show that trainingData is available or not by default its false ... only for odisha I have marked as true .. So you can test it with odisha sheet .

apurvabisht97 commented 2 years ago

training data requirement is done .

when school flag is true then we will get training data while saving marks . when flag is false then we will not get training data while saving marks .