0
0
Computer Visionml~12 mins

Drawing on images (lines, rectangles, circles, text) in Computer Vision - Model Pipeline Trace

Choose your learning style9 modes available
Model Pipeline - Drawing on images (lines, rectangles, circles, text)

This pipeline shows how an image is taken and simple shapes and text are drawn on it. This helps in highlighting parts of the image or adding information visually.

Data Flow - 5 Stages
1Input Image
1 image x 400 pixels height x 600 pixels width x 3 color channelsLoad a color image from disk1 image x 400 x 600 x 3
A photo of a park with trees and sky
2Draw Line
1 image x 400 x 600 x 3Draw a blue line from point (50,50) to (550,50)1 image x 400 x 600 x 3
Image now has a blue horizontal line near the top
3Draw Rectangle
1 image x 400 x 600 x 3Draw a green rectangle from (100,100) to (300,200)1 image x 400 x 600 x 3
Image now has a green rectangle around a tree
4Draw Circle
1 image x 400 x 600 x 3Draw a red circle centered at (400,300) with radius 501 image x 400 x 600 x 3
Image now has a red circle highlighting a flower
5Draw Text
1 image x 400 x 600 x 3Write white text 'Park View' at position (200,350)1 image x 400 x 600 x 3
Image now shows the label 'Park View' near the bottom
Training Trace - Epoch by Epoch
N/A
EpochLoss ↓Accuracy ↑Observation
1N/AN/ANo training involved; this is an image drawing pipeline
Prediction Trace - 5 Layers
Layer 1: Load Image
Layer 2: Draw Line
Layer 3: Draw Rectangle
Layer 4: Draw Circle
Layer 5: Draw Text
Model Quiz - 3 Questions
Test your understanding
What happens to the image size after drawing shapes?
AThe image size halves
BThe image size stays the same
CThe image size doubles
DThe image size becomes zero
Key Insight
Drawing on images changes pixel colors but does not alter image size or require training. It is a direct image editing step useful for highlighting or labeling parts of images.