e047bcec68ebf51feaf0dc8f9e9d81b4db87baf2,TextRecognitionDataGenerator/computer_text_generator.py,ComputerTextGenerator,generate,#Any#Any#Any#Any#Any#,11

Before Change



        txt_draw = ImageDraw.Draw(txt_img)

        fill = random.randint(text_color[0], text_color[-1])

        txt_draw.text((0, 0), text, fill=(fill, fill, fill), font=image_font)

        return txt_img

After Change



        txt_draw = ImageDraw.Draw(txt_img)

        colors = [ImageColor.getrgb(c) for c in text_color.split(",")]
        c1, c2 = colors[0], colors[-1]

        fill = (
            random.randint(c1[0], c2[0]),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: Belval/TextRecognitionDataGenerator
Commit Name: e047bcec68ebf51feaf0dc8f9e9d81b4db87baf2
Time: 2018-10-23
Author: edouard@belval.org
File Name: TextRecognitionDataGenerator/computer_text_generator.py
Class Name: ComputerTextGenerator
Method Name: generate


Project Name: SheffieldML/GPy
Commit Name: 336f8e11c48bb4e749b9f389907c450e44f02786
Time: 2013-10-28
Author: alan.daniel.saul@gmail.com
File Name: GPy/examples/regression.py
Class Name:
Method Name: toy_poisson_rbf_1d


Project Name: SheffieldML/GPy
Commit Name: 336f8e11c48bb4e749b9f389907c450e44f02786
Time: 2013-10-28
Author: alan.daniel.saul@gmail.com
File Name: GPy/examples/regression.py
Class Name:
Method Name: toy_poisson_rbf_1d_laplace