package com.mooctest.demo;

import com.mooctest.image.ImagePHash;

import java.io.File;

public class DemoImagePHash {
    public static void main(String[] args) throws Exception {
        ImagePHash p = new ImagePHash();
        int dis = p.distance(new File("/Users/major/Downloads/test0.png"), new File("/Users/major/Downloads/test1.png"));
        System.out.println("distance:" + dis);
    }
}
