Skip to content

Instantly share code, notes, and snippets.

@euclidr
euclidr / detect_vertical_edges.py
Last active April 25, 2021 02:03
找出图片中的竖线边界
# -*- 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 05:51
jinja2 master template for web page
<!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">