ekberjan / iris_image_matching Goto Github PK
View Code? Open in Web Editor NEWC++ based iris image verification code using OpenCV.
License: GNU General Public License v3.0
C++ based iris image verification code using OpenCV.
License: GNU General Public License v3.0
First, I had to convert some constants for newer OpenCV versions.
It doesn't detect the pupil; Basically,
cv::divide(gh, gn, gh, 1, CV_32FC1);
results in a black image.
Testing images are the eyes in the github.
[OpenCV 4.4.0, Nvdia Jetson Nano 4GB]
I've tried to implement Your repository, with included test images, but I have encountered significant error that I cannot pass, it is in pirProcessing.cpp -> segment() function where it does not seem to be working, part of the code with debug info:
`
//Start Processing
// Locate the pupil
detectPupil(pSrc, rPupil, minPupilDiameter, maxPupilDiameter);
// Fill the holes in an area surrounding pupil
cv::Mat clone_src = pSrc.clone();
// select a ROI
cv::Rect mRoi = cv::Rect(rPupil.getCenter().x - 3.0 / 4.0 * maxIrisDiameter / 2.0,
rPupil.getCenter().y - 3.0 / 4.0*maxIrisDiameter / 2.0,
3.0 / 4.0*maxIrisDiameter,
3.0 / 4.0*maxIrisDiameter);
std::cout << "mRoi: " << mRoi.size() << std::endl;
std::cout << "clone_src: " << clone_src.size() << std::endl;
try
{
cv::Mat clone_src2 = clone_src(mRoi).clone(); // this is source of error
fillWhiteHoles(clone_src2, clone_src2);
clone_src2.copyTo(clone_src(mRoi));
}
catch (const std::exception& e)
{
std::cout << e.what();
}`
My output is as follows:
================
Start processing ...
================
mRoi: 210, [210 x 210]
clone_src: [640 x 480]
OpenCV(4.1.1) /home/nvidia/host/build_opencv/nv_opencv/modules/core/src/matrix.cpp:466: error: (-215:Assertion failed) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function 'Mat'
std::exception
1 0
Cannot normalize image because contours are not correctly computed/loaded
====================
End processing.
====================```
To clarify - I've been using included images - "1.jpg" and "2.jpg", with default Gabor filter and image points, could you please try to help this? If need I could also upload zip file..
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.