# -*- coding: UTF-8 -*-
## https://github.com/s9xie/hed.git
## http://vcl.ucsd.edu/hed/hed_pretrained_bsds.caffemodel
## https://github.com/opencv/opencv/blob/master/samples/dnn/edge_detection.py
## https://github.com/opencv/opencv.git
import cv2
import argparse
parser = argparse.ArgumentParser(
description='This sample shows how to define custom OpenCV deep learning layers in Python. '
'Holistically-Nested Edge Detection (https://arxiv.org/abs/1504.06375) neural network '
'is used as an example model. Find a pre-trained model at https://github.com/s9xie/hed.')
parser.add_argument('--input', help='Path to image or video. Skip to capture frames from camera', default='image.jpg')
parser.add_argument('--prototxt', help='Path to deploy.prototxt', default='deploy.prototxt')
parser.add_argument('--caffemodel', help='Path to hed_pretrained_bsds.caffemodel', default='hed_pretrained_bsds.caffemodel
图片边缘检测
最新推荐文章于 2024-09-03 21:30:39 发布