Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
vion-label
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 0062dd1f
authored
May 20, 2022
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[add]过滤低质和回收的图片
1 parent
484bcd36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
label-platform/src/main/java/com/viontech/label/platform/service/main/ReidService.java
label-platform/src/main/java/com/viontech/label/platform/service/main/ReidService.java
View file @
0062dd1
...
...
@@ -590,7 +590,9 @@ public class ReidService {
}
SubTaskExample
subTaskExample
=
new
SubTaskExample
();
subTaskExample
.
createCriteria
().
andPersonUnidIn
(
personUnidList
).
andPackIdEqualTo
(
packId
);
//跳过低质/回收图片
List
<
Integer
>
excludeStatus
=
Arrays
.
asList
(
SubTaskStatus
.
LOW_QUALITY
.
val
,
SubTaskStatus
.
recycled
.
val
);
subTaskExample
.
createCriteria
().
andPersonUnidIn
(
personUnidList
).
andPackIdEqualTo
(
packId
).
andStatusNotIn
(
excludeStatus
);
subTasks
=
subTaskService
.
selectByExample
(
subTaskExample
);
final
Set
<
String
>
matchFilter
=
currentPerson
==
null
?
Collections
.
emptySet
()
:
getMatchFilter
(
currentPerson
,
packId
);
...
...
@@ -620,10 +622,6 @@ public class ReidService {
for
(
Map
.
Entry
<
String
,
List
<
SubTask
>>
entry
:
collect
.
entrySet
())
{
SubTask
pic
=
entry
.
getValue
().
get
(
0
);
//跳过低质图片
if
(
pic
.
getStatus
()
==
SubTaskStatus
.
LOW_QUALITY
.
val
)
{
continue
;
}
if
(
pic
.
getStatus
()
==
SubTaskStatus
.
FINISH_LABELING
.
val
&&
entry
.
getValue
().
size
()
>
3
)
{
entry
.
setValue
(
entry
.
getValue
().
subList
(
0
,
3
));
}
...
...
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