我也发现了这个问题onAppleDevForum.设置为CIDetectorTypeRectangle的CIDetector是否有可能返回不止一个矩形?目前,此代码始终返回0或1的feature.count,即使图片中充满了矩形。letcontext=CIContext()letopts=[CIDetectorAccuracy:CIDetectorAccuracyHigh]letdetector=CIDetector(ofType:CIDetectorTypeRectangle,context:context,options:opts)letimage=CIImage(image:se