fromsrc.captchaimportTextSelectCaptcha# python代码使用"""per_path: 为孪生网络模型文件路径yolo_path: 为目标检测模型文件路径sign: sign为True传入加密后的模型bin文件,为Flase传入onnx文件"""cap=TextSelectCaptcha(per_path='pre_model_v2.bin',yolo_path='best_v2.bin',sign=True)image_path="docs/res...
class TextSelectCaptcha(object): def __init__(self, per_path='pre_model_v2.bin', yolo_path='best_v2.bin', sign=True): """ :param per_path: 识别模型文件路径 :param yolo_path: 检测模型文件路径 :param sign: 传入状态判断 """ per_path = path(save_path, per_path) yolo_path = ...