import javax.swing.JFrame;
/*Author: Peter Chow
 * 
 * 
 * SudokuCapture will capture images from a webcam, 
 * using still image capture from the video, another thread will approximate the bounds of the board
 * and try to scan in the values of the board for the program to use.
 * After a successful scan, the program will solve the board and display the answer using an overlay over the camera view
 * 
 * */

public class SudokuCapture {
	
	public static void main (String args[]){
		init();
		CaptureWebcam webcam = new CaptureWebcam();
		webcam.display();
	}
	
	private static void init() {
		System.out.println("start");
		String answer = System.getProperty("sun.arch.data.model");
		if(answer.matches("64")){
			System.loadLibrary("./build/x64/opencv_java300");
		}else if(answer.matches("32")){
			System.loadLibrary("./build/x86/opencv_java300");
		}else{
			System.err.println("Your platform is not comptable");
			System.exit(0);
		}		
	}

}

@@ -1,31 +1,4 @@
-import javax.swing.JFrame;%0A
 /*Au
@@ -533,16 +533,85 @@
 );%0A%09%7D%0A%09%0A
+%09//Load up OpenCV lib by checking if the machine is 64-bit or 32-bit%0A
 %09private
@@ -659,16 +659,34 @@
 n(%22start
+ing webcam capture
 %22);%0A%09%09St
@@ -768,16 +768,19 @@
 s(%2264%22))
+%0A%09%09
 %7B%0A%09%09%09Sys
@@ -825,24 +825,27 @@
 va300%22);%0A%09%09%7D
+%0A%09%09
 else if(answ
@@ -861,16 +861,19 @@
 s(%2232%22))
+%0A%09%09
 %7B%0A%09%09%09Sys
@@ -922,20 +922,26 @@
 0%22);%0A%09%09%7D
+%0A%09%09
 else
+%0A%09%09
 %7B%0A%09%09%09Sys

Refactor code and added new comments