Original address: opencv for iOS Study Notes (2)-AR
Three elements of AR applications:
1. Video Source)
Video sources primarily provide frames collected from built-in cameras.
2. processing pipeline (MPS Queue)
The processing pipeline mainly provides a simple interface to the program, which encapsulates the underlying data structure and algorithm.
3. Visualization engine (Visualization engine)
The visualization engine is mainly used to visualize the operations of augmented reality.
Note: viewcontroller is equivalent to a program controller, markerdetetor is the processing pipeline, and visualizationcontroller is equivalent to a visual processing engine.
The simple processing process pipeline receives a new frame, which triggers the video source to use a callback function to remind the program. The controller processes the callback function and performs the following operations: 1. send frames to the visualization engine. 2. process the frame in the processing pipeline. 3. Send the capture tag to the visualization engine. 4. Rendering scenario.