Have camera spawn in other thread, as well as all of the callbacks occurring in that thread, rather than the UI thread. cameraHolder is a quick and dirty surfaceView class to test that ThreadedCamera is working. It will be deleted.
Now rotate the camera preview and returned data to be upright. Also have a PictureReadyListener interface which is just a callback for when the picture has been taken. This version can take a picc and find the face in it.
Refactored the code a bit so that the opening and closing of the camera occur in the cameraHolder onSurfaceChanged method. This allows the calling activity to basically just make a surface and implement the PictureReadyListener interface, and everything else is accounted for. This also allows the camera to be properly released and re-opened when the app closes and opens.
Added JAMA lib for matrices as well as a nice str function to print out the matrix.
Added JAMA lib for matrices as well as a nice str function to print out the matrix.
Added JAMA lib for matrices as well as a nice str function to print out the matrix.