指静脉处理综合代码(orz)

from PIL.Image import open as ImOpen,fromarray,BILINEAR
from numpy import *
from scipy.sparse import *
from scipy.signal import *
from skimage.filters import threshold_niblack
from matplotlib.pyplot import *
import cv2
from skimage import morphology
import imagehash
from MySQLdb.connections import *
import wx

# 建立fvrt数据库中的image表
# CREATE TABLE if NOT EXISTS image ( id int unsigned primary key auto_increment,imname text NOT NULL,imdata longtext NOT NULL,
# imcount INT NOT NULL,KEY(imname(15)))character set = utf8;
# 指静脉图像预处理


class FVRT:

    # 初始化各系数

    # 变换后的宽
    WIDTH = 75

    # 变换后的高
    HEIGHT = 170

    # 灰度放大系数
    THREFACTOR = 4

    # 隶属度分割界限
    THREGRAY = 0.3

    # 迭代次数
    ITER = 3

    # Niblack模板边长
    SIDELENGTH = 11

    # 补偿权值
    THREK = 0.05

    # 开运算模板边长
    OPENSIDE = 3

    # 闭运算模板边长
    CLOSEDSIDE = 3

    # 中值滤波模板边长
    BLURSIDE = 5

    # 圈定面积
    MINSIZE = 20

    # 输入原始图

你可能感兴趣的:(指静脉识别,python,numpy,开发语言)