Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sanster/text_renderer
/ functions
Functions
135 in github.com/Sanster/text_renderer
⨍
Functions
135
◇
Types & classes
17
Method
apply
: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
Method
apply_gauss_noise
Gaussian-distributed additive noise.
textrenderer/noiser.py:40
Method
apply_middle_line
(self, word_img, text_box_pnts, line_color)
textrenderer/liner.py:184
Method
apply_poisson_noise
Poisson-distributed noise generated from the data.
textrenderer/noiser.py:83
Method
apply_random_over
(self, word_img, text_box_pnts, line_color)
textrenderer/liner.py:198
Method
apply_sp_noise
Salt and pepper noise. Replaces random pixels with 0 or 255.
textrenderer/noiser.py:63
Method
apply_table_line
共有 8 种可能的画法,横线横穿整张 word_img 0/1/2/3: 仅单边(左上右下) 4/5/6/7: 两边都有线(左上,右上,右下,左下)
textrenderer/liner.py:107
Method
apply_under_line
(self, word_img, text_box_pnts, line_color)
textrenderer/liner.py:92
Method
apply_uniform_noise
Apply zero-mean uniform noise
textrenderer/noiser.py:52
Function
cliped_rand_norm
:param mu: 均值 :param sigma3: 3 倍标准差, 99% 的数据落在 (mu-3*sigma, mu+3*sigma) :return:
libs/math_utils.py:43
Method
deallocate
libs/gpu/pyopencv_converter.cpp:135
Function
generate_img
(img_index, q=None)
main.py:82
Function
get_font_paths_from_list
(list_filename)
libs/font_utils.py:29
Function
get_platform
()
libs/utils.py:131
Method
get_sample
(self, img_index)
textrenderer/corpus/eng_corpus.py:28
Method
get_sample
(self, img_index)
textrenderer/corpus/random_corpus.py:14
Method
get_sample
(self, img_index)
textrenderer/corpus/chn_corpus.py:41
Method
get_sample
(self, img_index)
textrenderer/corpus/list_corpus.py:23
Function
get_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
Method
is_bottom
()
textrenderer/liner.py:125
Method
is_left
()
textrenderer/liner.py:128
Method
is_right
()
textrenderer/liner.py:131
Method
is_top
()
textrenderer/liner.py:122
Method
load
(self)
textrenderer/corpus/eng_corpus.py:10
Method
load
(self)
textrenderer/corpus/random_corpus.py:11
Method
load
Load one corpus file as one line , and get random {self.length} words as result
textrenderer/corpus/chn_corpus.py:8
Method
load
(self)
textrenderer/corpus/list_corpus.py:10
Function
load_bgs
(bg_dir)
libs/utils.py:79
Function
pyopencv_from
libs/gpu/pyopencv_converter.cpp:354
Function
pyopencv_to
special case, when the convertor needs full ArgInfo structure
libs/gpu/pyopencv_converter.cpp:168
Function
start_listen
listens for messages on the q, writes to file.
main.py:53
Function
viz_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
← previous
101–135 of 135, ranked by callers