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?
✗ Incorrect
cv2.circle() is used to draw circles by specifying the center, radius, color, and thickness.
What does the thickness parameter control when drawing shapes on images?
✗ Incorrect
Thickness controls how wide or thick the border or line of the shape will be.
To draw text on an image, which parameter specifies the font style?
✗ Incorrect
fontFace specifies the font style, such as cv2.FONT_HERSHEY_SIMPLEX.
Which coordinate system is used when drawing on images?
✗ Incorrect
Images use Cartesian coordinates with the origin (0,0) at the top-left corner.
What happens if you set thickness to -1 when drawing a rectangle in OpenCV?
✗ Incorrect
Setting thickness to -1 fills the rectangle with the specified color.
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.