From: Joseph M. <mui...@gm...> - 2015-06-26 20:55:35
|
I want to align several faces I have at my disposal here using openImaj. I want to read a jpg face photo, align it and finally save it as in jpg after alignment. Here is where I am stuck. See below public class FaceImageAlignment { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException { // TODO code application logic here BufferedImage img = null; img = ImageIO.read(new File("D:/face_test.jpg")); //How to align face image using openImaj //This is where I am stuck on doing face alignment. I tried doing the following AffineAligner imgAlign = new AffineAligner(); //but I could not figure out how to do face alignment with it BufferedImage imgAligned = new BufferedImage(//I will need to put aligned Image here as a BufferedImage); File f = new File("D:\\face_aligned.jpg"); ImageIO.write(imgAligned, "JPEG", f); }} What Code do I need to have there to face align face_test.jpg to face_aligned.jpg ? I actually posted this question to stack exchange here <http://stackoverflow.com/questions/31074580/face-alignment-using-openimaj-api-libraries>but I havent got any help yet since then. I discovered this mail list and decided to post it here. |