jiaying
Results
2
comments of
jiaying
`def generate(self,text): fg = self.draw(text.decode(encoding="utf-8")) com = cv2.bitwise_and(fg,self.bg) com = rot(com,r(60)-30,com.shape,30); com = rotRandrom(com,10,(com.shape[1],com.shape[0])); com = tfactor(com) com = random_envirment(com,self.noplates_path); com = AddGauss(com, 1+r(4)); com = addNoise(com); return com `