litert-ocr / examples /SOURCES.md
mlboydaisuke's picture
litert-ocr demo page (john-rocky/litert-ocr demo/ at e50ed2a)
f29eea6 verified
|
Raw History Blame Contribute Delete
2.41 kB
# Where the examples come from
Every example is either released to the public domain by its author or made for this repository. Nothing here needs attribution; it is given anyway.
| File | What it is | Source | License | Changes |
|---|---|---|---|---|
| `receipt.jpg` | A photo of a crumpled shop receipt (851 x 1176) | [File:Pensioner discount Spar.jpg](https://commons.wikimedia.org/wiki/File:Pensioner_discount_Spar.jpg) on Wikimedia Commons, by Branwell.hill ("Own work", 2025-02-25) | [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) | Cut losslessly (jpegtran) to the top 1,176 of its 1,280 rows, which leaves out the slip number, the date and the cashier's name at the bottom; metadata removed. Original file: sha1 `04227cb204799b02432a9d3704cd67398f7ab4d0` |
| `sign-ja.jpg` | A photo of a printed sign in Japanese and English (1200 x 1600) | [File:20251018 185138 "no tattoos" sign in onsen.jpg](https://commons.wikimedia.org/wiki/File:20251018_185138_%22no_tattoos%22_sign_in_onsen.jpg) on Wikimedia Commons, by Saimmx ("Own work", 2025-10-18) | [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) | Turned upright by its EXIF orientation, scaled from 3060 x 4080 to 1200 x 1600, saved as JPEG (quality 88) without metadata. Original file: sha1 `8f5314c87a2e95ea5e3b07af32cc033a3eac6a20` |
| `inventory-scan.pdf` | A one-page PDF whose page is only an image: an A4 inventory list with a ruled table, as a scanner would give it back | Drawn by [`../record/make-inputs.mjs`](../record/make-inputs.mjs) (`node demo/record/make-inputs.mjs --examples`): text and table drawn at 150 dpi, turned 0.8 degrees, uneven light and grain, JPEG | Same as this repository (Apache-2.0) | None (generated) |
| `screenshot.png` | A desktop screenshot of a settings page in dark mode (1280 x 871) | The repository's test image [`test/fixtures/settings-dark.png`](../../test/fixtures/settings-dark.png), rendered for the library's tests | Same as this repository (Apache-2.0) | None (a copy) |
sha256 of the files as committed:
```
76e32adcd457749fcc2a8a17f906a6a23cba31c42e0d062642e09ab7193980e6 receipt.jpg
1909996dfe5e0a1896d390b28e25df9380ddea7d3ae67caea97c5b52d95a3330 sign-ja.jpg
7e171f4778e38aed7198a70a08373f329173ec2de6669e6c9157a6a809338f79 screenshot.png
```
`inventory-scan.pdf` is regenerated by the script above; its bytes depend on the fonts of the machine that draws it.