Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Camera Failed to capture still image with request CAMMutableStillImageCaptureRequest

I use the UIImagepickercontroller to take images. Its a custom overlay camera.

I use not the image preview.

I take multiple images and save them in a folder. And I think this is the problem.

If I multiple click on the "takePicture" button the whole time I get this output:

[Camera] Failed to capture still image with request <CAMMutableStillImageCaptureRequest burstIdentifier:(null) irisIdentifier(null)> (Error Domain=CAMCaptureControllerErrorDomain Code=-22100 "(null)")

Sometimes the app crashes. with this error:

[Camera] Attempting to generate BGRA thumbnail data of format 5003 with an invalid surface.

How can i solve this problem ?

like image 573
emrepb Avatar asked Feb 27 '17 14:02

emrepb


People also ask

How do I capture an image in HTML?

The capture attribute is supported on the file input type. The capture attribute takes as its value a string that specifies which camera to use for capture of image or video data, if the accept attribute indicates that the input should be of one of those types. The user-facing camera and/or microphone should be used.

How do I capture an image from a website?

Right click the URL, choose Open in a new tab. 6. In the new tab, right click the image and Save image as to then give the image a name and choose the destination on your pc to save it to.

How do I capture an image?

Press Ctrl + PrtScn keys. The entire screen changes to gray including the open menu. Select Mode, or in earlier versions of Windows, select the arrow next to the New button. Select the kind of snip you want, and then select the area of the screen capture that you want to capture.


1 Answers

I think you used any type of "mediaTypes" in image picker.

if you want to take picture from image picker you no need to set "mediaTypes" in image picker, only user "takePicture" method.

like image 122
Pankaj Sonava Avatar answered Sep 28 '22 04:09

Pankaj Sonava