cidetector

CIDetector not detecting proper Rectangle in iOS?

余生长醉 提交于 2019-11-28 11:31:29
问题 I am trying to detect a Rectangle using CIDetector . I am using code from this: https://www.cocoacontrols.com/controls/vnimagescanner My problem is when I am trying to detect any Rectangle object, sometimes it's detecting or sometimes it's detecting Odd Rectangle (please see below images). I tried to search this Google but didn't find any solution of this. Normal case: Some bad case: Here is my code to set the CIDetector Accuracy : func highAccuracyRectangleDetector() -> CIDetector? { var