Instance Method

topCandidates:

Requests the n top candidates for a recognized text string.

Declaration

- (NSArray<VNRecognizedText *> *)topCandidates:(NSUInteger)maxCandidateCount;

Parameters

maxCandidateCount

The maximum number of candidates to return. This can't exceed 10.

Return Value

An array of the n top candidates, sorted by decreasing confidence score.

Discussion

This function returns no more than n candidates, but it may return fewer than n candidates.

See Also

Obtaining Recognized Text

VNRecognizedText

Text recognized in an image through a text recognition request.