Also posted here: https://www.reddit.com/r/javahelp/comments/mvl54u/why_arent_images_being_acquired_by_my_analyze/
Also posted here: https://stackoverflow.com/questions/66892974/why-are-images-not-being-acquired-by-the-analyze-method
Mason Buchanan wrote:So update! I Log.d(..) the following code to see if it was throwing null like so;
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.
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.
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".
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.
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.
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
|