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