usnistgov / NFIQ2

Optical live-scan and ink fingerprint image quality assessment tool
https://www.nist.gov/services-resources/software/development-nfiq-20
Other
129 stars 57 forks source link

All black image produces OpenCV error #310

Closed gfiumara closed 2 years ago

gfiumara commented 2 years ago

Providing an all black image results in:

Error: NFIQ2 computeQualityScore returned an error code: Cannot compute Frequency Domain Analysis (FDA): OpenCV(4.5.3) /Users/gfiumara/git/NFIQ2/opencv/modules/core/src/mean.dispatch.cpp:516: error: (-215:Assertion failed) !_src.empty() in function 'meanStdDev'

We can likely catch this error before calling meanStdDev and provide a better error message.

Not necessarily a bug since there's no friction ridge data.