I want to align several faces I have at my disposal here using openCv. I want to read a jpg face photo, align it and finally save it as in jpg after alignment. See below

BufferedImage img = null;

img = ImageIO.read(new File("D:/face_test.jpg"));

//Face alignment here

BufferedImage imgAligned = new BufferedImage(//I will need to put aligned Image here as a BufferedImage);

File outPutFile = new File("D:\\face_aligned.jpg");

ImageIO.write(imgAligned, "JPEG", outPutFile );

I will gladly appreciate your suggestions, code snippets or any good Java APIs that can do this.

More Joseph Mwema's questions See All
Similar questions and discussions