System.out.println("Started Calculating the Image Mean");
//Calculating the Mean of the Images and updating the database
DAO d= new DAO();
ResultSet rs=null;
int count=0;
StartCrawler start=new StartCrawler();
do{
rs=d.getImages(count);
while(rs.next()) {
int id = rs.getInt("id");
String ImageName = rs.getString("ImageName");
System.out.println("ID:"+id +" Name:"+ ImageName);
try
{
String extension=ImageName.substring(ImageName.lastIndexOf('.')+1,ImageName.length()).trim();
if(extension.equalsIgnoreCase("gif")==false && ( extension.equalsIgnoreCase("jpg") || extension.equalsIgnoreCase("jpeg")
|| extension.equalsIgnoreCase("png") || extension.equalsIgnoreCase("bmp")))
{
d.updateImageMeanInfo(id,start.imageCompareResult(ImageConstants.SAVELOCATION+"\\"+ImageName));
System.out.println(start.imageCompareResult(ImageConstants.SAVELOCATION+"\\"+ImageName));
}
count++;
}catch(Exception ex)
{