Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Jul 28, 2023
1 parent b799912 commit f564af3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SlightCapture/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const zoneAsync = (cv) => async (sceneUrl, imgDescription, goodMatchSizeT
const templateCols = imgDescription.img.cols;
const templateRows = imgDescription.img.rows;

const marge = Math.round(1600 * 0.02);
const marge = Math.round(1600 * 0.1);

const x1 = Math.round((imgResized.cols - templateCols) / 2) - marge < 0 ? 0 : Math.round((imgResized.cols - templateCols) / 2) - marge;
const y1 = Math.round((imgResized.rows - templateRows) / 2) - marge < 0 ? 0 : Math.round((imgResized.rows - templateRows) / 2) - marge;
Expand Down Expand Up @@ -132,7 +132,7 @@ export const zoneAsync = (cv) => async (sceneUrl, imgDescription, goodMatchSizeT

}
// const base64Url = toImageBase64(cv)(imgCv);
// if (!result) {
if (!result) {
return {
expectedOutput: [],
// url: base64Url,
Expand All @@ -141,7 +141,7 @@ export const zoneAsync = (cv) => async (sceneUrl, imgDescription, goodMatchSizeT
finalImage: imgResizedAndCropped,
outputInfo: null
};
// }
}

const {xmax, xmin, ymax, ymin} = result.rectangle;

Expand Down

0 comments on commit f564af3

Please sign in to comment.