Skip to content

Commit

Permalink
Merge pull request #675 from jgeralnik/vision-safety
Browse files Browse the repository at this point in the history
Remove unsafe from some vision framework functions
  • Loading branch information
madsmtm authored Dec 9, 2024
2 parents 5048147 + e4ff0eb commit f0f6a5b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 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,30 @@ 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.VNImageRequestHandler.methods."performRequests:error:".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
2 changes: 1 addition & 1 deletion generated

0 comments on commit f0f6a5b

Please sign in to comment.