资源简介
opencv3.4+contrib模块源码编译好的安装包,包含脸部识别的各个模块
代码片段和文件信息
# -*- coding: utf-8 -*-
“““
jinja2.bccache
~~~~~~~~~~~~~~
This module implements the bytecode cache system Jinja is optionally
using. This is useful if you have very complex template situations and
the compiliation of all those templates slow down your application too
much.
Situations where this is useful are often forking web applications that
are initialized on the first request.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD.
“““
from os import path listdir
import sys
import marshal
import tempfile
import fnmatch
from hashlib import sha1
from jinja2.utils import open_if_exists
from jinja2._compat import BytesIO pickle PY2 text_type
# marshal works better on 3.x one hack less required
if not PY2:
marshal_dump = marshal.dump
marshal_load = marshal.load
else:
def marshal_dump(code f):
if isinstance(f file):
marshal.dump(code f)
else:
f.write(marshal.dumps(code))
def marshal_load(f):
if isinstance(f file):
return marshal.load(f)
return marshal.loads(f.read())
bc_version = 2
# magic version used to only change with new jinja versions. With 2.6
# we change this to also take Python version changes into account. The
# reason for this is that Python tends to segfault if fed earlier bytecode
# versions because someone thought it would be a good idea to reuse opcodes
# or make Python incompatible with earlier versions.
bc_magic = ‘j2‘.encode(‘ascii‘) + \
pickle.dumps(bc_version 2) + \
pickle.dumps((sys.version_info[0] << 24) | sys.version_info[1])
class Bucket(object):
“““Buckets are used to store the bytecode for one template. It‘s created
and initialized by the bytecode cache and passed to the loading functions.
The buckets get an internal checksum from the cache assigned and use this
to automatically reject outdated cache material. Individual bytecode
cache subclasses don‘t have to care about cache invalidation.
“““
def __init__(self environment key checksum):
self.environment = environment
self.key = key
self.checksum = checksum
self.reset()
def reset(self):
“““Resets the bucket (unloads the bytecode).“““
self.code = None
def load_bytecode(self f):
“““Loads bytecode from a file or file like object.“““
# make sure the magic header is correct
magic = f.read(len(bc_magic))
if magic != bc_magic:
self.reset()
return
# the source code of the file changed we need to reload
checksum = pickle.load(f)
if self.checksum != checksum:
self.reset()
return
self.code = marshal_load(f)
def write_bytecode(self f):
“““Dump the bytecode into the file or file like object passed.“““
if self.code is None:
raise TypeError(‘can\‘t write empty bucket‘)
f.write(bc_magic)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 103936 2018-01-15 13:42 opencv\build\bin\opencv_waldboost_detectord.exe
文件 341406 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_eye.xm
文件 601661 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_eye_tree_eyeglasses.xm
文件 411388 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_frontalcatface.xm
文件 382918 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_frontalcatface_extended.xm
文件 676709 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_frontalface_alt.xm
文件 540616 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_frontalface_alt2.xm
文件 2689040 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_frontalface_alt_tree.xm
文件 930127 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_frontalface_default.xm
文件 476825 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_fullbody.xm
文件 195369 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_lefteye_2splits.xm
文件 47775 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_licence_plate_rus_16stages.xm
文件 395320 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_lowerbody.xm
文件 828514 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_profileface.xm
文件 196170 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_righteye_2splits.xm
文件 75482 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_russian_plate_number.xm
文件 188506 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_smile.xm
文件 785817 2018-01-13 12:31 opencv\build\etc\haarcascades\haarcascade_upperbody.xm
文件 138705 2018-01-13 12:31 opencv\build\etc\lbpcascades\lbpcascade_frontalcatface.xm
文件 51856 2018-01-13 12:31 opencv\build\etc\lbpcascades\lbpcascade_frontalface.xm
文件 54039 2018-01-13 12:31 opencv\build\etc\lbpcascades\lbpcascade_frontalface_improved.xm
文件 47015 2018-01-13 12:31 opencv\build\etc\lbpcascades\lbpcascade_profileface.xm
文件 47027 2018-01-13 12:31 opencv\build\etc\lbpcascades\lbpcascade_silverware.xm
文件 3153 2018-01-13 12:31 opencv\build\include\opencv\cv.h
文件 2649 2018-01-13 12:31 opencv\build\include\opencv\cv.hpp
文件 2523 2018-01-13 12:31 opencv\build\include\opencv\cvaux.h
文件 2374 2018-01-13 12:31 opencv\build\include\opencv\cvaux.hpp
文件 2176 2018-01-13 12:31 opencv\build\include\opencv\cvwimage.h
文件 2424 2018-01-13 12:31 opencv\build\include\opencv\cxcore.h
文件 2443 2018-01-13 12:31 opencv\build\include\opencv\cxcore.hpp
............此处省略6082个文件信息
相关资源
- OpenCV计算机视觉编程攻略第3版.pdf源码
- opencv contrib (Extra modules) 用cmake 生成
- OpenCV3.4.4 源代码
- opencv学习资源.zip
- 基于OPENCV的车牌识别系统源码
- 自己写的QT图像处理系统打包的过程可
- opencv2.3.0
- opencv3编程入门毛星宇
- OpenCV3编程入门(完整版).pdf+代码
- opencv-2.4.11
- 学习OpenCV3
- OpenCV几包计数
- 用OpenCV对图像中圆的检测以及拟合
- 投影互动软件非源代码
- opencv运行SSD目标检测
- 基于OpenCV的车牌定位+车牌识别+车牌号
- opencv3.4+opencv_contrib-3.4.0+VS2017+WIN10
- opencv-3.2.0.zip
- opencv3.4与opencv_contrib联合编译生成库
- 本人自己搭建的QScarletNinjaSystem软件,
- 学习OpenCV3(英) 超清带书签PDF版 带
- ippicv_linux_20151201.tgz+ippicv_linux_2014051
- win32平台的opencv4.0.0-beta
- 《OpenCV图像处理编程》李立宗著
- OpenCV4.0 cmake后生成的库文件,包含c
- opencv-dnn使用Caffe训练的model进行手写数
- opencv-3.2.0.tar.gz
- opencv_3rdparty中所有ffmpeg库
- opencv教材书籍与源代码
- 基于qt5.1.1与opencv2.4.7车牌字符切割与
评论
共有 条评论