์ฌ๊ธฐ์ PDF ํ์ผ์ ์ฒจ๋ถ(๊ถ์ฅ)ํ๊ฑฐ๋ ๋งํฌ:
dee752ed0f726d8785abf360ca783d91f96f9a2e.pdf
๊ตฌ์ฑ:
๋ฌธ์ ๋ฅผ ์ฌํํ๋ ๋จ๊ณ:
pdftotext๋ ์ฌ๋ฐ๋ฅธ ํ ์คํธ๋ฅผ ๋ณด์ฌ์ค๋๋ค.
in nit ris hington 1D C
boerge W lacan a pioneer of butali
and an influential man aw at richfield last walk
ํฌ๋กฌ์ ๋ด์ฅ๋ PDF ๋ทฐ์ด์์ ์๋ํ๋ฏ๋ก pdf์์๋ ๋ฌธ์ ๊ฐ ๋์ง ์์ต๋๋ค.
๋ทฐ์ด์ ๋ํ ๋งํฌ(mozilla.github.io/pdf.js๊ฐ ์๋ ๋ค๋ฅธ ์ฌ์ดํธ ๋๋ Firefox/Chrome ํ์ฅ์ผ๋ก ํธ์คํ
๋๋ ๊ฒฝ์ฐ):
https://newspapers.lib.utah.edu/pdfjs1.9/web/viewer.html?file=/udn_files/de/e7/dee752ed0f726d8785abf360ca783d91f96f9a2e.pdf
์ด ์์
์ ํ๊ณ ์ถ์ต๋๋ค.
@timvandermeij ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ๋์ ์ด๋์๋ถํฐ ์์ํด์ผ ํ๋์ง ๋์์ฃผ์ธ์.
๊ฒ์์ด ์๋ํ์ง ์๋ ์ด์ ๋ฅผ ์ค๋ช ํ ์ ์๊ธฐ ๋๋ฌธ์ ๋จผ์ ํ ์คํธ ๋ ์ด์ด์ ๋ฌด์์ด ์๋์ง ํ์ธํ๋ ๊ฒ์ด ์ข์ต๋๋ค. ๋ด ์๊ฐ์๋ ๊ณต๊ฐ ์์๊ฐ ์ ํํ์ง ์๋ค๋ ๊ฒ์ ๋๋ค. ์ฐธ์กฐ: https://github.com/mozilla/pdf.js/blob/7bb066494f3f15c396941c3532b83da6d3465c6b/src/core/evaluator.js#L1303
์ด๊ฒ์ ๋ค๋ฅธ ๋ง์ ์ด๋ฆฐ ํ ์คํธ ์ ํ ๋ฌธ์ ์ ์์ธ์ด๊ธฐ๋ ํฉ๋๋ค. ๊ทธ๋ฌ๋ ๊ฐ์ ๋ณ๊ฒฝํ๋ฉด ๋ค๋ฅธ PDF ํ์ผ์์ ์ค๋ฅ๊ฐ ๋ฐ์ํ๊ธฐ ์ฌ์ฐ๋ฏ๋ก ์ถฉ๋ถํ ํ ์คํธ๊ฐ ํ์ํฉ๋๋ค. ๋ค๋ฅธ ์คํ ์์ค PDF ๋ทฐ์ด(์: Poppler)๊ฐ ์ด ์์ ์ ์ํํ๋ ๋ฐฉ๋ฒ์ ํ์ธํด์ผ ํ ์๋ ์์ต๋๋ค. ๋ฌธ์ ๋ PDF ์ฌ์์ด ํ ์คํธ ์ ํ์ ๊ณต๋ฐฑ์ ์ฌ์ฉํด์ผ ํ๋ ์๊ธฐ๋ฅผ ๋ํ๋ด์ง ์๊ธฐ ๋๋ฌธ์ ๋๋ค. ๋ฌธ์ ์ฌ์ด์ ๊ฐ๊ฒฉ ๋๋น๋ง ์ ์ํ์ต๋๋ค.
๋ถํํ๋ https://github.com/mozilla/pdf.js/issues/9736#issuecomment -390629834๋ ์ฌ๊ธฐ์์ ๋์์ด ๋์ง ์์ต๋๋ค. ์ด๊ฒ์ ๋ชจ๋ ๋จ์ด๊ฐ ๋ค๋ฅธ ๊ธ๊ผด ํฌ๊ธฐ์ x/y ์ขํ๋ก ๊ฐ๋ณ์ ์ผ๋ก ๋ฐฐ์น๋๋ ์ค์บ ํ์ผ์ด๊ธฐ ๋๋ฌธ์
๋๋ค. ์๋ฅผ ๋ค์ด /Contents
์คํธ๋ฆผ์ ์์์ ์ฐธ์กฐํ์ญ์์ค.
1 G
1 g
1 0 0 1 52 1145.37 Tm
/F1 11 Tf
(UTAH)Tj
1 0 0 1 90 1146.36 Tm
/F1 11 Tf
(NEWS)Tj
1 0 0 1 29 1124.14 Tm
/F1 10 Tf
(the)Tj
1 0 0 1 44 1126.03 Tm
/F1 8 Tf
(oregon)Tj
1 0 0 1 71 1124.47 Tm
/F1 9 Tf
(short)Tj
1 0 0 1 92 1125.47 Tm
/F1 9 Tf
(line)Tj
...
์๋ ํ์ธ์ ์ฌ๋ฌ๋ถ, ๋ค๋ฅธ PDF ๋ ๋๋ง ํ๋ก์ ํธ์์๋ ์ด ๋ฌธ์ ๋ฅผ ๊ฒช๊ณ ์๋ค๋ ๊ฒ์ ์๊ณ ๊ณ์ค ๊ฒ์ ๋๋ค. ์ ๋ ํ์ฌ pdf.js๋ฅผ ๋ธ๋ผ์ฐ์ ์ ํ๋ฆฌ์ผ์ด์ ์ฉ PDF ๋ ๋๋ฌ๋ก ์ฌ์ฉํ๋ ์น ์ฑ(Nextcloud)์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
๋ค์์ ๋ค๋ฅธ ์ ํธ๋ฆฌํฐ์์ ์์ ํ ํ์ผ์ ์์ ๋๋ค. ์ด๊ฒ์ ์๋ ์ ์ ์๋ ์ฅ๋น์ 1970๋ ๋์ ์ธ์๋ ํญ๊ณต๊ธฐ์ ์๋ ์กฐ์ข ์ฅ์น ์๋น์ค ๋งค๋ด์ผ์์ ์ค์บํ ๋ฐ์ท๋ฌธ์ ๋๋ค.
CenturyIIB-origscan.pdf
CenturyIIB-tesseract_hocr-uncleaned.pdf
CenturyIIB-tesseract_hocr-cleaned.pdf
์ฒซ ๋ฒ์งธ ํ์ผ์ ํ ์คํธ ๋ ์ด์ด๊ฐ ์๋ ์๋ณธ ์ค์บ์ ๋๋ค. ๋ ๋ฒ์งธ(hocr-uncleaned)๋ ์จ๊ฒจ์ง ํ ์คํธ ๋ ์ด์ด๋ฅผ ๋ง๋ค๊ธฐ ์ํด Tesseract(v4.0) ๋ก ์ฒ๋ฆฌ๋ PDF/A์ ๋๋ค. ์ธ ๋ฒ์งธ(hocr-uncleaned)๋ unpaper(v6.1) ๋ก ๊ธฐ์ธ๊ธฐ๋ฅผ ์ ๊ฑฐํ ๋ค์ ๋์ผํ ๋ฒ์ ์ Tesseract๋ก OCR ์ฒ๋ฆฌํ๊ณ PDF/A๋ก๋ ์ถ๋ ฅํฉ๋๋ค. ๋ PDF/A์ ๊ฒฝ์ฐ ์๋ณธ ์ค์บ์ด ์ต์ข ์ถ๋ ฅ์ ์ํด 300dpi jpeg๋ก ์ฝ๋ ๋ณํ๋์์ต๋๋ค.
๋ ๋ฒ์งธ ๋ฐ ์ธ ๋ฒ์งธ ๊ฒฝ์ฐ ๋ชจ๋ Tesseract์ 'hocr' ๋ ๋๋ง ์ต์ ์ด OCR ๋ ๋๋ง ๋จ๊ณ์ ์ฌ์ฉ๋์์ต๋๋ค(Tesseract์๋ ์ฌ๋ฌ ๋ด๋ถ ๋ ๋๋ฌ๊ฐ ์์). github์์ Tesseract์ ๋ฌธ์ ํฌ๋ผ์ ์ดํด๋ณด๋ฉด ์ด ๋ฌธ์ ๋ ํด๊ฒฐํ๊ธฐ ์ํด ์ต์ ๋ ๋๋ฌ๋ฅผ ์ผ๋ถ ๋ณ๊ฒฝํ์์ ์ ์ ์์ต๋๋ค.
๋ค์์ ๋ค์ํ ์ ํธ๋ฆฌํฐ์์ ๋ณต์ฌ/๋ถ์ฌ๋ฃ๊ธฐํ ์ผ๋ถ ๋ฐ์ท๋ฌธ์ ๋๋ค...
Safari 11.1์์ hocr-unlceaned(13605.1.33.1.4)
The Century IIB Autopilot is an "Open Loop" system which responds only to the dynamics of the aircraft in flight, thus the only ground checks that can be accomplished are functional checks as described in this bulletin.
Chrome 66.0.3359.181์์ hocr-uncleaned
The Century IIB Autopilot is an "Open Loop" system which responds only to the dynamics of the aircraft in flight, thus the only ground checks that can be accomplished are functional checks as described in this bulletin.
Adobe Acrobat Pro X์์ hocr-uncleaned
The Century IIB Autopilot is an "Open Loop" system which responds only to the
dynamics of the aircraft in flight, thus the only ground checks that can be
accomplished are functional checks as described in this bulletin.
pdf.js์์ hocr-uncleaned(Firefox 60.0.1)
Century
IIB
Autopilot
is
an
"Open Loop"
system
which
responds
only
to
the
dynamics
of
the
aircraft
in
flight,
thus
the
only
ground
checks
that
can
be
accomplished
are
functional
checks
as
described
in
this
bulletin.
์์ ๋์ผํ Safari ๋ฒ์ ์์ hocr-cleaned
The Century IIB Autopilot is an "Open Loopโ system which responds only to the dynamics of the aircraft in flight, thus the only ground checks that can be accomplished are functional checks as described in this bulletin.
์์ ๋์ผํ Chrome ๋ฒ์ ์์ hocr-cleaned
The Century IIB Autopilot is an "Open Loopโ system which responds only to the
dynamics of the aircraft in flight, thus the only ground checks that can be
accomplished are functional checks as described in this bulletin.
์์ Adobe Acrobat Pro์ ๋์ผํ ๋ฒ์ ์์ hocr-cleaned
The Century IIB Autopilot is an "Open Loopโ system which responds only to the
dynamics of the aircraft in flight, thus the only ground checks that can be
accomplished are functional checks as described in this bulletin.
์์ ๋์ผํ ๋ฒ์ ์ pdf.js(Firefox)์์ hocr-cleaned
Century
IIB
Autopilot
is
an
"Open
Loopโ
system
which
responds
only
to
the
dynamics
of
the
aircraft
in
flight,
thus
the
only
ground
checks
that
can
be
accomplished
are
functional
checks
as
described
in
this
bulletin.
๋ค๋ฅธ ์ํ ํ์ผ( ๋ฉ์ธ /_depedency_)์ ๋ํด ๋ด ํด์ฒด์ธ์ ์ฌํํ๋ ค๋ ์ฌ๋์ ์ํด...
tesseract 4.00.00alpha (OCR์ฉ)
_๋ ํ ๋์นด 1.76.0
libjpeg-ํฐ๋ณด 1.5.3
libpng 1.6.34+apng
๋ฆฌ๋ธํฐํ 4.0.9_
unpaper 6.1 (๊ธฐ์ธ๊ธฐ ์ ๊ฑฐ, ๋
ธ์ด์ฆ ์ ๊ฑฐ ๋ฑ)
_๋ฆฌ๋ฐ๋ธ 12.1
opencv 2.4.13.1
์์ ํ2 2.8_
qpdf 8.0.1 (PDF์ ๊ฒ์ฌ/์์ /์์ฑ์ฉ)
_๊ณ ์คํธ์คํฌ๋ฆฝํธ 9.16_
OCRmyPDF 6.2.0 (์ ์ ํธ๋ฆฌํฐ์ ๋ํ python v3 ๋ํผ)
์์ ๋ชจ๋ ๋ด์ฉ์ ๊ฑฐ์ ๋ชจ๋ ์ผ๋ฐ์ ์ธ Linux ํจํค์ง ์ ์ฅ์์ ์๊ณ OCRmyPDF๋ pip์ ์์ผ๋ฉฐ ๋ชจ๋ ์ต์ ๋น๋๋ OSX์ฉ Homebrew์๋ ์์ต๋๋ค(v4.0์ ์ฌ์ ํ โโ๋ฒ ํ๋ก ํ์๋์ด ์์ผ๋ฏ๋ก tesseract๋ git HEAD์ ํ๊ทธ๋ฅผ ์ง์ ํด์ผ ํจ) . ๋๋ ๋ํ ๊ทธ๊ฒ๋ค์ ๋ชจ๋ FreeBSD์์ ์คํํ์ต๋๋ค(Tesseract, Leptonica ๋ฐ ์์ค์์ ์ธํ์ดํผ๋ฅผ ๋น๋ํด์ผ ํจ). ๋ด ์๊ฐ์ Tesseract/Leptonica๋ ์ด๋ฌํ ํ ์คํธ ํ์ผ์ ๋ง๋๋ ๋ฐ ์ฌ์ฉํ ์ ์๋ ํ๋ฅญํ ๊ธฐ์ค์ ์ ๋๋ค. ๊ทธ๋ค์ ์คํ ์์ค OCR์ ๋น์ฝ์ ์ผ๋ก ๋ฐ์ ์์ผฐ์ต๋๋ค. ๋ค์ ์ '๊ธด S'๊ฐ ๋ฌด์์ธ์ง ๋ชจ๋ฅด๊ณ ์๋ฌธ์ 'f'๋ก ํ๊ธฐํ์์๋ ๋ถ๊ตฌํ๊ณ ํ๋ฅญํ ์์ ์ ์ํํ๋ 18์ธ๊ธฐ ๋ฌธ์ ์ค์บ์ ์์ ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด ์์ ์ ํ๊ณ ์ถ์ต๋๋ค.
@timvandermeij ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ๋์ ์ด๋์๋ถํฐ ์์ํด์ผ ํ๋์ง ๋์์ฃผ์ธ์.