Platforms to show: All Mac Windows Linux Cross-Platform
The module VisionModuleMBS
module VisionModuleMBS| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| module | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Global declarations for the Vision framework on MacOS.
Requires MacOS 10.13 or newer.
- property VersionNumber as Double
- 8 methods
- method available as Boolean
- method ElementSize(ElementType as Integer) as Integer
- method ImagePointForNormalizedPoint(normalizedPoint as CGPointMBS, imageWidth as Integer, imageHeight as Integer) as CGPointMBS
- method ImageRectForNormalizedRect(normalizedRect as CGRectMBS, imageWidth as Integer, imageHeight as Integer) as CGRectMBS
- method NormalizedIdentityRect as CGRectMBS
- method NormalizedRectForImageRect(imageRect as CGRectMBS, imageWidth as Integer, imageHeight as Integer) as CGRectMBS
- method NormalizedRectIsIdentityRect(rect as CGRectMBS) as boolean
- method VNErrorDomain as String
- 3 delegates
- delegate VNPerformRequestsCompletedMBS(Requests() as VNRequestMBS, result as boolean, error as NSErrorMBS, tag as Variant)
- delegate VNProgressHandlerMBS(Request as VNRequestMBS, fractionCompleted as double, error as NSErrorMBS, tag as Variant)
- delegate VNRequestCompletedMBS(Request as VNRequestMBS, error as NSErrorMBS, tag as Variant)
- 18 constants
Error Codes
| Constant | Value | Description |
|---|---|---|
| VNErrorDataUnavailable | 17 |
Error code signifying unavailable data. |
| VNErrorInternalError | 9 |
Error code signifying an error internal to the Vision system. |
| VNErrorInvalidArgument | 14 |
Error code signifying an invalid parameter passed to a Vision request. |
| VNErrorInvalidFormat | 2 |
Error code signifying an invalid image format. |
| VNErrorInvalidImage | 13 |
Error code signifying a problematic image. |
| VNErrorInvalidModel | 15 |
Error code signifying an invalid model. |
| VNErrorInvalidOperation | 12 |
Error code signifying an unsupported operation for a Vision request. |
| VNErrorInvalidOption | 5 |
Error code signifying an invalid option in a Vision request. |
| VNErrorIOError | 6 |
Error code signifying an input or output error for an image, image sequence, or Core ML model. |
| VNErrorMissingOption | 7 |
Error code signifying that a Vision request is missing a required option. |
| VNErrorNotImplemented | 8 |
Error code signifying a method not implemented in the underlying model. |
| VNErrorOK | 0 |
Error code signifying no error. |
| VNErrorOperationFailed | 3 |
Error code signifying that a request operation failed. |
| VNErrorOutOfBoundsError | 4 |
Error code signifying an out-of-bounds access. |
| VNErrorOutOfMemory | 10 |
Error code signifying insufficient memory to complete a Vision request. |
| VNErrorRequestCancelled | 1 |
Error code signifying a canceled Vision request. |
| VNErrorUnknownError | 11 |
Error code signifying an unidentifiable error. |
| VNErrorUnsupportedRevision | 16 |
Error code signifying an unsupported revision number. |
Some examples which use this module:
- /MacFrameworks/Vision/Hand Test
- /MacFrameworks/Vision/Vision Object Detection/Mask Detection
- /MacFrameworks/Vision/Vision Object Detection/Saliency Image Requests
- /MacFrameworks/Vision/Vision Object Detection/Text Recognition
- /MacFrameworks/Vision/Vision Object Detection/Vision Object Detection
Blog Entries
The items on this page are in the following plugins: MBS MacFrameworks Plugin.