Draw Result On Image
This function block is used to overlay text on an input image based on a specified condition. It allows users to visually communicate success or failure of operations directly on the image.
📥 Inputs
Image
The image onto which you want to overlay text.
Condition
A boolean value that determines whether to display the success or failure text.
Success Condition Text
The text that will be displayed on the image if the condition is true.
Fail Condition Text
The text that will be displayed on the image if the condition is false.
📤 Outputs
Image
The modified image with the overlaid text based on the specified condition.
🕹️ Controls
Font Scale
A slider to adjust the font size of the overlay text.
Horizontal Position
A slider to control the horizontal positioning of the text overlay on the image.
Vertical Position
A slider to control the vertical positioning of the text overlay on the image.
🎨 Features
Dynamic Text Overlay
The block allows for real-time adjustments to the text, making it easier to adapt to different image sizes or desired appearances.
Visual Feedback
Provides immediate visual feedback on the outcome of processes based on the provided input condition.
📝 Usage Instructions
Connect Input Image: Connect the image you want to annotate to the
Image
input.Set Condition: Provide a boolean signal to the
Condition
input to determine whether the success or failure text should be displayed.Enter Success and Fail Texts: Type the text you wish to display in both the
Success Condition Text
andFail Condition Text
fields.Adjust Text Position and Size: Use the font scale and position sliders to place the text on the image as desired.
Evaluate: Run the block to see the changes reflected on the output image.
📊 Evaluation
When executed, this function block will produce a version of the input image with the text overlaid according to the specified condition, allowing for easy interpretation of processing results.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated