随笔分类 -  文本检测

摘要:随机添加光点 class halo(): """ u:高斯分布的均值 sigma:方差 nums:在一张图片中随机添加几个光点 prob:使用halo的概率 """ def __init__(self,nums,u=0,sigma=0.2,prob=0.5): self.u=u#均值 self.si 阅读全文
posted @ 2021-11-11 21:15 Tsukinousag1 阅读(90) 评论(0) 推荐(0)
摘要:pil=Image.open('D:/100.jpg').convert('L') #PIL image转换为array img1=np.asarray(img) #修改图片的读取格式 img1.flags.writeable=True #将数组改写为读写模式 img1=img1.astype(np 阅读全文
posted @ 2021-11-11 21:09 Tsukinousag1 阅读(234) 评论(0) 推荐(0)
摘要:1. 双向LSTM net:[in,hidden,out] [256,256,10] input:[w,h,in] [16,16,256] output:[w,h,out] [16,16,10] class BidirectionalLSTM(nn.Module): def __init__(sel 阅读全文
posted @ 2021-11-08 16:22 Tsukinousag1 阅读(139) 评论(0) 推荐(0)