Platforms to show: All Mac Windows Linux Cross-Platform

Back to VisionModuleMBS module.

VisionModuleMBS.available as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether the Vision module is available.

Returns true on MacOS 10.13 or newer.

VisionModuleMBS.ElementSize(ElementType as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries byte size of an element type.

Returns 4 for floats and 8 for double.
Otherwise returns zero.

VisionModuleMBS.ImagePointForNormalizedPoint(normalizedPoint as CGPointMBS, imageWidth as Integer, imageHeight as Integer) as CGPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Projects a point from normalized coordinate space into image coordinates.

normalizedPoint: The input point, in normalized coordinate space.
imageWidth: The width of the image into whose coordinate space you're projecting the input point.
imageHeight: The height of the image into whose coordinate space you're projecting the input point.

Returns the input point projected into image coordinates.

The resulting point in image coordinate space may have nonintegral (floating-point) coordinates.

VisionModuleMBS.ImageRectForNormalizedRect(normalizedRect as CGRectMBS, imageWidth as Integer, imageHeight as Integer) as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Projects a rectangle from normalized coordinate space into image coordinates.

normalizedRect: The input rect, in normalized coordinate space.
imageWidth: The width of the image into whose coordinate space you're projecting the input rect.
imageHeight: The height of the image into whose coordinate space you're projecting the input rect.

Returns the input rect projected into image (pixel) coordinates.

VisionModuleMBS.NormalizedIdentityRect as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The normalized identity rectangle with origin (0,0) and unit length and width.

VisionModuleMBS.NormalizedRectForImageRect(imageRect as CGRectMBS, imageWidth as Integer, imageHeight as Integer) as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Normalizes a rectangle from image coordinates.

imageRect: The input rect, in image coordinate space.
imageWidth: The width of the image in whose coordinates the input rect resides.
imageHeight: The height of the image in whose coordinates the input rect resides.

Returns the input rect projected into normalized coordinates.

VisionModuleMBS.NormalizedRectIsIdentityRect(rect as CGRectMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns true if the rectangle has origin (0,0) and unit length and width.

normalizedRect: Normalized input rect to test for identity.

Returns a Boolean value that indicates whether the input normalized rect is the identity rect.

VisionModuleMBS.VNErrorDomain as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The domain for NSError objects produced by Vision framework methods.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...