Skip to content

Commit f0f6a5b

Browse files
authored
Merge pull request #675 from jgeralnik/vision-safety
Remove unsafe from some vision framework functions
2 parents 5048147 + e4ff0eb commit f0f6a5b

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

framework-crates/objc2-vision/translation-config.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,30 @@ class.VNTargetedImageRequest.methods."initWithTargetedImageData:orientation:opti
9191
class.VNTargetedImageRequest.methods."initWithTargetedImageData:orientation:options:completionHandler:".skipped = true
9292
class.VNTargetedImageRequest.methods."initWithTargetedCMSampleBuffer:orientation:options:".skipped = true
9393
class.VNTargetedImageRequest.methods."initWithTargetedCMSampleBuffer:orientation:options:completionHandler:".skipped = true
94+
95+
96+
###
97+
### Safety
98+
###
99+
100+
class.VNImageRequestHandler.methods."initWithData:options:".unsafe = false
101+
class.VNImageRequestHandler.methods."performRequests:error:".unsafe = false
102+
103+
class.VNRecognizedText.methods.string.unsafe = false
104+
class.VNRecognizedText.methods.confidence.unsafe = false
105+
106+
class.VNRecognizedTextObservation.methods."topCandidates:".unsafe = false
107+
108+
class.VNRecognizeTextRequest.methods.new.unsafe = false
109+
class.VNRecognizeTextRequest.methods.results.unsafe = false
110+
class.VNRecognizeTextRequest.methods."setRecognitionLanguages:".unsafe = false
111+
class.VNRecognizeTextRequest.methods.usesLanguageCorrection.unsafe = false
112+
class.VNRecognizeTextRequest.methods.customWords.unsafe = false
113+
class.VNRecognizeTextRequest.methods."setCustomWords:".unsafe = false
114+
class.VNRecognizeTextRequest.methods.recognitionLevel.unsafe = false
115+
class.VNRecognizeTextRequest.methods."setRecognitionLevel:".unsafe = false
116+
class.VNRecognizeTextRequest.methods."setUsesLanguageCorrection:".unsafe = false
117+
class.VNRecognizeTextRequest.methods.automaticallyDetectsLanguage.unsafe = false
118+
class.VNRecognizeTextRequest.methods."setAutomaticallyDetectsLanguage:".unsafe = false
119+
class.VNRecognizeTextRequest.methods.minimumTextHeight.unsafe = false
120+
class.VNRecognizeTextRequest.methods."setMinimumTextHeight:".unsafe = false

0 commit comments

Comments
 (0)