objective c - iOS Camera Programming - How to get still images Quickly In use AVCaptureVideoDataOutput and AVCaptureStillImageOutput case -


i still images in case of avcapturevideodataoutput , avcapturestillimageoutput,but spends time(2s) when still image capturestillimageasynchronouslyfromconnection,

when use avcapturestillimageoutput, still image time of 0.5 seconds.

how can reduce time in case of avcapturevideodataoutput , avcapturestillimageoutput。

the photo avcapturevideodataoutput low quality photo, if want have same quality photos takes avcapturestillimageoutput, unfortunately have no option waiting time takes.

when image quality not concern, try changing session preset optoions available,

 //----- set image quality / resolution -----  //options:  // avcapturesessionpresethigh - highest recording quality (varies per device)  // avcapturesessionpresetmedium - suitable wifi sharing (actual values may change)  // avcapturesessionpresetlow - suitable 3g sharing (actual values may change)  // avcapturesessionpreset640x480 - 640x480 vga (check supported before setting it)  // avcapturesessionpreset1280x720 - 1280x720 720p hd (check supported before setting it)  // avcapturesessionpresetphoto - full photo resolution (not supported video output)   nslog(@"setting image quality"); [capturesession setsessionpreset:avcapturesessionpresetmedium];  

changing preset result different processing times.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -