2013-11-15 02:06:26 -0600 | commented answer | android::camera on google Glass That't the point. I don't use the Java part (at all). All the computation is done on native (C/C++) level. |
2013-11-15 02:05:27 -0600 | received badge | ● Critic (source) |
2013-10-14 03:18:05 -0600 | received badge | ● Good Question (source) |
2013-09-07 13:16:37 -0600 | received badge | ● Nice Question (source) |
2013-09-05 13:13:25 -0600 | received badge | ● Student (source) |
2013-09-05 07:59:48 -0600 | asked a question | android::camera on google Glass Dear android/opencv developers, We recently received google Glass and wanted to continue using the android camera from the C side with building a camera wrapper as you do on OpenCV. With some ifdefs and hacks it works nicely for the different platforms and phones but for Glass I'm stuck. Did any of you try/play around with a custom camera wrapper for Glass? The problem seem to be that somehow creating the SurfaceTexture fails or is not properly initialized. I already posted on StackOverflow for #google-glass but no answer there yet. I briefly repeat the things I tried and where it fails: When we setup the preview we do There everything seems to be fine (even when you ask the camera if everything is fine, it lies and returns true), but later when you use the camera (e.g. dumpParameters()) the app crashes immediately. The part that I do not fully understand: When I remove the setPreviewTexture(..) call but still create the shared pointer of the SurfaceTexture you'll end up with a heap corruption when the shared pointer goes out of scope. btw:
Any idea/suggestion where/what to debug? Or did anyone manage to use the Glass camera with a native camera wrapper? |