iphone - Crop an image to make a process on the result -


i want recognise text written in image, want crop image make process on desired part not image. idea how can ? here code using on image:

nsstring*ret= [self doprocess:capturedimage]; 

here want crop captured image make process on it.

you can define cgrect part of image want extract , use below method:

cgrect croprect = ...; uiimage *cropped = [uiimage imagewithcgimage:cgimagecreatewithimageinrect([fullimage cgimage], croprect) scale:fullimage.scale orientation:fullimage.imageorientation]; 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -