8d0d0c7a6db3904f0222cbe058388a92cf21a548,calamari_ocr/ocr/dataset/datareader/pagexml/reader.py,PageXMLReader,_load_sample,#PageXMLReader#Any#Any#,279

Before Change


                // rotate by orientation angle in clockwise direction to correct present skew
                // (skimage rotates in counter-clockwise direction)
                if orientation and orientation % 360 != 0:
                    line_img = rotate(line_img, orientation*-1, resize=True, mode="constant", cval=line_img.max(), preserve_range=True).astype(np.uint8)

                // add padding as required from normal files
                if self.args.pad:

After Change


                ly, lx = img.shape[:2]

                // rotate by orientation angle in clockwise direction to correct present skew
                angle = orientation if orientation and orientation % 360 != 0 else 0

                line_img = PageXMLReader.cutout(img, sample["coords"],
                                                mode=CutMode.POLYGON,
                                                angle=angle,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Calamari-OCR/calamari
Commit Name: 8d0d0c7a6db3904f0222cbe058388a92cf21a548
Time: 2021-02-06
Author: ChWick@users.noreply.github.com
File Name: calamari_ocr/ocr/dataset/datareader/pagexml/reader.py
Class Name: PageXMLReader
Method Name: _load_sample


Project Name: prody/ProDy
Commit Name: f13480abc1f0ac3e1dc9611b6ddd1240ceb61bec
Time: 2018-09-26
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/starfile.py
Class Name:
Method Name: parseImagesFromSTAR


Project Name: azavea/raster-vision
Commit Name: 2f608dd95d89ac486fe227312d2f40d6e6066e39
Time: 2017-12-27
Author: lewfish@gmail.com
File Name: src/rv/classification/ml/utils.py
Class Name: RandomRotate90
Method Name: __call__