Setting up MQTT streaming
Guide to set up MQTT streaming on a device.
Before you begin
Procedure
- Create an inspection by clicking + in the Inspections pane.
- Specify a project, model, and data set. Note: The model type must be Core ML. The model that you select must include the labels that you want to monitor.
- On the Model screen, tap Set Thresholds.
- On the Set Thresholds screen, tap Advanced for each of the labels that you want to monitor in the scene.
- On the Advanced screen, tap Additional Rules.
- Select Inspect When Label Detected. The app returns to the Advanced screen.
-
On the Advanced screen, set Frames To Consider to
1
. This value means that every frame is checked. -
On the Advanced screen, set Frames Label must Be
Present to
1
. This value forces an inspection on each frame. -
On the Advanced screen, set Frames Without Label To
Reset to
0
. This value forces a reset after an inspection is done on each frame.Note: You can set the frames per second rate in Configure Device > App Settings > Frame Rate Throttle. -
Repeat steps 4 - 9 for each label in the model.
Do not use a threshold whose Additional Rules is set to Obstruction for Label Detection. This setting can cause the video stream to pause.
- Tap Back until you are back at the main Edit screen, then tap Done.
- Tap the icon to open the Configure Device screen.
-
Tap App Settings and set the following values:
-
Toggle Upload to IBM Maximo Visual Inspection off.
Make sure that this option is not on. Otherwise, every image is uploaded to the server, which overloads the app, the network, and the IBM Maximo Visual Inspection server.
- Toggle Upload Failures Only off.
- Toggle Always On Camera on.
- Toggle Notify on Inspection Pass on.
-
Toggle Upload to IBM Maximo Visual Inspection off.
- Tap Save to return to the Configure Device screen.
-
From the Configure Device screen, tap Auto-Capture, then set the following
values:
- Toggle Pass Video Frame To Inspection on.
- In the Visual Trigger category, tap Select Inspection and select the inspection to use for MQTT streaming.
- Tap Save to save your Auto-Capture settings.
- Tap close to return to the home screen.
-
On the home screen, tap the camera icon.
- Tap Start Auto-Capture.