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
3
votes
1 answer

Touch-To-Focus on cameraOverlayView in iOS 5?

I used to have touch to focus on my cameraOverlayView (in UIImagePickerController), but once I updated to iOS 5 it doesn't work. I used a custom view class which I applied to my view in cameraOverlayView. I made sure everything is connected and…
3
votes
1 answer

How to make camera background darker other than rectOfInterest in Swift 5, XCode 11

I'm looking to make a barcode scanner app. As I'm new to Swift and Xcode I've managed to get help from other stackoverflow articles (this and this one) to create a page where I can scan a barcode within rectOfInterestArea(with corners) instead of…
dweb
  • 141
  • 7
3
votes
3 answers

Display a rectangular bounding box (overlay) on custom Camera2 API so only the image inside the box is captured

I'm using the following code to capture an image using the custom Camera2 API. I am a beginner and I have no idea how to display a rectangular overlay on the camera preview. I did try the solutions available here, but I can't figure out how to fit…
Vaishnavi Killekar
  • 457
  • 1
  • 8
  • 22
3
votes
1 answer

how to add a image to camera overlay view (swift4)

My code right here displays a red line on the top of the imagePicker when taking a photo. I want to do the same thing but add a image in the middle of the red line. See pic. I added the word image in a yellow box as a example of what I am trying to…
user8105388
3
votes
1 answer

Enable camera roll thumbnail in UIImagePickerController

Is there a way to display the camera roll thumbnail (marked in red below) inside a UIImagePickerController? The right image shows what a default UIImagePickerController looks like with a camera source. This is how I present the camera: func…
Daniel Larsson
  • 6,278
  • 5
  • 44
  • 82
3
votes
2 answers

How to create a cameraOverlayView

I am really struggling to get my head around how to do this. I have a UIImagePickerController which works fine but I want to create my own CameraOverlayView so that I can customise the buttons. I can't seem to figure out how to create the overlay in…
RGriffiths
  • 5,722
  • 18
  • 72
  • 120
3
votes
2 answers

How to remove title bar using surface view for adding camera overlay in android

I followed this link to create camera overlay with an image. But my problem is I can't remove the title bar using the following codes in onCreate()…
CrazyLearner
  • 782
  • 3
  • 11
  • 28
3
votes
2 answers

iphone 5 - center UIImagePickerController on the screen

I created a custom overlay for the camera, using the following code: - (void) showCamera { if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { self.picker = [[UIImagePickerController alloc] init]; …
3
votes
1 answer

UIImagePickerController with cameraOverlayView focusses when button in overlay is tapped

I'm new to Objective C and it's my first question I'm posting here so this is probably the easiest question in the world to answer, but I couldn't figure this one out. I am trying to create an iOS app that uses the camera. I'm using the…
3
votes
0 answers

What is the correct cameraViewTransform to apply to UIImagePickerController?

I'm trying to put a custom overlay over a UIImageCameraPickerController. To avoid the white space at the bottom I know I have to apply a scale transform of 1.24299 in the Y axis. Why that value? Is that value correct in iPhone 5? Can I calculate…
emenegro
  • 6,901
  • 10
  • 45
  • 68
2
votes
1 answer

Exlusive touch in cameraoverlay view (of the camerapicker) in iOS?

In my application, I added a cameraOverlayView to the camerapicker. It contains three subviews, two UIButtons and one UIImageView. The image is draggable. The buttons are used to change the image to another one. When I touch a button, or the image,…
calimarkus
  • 9,955
  • 2
  • 28
  • 48
2
votes
1 answer

How to customise the Camera screen frame?

I want to lauch camera with customised frame so that I should be able to show UIsearchBar in the same View and on touching the UISearchBar I need to close the camera, but the UIsearchBar should be visible. So I want to stop the camera to take the…
user855698
2
votes
0 answers

How to add an Overlay Image to camera before take a picture in JavaScript

I would like to add a semi-transparent image as an overlay to the camera in JavaScript, so users are guided what they need to photograph, but I am struggling. I currently access the smartphone's native camera as follows:
2
votes
3 answers

fire event when touch up inside uiview and outside button

I have a view overlayed to the iPhone's camera view. In this view I have some uibuttons that are displayed in positions depending of values from accelerometer/compass. I need to fire an event when the user touch up inside the view but he doesn't…
2
votes
2 answers

Combining Images in CameraView with Overlay. (Swift 3)?

I just about have this solved. Thanks to some brilliant help getting me on the right track. This is the code I have now. Basically, I can now make an image out of the drawn overlay, and the cameraPreview. But can't yet combine them. There seems very…
Postmaster
  • 110
  • 3
  • 13