Instance Method

perform(_:)

Schedules Vision requests to be performed.

Declaration

func perform(_ requests: [VNRequest]) throws

Parameters

requests

An array of Vision requests to perform.

Return Value

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

Discussion

The function returns after all requests have either completed or failed. Check individual requests and errors for their respective successes and failures.