Instance Method

performRequests:onImageData:orientation:error:

Schedules one or more Vision requests to be performed on raw data containing an image with known orientation.

Declaration

- (BOOL)performRequests:(NSArray<VNRequest *> *)requests onImageData:(NSData *)imageData orientation:(CGImagePropertyOrientation)orientation error:(NSError * _Nullable *)error;

Parameters

requests

An array of VNRequest requests to perform.

imageData

The input NSData on which to perform the request.

orientation

The orientation of the input image.

error

An optional error parameter populated when problems arise in scheduling the requests. Check if the return value is NO.

Return Value

Returns true if all requests were scheduled and performed. Check the error parameter if the return value is false.

See Also

Performing a Sequence Request

- performRequests:onCGImage:error:

Schedules Vision requests to be performed on a Core Graphics image.

- performRequests:onCGImage:orientation:error:

Schedules one or more Vision requests to be performed on a Core Graphics image with known orientation.

- performRequests:onCIImage:error:

Schedules one or more Vision requests to be performed on CIImage data.

- performRequests:onCIImage:orientation:error:

Schedules one or more Vision requests to be performed on CIImage data with known orientation.

- performRequests:onCVPixelBuffer:error:

Schedules one or more Vision requests to be performed on a Core Video pixel buffer.

- performRequests:onCVPixelBuffer:orientation:error:

Schedules one or more Vision requests to be performed on a Core Video pixel buffer with known orientation.

- performRequests:onImageData:error:

Schedules one or more Vision requests to be performed on raw image data.

- performRequests:onImageURL:error:

Schedules one or more Vision requests to be performed on an image.

- performRequests:onImageURL:orientation:error:

Schedules one or more Vision requests to be performed on an image with known orientation, at a specific URL.