Inside my application, I need to access the camera to be opened inside the app. The goal is to record the part inside the box only as shown in the attached image
So anyone has the idea how to do this ???
You can't record the screen with any public API. Maybe you can try to record a video with UIImagePickerController and then cut the frames that you want.
Related
I know I can take screenshots using following:
GetWorld()->GetGameViewport()->Viewport->TakeHighResScreenShot();
It saves a screenshot in <Project>\Saved\Screenshots\Windows. But I want more control over the image. Is it possible, say, to access individual pixels?
Is it possible to get what's on the screen as an image object (and maybe also save it in a custom location)?
Answered here: https://forums.unrealengine.com/t/how-to-access-camera-view-as-an-image-without-taking-screenshot-in-unreal-engine/431744
Seems like people over at Answers#UnrealEngine are more active.
I wanted to use the UiImagePicker to record a video then let the user browse the frames using the scrollview built in the UiImagePicker and while at it, select a few frames that interest the user.
I know I can overlay a control on top of the uiimagepicker to trigger the selection
What I am not sure about is whether I have programatic access to the current frame shown by the UIImagePicker for me to extract an image out of it.
Please let me know if this is doable/possible.
Are there any other time efficient/elegant ways to achieving the above?
I had created by own view with video recording and frame selection (using AVCaptureSession, AVCaptureVideoDataOutput) but would take me quite a bit of time to polish it to make it look good like UIImagePicker plus everyone is familiar with the default camera app in the iPhone.
I hope it makes sense what I want to achieve.
I know one can kind of achieve the goal by taken a screenshot of the screen but I just want the user to click one button to capture the current show frame.
Thanks
Screenshot method did not work for frozen frame from the video recording.
Went with a custom AVFoundation based frame capture.
I have compiled the sample PLayCap from the directshow.NET website in C#.
PLayCap - This application creates a preview window for the first video capture device.
Although the program works fine, i need to add buttons to the form. I cannot do that since, the video capture is displayed on the entire form. I want it to be displayed on a picturebox, for instance picturebox1. So that I can move the picturebox1 a little up and put some buttons.
Does anyone know how to do that ?
Many Thanks
You have to set handler of video render filter to picterbox handler.
use picturebox1.handler property
Every time the camera of the iPhone captures a new image, I want to modify it and then display it on the iPhone screen. In other way: how to modify in real time the video stream from the iPhone camera?
I need a method who is called every time when a new image comes from the camera.
Thanks for your help! :-)
EDIT: what I want to do is like augmented reality: while I'm taking a video, every image is modified, and is showed in real time on the iPhone screen.
You could capture an image with the UIImagePickerController's takePicture method and draw your modified version to the cameraOverlayView.
You get the picture recorded as a result of the takePicture message from the UIImagePicker's delegate in a imagePickerController:didFinishPickingMediaWithInfo:. From the dictionary supplied to that method, you can get the original image which you modify and draw to the overlay.
Here is an example for using the cameraOverlayView. You should be able to re-use the captured image from your delegate for drawing your overlay view.
Many augmented reality apps do not actually modify the image but just overlay information based on what they think is on the screen from input from the accelerometer and compass. If this is the kind of AR you are looking to do then try looking at ARKit.
You cannot process the camera's image data in real time. THere is no API to do this. File a request with Apple using their bug tracker. Many of us have done this already. More requests might lead to this being possible.
Oh, yes, just use an overlay view then. You were talking about modifying the video stream, which is clearly not needed.
In building an iphone app, I can render a blank view, (say that's all I have, just a generic, full screen view) and I want to populate in that view an image from the web, say, "http://www.mypicture.com/mypicture.jpeg". I want to do this as fast as the network allows and not use the photo roll or any part of the os that the user can see. How would I implement this? Also, how do I capture an snapshot (fullscreen or not) image from Google street view without the user knowing so? Thanks all for your anticipated time...xobmo
Use this example, replacing the html with an <img> tag with your image as the src attribute.
Alternately, you can base64-encode your image as in this example, but I figure you'll probably do what's easiest.