Questions tagged [camera-overlay]

Camera-overlay represents the iOS property cameraOverlayView, which is a custom view to display on top of the default image picker interface. The camera-overlay is defined via the cameraOverlayView property of the UIImagePickerController.

The cameraOverlayView property is defined in the UIKit Framework Reference: https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIImagePickerController_Class/index.html#//apple_ref/occ/instp/UIImagePickerController/cameraOverlayView

84 questions
2
votes
0 answers

How to record video with overlay view

Hi I am trying to record video with overlay. I have written: -(void)addOvelayViewToVideo:(NSURL *)videoURL to add overlay view on recorded video but it is not working. I written the code to record video in viewDidLoad using AVCaptureSession. //In…
2
votes
2 answers

Camera Overlay View on Just Capture Section

I am trying to add a cameraOverlayView on a UIImagePickerController, but I want the overlay to cover just the part of the screen that shows what will be captured by the camera, not the "Cancel" button, take photo button, flash settings, or anything…
2
votes
1 answer

Button on cameraOverlayView not working

I have the following cameraOverlayView that is working to an extent. When the UIImagePickerController is called the standard controls are not shown and the 'Take Photo' button and logo.jpg are shown as described in ObViewControllerCameraOverlay.…
RGriffiths
  • 5,722
  • 18
  • 72
  • 120
2
votes
1 answer

Constrain cameraOverlayView to center of screen

I'm using zBAR QR Reader in an iPad app im creating and I've added a custom crosshair overlay to the ZBarReaderViewController. I've managed to get the overlay into the center, however when the device rotates, the overlay obviously goes off center.…
2
votes
1 answer

Crop Image using CGRect

I have been trying to do this since forever. I have a camera overlay. I want to get my final image to be the part of the image viewable from the in-built camera. What I did was make CGRect with dimensions equal to the square in the camera. Then I…
nupac
  • 2,459
  • 7
  • 31
  • 56
2
votes
0 answers

Prevent shutter animation from appearing full screen when using cameraOverlayView

I'm using a custom UIView as a camera overlay. Parts of the top and bottom of the screen are hidden and the middle is dedicated to what the camera sees. My problem is that whenever I turn on the camera, the shutter animation hides the whole screen.…
YogevSitton
  • 10,068
  • 11
  • 62
  • 95
2
votes
1 answer

UIImagePickerController cameraOverlay behind shutter

Can not find any definitive answer, but it looks like it is not possible. I am just displaying a frame image as an overlay to guide the user where the photo should be positioned. However the frame appears on top of the shutter on the opening and…
momo
  • 3,404
  • 6
  • 37
  • 66
2
votes
1 answer

UIActivityIndicatorView not showing on theCamera overlay view when image taking done

I have a UIActivityIndicatorView middle on camera OverlayView.xib. I am taking multiple snap by calling [cameraPicker takePicture] repeatedly. I want to show the indicator when all snaps taking done by the bellow code: -…
kallol
  • 319
  • 1
  • 13
1
vote
0 answers

renderincontext works fine in portrait but not landscape

I am developing an app to allow for an view to be overlaid on a picture taken. I am using the following code to accomplish this: UIGraphicsBeginImageContextWithOptions(imageSize, NO, 0.0); [self.cameraOverlayView.layer…
shane-z
  • 13
  • 1
  • 3
1
vote
1 answer

iphone: displaying small, live camera image in window (2)

I am having a great deal of trouble displaying at small, live camera image in a viewController. I would have expected the following code to show camera display to appear in a 100x 100 window, but it keeps appearing full screen! Help…
Jeremy
  • 883
  • 1
  • 20
  • 41
1
vote
0 answers

create dynamic camera overlay that changes with scences

Hi I am new to IOS developing. I've been searching for a while, just can not find a good example. I like to create an app dynamically detect paper, The app should be able to generate dynamic camera overlay by analysing current camera scenes. like…
Benny Ae
  • 1,897
  • 7
  • 25
  • 37
1
vote
1 answer

Adding objects over camera view in app (Swift 3) not under camera view?

I have an overlay over the camera view made up of red circles, stored in the Assets.xcasset ImgOverlay placeholders, and the cameraview (preview) appears behind - or underneath - the overlay. That's fine. As it should be. When I run the app on the…
Postmaster
  • 110
  • 3
  • 13
1
vote
1 answer

UIImagePickerController custom FlashMode button is not working on IOS 10 (swift)

I know that a question of this type is already asked but I Debugged it in bit detail, and i came to this point that when i switched this flag off self.picker.showsCameraControls = false then the custom flash button doesn't respond but if I'll…
Steve
  • 1,022
  • 2
  • 9
  • 30
1
vote
2 answers

iOS how to access the native square photo settings?

As you see in the image below iOS camera supports square photos. But I couldn't find how to do this in the documentation or in the web. All of the examples are adding a custom overlay on the camera which then calculates how to crop the image etc.. I…
Esqarrouth
  • 38,543
  • 21
  • 161
  • 168
1
vote
1 answer

move overlay image on camera preview

I want overlay an image in live camera preview using surface view. There are lot of tutorial in this case and my program run perfectly. Now i want add ability to move overlay image in live camera preview with touch event. I can't find any code or…