How to set image as the source of camera - java

I wanna know if there is any way that I can use an image as the camera source to trick the in-app camera shooting of other apps, it doesn't matter if this needs root or Xposed or etc. thank you in advance

Related

How can I open a user's camera and have it open, but NOT to take a photo on Android Studio

I want to open the camera but not in photo form so I can add an overlay. I just need the camera to display what is shows but not to take the photo if that makes sense... How can I do this?
maybe this article help you open camera view in your app by creating your own view and open camera in its own different thread ,
as it might take time to load and this will result in the lagging UI.
Maybe this article from android developers website will help you achieve what you want.
https://developer.android.com/training/camera/cameradirect#kotlin

Android - send view to back

I am using this plugin within an Ionic app to view my device's camera and then stream over RTMP - https://github.com/disono/cordova-rtmp-rtsp-stream
This works great, but I need the Ionic webview to appear over the top of the camera so that I can show images & text on top of the camera view. Can someone tell me how to edit the plugin to place the camera view behind Ionic's webview please?
Unfortunately I do not know the Java language, but I believe the file that requires editing may be RTMPActivity.java
Thanks in advance for any help.

dewarping the fish eye images using android application

I am working on android app. Currently my app is used as a viewer for camera.
The camera side handle the fish eye dewarp mode. my app is just used to view the dewarp mode stream.
Now we are looking for a way to implement fish eye dewarping mode and handle on application side in android.
I am totally new into this . I wish to know
is there any library (open or paid) where in i can give the fish eye images and the library gives me the dewarped view mode.
Does Android provide any api to dewarp (flatten image) for fish eye camera ?
I wish to implement an application with android, having a feature to able to dewarp and view the fish eye views from the camera.
any help in this would be great .
OpenCV has fisheyeUndistort method, as well as methods for estimating distortion parameters, consider the manual, this and this.
I don't think so.

How can you add and play a video on fragment in android?

I am a new developer, trying to get my head around android. I managed to get fragments working and I am unable to add and play a video on it.
Also, I added a image successfully, is it possible to pinch zoom on that image, if so how?
I really appreciate your help.
Thanks
You can implement this library
https://github.com/chrisbanes/PhotoView for zoom on image.
if you read the Sample Usage and analyse the sample app you can zoom it.
About playing video on fragment. It is simple just google it.

Set android camera to send gray scale images

Can the android camera be programmatically set to send gray scale images.
I'm not asking about conversion after the images have been received, I'm asking for a way to programmatically set it like we do with fps, resolution etc.
Are you talking about the built in camera app (via an intent) or inside your app?
If it's the built in camera app, i don't think it's possible, and even if it was , you can't assume it will work the same on all devices, since many of them have customized camera apps.
About camera within your app, yes, you can do it, and there are examples out there how to do show things on the camera based on its content , like this one

Categories