package com.mooctest.demo;

import com.mooctest.image.FingerPrint;

import javax.imageio.ImageIO;
import java.io.File;
import java.io.IOException;

public class DemoImageSim {
    public static void main(String[] args) throws IOException {
        FingerPrint fp1 = new FingerPrint(ImageIO.read(new File("/Users/major/Downloads/test0.png")));
        FingerPrint fp2 =new FingerPrint(ImageIO.read(new File("/Users/major/Downloads/test4.png")));
        System.out.println(fp1.toString(true));
        System.out.printf("sim=%f",fp1.compare(fp2));
    }
}
