iphone - GPUImage video capture with 'tap-to-focus' and exposure control -


i using tutorial:https://github.com/bradlarson/gpuimage create video capture application in ios.

the application , running. have 1 query...

we use code start live video capture session:

 gpuimagevideocamera *videocamera = [[gpuimagevideocamera alloc]          initwithsessionpreset:avcapturesessionpreset640x480      cameraposition:avcapturedevicepositionback];  videocamera.outputimageorientation = uiinterfaceorientationportrait;   gpuimagefilter *customfilter = [[gpuimagefilter alloc]       initwithfragmentshaderfromfile:@"customshader"];  gpuimageview *filteredvideoview = [[gpuimageview alloc] initwithframe:cgrectmake(0.0,     0.0, viewwidth, viewheight)];    [videocamera addtarget:customfilter];  [customfilter addtarget:filteredvideoview];   [videocamera startcameracapture]; 

but how enable 'image picker' style 'focus-on-tap' , exposure correction on tap feature framework.

is possible? please point me in right direction.

please help.

thanks in advance.

got it, partially:

 - (void)touchesmoved:(nsset *)touches withevent:(uievent *)event {     uitouch *touch = [touches anyobject];    cgpoint touchpoint = [touch locationinview:self.view];      if([videocamera.inputcamera isfocuspointofinterestsupported]&&[videocamera.inputcamera isfocusmodesupported:avcapturefocusmodeautofocus])    {     if([videocamera.inputcamera lockforconfiguration :nil])    {     [videocamera.inputcamera setfocuspointofinterest :touchpoint];     [videocamera.inputcamera setfocusmode :avcapturefocusmodelocked];       if([videocamera.inputcamera isexposurepointofinterestsupported])       {         [videocamera.inputcamera setexposurepointofinterest:touchpoint];         [videocamera.inputcamera setexposuremode:avcaptureexposuremodelocked];     }     [videocamera.inputcamera unlockforconfiguration]; } }  } 

the exposure , focus getting locked, freezing after time...

working on it.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -