Skip to content

Commit

Permalink
Updated JSON exports to match earlier format (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica authored Dec 27, 2024
1 parent 6299aa5 commit 34ba7d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"node-fetch": "^2.6.9",
"opencollective-postinstall": "^2.0.3",
"regenerator-runtime": "^0.13.3",
"tesseract.js-core": "^6.0.0-3",
"tesseract.js-core": "^6.0.0-4",
"wasm-feature-detect": "^1.2.11",
"zlibjs": "^0.3.1"
},
Expand Down
8 changes: 4 additions & 4 deletions tests/recognize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,10 @@ describe('recognize()', () => {
it('recongize large image', async () => {
await worker.reinitialize('eng');
const { data: { layoutBlocks } } = await worker.recognize(`${IMAGE_PATH}/testocr.png`, {}, { text: false, layoutBlocks: true });
expect(layoutBlocks[0].bbox[0]).to.be(36);
expect(layoutBlocks[0].bbox[1]).to.be(92);
expect(layoutBlocks[0].bbox[2]).to.be(618);
expect(layoutBlocks[0].bbox[3]).to.be(361);
expect(layoutBlocks[0].bbox.x0).to.be(36);
expect(layoutBlocks[0].bbox.y0).to.be(92);
expect(layoutBlocks[0].bbox.x1).to.be(618);
expect(layoutBlocks[0].bbox.y1).to.be(361);
}).timeout(TIMEOUT);
});
});

0 comments on commit 34ba7d8

Please sign in to comment.