Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102625422
deskew.lua
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Feb 22, 15:55
Size
387 B
Mime Type
text/x-Algol68
Expires
Mon, Feb 24, 15:55 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24375810
Attached To
R3600 invenio-infoscience
deskew.lua
View Options
-- FIXME this should do the right thing for grayscale images:
-- threshold, compute rotation, then rotate the grayscale image
if
#
arg
<
2
then
print
(
"
usage: ... input output"
)
os.exit
(
1
)
end
proc
=
ocr
.
make_DeskewPageByRAST
()
input
=
bytearray
:
new
()
output
=
bytearray
:
new
()
iulib
.
read_image_gray
(
input
,
arg
[
1
])
proc
:
cleanup
(
output
,
input
)
iulib
.
write_image_gray
(
arg
[
2
],
output
)
Event Timeline
Log In to Comment