@@ -0,0 +1,954 @@
+import javax.swing.JFrame;%0A/*Author: Peter Chow%0A * %0A * %0A * SudokuCapture will capture images from a webcam, %0A * using still image capture from the video, another thread will approximate the bounds of the board%0A * and try to scan in the values of the board for the program to use.%0A * After a successful scan, the program will solve the board and display the answer using an overlay over the camera view%0A * %0A * */%0A%0Apublic class SudokuCapture %7B%0A%09%0A%09public static void main (String args%5B%5D)%7B%0A%09%09init();%0A%09%09CaptureWebcam webcam = new CaptureWebcam();%0A%09%09webcam.display();%0A%09%7D%0A%09%0A%09private static void init() %7B%0A%09%09System.out.println(%22start%22);%0A%09%09String answer = System.getProperty(%22sun.arch.data.model%22);%0A%09%09if(answer.matches(%2264%22))%7B%0A%09%09%09System.loadLibrary(%22./build/x64/opencv_java300%22);%0A%09%09%7Delse if(answer.matches(%2232%22))%7B%0A%09%09%09System.loadLibrary(%22./build/x86/opencv_java300%22);%0A%09%09%7Delse%7B%0A%09%09%09System.err.println(%22Your platform is not comptable%22);%0A%09%09%09System.exit(0);%0A%09%09%7D%09%09%0A%09%7D%0A%0A%7D%0A

Create SudokuCapture.java