f4fc013f94401b1272887cd74d9862c0f247149b,kraken/transcribe.py,TranscriptionInterface,add_page,#TranscriptionInterface#Any#Any#Any#,57

Before Change


            segmentation (dict): Output of the segment method.
            records (list): A list of ocr_record objects.
        
        im_str = im.filename if hasattr(im, "filename") else repr(im)
        logger.info(u"Adding page {} with {} lines".format(im_str, len(segmentation) if segmentation else len(records)))
        page = {}
        fd = BytesIO()
        im.save(fd, format="png", optimize=True)

After Change


            segmentation (dict): Output of the segment method.
            records (list): A list of ocr_record objects.
        
        im_str = get_im_str(im)
        logger.info(u"Adding page {} with {} lines".format(im_str, len(segmentation) if segmentation else len(records)))
        page = {}
        fd = BytesIO()
        im.save(fd, format="png", optimize=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: mittagessen/kraken
Commit Name: f4fc013f94401b1272887cd74d9862c0f247149b
Time: 2018-04-18
Author: mittagessen@l.unchti.me
File Name: kraken/transcribe.py
Class Name: TranscriptionInterface
Method Name: add_page


Project Name: mittagessen/kraken
Commit Name: f4fc013f94401b1272887cd74d9862c0f247149b
Time: 2018-04-18
Author: mittagessen@l.unchti.me
File Name: kraken/binarization.py
Class Name:
Method Name: nlbin


Project Name: mittagessen/kraken
Commit Name: f4fc013f94401b1272887cd74d9862c0f247149b
Time: 2018-04-18
Author: mittagessen@l.unchti.me
File Name: kraken/pageseg.py
Class Name:
Method Name: segment