This commit is contained in:
@@ -26,7 +26,9 @@ public class ImageHashService {
|
||||
private final CloudStorageService cloudStorageService;
|
||||
|
||||
public Map<String, Long> calculateHash(Path imagePath) throws IOException {
|
||||
File file = cloudStorageService.readFileFromStorageByPath(imagePath.toString());
|
||||
// File file = cloudStorageService.readFileFromStorageByPath(imagePath.toString());
|
||||
File file = imagePath.toFile();
|
||||
|
||||
|
||||
PHash pHash = PerceptualHashHelper.INSTANCE.generateDCTPerceptualHash(file);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user