ctpnport.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:sceneReco 作者: bear63 项目源码 文件源码
def ctpnSource():
    DEMO_IMAGE_DIR = "img/"
    NET_DEF_FILE = "CTPN/models/deploy.prototxt"
    MODEL_FILE = "CTPN/models/ctpn_trained_model.caffemodel"
    caffe.set_mode_gpu()
    caffe.set_device(cfg.TEST_GPU_ID)
    # initialize the detectors
    text_proposals_detector = TextProposalDetector(CaffeModel(NET_DEF_FILE, MODEL_FILE))
    text_detector = TextDetector(text_proposals_detector)
    return text_detector
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号