Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83117185
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
Sun, Sep 15, 07:28
Size
387 B
Mime Type
text/x-Algol68
Expires
Tue, Sep 17, 07:28 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20638459
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