public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub

		BufferedImage bi=ImageIO.read(new File("D:\\test.jpg"));
		try {
			removeBlank(bi);
			System.out.println("去除黑色成功");
			//huiDuHua(bi);
			//System.out.println("灰度化成功");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}