058d7a7e80ecf09c0825d02911e873d3272fff5a,libs/labelFile.py,LabelFile,savePascalVocFormat,#LabelFile#,38

Before Change


        // Read from file path because self.imageData might be empty if saving to
        // Pascal format
        image = QImage()
        image.load(imagePath)
        imageShape = [image.height(), image.width(),
                      1 if image.isGrayscale() else 3]
        writer = PascalVocWriter(imgFolderName, imgFileName,
                                 imageShape, localImgPath=imagePath)

After Change


        //imgFileNameWithoutExt = os.path.splitext(imgFileName)[0]
        // Read from file path because self.imageData might be empty if saving to
        // Pascal format
        if isinstance(imageData, QImage):
            image = imageData
        else:
            image = QImage()
            image.load(imagePath)
        imageShape = [image.height(), image.width(),
                      1 if image.isGrayscale() else 3]
        writer = PascalVocWriter(imgFolderName, imgFileName,
                                 imageShape, localImgPath=imagePath)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tzutalin/labelImg
Commit Name: 058d7a7e80ecf09c0825d02911e873d3272fff5a
Time: 2020-09-26
Author: euihyun.dev@gmail.com
File Name: libs/labelFile.py
Class Name: LabelFile
Method Name: savePascalVocFormat


Project Name: PetrochukM/PyTorch-NLP
Commit Name: 1d046b78b5429d48370461d277b51b682f0fe632
Time: 2018-04-24
Author: florian.joh.schaefer@gmail.com
File Name: torchnlp/text_encoders/spacy_encoder.py
Class Name: SpacyEncoder
Method Name: __init__


Project Name: tzutalin/labelImg
Commit Name: 058d7a7e80ecf09c0825d02911e873d3272fff5a
Time: 2020-09-26
Author: euihyun.dev@gmail.com
File Name: libs/labelFile.py
Class Name: LabelFile
Method Name: saveYoloFormat


Project Name: keras-team/autokeras
Commit Name: 4fb281b7f9f5e549e29addd5641eac007c5ed385
Time: 2019-02-09
Author: jhfjhfj1@gmail.com
File Name: autokeras/pretrained/face_detector.py
Class Name: FaceDetector
Method Name: __init__