Skip to content

Instantly share code, notes, and snippets.

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">
<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">
euclidr /
Last active Apr 25, 2021
# -*- coding: utf-8 -*-
import cv2
def detect_vertical_edges(cv_img) -> list:
if isinstance(cv_img, str):
cv_img = cv2.imread(cv_img)