Forums - FastCV on Google Glass

3 posts / 0 new
Last post
FastCV on Google Glass
fiannac4
Join Date: 12 Mar 14
Posts: 1
Posted: Wed, 2014-03-12 12:30

I have managed to get the FastCorners sample app running on my HTC One with no issues. When I tried to run the same project on Google Glass however, the app crashes and I get the LogCat output seen below. I tried running the app using the Glass build target and the standard 4.0.3 build target (with the target api set to 9 - the value that comes with the sample). Any ideas on how to fix this? My end goal is to take a project I have running on OpenCv and convert to FastCv since OpenCV is not playing well with my Glass.

 

03-12 12:17:19.392: D/FastCVSample.cpp(1613): Using FastCV version 1.4.0 
03-12 12:17:19.407: E/FastCVSample(1613): Configured FastThreshold: 3
03-12 12:17:19.407: E/FastCVSample(1613): Configured Threshold: 40
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scaling: 0
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scale: 1
03-12 12:17:19.407: E/FastCVSample(1613): Configured Pixel Overlay: 1
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scale: 1
03-12 12:17:19.407: E/FastCVSample(1613): Configured Viewfinder: 0
03-12 12:17:19.407: E/FastCVSample(1613): Configured viewfinder: 0
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scaling: 1
03-12 12:17:19.407: E/FastCVSample(1613): Configured Scale: 1
03-12 12:17:19.493: D/Camera-JNI(1613): Saving AndroidRuntime::getJNIEnv()=0x6e16a8
03-12 12:17:19.525: V/FastCVSample(1613): Set focus mode INFINITY
03-12 12:17:19.525: V/FastCVSample(1613): Set white balance AUTO
03-12 12:17:19.579: D/dalvikvm(1613): GC_FOR_ALLOC freed 532K, 8% free 9094K/9863K, paused 15ms
03-12 12:17:19.579: D/Camera-JNI(1613): android_hardware_Camera_release - release camera
03-12 12:17:19.673: D/dalvikvm(1613): GC_EXPLICIT freed 1K, 5% free 9434K/9863K, paused 3ms+3ms
03-12 12:17:19.696: D/libEGL(1613): loaded /system/lib/egl/libGLES_android.so
03-12 12:17:19.704: D/libEGL(1613): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
03-12 12:17:19.704: D/CameraSurface(1613): SurfaceCreated
03-12 12:17:19.720: D/libEGL(1613): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
03-12 12:17:19.728: D/libEGL(1613): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
03-12 12:17:19.915: D/FastCVSampleRenderer.cpp(1613): Viewport changed to 640x284 
03-12 12:17:19.993: E/libEGL(1613): call to OpenGL ES API with no current context (logged once per thread)
03-12 12:17:19.993: A/libc(1613): Fatal signal 11 (SIGSEGV) at 0x41746000 (code=2)

 

  • Up0
  • Down0
ronaldk
Join Date: 9 Oct 12
Posts: 30
Posted: Wed, 2014-03-12 13:44

Android 4.0.3 is API level 15.

You might need to change the API level from 9 to 15.

 

  • Up0
  • Down0
guraaf
Join Date: 27 Feb 14
Posts: 5
Posted: Thu, 2014-03-13 13:53

Isn't FastCV meant from Qualcomm Snapdragon platforms (and ARM of course)? If so, one would expect lower performance on the ARM-based TI OMAP inside Google Glass, correct? In any case, I see a single file fastcv-android-1-4-0/lib/Android/libfastcv.a. Does it contain optimized implementations for both ARM and Snapdragon and takes a decision at run-time (first function invocation)?

 

Or do I have to use some build mechanism to specify different library depending on the processor used?

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.