I'm trying to build a slightly modified UIImagePickerController with a UIImagePickerControllerSourceTypeCamera source-type. I would like to retain the default controls of Flash, Front/Read facing camera, and Photo Capture but replace the default cancel button with a smaller cancel button & a button to launch the user's device photo-library. Is there a way to do this without having to recreate the entire camera UI? If there's not a way, is there a 3rd party library (commercial or open-source) that allows for this? Thanks.
I can tell you that there is no way to modify the standard camera UI unless you recreate it entirely, but I don't know if there is any library to help you with this. I had to create a new UI and I didn't find it difficult. You can easily bind the UI elements with the functionalities you need. This might get you started.
Related
Is there a way to use the default iOS camera controls with react-native-camera? Here's a screenshot of what I'm talking about:
I'd like to use this standard iOS UI for taking a photo, toggling front/back camera, toggling flash, etc, and not create buttons for each of those from scratch. Thanks for any help.
Answering my own question here: react-native-image-picker is a better choice for this task. It lets the user either pick a photo from their camera roll OR use the native camera (with default iOS controls) to take a photo.
Could anybody tell me how I can develop the feature like deposit checks feature in Wells Fargo bank iOS app ? To implement it, should I customize the default UIImagePickerController or AVCaptureSession or something else? the camera function I want looks like the attached screenshot : Wells Fargo iOS app - deposit check
I don't need the image processing function ,just want to know how to customize the camera view like this.
It depends on the functionality you need.
You can customize the UIImagePickerController interface. In the image capture interface, you can hide the standard controls by setting shows- CameraControls to false, replacing them with your own overlay view, which you supply as the value of the cameraOverlayView. If it is all you need UIPickerImagePickerController might be all you need.
But you should probably consider getting rid of UIImagePickerController altogether and designing your own image capture interface from scratch, based around AV Foundation and AVCaptureSession. You get no help with interface, but you get vastly more detailed control than UIImagePickerController can give you. For example, for stills, you can control focus and exposure directly and independently and so on.
I am building an app to capture image(video) using UIImagePickerController. As my requirement is concerned I want to disable only the Rear/Front camera switching control. I tried the following code,
showsCameraControls=NO;
But it cancels all the controls like focus, flash. Can anyone suggest any solutions to disable rear/front switching control in UIImagePicker?
If you want the users to use the front camera. You can set cameraDevice to UIImagePickerControllerCameraDeviceFront. If you want to hide it, you must customize the overlay view by yourself.
There are two ways to do this.
You can hide the flip camera button by adding an overlay(UIView) on top of the button.
You can use a third party library for camera like NBUCamera where you can switch toggle camera control
Feel free to suggest edits to make this better
You can not hide only camera filp button in UIImagePickerController but you can use below library for customize camera controll
https://github.com/omergul123/LLSimpleCamera
I've managed to make my app use the front camera via this website.
By changing the code I can decide which camera the app will use.
I want my users to make that decision though, so I'm looking for a way to implement this... For example by putting a checkbox on index.html or by putting a button on the scanning-screen which swaps the camera.
Does anyone have any idea how to do this?
I would be very thankful...
I want my camera ui will have the regular Camera Roll button. The one that you have when you open the camera app. Is there a simple way doing that or I'll have to use a custom layer? Tried searching in the documentation without success.
There is not an easy way to do it. You should implement your own custom toolbar to replicate the camera app behavior. You should use the overlay view property of the imagePicker. Have a look at this link for a possible implementation