Comment on page
Draw Result On Image
You can use this block if you want to automatically print Ok or Nok on your image according to the result of your scenario. If the Condition input receives the True information, it will print the data connected to the Success Condition Text input on the picture, otherwise the data connected to the Fail Condition Text input will be printed on the screen.

The
Draw Result On Image
node in AugeLab Studio is used to overlay text on an input image based on a given condition. It allows you to highlight the success or failure of a condition by drawing text on the image.The
Draw Result On Image
node takes an input image, a condition, a success text, and a fail text as inputs. It overlays the success text on the image if the condition is true, or the fail text if the condition is false. This node is useful for visualizing the outcome of a condition on an image.- 1.Drag and drop the
Draw Result On Image
node from the node library onto the canvas in AugeLab Studio. - 2.Double-click on the
Draw Result On Image
node to open the node properties panel. - 3.Connect the input image to the "Image" input socket of the node.
- 4.Connect the condition (boolean value) to the "Condition" input socket of the node.
- 5.Enter the success text in the "Success Condition Text" field. This text will be displayed on the image if the condition is true.
- 6.Enter the fail text in the "Fail Condition Text" field. This text will be displayed on the image if the condition is false.
- 7.Adjust the font scale, horizontal position, and vertical position sliders to customize the appearance of the text on the image.
- 8.The output image with the overlaid text will be available at the "Image" output socket of the node.
- Input Sockets:
- Image: The input image to overlay the text on.
- Condition: The condition (boolean value) to determine the text to overlay on the image.
- Success Condition Text: The text to overlay on the image if the condition is true.
- Fail Condition Text: The text to overlay on the image if the condition is false.
- Output Sockets:
- Image: The output image with the overlaid text.
The
Draw Result On Image
node follows these steps to overlay text on the input image:- 1.Retrieve Inputs: The node retrieves the input image, condition, success text, and fail text from the input sockets.
- 2.Overlay Text: The node calls the
draw_result
function to overlay the success text or fail text on the input image based on the condition. - 3.Adjust Parameters: The node uses the font scale, horizontal position, and vertical position sliders to adjust the appearance of the overlaid text.
- 4.Output Image: The node returns the resulting image with the overlaid text at the output socket.
- 1.Drag and drop the
Draw Result On Image
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input image to the "Image" input socket of the node.
- 3.Connect the condition (boolean value) to the "Condition" input socket of the node.
- 4.Enter the success text in the "Success Condition Text" field. This text will be displayed on the image if the condition is true.
- 5.Enter the fail text in the "Fail Condition Text" field. This text will be displayed on the image if the condition is false.
- 6.Adjust the font scale, horizontal position, and vertical position sliders to customize the appearance of the text on the image.
- 7.The output image with the overlaid text will be available at the "Image" output socket of the node.
- 8.Use the output image for further processing or visualization in your data pipeline.
- The
Draw Result On Image
node provides a convenient way to overlay text on an image based on a given condition. - The condition can be any boolean value, allowing you to highlight different outcomes in your data pipeline.
- The success text and fail text can be customized to convey the desired information based on the condition.
- Adjust the font scale, horizontal position, and vertical position sliders to achieve the desired appearance of the overlaid text.
- The
Draw Result On Image
node enhances the visualization capabilities of AugeLab Studio by allowing you to highlight the success or failure of a condition on an image. - Utilize the overlaid text to provide additional context or insights into the image data.
- The resulting image with the overlaid text can be used in subsequent nodes for further analysis or visualization.
- Experiment with different conditions, success texts, fail texts, and text appearance settings to create informative visualizations in your data pipeline.
- The
Draw Result On Image
node is a versatile tool for adding text overlays to images and is suitable for various applications such as object detection, classification, and quality control. - Combine the
Draw Result On Image
node with other image processing nodes to create complex visualizations and analysis pipelines. - Take advantage of the interactive nature of AugeLab Studio to iterate and refine your visualizations using the
Draw Result On Image
node.