clean up sbb_binarizer code and split CLI into own module
proof-of-concept OCR-D CLI
TODO:
[x] Fix conversion from SbbBinarizer OpenCV2 image to PIL
[x] Refactor SbbBinarizer to load the model once and have a stateless run method that is not possible because it's 4 models that are run in sequence. But SbbBinarizer is now refactored to have only model_dir as an instance var, the other args are passed to run
setup.py
,requirements.txt
,Makefile
TODO:
load the model once and have a statelessthat is not possible because it's 4 models that are run in sequence. But SbbBinarizer is now refactored to have only model_dir as an instance var, the other args are passed to runrun
methodSetup CIIt is set up but sbb_binarization's requires too much RAM for binarizing two pages on Circle CI's free plan (4 GB)