Skip to content
GitLab
Explore
Sign in
Commits on Source (3)
Set the field 4.005 to 0 if no 1.011 field is present
· 9c75a481
Marco De Donno
authored
Mar 25, 2022
9c75a481
Merge branch 'patch/field_4.005_without_1.011_field' into develop
· 82d7628e
Marco De Donno
authored
Mar 25, 2022
82d7628e
Merge branch 'develop' into feature/XML
· 5a7ac641
Marco De Donno
authored
Mar 25, 2022
5a7ac641
Hide whitespace changes
Inline
Side-by-side
NIST/fingerprint/__init__.py
View file @
5a7ac641
...
...
@@ -143,20 +143,30 @@ class NISTf( NIST_traditional ):
if
4
in
ntypes
:
for
idc
in
self
.
get_idc
(
4
):
# 4.005
# The minimum scanning resolution was defined in
# ANSI/NIST- ITL 1-2007 as "19.69 ppmm plus or minus 0.20
# ppmm (500 ppi plus or minus 5 ppi)." Therefore, if the
# image scanning resolution corresponds to the Appendix F
# certification level (See Table 14 Class resolution with
# defined tolerance), a 0 shall be entered in this field.
#
# If the resolution of the Type-04 is in 500DPI +- 1%,
# then the 4.005 then field is set to 0, otherwise 1.
# The mandatory ISR field relates to the scanning
# resolution of this image. Previous versions of this
# standard stated that 0 in this field represents the
# 'minimum scanning resolution.' The minimum scanning
# resolution was defined in ANSI/NIST-ITL 1-2007 as
# "19.69 ppmm plus or minus 0.20 ppmm (500 ppi plus or
# minus 5 ppi)." Therefore, if the image scanning
# resolution corresponds to the Appendix F certification
# level (See Table 14 Class resolution with defined
# tolerance), a 0 shall be entered in this field. A
# value of 1 is entered if the actual scanning
# resolution (outside of the Appendix F certification
# range) is specified in Field 1.011 Native scanning
# resolution / NSR.
debug
.
debug
(
"
Set the conformity with the Appendix F certification level for Type-04 image
"
,
1
)
if
19.49
<
float
(
self
.
get_field
(
"
1.011
"
)
)
<
19.89
:
if
not
self
.
has_tag
(
"
1.011
"
):
self
.
set_field
(
"
4.005
"
,
"
0
"
,
idc
)
else
:
self
.
set_field
(
"
4.005
"
,
"
1
"
,
idc
)
if
19.49
<
float
(
self
.
get_field
(
"
1.011
"
)
)
<
19.89
:
self
.
set_field
(
"
4.005
"
,
"
0
"
,
idc
)
else
:
self
.
set_field
(
"
4.005
"
,
"
1
"
,
idc
)
# Type-09
if
9
in
ntypes
:
...
...