Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
VVAS-Match
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9b0e1ff7
authored
Jul 23, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bodyfeature 属性使用
1 parent
e9ef3bd3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
src/main/java/com/viontech/match/service/PersonService.java
src/main/java/com/viontech/match/service/PersonService.java
View file @
9b0e1ff
...
@@ -178,9 +178,9 @@ public class PersonService {
...
@@ -178,9 +178,9 @@ public class PersonService {
Integer
age
=
person
.
getAge
();
Integer
age
=
person
.
getAge
();
String
gender
=
person
.
getGender
();
String
gender
=
person
.
getGender
();
String
personId
=
person
.
getPersonId
();
String
personId
=
person
.
getPersonId
();
Date
countt
ime
=
person
.
getCounttime
();
Date
personCountT
ime
=
person
.
getCounttime
();
Integer
bodyType
=
person
.
getBodyType
();
Integer
bodyType
=
person
.
getBodyType
();
String
c
hannelSerialNum
=
person
.
getChannelSerialNum
();
String
personC
hannelSerialNum
=
person
.
getChannelSerialNum
();
List
<
FaceFeature
>
faceFeatures
=
person
.
getFaceFeatures
();
List
<
FaceFeature
>
faceFeatures
=
person
.
getFaceFeatures
();
if
(
faceFeatures
!=
null
&&
faceFeatures
.
size
()
>
0
)
{
if
(
faceFeatures
!=
null
&&
faceFeatures
.
size
()
>
0
)
{
for
(
FaceFeature
faceFeature
:
faceFeatures
)
{
for
(
FaceFeature
faceFeature
:
faceFeatures
)
{
...
@@ -191,7 +191,7 @@ public class PersonService {
...
@@ -191,7 +191,7 @@ public class PersonService {
IndexRequest
indexRequest
=
new
IndexRequest
(
poolId
)
IndexRequest
indexRequest
=
new
IndexRequest
(
poolId
)
.
source
(
XContentType
.
JSON
,
"personId"
,
personId
,
.
source
(
XContentType
.
JSON
,
"personId"
,
personId
,
"data"
,
feature
,
"fid"
,
fid
,
"age"
,
age
,
"gender"
,
gender
,
"body_type"
,
bodyType
,
"data"
,
feature
,
"fid"
,
fid
,
"age"
,
age
,
"gender"
,
gender
,
"body_type"
,
bodyType
,
"counttime"
,
counttime
==
null
?
null
:
Constant
.
DATE_FORMAT
.
get
().
format
(
counttime
),
"channelSerialNum"
,
c
hannelSerialNum
);
"counttime"
,
personCountTime
==
null
?
null
:
Constant
.
DATE_FORMAT
.
get
().
format
(
personCountTime
),
"channelSerialNum"
,
personC
hannelSerialNum
);
bulkRequest
.
add
(
indexRequest
);
bulkRequest
.
add
(
indexRequest
);
}
}
}
}
...
@@ -211,7 +211,8 @@ public class PersonService {
...
@@ -211,7 +211,8 @@ public class PersonService {
}
}
String
fid
=
bodyFeature
.
getBid
();
String
fid
=
bodyFeature
.
getBid
();
Date
counttime
=
bodyFeature
.
getCounttime
()
==
null
?
personCountTime
:
bodyFeature
.
getCounttime
();
String
channelSerialNum
=
bodyFeature
.
getChannelSerialNum
()
==
null
?
personChannelSerialNum
:
person
.
getChannelSerialNum
();
IndexRequest
indexRequest
=
new
IndexRequest
(
poolId
)
IndexRequest
indexRequest
=
new
IndexRequest
(
poolId
)
.
source
(
XContentType
.
JSON
,
"personId"
,
personId
,
.
source
(
XContentType
.
JSON
,
"personId"
,
personId
,
"body"
,
feature
,
"fid"
,
fid
,
"age"
,
age
,
"gender"
,
gender
,
"body_type"
,
bodyType
,
"body"
,
feature
,
"fid"
,
fid
,
"age"
,
age
,
"gender"
,
gender
,
"body_type"
,
bodyType
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment