一个用于虹膜识别的python包。

G6-iris-recognition的Python项目详细描述


Gate6虹膜识别软件包

g6虹膜识别是一个用于眼睛虹膜识别的模块。

安装软件包模块之前需要安装

   python 
   numpy
   opencv-python
   matplotlib
   opencv-contrib-python
   requests
   scikit-image
   scipy
   imutils==0.5.2
  • 在该目录中创建encodingmodel目录在项目文件夹(encodingmodel/irisencodings.pickle)中创建文件名irisencodings.pickle。
  • 在该目录中创建一个输入数据库目录,将人眼虹膜图像放在人名目录下。
    Project/
    ├── encodingModel/
    │   ├── irisEncodings.pickle/                               # train model| 
    ├── Input_database/ 
    │   ├── person1 name/                                       # person1 directory|   │   ├── eye iris images of person1 /                    # images of person eye iris
    │   ├── person2 name/                                       # person2 directory|   │   ├── eye iris images of person2 /                    # images of person eye iris
    │   ├── person3 name/                                       # person3 directory|   │   ├── eye iris images of person3 /                    # images of person eye iris                   

安装

-安装python

WindowsMacLinux

-使用pip:安装包模块
  $ pip install -i https://test.pypi.org/simple/ G6-iris-recognition

运行项目

配置完项目的所有设置后,就可以运行项目了。开始导入G6_虹膜识别模块。

   import G6_iris_recognition

导入后,需要对现有图像进行训练并在开始时创建编码模块:

   G6_iris_recognition.iris_model_train(train_database_path,train_encoding_model_path)train_database_path===>  Input_database/
   train_encoding_model_path===>  encodingModel/irisEncodings.pickle

一旦模型经过训练,就可以用实时图像进行测试:

iris_name= G6_iris_recognition.iris_model_test(test_encoding_model_path,real_time_image_path)test_encoding_model_path===>  encodingModel/irisEncodings.pickle
   real_time_image_path===>  real-time_image_path
   iris_name===>  it returns predicted person name if image matches with trained image model person image &if not then it returns name as unmatch.

要求:

  • 需要扫描仪提供更清晰的图像。
  • 图像不应在阳光直射下拍摄。
  • 人不应该在眼睛扫描时使用玻璃或透镜。
  • 所有扫描图像的形状/大小必须相同(如-320x240)。
  • 根据图像大小和质量/噪声,需要根据改变滤波器参数。
  • 90%以上的虹膜需要从扫描仪上采集图像。
  • 需要至少5个清晰的图像来训练一个模型。
  • 在所有这些完成后,设置汉明距离阈值进行识别。

支架

如果您在配置或使用Gate6虹膜识别软件包时遇到任何问题,请按照上述说明进行。请随时与gate6虹膜识别软件包开发团队联系。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java JTable无法向新创建的列添加值   java如何调整JEditorPane中编辑区域的大小?   Java通过反射确定未知数组中的数组大小   java Intellij Idea有时无法按其预期的方式构建应用程序   java Swing GUI带有IntelliJ错误“contentPane不能设置为null”从终端编译时   如何将这些通用方法调用从C#转换为Java   在null上找不到java属性或字段“index”   从Java HashMap获取整数值时是否需要调用intValue()方法?   java Android谷歌地图获取相机中的图像块   unix无法捕获JAVA中“who m”命令的输出   java,同时将邮件发送到“收件人”标题“我”中的多个收件人   在java中向链表添加未知数量的节点   无法为Heroku上的discord bot设置java端口   java使用Apache HttpClient进行选项请求   与元素类型“ApplicationName”关联的属性“Application Version”需要java Open quote   Android Studio Java中的两个变量求和