Performs array calculations using the GPU android [closed] - android

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I need to process elements in large array and due to performance issues i need to do this in GPU of android device. please give a idea to implement this.

Please take a look at http://developer.android.com/guide/topics/renderscript/compute.html. There are also some other examples and sample projects using RenderScript online. Note that there is no way to reliably access the GPU on Android, because not all Android devices have GPUs capable of doing compute workloads. RS is the preferred method for accelerating parallel work.

Related

Is NDK native choreographer throttled at 10fps? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I’m developing some C++ Android code and I realized that my animations are happening at only 10fps on an actual low end phone.
Has anyone ever seen Choreographer limit the FPS at such a low number?
Also I am using 32bit color and the default is 16bit.
Hypothetically if the cpu were very slow it might, but this is an octacore so I’m doubting that.

How to check that user is writing text in any app in android [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is there any method or way to check that user is writing text whether in whatsapp, or messaging, or any edit text.
No, not supported by Android. It might be possible if you go on a lower level using NDK, but the short answer is, there is no easy way.
The basis of this answer is how Java works, each application runs in a virtual environment and thus they can not interact with each other directly.
If you really want to achieve this (However there will probably be limited usage, such as only rooted devices) I would suggest to start search the web with keylogger android as keywords.

How to compare two voices in Android? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to compare two voices(Names) in my App. Can I use Speech to Text api for it? The idea is to first convert them to text and then compare. Has anybody have tried it? If yes how accurate is it?
Comparing two audio files for similarity is an imperfect science best approached with hammers like Fast Fourier Transforms, audio "fingerprinting", and heuristic analysis. You will need to read up on signal analysis to get started. I recommend starting with this thread to get some ideas.

When should we (really) use RenderScript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I cannot seem to find a clear answer of when to use RenderScript?
Documentation says that we should use it when doing some computing or work with images. This is not so clear especially the part with images.
Can someone give me practical advices when to use it?
For example,
what computing are they talking about?
when should we use RenderScript dealing with Bitmap when there are other methods (or factories) which we can successfully use on such occasions?
Is RenderScript limited only to usage when coding games?
Its really pretty simple. If your application is doing a lot of cpu based data processing (i.e. in Dalvik or the NDK), and you would like a speedup, you should look at RS.
If you don't have a performance problem today I would keep doing what you are doing.

OpenCV object detection from face detection code - ANDROID [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I was wondering if you can use the face detection opencv sample code and slot in a new xml file trainied to recognise the object you wanted it to.
would this work?
if not how do you do it, I have looked a few sites mainly site where it seems to suggest that its done somehow along those lines but I can't seem to get it to work, so was wondering if it is possible.
sure, that's possible.
the cascade classifier just finds, what the cascade-file was trained on, be it faces, eyes or soda-cans.
lots of existing examples here , and ofc, you can train your own, opencv comes with tools for that ( cascade_training, haar_training )

Categories

Resources