e047bcec68ebf51feaf0dc8f9e9d81b4db87baf2,TextRecognitionDataGenerator/computer_text_generator.py,ComputerTextGenerator,generate,#,11
Before Change
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]),
random.randint(c1[1], c2[1]),
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
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: luispedro/mahotas
Commit Name: f3baee485dbea5e2dab06273d6ffe81dd4d1bfe5
Time: 2010-09-07
Author: lpc@cmu.edu
File Name: mahotas/freeimage.py
Class Name:
Method Name:
Project Name: deepinsight/insightface
Commit Name: fd10b74b45692e53047149cb4d526067845b4a7d
Time: 2020-11-06
Author: guojia@gmail.com
File Name: deploy/test.py
Class Name:
Method Name:
Project Name: developmentseed/label-maker
Commit Name: 2edd1fe70a43b5b646662ef6603f579275141fae
Time: 2018-01-30
Author: geospatialanalystyi@gmail.com
File Name: examples/utils/tf_records_generation.py
Class Name:
Method Name: main
Project Name: enthought/chaco
Commit Name: cdf8e1bc60166a3fb8ef7483636ea1094ffe03ab
Time: 2016-04-03
Author: rahul.poruri@gmail.com
File Name: docs/source/conf.py
Class Name:
Method Name: