虹膜识别 Iris_Osiris_v4.1(支持OpenCV3.3/2.4.13;win/linux)
代码支持linux和windows平台。需要配置好OpenCV环境,如果没有把对应OpenCV的对应dll路径加入系统path环境变量,运行时,需要拷贝对应的dll到当前目录。
https://github.com/5455945/Iris_Osiris.git
中的代码,没有改变Iris_Osiris_v4.1的算法,仅仅是修改了一些工程化方面的内容,添加了测试数据。只要配置好OpenCV,编译后,只需配置好命令行参数,即可调试。
01 资源
win10,vs2015,git,opencv3.3.0,cmake
参考虹膜识别文档:
开源虹膜识别软件OSIRIS4.1的使用入门
opencv3.3.0的配置参考(也可以配置其他版本的opencv):
opencv01 相对完整的编译opencv3.3.0 win版本
原始图片Iris_Osiris\data\CASIA-iRISv2
是从中科院自动化所虹膜数据集CASIA-IrisV2获得。
http://biometrics.idealtest.org网站需要自己注册账号,并且3个工作日后,收到邮件通知,激活后;才能下载。
CASIA-IrisV1.zip有44MB
CASIA-IrisV2.zip有306MB
CASIA-IrisV4(JPG).zip有1956MB
Iris_Osiris\data\CASIA-iRISv2
仅使用CASIA-IrisV2.zip中的8张图片。
02 源码下载
cd D:\git\DeepLearning
git clone --recursive https://github.com/5455945/Iris_Osiris.git
cd Iris_Osiris
03 编译
# 根据README.md说明,在cmd窗口,进入Iris_Oiris源码目录,
cd Iris_Osiris
# 创建一个build目录并进入到build目录
mkdir build & cd build
# 使用cmake vs2015 update3编译,并指定OpenCV_DIR目录
cmake -G "Visual Studio 14 2015 Win64" -DOpenCV_DIR="D:/git/opencv/build/v3.3.0/x64/install" ..
# 编译Debug版本
cmake --build . --config Debug
也可以使用如(虹膜识别 Iris_Osiris_v4.1源码,mfc测试用例)所述的cmake-gui方式配置cmake,然后直接用vs2015 update3打开编译,调试。
用vs2015调试的,仅需根据自己编译目标的相对路径,指定数据文件夹位置。
04 运行
# 运行Debug版本,并指定参数目录[../data]
Debug\Osiris.exe ../data
运行结果:
>Debug\Osiris.exe ../data
=============
Configuration
=============
- Process : | segmentation || normalization || encoding |
- List of images ../data/process_CASIA-IrisV2.txt contains 8 images
- Original images will be loaded from : ../data/CASIA-IrisV2/
- Segmented images will be saved as : ../data/Output/SegmentedImages/XXX_segm.bmp
- Parameters will be saved as : ../data/Output/CircleParameters/XXX_para.txt
- Masks will be saved as : ../data/Output/Masks/XXX_mask.bmp
- Normalized images will be saved as : ../data/Output/NormalizedImages/XXX_imno.bmp
- Normalized masks will be saved as : ../data/Output/NormalizedMasks/XXX_mano.bmp
- Iris codes will be saved as : ../data/Output/IrisCodes/XXX_code.bmp
- Pupil diameter ranges from 50 to 160
- Iris diameter ranges from 160 to 280
- Size of normalized iris is 512 x 64
- 6 Gabor filters : 9x15 9x15 9x27 9x27 9x51 9x51
================
Start processing
================
1 / 8
2 / 8
3 / 8
4 / 8
5 / 8
6 / 8
7 / 8
8 / 8
==============
End processing
==============
运行后,输出数据在Iris_Osiris/data/Output
目录中。
Iris_Osiris\data\Output\CircleParameters\0000_000_para.txt
Iris_Osiris\data\Output\CircleParameters\0000_001_para.txt
Iris_Osiris\data\Output\CircleParameters\0000_002_para.txt
Iris_Osiris\data\Output\CircleParameters\0000_003_para.txt
Iris_Osiris\data\Output\CircleParameters\0001_000_para.txt
Iris_Osiris\data\Output\CircleParameters\0001_001_para.txt
Iris_Osiris\data\Output\CircleParameters\0001_002_para.txt
Iris_Osiris\data\Output\CircleParameters\0001_003_para.txt
Iris_Osiris\data\Output\IrisCodes\0000_000_code.bmp
Iris_Osiris\data\Output\IrisCodes\0000_001_code.bmp
Iris_Osiris\data\Output\IrisCodes\0000_002_code.bmp
Iris_Osiris\data\Output\IrisCodes\0000_003_code.bmp
Iris_Osiris\data\Output\IrisCodes\0001_000_code.bmp
Iris_Osiris\data\Output\IrisCodes\0001_001_code.bmp
Iris_Osiris\data\Output\IrisCodes\0001_002_code.bmp
Iris_Osiris\data\Output\IrisCodes\0001_003_code.bmp
Iris_Osiris\data\Output\Masks\0000_000_mask.bmp
Iris_Osiris\data\Output\Masks\0000_001_mask.bmp
Iris_Osiris\data\Output\Masks\0000_002_mask.bmp
Iris_Osiris\data\Output\Masks\0000_003_mask.bmp
Iris_Osiris\data\Output\Masks\0001_000_mask.bmp
Iris_Osiris\data\Output\Masks\0001_001_mask.bmp
Iris_Osiris\data\Output\Masks\0001_002_mask.bmp
Iris_Osiris\data\Output\Masks\0001_003_mask.bmp
Iris_Osiris\data\Output\NormalizedImages\0000_000_imno.bmp
Iris_Osiris\data\Output\NormalizedImages\0000_001_imno.bmp
Iris_Osiris\data\Output\NormalizedImages\0000_002_imno.bmp
Iris_Osiris\data\Output\NormalizedImages\0000_003_imno.bmp
Iris_Osiris\data\Output\NormalizedImages\0001_000_imno.bmp
Iris_Osiris\data\Output\NormalizedImages\0001_001_imno.bmp
Iris_Osiris\data\Output\NormalizedImages\0001_002_imno.bmp
Iris_Osiris\data\Output\NormalizedImages\0001_003_imno.bmp
Iris_Osiris\data\Output\NormalizedMasks\0000_000_mano.bmp
Iris_Osiris\data\Output\NormalizedMasks\0000_001_mano.bmp
Iris_Osiris\data\Output\NormalizedMasks\0000_002_mano.bmp
Iris_Osiris\data\Output\NormalizedMasks\0000_003_mano.bmp
Iris_Osiris\data\Output\NormalizedMasks\0001_000_mano.bmp
Iris_Osiris\data\Output\NormalizedMasks\0001_001_mano.bmp
Iris_Osiris\data\Output\NormalizedMasks\0001_002_mano.bmp
Iris_Osiris\data\Output\NormalizedMasks\0001_003_mano.bmp
Iris_Osiris\data\Output\SegmentedImages\0000_000_segm.bmp
Iris_Osiris\data\Output\SegmentedImages\0000_001_segm.bmp
Iris_Osiris\data\Output\SegmentedImages\0000_002_segm.bmp
Iris_Osiris\data\Output\SegmentedImages\0000_003_segm.bmp
Iris_Osiris\data\Output\SegmentedImages\0001_000_segm.bmp
Iris_Osiris\data\Output\SegmentedImages\0001_001_segm.bmp
Iris_Osiris\data\Output\SegmentedImages\0001_002_segm.bmp
Iris_Osiris\data\Output\SegmentedImages\0001_003_segm.bmp
更多推荐
所有评论(0)