I am implementing an application and my app needs to crop image based on background contrast. I have seen similar behavior in document scanning applications where they automatically pick up image borders for crop. Can someone help me figure out how to achieve this functionality?
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.