public static CIDetector CreateTextDetector(CIContext context, CIDetectorOptions detectorOptions) { using (var options = detectorOptions == null ? null : detectorOptions.ToDictionary()) return(FromType(TypeText, context, options)); }