This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="zh-CN"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/> | |
<meta name="apple-touch-fullscreen" content="yes" /> | |
<meta name="format-detection" content="telephone=no"/> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import cv2 | |
def detect_vertical_edges(cv_img) -> list: | |
"""找出图片中的竖线边界""" | |
if isinstance(cv_img, str): | |
cv_img = cv2.imread(cv_img) |