Skip to content

Instantly share code, notes, and snippets.

@euclidr
euclidr / detect_vertical_edges.py
Last active Apr 25, 2021
找出图片中的竖线边界
View detect_vertical_edges.py
# -*- coding: utf-8 -*-
import cv2
def detect_vertical_edges(cv_img) -> list:
"""找出图片中的竖线边界"""
if isinstance(cv_img, str):
cv_img = cv2.imread(cv_img)
@euclidr
euclidr / master_template.j2
Last active May 26, 2019
jinja2 master template for web page
View master_template.j2
<!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">