Take picture from streaming video - android

I need to take a picture from the mobile phone while its camera is open.
Actually, I need that picture for face recognition. I will take a picture, I will detect a face and then post it to a web API (I am using ayonix webapi 1.3 https://market.mashape.com/felx/ayonix-webapi-1-3)
On my Android application I can invoke a service with images on its storage. So the service part is ok. Now I need to get an image while the camera is open.
Is it possible, and if so how? I could not find any tutorials.

Related

Replace an image for API Camera Internal

I have an API integrated application that calls the Internal Camera API. The application can then use the camera to capture with the interface inside that application. But now I want to use a previously taken photo, instead of the app taking a photo with the camera, when I press the shutter button on that app, it will record the photo I selected first.
Any ideas for the above problem? I don't want to mention the android virtual machine as that has a rather high requirement for hardware.
I have some ideas like Fake Camera software but it only applies to apps that call Android System Camera apps and not apps that use Internal Camera API. I also have an idea about using my pc to make a device that can pass an image to the Internal Camera API on the android device. But I am not knowledgeable enough or there is no software that can meet that requirement.
I think with the growth of the stackoverflow community, I can get my answer to this problem.
Thank you for reading my question.

Accessing camera at same time

Let say there is an online proctor application that is using webcam while examination and they're giving
an option to upload the photo of written answer that is on A4 sheet through camera.
So i just want to know is it possible that when we're taking picture of answer at that time also they using camera as a webcam .
because i think it can use either for webcam or for clicking photos

Taking a photo without preview in android

I'm learning android studio and I'm currently working on a robotics project in which an Android phone is placed on the robot and used as the processor, therefore I can't reach the phone by hand. The phone needs to do some image processing. And it's not a real-time processing so I need to take a photo (Preferably Bitmap) whenever I want, quickly and without preview and confirmation. I've tried some tutorials and they all open the camera app and the user needs to capture and then confirm the photo.
I don't have problem with the processing and I don't need to use openCV etc. I just need help with capturing the photo. Thanks
You can implement your own camera, either via the camera APIs (hard) or by using a library (CameraKit-Android, Fotoapparat, etc.), thank you will have control, you can directly save the image without previewing it

Can I read the opened camera intent from my so

I built a face detection app that is working fine, the user can:
open the camera intent
take a picture
then it will screen this picture and tell if there is a face in it or no.
My idea is I don't need the user to open the camera from my app I need the user to open the camera
app in Android as normal, and then I will be working in the background reading the picture had been taken by his camera, analyse it and till by a toast if a face had been detected or no.
Not sure about if my application can detect if the camera had been opened or no and if opened can detect if phot had been taken or no, and if yes, can I read this image or no!!
If yes, how?!
Not sure about if my application can detect if the camera had been opened or no
Not really. You cannot detect what apps are in the foreground on modern versions of Android, for privacy and security reasons. And, even if you could, there are hundreds (perhaps thousands) of camera apps. You would have no reliable way of knowing whether any given app is really a camera app.
if opened can detect if phot had been taken or no
Not really. There is no requirement for a camera app to put its images anywhere that your app can access it. And, there is no reliable way to know whether any given file is a photo or not.

How can I get my app to recognize speech input to take a photo?

I am developing an app which takes photos with the use of the voice. I have read the google sdk voice recognizer, but I haven't quite understood it. So here I am asking, what specifically can I add to my app with the use of the camera that will tell my app to listen for the word 'snap' in order to take a photo. I haven't found a real tutorial of it nor do I understand how to really code it by just looking in the android sdk. I want to be able to open the camera, and then you click the listening button, and it waits for the user to say 'snap' then takes a photo, review it, then return back to the camera viewer.

Categories

Resources