You will not be able to do this with the current implementation of Core Image on iOS, because angle detection requires some operations that Core Image does not yet support. However, I am developing an open source framework called GPUImage , which has the necessary capabilities.
To find the corners of an object, you can use the accelerated GPU implementation of the Harris angle detection algorithm, which I just started working. You may need to adjust the thresholds, sensitivity and size of the input image to work in your specific application, but it can return the corners for pieces of paper that it finds in the scene:

, , , .
, , , GPUImage GitHub GPUImageHarrisCornerDetectionFilter GPUImageVideoCamera. , .
iPhone 4 ~ 15-20 FPS 640x480, , , ~ 10 FPS. , . IPhone 4S 20-25 FPS, . , .