提交 51d771ce 编写于 作者: 张欣-男's avatar 张欣-男

import random放到脚本 开始

上级 2925aeb4
......@@ -23,6 +23,7 @@ from PIL import Image, ImageDraw, ImageFont
import math
from paddle import inference
import time
import random
from ppocr.utils.logging import get_logger
......@@ -404,7 +405,6 @@ def draw_ocr_box_txt(image,
h, w = image.height, image.width
img_left = image.copy()
img_right = np.ones((h, w, 3), dtype=np.uint8) * 255
import random
random.seed(0)
draw_left = ImageDraw.Draw(img_left)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册