Using the MindX SDK Pipeline for Visualized Process Orchestration
- Create a pipeline file.
On the menu bar of MindStudio, choose to create a pipeline file.
- Orchestrate the process.
- On the new pipeline file editing page, select the following plugins in the plugin library on the left, drag them to the drawing board on the right, and sort them from left to right, as shown in Figure 1.
- appsrc
- mxpi_imagedecoder
- mxpi_imageresize
- mxpi_tensorinfer
- mxpi_dataserialize
- appsink
- Drag the connection points of the plugin block to connect each module in sequence, as shown in Figure 2. (You can click
at the bottom to arrange the order.)
- On the new pipeline file editing page, select the following plugins in the plugin library on the left, drag them to the drawing board on the right, and sort them from left to right, as shown in Figure 1.
- Set plugin parameters.
- Click appsrc0 and modify the parameters on the right by referring to Figure 3.
- Set blocksize to 40960000.
- Click mxpi_imageresize0 and modify the parameters on the right by referring to Figure 4.
- Set resizeHeight to 256.
- Set resizeWidth to 256.
- Click mxpi_tensorinfer0 and modify the parameters on the right by referring to Figure 5.
- modelPath indicates the .om model file after model conversion. Select face_mask_detection.om in the models directory.
- Click mxpi_dataserialize0 and modify the parameters on the right by referring to Figure 6.
- Set outputDataKeys to the previous plugin, that is, mxpi_tensorinfer0.
- Click appsink0 and modify the parameters on the right by referring to Figure 7.
- Set blocksize to 409600000.
- Select all plugins in the drawing board, right-click them, and choose from the shortcut menu, as shown in Figure 8.
- In the Save Stream Name dialog box, set Stream Name to detection, as shown in Figure 9.
- Select all plugins again, right-click them, and choose Set Device Id from the shortcut menu. In the Save Device ID dialog box, change the value of Device Id to 0, as shown in Figure 10.
- Click appsrc0 and modify the parameters on the right by referring to Figure 3.
- Click
on the toolbar, name the pipeline face_mask_detection, and click Save.
Parent topic: Application Development (MindX SDK)









