Skip to content

Commit

Permalink
Merge pull request #2347 from sepinf-inc/#2346_ImageSimilarityReuse
Browse files Browse the repository at this point in the history
Do not calculate image similarity features again, if already present (#2346)
  • Loading branch information
lfcnassif authored Oct 19, 2024
2 parents b3d8fdd + 1f17e40 commit 518a15d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ protected void process(IItem evidence) throws Exception {
return;
}

Object prev = evidence.getExtraAttribute(IMAGE_FEATURES);
if (prev != null && prev instanceof byte[]) {
return;
}

try {
byte[] thumb = evidence.getThumb();
if (thumb == null) {
Expand Down

0 comments on commit 518a15d

Please sign in to comment.