sample-tensorflow-imageclassifier icon indicating copy to clipboard operation
sample-tensorflow-imageclassifier copied to clipboard

Image Classifier OpenGL ES API Error

Open AlanLiu96 opened this issue 8 years ago • 0 comments

Hi,

I've been running into a couple of issues with the image processing. Could anyone shed some light on how to address this?

I'm running the sample code on master adapted for the rainbowHat on top of a Pico i.MX7. My fork is located here, but the only changes to the source shouldn't affect the issue (changing the mapping of a button & LED). Currently using SDK API Level 25 (Android 7.1.1).

Error text below.

Reproduced by

  1. Running app
  2. Pressing button to trigger Camera "Cheese"
06-05 16:10:36.885 1214-2122/com.example.androidthings.imageclassifier E/libEGL: called unimplemented OpenGL ES API
06-05 16:10:36.911 1214-2122/com.example.androidthings.imageclassifier E/SurfaceTextureRenderer: Could not compile shader 35633:
06-05 16:10:36.911 1214-2122/com.example.androidthings.imageclassifier E/SurfaceTextureRenderer:  
06-05 16:10:36.946 1214-2122/com.example.androidthings.imageclassifier E/CameraDeviceGLThread-0: Received exception on GL render thread: 
                                                                                                 java.lang.IllegalStateException: Could not compile shader 35633
                                                                                                     at android.hardware.camera2.legacy.SurfaceTextureRenderer.loadShader(SurfaceTextureRenderer.java:214)
                                                                                                     at android.hardware.camera2.legacy.SurfaceTextureRenderer.createProgram(SurfaceTextureRenderer.java:220)
                                                                                                     at android.hardware.camera2.legacy.SurfaceTextureRenderer.initializeGLState(SurfaceTextureRenderer.java:353)
                                                                                                     at android.hardware.camera2.legacy.SurfaceTextureRenderer.configureSurfaces(SurfaceTextureRenderer.java:673)
                                                                                                     at android.hardware.camera2.legacy.GLThreadManager$1.handleMessage(GLThreadManager.java:89)
                                                                                                     at android.os.Handler.dispatchMessage(Handler.java:98)
                                                                                                     at android.os.Looper.loop(Looper.java:154)
                                                                                                     at android.os.HandlerThread.run(HandlerThread.java:61)

Edit: This may be because the pico i.MX7 doesn't support OpenGL

AlanLiu96 avatar Jun 05 '17 16:06 AlanLiu96