Skip to content

Commit

Permalink
Merge pull request #557 from correctexam/515-migrate-comments-when-ch…
Browse files Browse the repository at this point in the history
…anging-grading-scale

update minimal value for QCM diff
  • Loading branch information
barais authored Oct 3, 2024
2 parents 0ab0c91 + 6cf8171 commit 48e962a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/webapp/app/qcm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function doQCMResolution(p: { msg: any; payload: IQCMInput; uid: string }
}

const elevePref = { ...p.payload.preference };
elevePref.qcm_differences_avec_case_blanche = Math.max(0.3, elevePref.qcm_differences_avec_case_blanche);
elevePref.qcm_differences_avec_case_blanche = Math.max(0.1, elevePref.qcm_differences_avec_case_blanche);

let results = analyseStudentSheet(res, src, dstE, elevePref);
let e = imageDataFromMat(dstE);
Expand Down Expand Up @@ -528,11 +528,11 @@ function analyseStudentSheet(casesExamTemplate: any, templateimage: any, student
infos_cases.set(k, { verdict: false, prediction: diff });
cases_vides.push(case1);
}
if (diff > preference.qcm_differences_avec_case_blanche && diff < preference.qcm_differences_avec_case_blanche * 1.15) {
if (diff > preference.qcm_differences_avec_case_blanche) {
cv.putText(
studentScanImage,
'' + diff.toFixed(2),
{ x: getPosition(case1).x, y: getPosition(case1).y + 10 },
{ x: getPosition(case1).x + 15, y: getPosition(case1).y + 10 },
cv.FONT_HERSHEY_COMPLEX,
0.5,
new cv.Scalar(255, 0, 0, 128),
Expand All @@ -542,7 +542,7 @@ function analyseStudentSheet(casesExamTemplate: any, templateimage: any, student
cv.putText(
studentScanImage,
'' + diff.toFixed(2),
{ x: getPosition(case1).x, y: getPosition(case1).y + 10 },
{ x: getPosition(case1).x + 15, y: getPosition(case1).y + 10 },
cv.FONT_HERSHEY_COMPLEX,
0.33,
new cv.Scalar(255, 0, 0, 128),
Expand Down

0 comments on commit 48e962a

Please sign in to comment.