一般的ios框架vision内容包含以下三类:
Request: The request defines the type of thing you want to detect and a completion handler that will process the results. This is a subclass of VNRequest.
Request handler: The request handler performs the request on the provided pixel buffer (think: image). This will be either a VNImageRequestHandler for single, one-off detections or a VNSequenceRequestHandler to process a series of images.
Results: The results will be attached to the original request and passed to the completion handler defined when creating the request. They are subclasses of VNObservation\
还可以干嘛
Rectangles: With VNDetectRectanglesRequest, you can detect rectangles in the camera input, even if they are distorted due to perspective.
Text: You can detect the bounding boxes around individual text characters by using VNDetectTextRectanglesRequest. Note, however, this doesn’t recognize what the characters are, it only detects them.
Horizon: Us