MCPcopy Create free account

hub / github.com/WenmuZhou/OCR_DataSet / functions

Functions60 in github.com/WenmuZhou/OCR_DataSet

↓ 16 callersFunctionload
(file_path: str)
convert/utils.py:30
↓ 16 callersFunctionsave
(data, file_path)
convert/utils.py:49
↓ 7 callersFunctionget_file_list
获取所给文件目录里的指定后缀的文件,读取文件列表目前使用的是 os.walk 和 os.listdir ,这两个目前比 pathlib 快很多 :param filder_path: 文件夹名称 :param p_postfix: 文件后缀,如果为 [.*]将返回全部文件
convert/utils.py:13
↓ 5 callersMethodgetImgIds
Get img ids that satisfy given filter conditions. :param imgIds (int array) : get imgs for given ids :param catIds (int array
convert/det/coco_text.py:130
↓ 4 callersFunctionload_gt
从json文件中读取出 文本行的坐标和gt,字符的坐标和gt :param json_path: :return:
convert/utils.py:102
↓ 2 callersMethodgetAnnByCat
Get ann ids that satisfy given properties :param properties (list of tuples of the form [(category type, category)] e.g., [('readabil
convert/det/coco_text.py:98
↓ 2 callersMethodgetAnnIds
Get ann ids that satisfy given filter conditions. default skips that filter :param imgIds (int array) : get anns for given imgs
convert/det/coco_text.py:107
↓ 2 callersMethodloadAnns
Load anns with the specified ids. :param ids (int array) : integer ids specifying anns :return: anns (object array) : l
convert/det/coco_text.py:148
↓ 2 callersMethodloadImgs
Load anns with the specified ids. :param ids (int array) : integer ids specifying img :return: imgs (object array) : lo
convert/det/coco_text.py:159
↓ 2 callersFunctionshow_bbox_on_image
在图片上绘制 文本框和文本 :param image: :param polygons: 文本框 :param txt: 文本 :param color: 绘制的颜色 :param font_path: 字体 :return:
convert/utils.py:74
↓ 2 callersFunctionwriteCache
(env, cache)
dataset/convert_det2lmdb.py:31
↓ 1 callersMethod__len__
(self)
dataset/rec.py:33
↓ 1 callersFunctioncheckImageIsValid
(imageBin)
dataset/convert_det2lmdb.py:14
↓ 1 callersFunctioncreateDataset
Create LMDB dataset for CRNN training. ARGS: outputPath : LMDB output path data_dict : a dict contains img_path,texts,tex
dataset/convert_det2lmdb.py:41
↓ 1 callersMethodcreateIndex
(self)
convert/det/coco_text.py:75
↓ 1 callersFunctioncrop
(save_gt_path, json_path, save_path)
convert/crop_rec.py:93
↓ 1 callersFunctioncvt
(gt_path, save_path, img_folder)
convert/rec/mjsyhtn2txt.py:12
↓ 1 callersFunctioncvt
(gt_path, save_path, img_folder)
convert/rec/360w2txt.py:15
↓ 1 callersFunctioncvt
(gt_path, save_path, img_folder)
convert/rec/baidu2txt.py:15
↓ 1 callersFunctioncvt
将icdar2015格式的gt转换为json格式 :param gt_path: :param save_path: :return:
convert/det/icdar2017rctw2json.py:12
↓ 1 callersFunctioncvt
将icdar2015格式的gt转换为json格式 :param gt_path: :param save_path: :return:
convert/det/MTWI20182json.py:12
↓ 1 callersFunctioncvt
将icdar2015格式的gt转换为json格式 :param gt_path: :param save_path: :return:
convert/det/mlt20192json.py:13
↓ 1 callersFunctioncvt
将icdar2015格式的gt转换为json格式 :param gt_path: :param save_path: :return:
convert/det/RcCTS2json.py:24
↓ 1 callersFunctioncvt
将icdar2015格式的gt转换为json格式 :param gt_path: :param save_path: :return:
convert/det/icdar20152json.py:12
↓ 1 callersFunctioncvt
(gt_path, save_path, imgs_folder)
convert/det/iflytek_text_detection.py:9
↓ 1 callersFunctioncvt
将icdar2015格式的gt转换为json格式 :param gt_path: :param save_path: :return:
convert/det/LSVT2json.py:12
↓ 1 callersFunctioncvt
(gt_path, save_path, imgs_folder)
convert/det/coco_text2json.py:13
↓ 1 callersFunctioncvt
将icdar2015格式的gt转换为json格式 :param gt_path: :param save_path: :return:
convert/det/SROIE2json.py:12
↓ 1 callersMethodcvt
(self)
convert/det/SynthText800k2json.py:29
↓ 1 callersFunctioncvt_det
将icdar2015格式的gt转换为json格式 :param gt_path: :param save_path: :return:
convert/det/ArtS2json.py:12
↓ 1 callersFunctiondecode_chars
(char_list)
convert/det/RcCTS2json.py:13
↓ 1 callersMethodfiltering
(self, filterDict, criteria)
convert/det/coco_text.py:95
↓ 1 callersFunctionfour_point_transform
(image, pts)
convert/crop_rec.py:38
↓ 1 callersMethodload_data
从json文件中读取出 文本行的坐标和gt,字符的坐标和gt :param json_path: :return:
dataset/det.py:21
↓ 1 callersMethodmake_label
(self, item_dict)
dataset/det.py:69
↓ 1 callersMethodmake_label
(self, label)
dataset/rec.py:36
↓ 1 callersFunctionoriginal_coordinate_transformation
调整坐标顺序为: x1,y1 x2,y2 x4,y4 x3,y3 :param polygon: :return:
convert/crop_rec.py:69
↓ 1 callersMethodpre_processing
(self, item_dict)
dataset/det.py:72
↓ 1 callersMethodpre_processing
(self, img)
dataset/rec.py:39
↓ 1 callersMethodshowAnns
Display the specified annotations. :param anns (array of object): annotations to display :return: None
convert/det/coco_text.py:170
Method__getitem__
(self, item)
dataset/det.py:54
Method__getitem__
(self, index)
dataset/det_lmdb.py:30
Method__getitem__
(self, item)
dataset/rec.py:18
Method__init__
(self, json_path, transform=None, target_transform=None)
dataset/det.py:16
Method__init__
(self, lmdb_path=None, transform=None, target_transform=None)
dataset/det_lmdb.py:13
Method__init__
(self, txt_path, transform=None, target_transform=None)
dataset/rec.py:13
Method__init__
(self, img_folder: str, gt_path: str)
convert/det/SynthText800k2json.py:13
Method__init__
Constructor of COCO-Text helper class for reading and visualizing annotations. :param annotation_file (str): location of annotation f
convert/det/coco_text.py:50
Method__len__
(self)
dataset/det.py:66
Method__len__
(self)
dataset/det_lmdb.py:27
Functioncvt_rec
(gt_path, save_path, img_folder)
convert/det/ArtS2json.py:39
Methodinfo
Print information about the annotation file. :return:
convert/det/coco_text.py:87
MethodloadRes
Load result file and return a result api object. :param resFile (str) : file name of result file :return: res (obj)
convert/det/coco_text.py:200
Functionload_json
(file_path: str)
convert/utils.py:43
Functionload_txt
(file_path: str)
convert/utils.py:37
Functionorder_points
(pts)
convert/crop_rec.py:24
Functionsave_json
(data, file_path)
convert/utils.py:69
Functionsave_txt
将一个list的数组写入txt文件里 :param data: :param file_path: :return:
convert/utils.py:56
Functionshow_coco
(gt_path, imgs_folder)
convert/det/coco_text2json.py:48
Functionshow_demo
(demo_number, image_path_list, label_list)
dataset/convert_det2lmdb.py:95