java tutorials and useful tips for developer.

Sunday 11 September 2016

How to Reconstruct Human Face 3D Model from single 2D image.

Hello guyz Today I will tell you how you can reconstruct human face 3D model from just single 2D image,I will tell you about the technologies and softwares that are available for 3D reconstruction and also tell you about web api that are available for integrating in your web applications.

Here is some websites that build their technologies for 3D reconstruction form 2D image and also provides web api for integrating their technology into other web applications like E commerce store for virtual Try Room and for makeup website.

So the first one is 3d-avatar-store.com Its a has very complex pipeline for reconstructing the 3D model that is more realistic included face expression,rigging and lip sync as well.You can by their web api for integrating its services into your applications.

Second one is vizago.ch Its also an very comprehensive and realistic technology for 3D reconstruction you can buy their web api for Integration.


No here is a software facegen.com that provides the 3d reconstruction Its very good and creates 3D model in few minutes by just providing a single 2D image.You can download the demo version for facegen and try to create you 3D model.Its totally based on C++ and OpenGl library It does not provides web api but It provides SDK for integrating it to your C++ applications.

Here is the ScreenShot for FaceGen


Currently I am making my own technology for 3D face reconstruction as my Final Year project,If anybody interested in my technology just leave the comment I will share my current build with you happily.

Thanks for reading


Tuesday 19 January 2016

How to read csv file in java simple code.

Here is the simple code example just copy it and extract your csv file enjoy.


import com.opencsv.CSVReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;


public class ParseCSVFileReadLineByLine
{
public static void main(String[] args) throws IOException
{
        String filename = "records.csv";
        ParseCSVFileReadLineByLine parseCSVFile = new ParseCSVFileReadLineByLine();
       
        System.out.println("Starting to parse CSV file using opencsv");
        parseCSVFile.parseUsingOpenCSV(filename);
}

private void parseUsingOpenCSV(String filename) throws IOException
{
        CSVReader reader;
        Connection conn=null;
        try
        {
        reader = new CSVReader(new FileReader(filename));
        String[] row;
        row= reader.readNext();
        try{
     Class.forName("com.mysql.jdbc.Driver");
     
     
             conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/scopus","root","badmash");
        while ((row = reader.readNext()) != null)
        {
           
           
         
           
             String[] authaff=row[14].split(";");
           
             for(int j=0;j<authaff.length; j++){
             
                  String[] authaff2=authaff[j].split("\\.,");
                //  for(int k=0; k<authaff2.length; k++){
           
                       System.out.println("Author: "+ authaff2[0] + "affiliateion" + authaff2[1]);
                     
            String sql="insert into authors (`aname`,`affiliation`) values ('"+authaff2[0]+"','"+authaff2[1]+"')";
         
                conn.createStatement().executeUpdate(sql);
             
                 
                     
                     
         
                   
                 
               
             }

}
           
           
           
           
           
              /*  for (int i = 0; i < row.length; i++)
                {
                        // display CSV values
                        System.out.println("Cell column index: " + i);
                        System.out.println("Cell Value: " + row[i]);
                        System.out.println("-------------");
                }*/
        }
       
       
        catch(Exception e){
       
        System.out.println(e.getMessage());
        }
        }
        catch (FileNotFoundException e)
        {
                System.err.println(e.getMessage());
        }
        catch (IOException e)
        {
                System.err.println(e.getMessage());
        }
}
}

Difference between process warehouse and data warehouse.

Datawarehouse:
                         Its stores the data about subject i-e customer,product etc,its stores historical data that is used to analyse the business progress and how we can make our business better in future in terms of profit.

Process Warehouse :
                                 Its stores the process traces i-e events logs that is used to anaylse the process performance whether the met with organization standards or it completed on planned time we improve the business process performance by analyzing the process traces.


Categories

Popular Posts

Live Stats

Powered by Blogger.