Android App development for image recognition using Caffe - android

I am working on a project in which the android app user is suppose to take an image as input and at the back end I have caffe's deployment.py file which takes an image as input and gives category (the image belongs to ) as output.
Now How should I connect both or how should I make my server side so that when the android app queries it goes to caffe and caffe gives category name as output which should be shown on android app.
I am novice to android app development.Please suggest if there are any sources I should read from.
can Flask-Restful be helpful?

Have a look at this repository. It's caffe ported to android. They have a sample app as well here. Here is something I worked on a while ago. It might be useful to you.

Related

How to i handle a bufferoverflowexception that pops out after using a custom AutoML model?

I am on a tutorial about deploying custom Models on AutoML onto edge, in this case an android device.
link is here: https://cloud.google.com/vision/automl/docs/tflite-android-tutorial
I followed the step to "customize" it with my own model and run, but i end up with a lot of buffoverflowexceptions.
What I did:
I exported my autoML models and i downloaded (out of the 3: metadata,.txt,.tflite) the .txt and the .tflite.
I followed up renaming them "graph.lite" and "labels.txt" like in the example and replaced the tutorial's example with mine on android studios. I also followed the tutorial's changes for custom models, like changing to byte etc.
However, running the app crashes the app straight away. with the following error:
https://i.stack.imgur.com/RLeSy.png
I was hoping for an app that could detect chairs and tables!
Help is greatly appreciated!

How to make my react-native android app appear in the share list of another android app

Here, I am adding the image for more clarification of my problem statement.
You're looking to create a share activity for your Android app.
react-native-share-extension should provide you with a good starting point (as well as providing support for iOS if you're working on a Mac).

How to use ZXing library without installing barcodescanner app

I have been developing an android app to scan the barcode and QR code and send the results to some other application (HTTP). I have read most of the documentation over internet and here in stack over flow and got it working. I could able to run the stand alone zxing android app on my device, also I could run my own separate android app to use Zxing intent to scan the bar code.
But even after reading so many questions here and some of the blogs in internet, I could not get my strict requirements.
I want to achieve following things.
1. I do not want to install a separate barcode scanner app in my device to get my own app to work (to scan the barcode).
2. I used following code
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
startActivityForResult(intent, 0);
and when I run the app in my devide, it asks 'Select the application to complete this action' and it shows 'Google' and 'Google Goggles' and it opens the Google page default camera and scans the barcode. I wanted CaptureActivtiy default capturing page to come (not Google's one) to scan the bar code.
3. I have tried using ZXing in my own app as library but it did not work.
Could you please tell where exactly I am going wrong to get this done ?
I found "zxing" complicated to use. Then I tried with "ZBar Android Version Library". It was so simple.
You can download the library from here: http://sourceforge.net/p/zbar/news/2012/03/zbar-android-sdk-version-01-released/
Within the downloaded package, there is a very simple example. Just follow it or include the example to your app. Hopefully your task will be done.
You are showing that you want to integrate by Intent. That's the recommended way to do it, and you can make it even easier, and restrict the list of apps that reply with IntentIntegrator. It's about 5 lines of code: https://code.google.com/p/zxing/wiki/ScanningViaIntent
However this contradicts what you're saying about wanting to implement the scanning in your app. You should clarify what you want.
If that's the case, you need to build your own scanning app, and reuse core.jar and perhaps bits of Barcode Scanner in android/. This is not supported -- you're on your own. Please don't clone our app.

android - using the new android expansion for large applications

until recently , for too large apps (50+ MB apps) you had to use your own server to host the large files and add your own logic on the app to download and handle the file from the server.
on March 5th 2012 , google published of a new way to host your large files (via the android market , which is now called "android play" ) , so apps can reach up to 4GB of size:
http://android-developers.blogspot.com/2012/03/android-apps-break-50mb-barrier.html
it has its limitations and rules , but it's free and i think everyone should consider using it.
my question is : is there any nice tutorial , including sample project , that i can do the minimal changes in order to make it work with my app ? maybe someone has already tested it and would be able to share a sample project?
i've tried to read what they wrote there , and it seems that for every thing i read , there is another link to read from , and in the end i didn't understand the full step-by-step process that i need to go over in order to create a working project.
It's not exactly a tutorial, in that it doesn't give you line-by-line code to create a complete application, but the Developers Guide article on APK Expansion Files contains a quite detailed checklist of things to do.
there's a nice sample project that comes with the library when you download it - saved me a lot of work.

App Generator on Android

I want to develop an app which will create another Android app as output.
So my question is, whether this thing is possible in Android?
I got one PC software called "App Inventor" which takes data from user and give .apk file as
output,which can be installed in Android device.
This same thing my app should do on Android device.
Can any one give any ideas regarding this?
So my question is, whether this thing is possible in Android?
An Android app can generate text files. These text files may represent Java source code, layout XML, etc. However, an Android app cannot run a Java compiler or the Android tool chain.

Categories

Resources