资源简介
opencv 3.1.0 源码,github上下载来的,鉴于github速度太慢,特发布,只是不能选0分。
代码片段和文件信息
# -*- 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)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-12-18 15:02 opencv\
文件 33 2015-12-18 15:02 opencv\.tgitconfig
目录 0 2015-12-18 15:02 opencv\3rdparty\
目录 0 2015-12-18 15:02 opencv\3rdparty\ffmpeg\
文件 1147 2015-12-18 15:02 opencv\3rdparty\ffmpeg\ffmpeg.cmake
文件 27393 2015-12-18 15:02 opencv\3rdparty\ffmpeg\license.txt
文件 2459 2015-12-18 15:02 opencv\3rdparty\ffmpeg\readme.txt
目录 0 2015-12-18 15:02 opencv\3rdparty\include\
目录 0 2015-12-18 15:02 opencv\3rdparty\include\dshow\
文件 2935 2015-12-18 15:02 opencv\3rdparty\include\dshow\_mingw_dxhelper.h
文件 1210 2015-12-18 15:02 opencv\3rdparty\include\dshow\_mingw_unicode.h
文件 43517 2015-12-18 15:02 opencv\3rdparty\include\dshow\amvideo.h
文件 643 2015-12-18 15:02 opencv\3rdparty\include\dshow\audevcod.h
文件 627 2015-12-18 15:02 opencv\3rdparty\include\dshow\bdatypes.h
文件 114687 2015-12-18 15:02 opencv\3rdparty\include\dshow\control.h
文件 159533 2015-12-18 15:02 opencv\3rdparty\include\dshow\ddraw.h
文件 1628 2015-12-18 15:02 opencv\3rdparty\include\dshow\dshow.h
文件 60937 2015-12-18 15:02 opencv\3rdparty\include\dshow\dsound.h
文件 2156 2015-12-18 15:02 opencv\3rdparty\include\dshow\dvdmedia.h
文件 6579 2015-12-18 15:02 opencv\3rdparty\include\dshow\errors.h
文件 1920 2015-12-18 15:02 opencv\3rdparty\include\dshow\evcode.h
文件 7477 2015-12-18 15:02 opencv\3rdparty\include\dshow\ksuuids.h
文件 626764 2015-12-18 15:02 opencv\3rdparty\include\dshow\strmif.h
文件 36338 2015-12-18 15:02 opencv\3rdparty\include\dshow\uuids.h
文件 7869 2015-12-18 15:02 opencv\3rdparty\include\msc_inttypes.h
文件 6892 2015-12-18 15:02 opencv\3rdparty\include\msc_stdint.h
目录 0 2015-12-18 15:02 opencv\3rdparty\include\opencl\
目录 0 2015-12-18 15:02 opencv\3rdparty\include\opencl\1.2\
目录 0 2015-12-18 15:02 opencv\3rdparty\include\opencl\1.2\CL\
文件 61545 2015-12-18 15:02 opencv\3rdparty\include\opencl\1.2\CL\cl.h
文件 277159 2015-12-18 15:02 opencv\3rdparty\include\opencl\1.2\CL\cl.hpp
............此处省略5645个文件信息
相关资源
- face_landmark_model.dat
- 算法设计 智能剪刀算法 opencv
- 学习OpenCV必备书籍5本中文版
- opencv4.1-build-X64-debug.zip
- resnet50_weights_tf_dim_ordering_tf_kernels.h5
- caffe+opencv+dilb 在vs上配置
- apache-activemq-5.13.1-bin.tar.gz
- HJ独立版3.1.3.zip
- opencv dnn模块的demo
- arcgis js api v3.18官方包 - 201610月最新
- mingw64+opencv.zip
- cmderFull 1.3.1
- 使用OpenCV人头检测
- opencv3.4.1完整资源
- 开心音乐随心听千千音乐随心听 v3.
- Ultra Librarian 8.3.122
- 编译OpenCV3.4.1x86版本 +contrib+vs2017x64
- 基于VC+opencv的人脸识别识别出五官
- OPENCV函数学习手册.pdf
- 《深入理解OpenCV实用计算机视觉项目
- opencv3.4+contrib模块编译好的安装包
- OpenCV计算机视觉编程攻略第3版.pdf源码
- opencv contrib (Extra modules) 用cmake 生成
- OpenCV3.4.4 源代码
- opencv学习资源.zip
- Trimble Scan Explorer Extension Setup 1.3.1.19
- HJ独立版3.1.26.zip
- HJ独立版3.1.18.zip
- 基于OPENCV的车牌识别系统源码
- 自己写的QT图像处理系统打包的过程可
评论
共有 条评论