Skip to content

Commit

Permalink
'#2346: Do not calculate image similarity features, if already present.
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Oct 19, 2024
1 parent b3d8fdd commit 1f17e40
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 1f17e40

Please sign in to comment.