title: Detect Image border/edge and crop - iOS
body: <p>I am developing a OCR app for scan IC card and passport.</p>
  
  <p>Now I want to crop the IC card by detecting the edges.</p>
  
  <p>For an example:</p>
  
  <p>I have tried <a href="https://github.com/mmackh/IPDFCameraViewController" rel="nofollow noreferrer">https://github.com/mmackh/IPDFCameraViewController</a> but its not very accurate for white card on a white background.</p>
  
  <p>I am searching for something like the "Border Detector" uses BlinkID ios library
  <a href="https://github.com/BlinkID/blinkid-ios" rel="nofollow noreferrer">https://github.com/BlinkID/blinkid-ios</a></p>
  
  <p>Can anyone suggest me a good library for live detecting borders of a image and crop.</p>