GithubHelp home page GithubHelp logo

ekberjan / iris_image_matching Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 9.0 11.65 MB

C++ based iris image verification code using OpenCV.

License: GNU General Public License v3.0

C++ 99.51% C 0.49%

iris_image_matching's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iris_image_matching's Issues

Fails in detectPupil

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.

Cannot normalize image because contours are not correctly computed/loaded

[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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.