0
0
Computer Visionml~5 mins

Drawing on images (lines, rectangles, circles, text) in Computer Vision - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of drawing shapes like lines, rectangles, and circles on images in computer vision?
Drawing shapes helps highlight or mark important parts of an image, like objects or areas of interest, making it easier to understand or analyze the image.
Click to reveal answer
beginner
Which function is commonly used to draw a line on an image in OpenCV?
The function cv2.line() is used to draw a line by specifying the start and end points, color, and thickness.
Click to reveal answer
beginner
How do you specify the position and size of a rectangle when drawing it on an image?
You provide the top-left corner and bottom-right corner coordinates of the rectangle to define its position and size.
Click to reveal answer
beginner
What parameters are needed to draw text on an image?
You need the text string, position coordinates, font type, font scale (size), color, and thickness to draw text on an image.
Click to reveal answer
beginner
Why is it important to choose contrasting colors when drawing on images?
Contrasting colors make the drawn shapes or text stand out clearly against the image background, improving visibility and understanding.
Click to reveal answer
Which OpenCV function draws a circle on an image?
Acv2.circle()
Bcv2.rectangle()
Ccv2.line()
Dcv2.putText()
What does the thickness parameter control when drawing shapes on images?
AThe width of the shape's border
BThe color of the shape
CThe size of the shape
DThe transparency of the shape
To draw text on an image, which parameter specifies the font style?
AfontScale
Bthickness
Ccolor
DfontFace
Which coordinate system is used when drawing on images?
APolar coordinates
BCartesian coordinates with origin at top-left
CCartesian coordinates with origin at center
DSpherical coordinates
What happens if you set thickness to -1 when drawing a rectangle in OpenCV?
AThe rectangle is drawn with default thickness
BThe rectangle border is invisible
CThe rectangle is filled with color
DAn error occurs
Explain how to draw a rectangle and add text on an image using OpenCV.
Think about the functions cv2.rectangle() and cv2.putText() and their key parameters.
You got /7 concepts.
    Why is drawing shapes and text on images useful in computer vision projects?
    Consider how marking parts of an image helps people or algorithms.
    You got /4 concepts.