Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
政
政企识别终端
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
终端组
政企识别终端
Commits
c1d9e687
Commit
c1d9e687
authored
Sep 17, 2021
by
姜春辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正同步人脸库BUG
parent
3a509674
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
FaceHandler.cs
...ification.Enterprise.Logic/CallbackHandler/FaceHandler.cs
+1
-1
LogicHandler.cs
...fication.Enterprise.Logic/CallbackHandler/LogicHandler.cs
+4
-3
FaceFeatureLoader.cs
...Identification.Enterprise.Logic/Core/FaceFeatureLoader.cs
+1
-1
No files found.
src/GS.Terminal.Identification.Enterprise.Logic/CallbackHandler/FaceHandler.cs
View file @
c1d9e687
...
...
@@ -39,11 +39,11 @@ namespace GS.Terminal.Identification.Enterprise.Logic
internal
static
void
OnRecognized
(
string
key
,
float
score
)
{
try
{
ViewModel
.
IsStandby
=
false
;
MainHandler
.
CleanViewTimer
.
Stop
();
if
(
score
<
Program
.
config
.
LogicConfig
.
FaceCompareValue
)
return
;
LogicHandler
.
CheckQuery
();
var
visitor
=
LocalDataCenter
.
GetVisitInfoByFaceData
(
key
);
...
...
src/GS.Terminal.Identification.Enterprise.Logic/CallbackHandler/LogicHandler.cs
View file @
c1d9e687
...
...
@@ -167,15 +167,16 @@ namespace GS.Terminal.Identification.Enterprise.Logic
/// <returns></returns>
internal
static
Human
GenHuman
(
Employee
employee
,
bool
isCard
,
bool
isVisitor
=
false
)
{
return
new
Human
var
human
=
new
Human
{
Depart
=
employee
.
DepartName
,
Name
=
employee
.
Name
,
IsCard
=
isCard
,
IsVisitor
=
isVisitor
,
Time
=
DateTime
.
Now
.
ToString
(
"HH:mm:ss"
),
HumanPhoto
=
string
.
IsNullOrWhiteSpace
(
employee
.
PhotoPath
)
?
null
:
Path
.
Combine
(
Program
.
config
.
GlobalConfig
.
ResourcePath
,
employee
.
PhotoPath
),
HumanPhoto
=
string
.
IsNullOrWhiteSpace
(
employee
.
PhotoPath
)
?
null
:
Path
.
Combine
(
Program
.
config
.
GlobalConfig
.
ResourcePath
,
employee
.
PhotoPath
.
TrimStart
(
'/'
)
),
};
return
human
;
}
...
...
@@ -195,7 +196,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic
IsCard
=
isCard
,
IsVisitor
=
isVisitor
,
Time
=
DateTime
.
Now
.
ToString
(
"HH:mm:ss"
),
HumanPhoto
=
string
.
IsNullOrWhiteSpace
(
visit
.
CertPhoto
)
?
null
:
Path
.
Combine
(
Program
.
web
Path
,
visit
.
CertPhoto
),
HumanPhoto
=
string
.
IsNullOrWhiteSpace
(
visit
.
CertPhoto
)
?
null
:
Path
.
Combine
(
Program
.
config
.
GlobalConfig
.
Resource
Path
,
visit
.
CertPhoto
),
};
}
...
...
src/GS.Terminal.Identification.Enterprise.Logic/Core/FaceFeatureLoader.cs
View file @
c1d9e687
...
...
@@ -130,7 +130,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic.Core
result
.
AddRange
(
responseData
.
records
);
if
(
responseData
.
paging
.
totalPage
>
pageIndex
)
{
result
.
AddRange
(
downLoad
(
version
,
pageIndex
++
).
datas
);
result
.
AddRange
(
downLoad
(
version
,
pageIndex
+
1
).
datas
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment