Questions tagged [tensorflow-android]

15 questions
4
votes
1 answer

Tensorflow Android demo: Detection using Front Camera

I would like to use the front camera for face detection in tensorflow android demo. I managed to switch the camera to front but the detected bounding boxes are drawn incorrectly. Specifically i think they are inverted with respect to the screen. Can…
4
votes
0 answers

No implementation found for long org.tensorflow.contrib.android.RunStats.allocate()

My local Logcat is below 04-27 14:05:47.501 16780-16780/com.cogitator.imagesearchtensorflowandroid D/ViewRootImpl:ViewPostImeInputStage processPointer 0 04-27 14:05:47.641 16780-16780/com.cogitator.imagesearchtensorflowandroid D/ViewRootImpl:…
Ankit Kumar
  • 3,663
  • 2
  • 26
  • 38
3
votes
1 answer

C++ library with Tensorflow on Android

I'm trying to build a native C++ library for the Android app. This lib uses Tensorflow C++ API (version 1.9.0 and 1.10.0) and OpenCV(3.3.0) inside. For generating wrapper I'm using Swig. I'm using Android NDK to build *.so files (I've tried with…
1
vote
0 answers

Android Tensorflow loaddata Module

My Android App got crashed at this method while i debug my application using Android Studio debugger ## Have no clue how to solve this issue private void loadModel() { new Thread(new Runnable() { @Override …
1
vote
0 answers

Cannot convert between a TensorFlowLite buffer with 1392640 bytes and a Java Buffer with 4177920 bytes

I am using Tensorflow.Lite.Support function for Inference of a model that takes two input and gives output in the form of Image. The first input is an RGB image whereas the second image is a single-channel image. When I run the application for…
1
vote
2 answers

"How to pass single image to Tensorflow lite"

I want to make an app that capture an image using mobile camera and pass this image to tensorflow lite to classify, what is in the image.
Sumair Aslam
  • 11
  • 1
  • 3
1
vote
0 answers

Flashback occurs when compiling tensorflow into my Android project

Flashback occurs when compiling tensorflow into my project. The original project worked fine at first, but when I compile tensorflow or link tensorflow C++ source files to my project, the original function in the app flashes back. I found that when…
1
vote
0 answers

How to get images from android camera in RGB?

I want to develop a machine learning program using Tensorflow, OpenCV and Android. I already trained my model and uploaded it to my mobile, but I am facing problems when I want to feed the image taken with camera. The problem is that the camera is…
0
votes
1 answer

How to extract invoices data from an image in android app?

My task is to extract text from a scanned document/ JPG and then get only below mentioned 6 values so that I can auto-fill a form-data in my next screen/ activity. I used google cloud vision api in my android app with a Blaze version(paid), And I…
0
votes
1 answer

How to convert SparseToDense's to Tensor or int array?

I have implemented LSTM-CTC model in android device and comes to this code block. SparseToDense sparseDense = ctc_decode(out, input_length, true, beam_width, top_paths); I am getting the sparseDense object perfectly with expected shape but i don't…
Mayur Kanojiya
  • 158
  • 1
  • 8
0
votes
1 answer

How to classify correctly from TENSORFLOW LITE app using INTENT CAMERA?

I tested my fine tuned model using REAL TIME TF-LITE Cllasifier DEMO APP, it showed pretty good results. But when I test same model with Intent Camera Picture ( one at a time ) it shows pretty bad result( 0.06 or 0.04 almost every time ) . I am…
0
votes
1 answer

Is there any way to accelerate tensorflow mobile on Android?

any ideas is OK,cpu usage,tensorflow settings,image preprocess,etc.BTW,not tf lite,and my model is ssd-mobilenet
xiadeye
  • 441
  • 1
  • 3
  • 8
0
votes
1 answer

My app crashes when setting the minSDK to Jelly Bean

I have created tensorflow android app and application is still working perfect on lollipop version, i build this app on min sdk lollipop and tested it into marshmallow and nougat but when i convert it into jelly bean 4.1 application got crash and i…
Yasir Raza
  • 19
  • 1
  • 3
0
votes
2 answers

How to convert optimized_graph.lite file to .tflite file?

I followed the steps mentioned in the codelab and generated optimized_graph.lite file successfully. As per documentation we need TensorFlow Lite model for inference in a mobile app in the form of a .tflite file. How do we further generate the…
Monica M
  • 161
  • 3
  • 12
0
votes
0 answers

Porting TensorFlow Speech Command Example to Unity3d Engine

i am trying to make a port of the TensorFlow Speech Command Example and send the result to my vr Unity3d game. first i did some research on how to make a service background with android and unity and i managed to do that successfully to make the…