Merge pull request #465 from asmorkalov:android_camera_connect

This commit is contained in:
Andrey Kamaev 2013-02-11 14:05:37 +04:00 committed by OpenCV Buildbot
commit 9d7300f003
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb
*/
/* First step - initialize camera connection */
Log.d(TAG, "Connecting to camera");
if (!initializeCamera(getWidth(), getHeight()))
if (!initializeCamera(width, height))
return false;
/* now we can start update thread */

View File

@ -37,7 +37,7 @@ public class NativeCameraView extends CameraBridgeViewBase {
* 2. We need to start thread which will be getting frames
*/
/* First step - initialize camera connection */
if (!initializeCamera(getWidth(), getHeight()))
if (!initializeCamera(width, height))
return false;
/* now we can start update thread */