Steven Letson wrote:
Let me know if this works for you. If so, we can dig deeper into the diff between your code and this.
Joe McMillan wrote:@StevenLetson, I enabled webcam for my camera on the emulator through advanced settings, but it's still showing a blank black screen for me. I also tried running it on a different API 30 device, but still no luck. Also, what may be a reason that cameraX doesn't work on Android Studio? Thanks.
Tim Moores wrote:
Paul Clapham wrote:Line 27 produces an empty array and the following lines process all of the entries in that empty array, i.e. they always do nothing.
Good catch! Line 27 should be deleted, and line 28 should use "detectedObjects" instead of"results".
Paul Clapham wrote:
Mason Buchanan wrote:So update! I Log.d(..) the following code to see if it was throwing null like so;
I don't know what you mean by "throwing null". The code you have there logs the message if the mediaImage variable is NOT null. If it was null then yes, nothing would happen. But it isn't, so your posted code is all being run. (Which answers Tim's question.)
As for your actual problem, I don't know anything about that topic so I can't give you any help there, sorry.