一个简易的人证匹配系统
在Web文件下:python websteaming.py
- 上传自己的身份证图片:选择文件→确认上传
- 点击开始:打开摄像头,若检测到结果则会出现“查看结果”按钮,点击即可查看结果
ID: 身份证卡号
name: 姓名
sex: 男/女
nation: 民族
birth: 生日(如:1984年10月1日)
cardImg: 图片保存为二进制流格式
cardImgHeight: 图片高(用来恢复图像)
cardImgWidth: 图片宽
the example of insert data:
==> sqText = "insert into user(ID, name, sex, nation, birth, address, cardImg, cardImgHeight, cardImgWidth) values(?, ?, ?, ?, ?, ?, ?, ?, ?);"
==> cursor.execute(sqText, ('111111111111111111', '张三', '男', '汉族', '1984年10月1日', '重庆市xxx', img_blob, img.shape[0], img.shape[1]))