-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling OpenCV projects on Google Glass #3
Comments
Ok.. I solved this problem, but now I see only this: |
You need to call setPreviewFpsRange. See my pull request here: |
thank you |
I don't see any call to open in that gist you linked. Have you tried specifying a camera ID? Like here: |
Sorry I didn't post Camera.open() call in my previous gist, please check this again. I put Camera.open() in surfaceCreated(), set cam parameters in surfaceChanged(). What I suspect from the log is this example using OpenCV's CameraBridgeViewBase as a client bridge between Android Cam and Open CV to init camera. That means if we open camera before BaseLoaderCallback(), the mOpenCvCameraView.enableView() in BaseLoaderCallback() won't work because camera resource has been occupied. :/ Any thoughts? |
Honestly, camera in use problems are a nightmare on Google Glass even On Wed, Apr 30, 2014 at 8:25 PM, Harry Chen [email protected]:
|
Hello,
when I compile your project (or all other project using opencv) on my Google Glass, Eclipse says this on console: "OpenCV Library - 2.4.8] Could not find OpenCV Library - 2.4.8.apk!"
Full message is:
[2014-04-22 11:57:17 - ImageManipulation] Android Launch!
[2014-04-22 11:57:17 - ImageManipulation] adb is running normally.
[2014-04-22 11:57:17 - ImageManipulation] Performing com.space150.android.glass.opencvimagemanipulation.MainActivity activity launch
[2014-04-22 11:57:17 - ImageManipulation] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2014-04-22 11:57:19 - ImageManipulation] Uploading ImageManipulation.apk onto device '015DB7590800200D'
[2014-04-22 11:57:19 - ImageManipulation] Installing ImageManipulation.apk...
[2014-04-22 11:57:21 - ImageManipulation] Success!
[2014-04-22 11:57:21 - OpenCV Library - 2.4.8] Could not find OpenCV Library - 2.4.8.apk!
[2014-04-22 11:57:21 - ImageManipulation] Starting activity com.space150.android.glass.opencvimagemanipulation.MainActivity on device 015DB7590800200D
[2014-04-22 11:57:22 - ImageManipulation] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.space150.android.glass.opencvimagemanipulation/.MainActivity }
On android device I know that I have to install the OpenCV Manager directly from the Google Play...... but on Google Glass what I have to do?
Thanks
The text was updated successfully, but these errors were encountered: