Skip to content

Commit

Permalink
Remove unsafe from some vision framework functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jgeralnik committed Dec 9, 2024
1 parent d1d470f commit db7c7e8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions framework-crates/objc2-vision/translation-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,29 @@ class.VNTargetedImageRequest.methods."initWithTargetedImageData:orientation:opti
class.VNTargetedImageRequest.methods."initWithTargetedImageData:orientation:options:completionHandler:".skipped = true
class.VNTargetedImageRequest.methods."initWithTargetedCMSampleBuffer:orientation:options:".skipped = true
class.VNTargetedImageRequest.methods."initWithTargetedCMSampleBuffer:orientation:options:completionHandler:".skipped = true


###
### Safety
###

class.VNImageRequestHandler.methods."initWithData:options:".unsafe = false

class.VNRecognizedText.methods.string.unsafe = false
class.VNRecognizedText.methods.confidence.unsafe = false

class.VNRecognizedTextObservation.methods."topCandidates:".unsafe = false

class.VNRecognizeTextRequest.methods.new.unsafe = false
class.VNRecognizeTextRequest.methods.results.unsafe = false
class.VNRecognizeTextRequest.methods."setRecognitionLanguages:".unsafe = false
class.VNRecognizeTextRequest.methods.usesLanguageCorrection.unsafe = false
class.VNRecognizeTextRequest.methods.customWords.unsafe = false
class.VNRecognizeTextRequest.methods."setCustomWords:".unsafe = false
class.VNRecognizeTextRequest.methods.recognitionLevel.unsafe = false
class.VNRecognizeTextRequest.methods."setRecognitionLevel:".unsafe = false
class.VNRecognizeTextRequest.methods."setUsesLanguageCorrection:".unsafe = false
class.VNRecognizeTextRequest.methods.automaticallyDetectsLanguage.unsafe = false
class.VNRecognizeTextRequest.methods."setAutomaticallyDetectsLanguage:".unsafe = false
class.VNRecognizeTextRequest.methods.minimumTextHeight.unsafe = false
class.VNRecognizeTextRequest.methods."setMinimumTextHeight:".unsafe = false

0 comments on commit db7c7e8

Please sign in to comment.