Skip to content

Commit

Permalink
Try an upscale of 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Jul 20, 2018
1 parent df75e1c commit 88b5111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.js
Expand Up @@ -115,7 +115,7 @@ async function main() {
// Upscale the image (this improves the OCR results).

console.log(`Cropping and upscaling the image for (0, ${windowY}, ${image.width}, ${WindowHeight * 1.5}).`);
jimpImage.crop(0, windowY, image.width, Math.min(image.height - windowY, WindowHeight + WindowOverlap)).scale(4.0);
jimpImage.crop(0, windowY, image.width, Math.min(image.height - windowY, WindowHeight + WindowOverlap)).scale(5.0);

console.log("Examining the image.");
let imageBuffer = await (new Promise((resolve, reject) => jimpImage.getBuffer(jimp.MIME_PNG, (error, buffer) => resolve(buffer))));
Expand Down

0 comments on commit 88b5111

Please sign in to comment.