use picture from pc instead of camera image in emulator - android

In my application i have to use camera to take picture and analize, but i dont have a webcam with my PC.
In this application after taking a snap it automatically start analizing
Is it possible to use any picture stored in my pc to treat it as taken from camera for continuing the further process ?
thanks

You should load this picture to the sd card of the emulator and then access it, analyze it, etc. You can't access directly from your pc.

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

image auto saves to device picture album

I have a multi platform app - iOS and Android.
One of the features in the app is to capture images. I have a toggle switch in the app settings which allows the user to save the image to the device picture album if the switch is enabled.
This is an issue I can only produce in Android. Even without the toggle switch enabled, the captured photos still save to the device. I have tested this on Android 4.4.2 and 6.0
It does not do this in iOS.
There is nothing in my code to suggest that the photo should still be saved, I have checked it over and over.
Has anyone else come across this? If so what can be done to rectify the issue?
Thanks,
This is simply how FireMonkey captures images on Android. It saves a captured image to a file before handing the pixel data to you. And it does not provide access to the captured image's filename so you can remove the file afterwards.
FireMonkey has an IFMXCameraService interface with a TakePhoto() method, which accepts a NeedSaveToAlbum option:
Taking Pictures Using FireMonkey Interfaces
However, it is currently broken on Android:
RSP-13118: [Android] TTakePhotoFromCameraAction saves Image on Disk unexpectedly
RSP-15820: IFMXCameraService TakePhoto , NeedSaveToAlbum False not working
Until that is fixed, you could use JNI to access Android's camera APIs directly, then you can do whatever you want with the images.

How do I capture all images from camera with android app running in background?

I know how to make a preview and capture images inside an app.
However, I want to make a "capture mode". In this mode, the user may close my app and any pictures that get taken in other apps such as the default camera app get sent to my app, so I can make a gallery of them in my app.
I have an app which has a button that switches capture mode on and off, but how do I make it listen to camera events happening elsewhere? Would I have to search through the gallery for pictures taken in the time frame that capture mode was on?
Check out http://developer.android.com/reference/android/provider/MediaStore.Images.Media.html to find images located on the phone's internal or external storage during a specific time frame.
If you are doing any sort of work on these images, you could also investigate using a Service to ensure that your app can process the images while the other apps are running, but this hopefully won't be necessary.

Categories

Resources