MCPcopy Create free account

hub / github.com/Sanster/text_renderer / functions

Functions135 in github.com/Sanster/text_renderer

Methodapply
:param word_img: word image with big background :param text_box_pnts: left-top, right-top, right-bottom, left-bottom of text word
textrenderer/remaper.py:10
Methodapply_gauss_noise
Gaussian-distributed additive noise.
textrenderer/noiser.py:40
Methodapply_middle_line
(self, word_img, text_box_pnts, line_color)
textrenderer/liner.py:184
Methodapply_poisson_noise
Poisson-distributed noise generated from the data.
textrenderer/noiser.py:83
Methodapply_random_over
(self, word_img, text_box_pnts, line_color)
textrenderer/liner.py:198
Methodapply_sp_noise
Salt and pepper noise. Replaces random pixels with 0 or 255.
textrenderer/noiser.py:63
Methodapply_table_line
共有 8 种可能的画法,横线横穿整张 word_img 0/1/2/3: 仅单边(左上右下) 4/5/6/7: 两边都有线(左上,右上,右下,左下)
textrenderer/liner.py:107
Methodapply_under_line
(self, word_img, text_box_pnts, line_color)
textrenderer/liner.py:92
Methodapply_uniform_noise
Apply zero-mean uniform noise
textrenderer/noiser.py:52
Functioncliped_rand_norm
:param mu: 均值 :param sigma3: 3 倍标准差, 99% 的数据落在 (mu-3*sigma, mu+3*sigma) :return:
libs/math_utils.py:43
Methoddeallocate
libs/gpu/pyopencv_converter.cpp:135
Functiongenerate_img
(img_index, q=None)
main.py:82
Functionget_font_paths_from_list
(list_filename)
libs/font_utils.py:29
Functionget_platform
()
libs/utils.py:131
Methodget_sample
(self, img_index)
textrenderer/corpus/eng_corpus.py:28
Methodget_sample
(self, img_index)
textrenderer/corpus/random_corpus.py:14
Methodget_sample
(self, img_index)
textrenderer/corpus/chn_corpus.py:41
Methodget_sample
(self, img_index)
textrenderer/corpus/list_corpus.py:23
Functionget_unsupported_chars
Get fonts unsupported chars by loads/saves font supported chars from cache file :param fonts: :param chars_file: :return: dict
libs/font_utils.py:128
Methodis_bottom
()
textrenderer/liner.py:125
Methodis_left
()
textrenderer/liner.py:128
Methodis_right
()
textrenderer/liner.py:131
Methodis_top
()
textrenderer/liner.py:122
Methodload
(self)
textrenderer/corpus/eng_corpus.py:10
Methodload
(self)
textrenderer/corpus/random_corpus.py:11
Methodload
Load one corpus file as one line , and get random {self.length} words as result
textrenderer/corpus/chn_corpus.py:8
Methodload
(self)
textrenderer/corpus/list_corpus.py:10
Functionload_bgs
(bg_dir)
libs/utils.py:79
Functionpyopencv_from
libs/gpu/pyopencv_converter.cpp:354
Functionpyopencv_to
special case, when the convertor needs full ArgInfo structure
libs/gpu/pyopencv_converter.cpp:168
Functionstart_listen
listens for messages on the q, writes to file.
main.py:53
Functionviz_img
text_im : image containing text
libs/utils.py:14
Method~NumpyAllocator
libs/gpu/pyopencv_converter.cpp:86
Method~PyAllowThreads
libs/gpu/pyopencv_converter.cpp:42
Method~PyEnsureGIL
libs/gpu/pyopencv_converter.cpp:54
← previous101–135 of 135, ranked by callers