%load_ext autoreload
%autoreload 2
from fusus.book import Book
B = Book(cd="~/github/among/fusus/example")
# cd to the book directory
!cd `pwd`
def checkBorder(pageNum):
page = B.process(pageNum, batch=False, uptoLayout=True)
page.show("gray,normalized", width=400)
return page
page = checkBorder(101)
0.00s Batch of 1 pages: 101 0.00s Start batch processing images | | | -0.00s 1 101.jpg 1.26s all done
page.show(stage="blurred", width=400)
page = checkBorder(102)
0.00s Batch of 1 pages: 102 0.00s Start batch processing images | | | 3.21s 1 102.jpg 1.32s all done
page = checkBorder(112)
0.00s Batch of 1 pages: 112 0.00s Start batch processing images | | | 5.46s 1 112.jpg 2.14s all done