Python OpenCV Computer Vision
- 93Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
93 questions
- 1OpenCV is a computer vision library available in Python, C++ and_____.
Hint
This is another widely used programming language.
Answer
Java
- 2Computer vision primarily focuses on deriving insights from media files such as images and_____.
Hint
The second type of media is time-based.
Answer
video
- 3The recommended minimum Python version for the course is_____.
Hint
The course warns that some code may not work with older versions, especially Python 2.
Answer
3.7
- 4The terminal command used to check the installed Python version is_____.
Hint
It begins with the Python executable and uses a double-hyphen option.
Answer
python --version
- 5The package command recommended for installing the full OpenCV Python functionality is_____.
Hint
This package includes both the main module and community contribution modules.
Answer
pip install opencv-contrib-python
- 6NumPy is extensively used for matrix and_____manipulations, transformations and reshaping.
Hint
It is the other major data structure named alongside matrices.
Answer
array
- 7The package described as a collection of utility and helper functions for computer vision workflows is_____.
Hint
It was introduced as a package built to speed up the workflow.
Answer
sewar
- 8OpenCV reads an image with the_____method.
Hint
The method name combines the OpenCV prefix with an abbreviation for image reading.
Answer
cv.imread
- 9The result returned by_____
cv.imreadis a matrix of.Hint
An image is represented numerically by its individual visual elements.
Answer
pixels
- 10The OpenCV method used to display an image in a new window is_____.
Hint
Its name combines the OpenCV prefix with a term meaning display.
Answer
cv.imshow
- 11The function that waits for a keyboard key for a specified number of milliseconds is_____.
Hint
It is commonly used after displaying an image.
Answer
cv.waitKey
- 12Passing zero to_____
cv.waitKeymakes it wait for a key for anamount of time.Hint
The window remains open until a key is pressed.
Answer
infinite
- 13The OpenCV class used to read a video frame by frame is_____.
Hint
It represents a capture device or video file.
Answer
VideoCapture
- 14A webcam is usually referenced by passing the integer_____to
cv.VideoCapture.Hint
Camera indices begin with the first available device.
Answer
0
- 15The_____
capture.readmethod returns both a video frame and aindicating whether reading succeeded.Hint
This value is either true or false.
Answer
Boolean
- 16After video processing is complete, the capture pointer should be released with the_____method.
Hint
This method belongs to the capture object.
Answer
release
- 17OpenCV windows can be closed programmatically with_____.
Hint
The method name refers to removing every display window.
Answer
cv.destroyAllWindows
- 18Resizing media is primarily used to reduce computational_____caused by large images and videos.
Hint
Large media requires more processing resources.
Answer
strain
- 19The_____
frame.shapeindex representing an image's width is.Hint
The height is stored at the preceding index.
Answer
1
- 20The_____
frame.shapeindex representing an image's height is.Hint
This is the first dimension of the image array.
Answer
0
- 21The interpolation method recommended by default when shrinking an image is `cv.INTER_____`.
Hint
Its name refers to the area represented by source pixels.
Answer
AREA
- 22The_____
capture.setproperties used to change video width and height areand 4, respectively.Hint
The width property is the first of the two consecutive properties.
Answer
3
- 23The_____
capture.setmethod is intended for changing the resolution ofvideo rather than an existing video file.Hint
This video is coming from a webcam or external camera.
Answer
live
- 24A blank image can be created with NumPy by using_____
np.zerosand the image data type.Hint
This unsigned integer type is commonly used for image pixels.
Answer
uint8
- 25The OpenCV method for drawing a rectangle is_____.
Hint
Its name directly describes the geometric shape.
Answer
cv.rectangle
- 26A rectangle is filled in OpenCV by setting its thickness to_____.
Hint
This special negative value means fill the entire shape.
Answer
-1
- 27The OpenCV method for drawing a circle is_____.
Hint
It takes a center point, radius, color and thickness.
Answer
cv.circle
- 28The OpenCV method for drawing a standalone line is_____.
Hint
It takes two endpoints and a color.
Answer
cv.line
- 29The OpenCV method for writing text on an image is_____.
Hint
Its name describes placing characters onto an image.
Answer
cv.putText
- 30OpenCV's default three-channel image ordering is_____.
Hint
The channels are blue, green and red in that order.
Answer
BGR
- 31The function used to convert an image between color spaces is_____.
Hint
Its name combines color conversion with the OpenCV prefix.
Answer
cv.cvtColor
- 32The color-conversion code for converting BGR to grayscale is_____.
Hint
It names both the source and destination color spaces.
Answer
COLOR_BGR2GRAY
- 33A grayscale image represents the intensity distribution of pixels without their_____information.
Hint
Grayscale retains lightness but removes chromatic information.
Answer
color
- 34The transformation that shifts an image along the x- and y-axes is called_____.
Hint
It moves an image left, right, up or down.
Answer
translation
- 35In image translation, a negative x value shifts the image to the_____.
Hint
Positive x shifts in the opposite horizontal direction.
Answer
left
- 36In image translation, a positive y value shifts the image_____.
Hint
Negative y shifts upward.
Answer
down
- 37The interpolation method that is slower but generally produces higher-quality enlarged images is `cv.INTER_____`.
Hint
It is compared with linear and area interpolation.
Answer
CUBIC
- 38The flip code for flipping an image vertically over the x-axis is_____.
Hint
The horizontal flip uses 1.
Answer
0
- 39The flip code for flipping an image both vertically and horizontally is_____.
Hint
It combines the effects of codes 0 and 1.
Answer
-1
- 40Contours are boundaries of objects formed by lines or curves joining continuous points along an object's_____.
Hint
They trace the outside of a shape.
Answer
boundary
- 41Although contours can often be treated like edges in programming, they are mathematically_____from edges.
Hint
The content explicitly warns not to equate the two concepts mathematically.
Answer
different
- 42The OpenCV function that finds contours returns both contours and_____.
Hint
This second result describes nested relationships among contours.
Answer
hierarchies
- 43The contour retrieval mode that returns only external contours is_____.
Hint
Its name specifies the outside contours.
Answer
RETR_EXTERNAL
- 44The contour approximation method that compresses a straight line to its two endpoints is_____.
Hint
It stores only the points needed to represent the shape.
Answer
CHAIN_APPROX_SIMPLE
- 45The function used to draw detected contours onto an image is_____.
Hint
Its name combines drawing with the object being displayed.
Answer
cv.drawContours
- 46The color space consisting of hue, saturation and value is abbreviated_____.
Hint
It is often considered closer to how humans conceptualize color.
Answer
HSV
- 47The color space represented by lightness and the A and B channels is abbreviated_____.
Hint
It is described as being tuned to human color perception.
Answer
LAB
- 48When displaying an OpenCV BGR image with Matplotlib, the colors appear inverted because Matplotlib assumes the image is_____.
Hint
This ordering places red before green and blue.
Answer
RGB
- 49The OpenCV function used to split an image into blue, green and red channels is_____.
Hint
It separates the merged color channels.
Answer
cv.split
- 50The OpenCV function used to combine separate color channels into one image is_____.
Hint
It performs the opposite operation from channel splitting.
Answer
cv.merge
- 51A blur reduces image noise caused by problems such as poor lighting or camera_____.
Hint
The content names a hardware source of image noise.
Answer
sensors
- 52The rectangular window used to calculate a local blur is called a_____.
Hint
Its dimensions are described as rows by columns.
Answer
kernel
- 53The average-blur method assigns the center pixel the average of the surrounding pixel_____.
Hint
These numerical values describe how bright the neighboring pixels are.
Answer
intensities
- 54Gaussian blur differs from averaging because each surrounding pixel is assigned a particular_____.
Hint
Some neighboring pixels influence the result more than others.
Answer
weight
- 55Median blur replaces the center pixel with the_____of the surrounding pixel values.
Hint
It is the middle value after the surrounding values are ordered.
Answer
median
- 56Bilateral filtering is distinctive because it blurs an image while retaining its_____.
Hint
This method avoids smoothing away important boundaries as much as traditional blur.
Answer
edges
- 57The four basic bitwise operators discussed are AND, OR, XOR and_____.
Hint
This operator inverts binary values.
Answer
NOT
- 58Bitwise AND returns the regions that are present in_____source images.
Hint
It represents the intersection of two binary shapes.
Answer
both
- 59Bitwise OR returns both the intersecting and_____regions of two images.
Hint
It combines all active regions from either image.
Answer
non-intersecting
- 60Bitwise NOT inverts black pixels to white and white pixels to_____.
Hint
It reverses the binary color.
Answer
black
- 61Masking allows processing to focus on selected parts of an_____.
Hint
A mask hides unwanted regions and preserves a region of interest.
Answer
image
- 62For masking to work, the mask dimensions must be the same as the dimensions of the_____.
Hint
The mask must align pixel-for-pixel with its source.
Answer
image
- 63An image histogram visualizes the distribution of pixel_____.
Hint
It shows how frequently different brightness values occur.
Answer
intensities
- 64In a grayscale histogram, the x-axis represents pixel-intensity_____.
Hint
The histogram groups possible values into intervals.
Answer
bins
- 65Thresholding converts an image into a binary image whose pixels are typically zero or_____.
Hint
This is the maximum value used for an 8-bit white pixel.
Answer
255
- 66In simple binary thresholding, pixels below the threshold are set to_____.
Hint
These pixels become black.
Answer
zero
- 67In simple binary thresholding, pixels above the threshold are set to_____.
Hint
These pixels become white.
Answer
255
- 68The OpenCV function used for simple thresholding is_____.
Hint
It returns both the threshold value and the thresholded image.
Answer
cv.threshold
- 69Adaptive thresholding determines an optimal threshold separately for local pixel_____.
Hint
It uses a block or kernel around each region.
Answer
neighborhoods
- 70The Canny detector is used to find image_____.
Hint
It highlights boundaries and sharp intensity changes.
Answer
edges
- 71The Laplacian method computes image_____and may produce positive and negative slopes.
Hint
These describe changes in intensity across the image.
Answer
gradients
- 72The Sobel method computes gradients in the_____and y directions.
Hint
It is the first axis named in the pair.
Answer
x
- 73Face detection identifies whether a face is present, whereas face recognition identifies_____the face belongs to.
Hint
Recognition determines the person's identity.
Answer
whose
- 74A classifier decides whether an image is positive or_____for a target object.
Hint
The two possible outcomes are presence or absence.
Answer
negative
- 75Classifiers must be trained on thousands of images with and without_____.
Hint
The target object in the described task is a human face.
Answer
faces
- 76The XML classifier used in the example for frontal-face detection is a Haar_____.
Hint
It is a widely used OpenCV classifier family.
Answer
cascade
- 77Before face detection, the image is converted to grayscale because the classifier relies primarily on image_____.
Hint
The detector does not need skin tone or color information.
Answer
edges
- 78The Haar cascade method that detects objects at multiple scales is_____.
Hint
Its name indicates detection across different sizes.
Answer
detectMultiScale
- 79Increasing the minimum-neighbors parameter generally makes Haar-cascade detection less sensitive to_____.
Hint
It reduces false detections from regions that only resemble faces.
Answer
noise
- 80The built-in OpenCV face recognizer is trained using a list of face_____and a corresponding list of labels.
Hint
These are cropped face arrays extracted from training images.
Answer
features
- 81Saving a trained OpenCV face recognizer allows it to be reused from a YAML_____file.
Hint
The example saves the trained model using a YAML file.
Answer
source
- 82A deep learning model generally performs better when trained with at least a couple of_____images per class.
Hint
The content contrasts this with a training set of only about 100 images.
Answer
thousand
- 83The deep learning model in the example classifies characters from The_____.
Hint
The dataset contains characters such as Homer and Bart.
Answer
Simpsons
- 84The deep learning workflow uses TensorFlow's implementation of_____.
Hint
It is a high-level deep learning API.
Answer
Keras
- 85A GPU is used to speed up the model's_____process.
Hint
It accelerates the computation required to learn model parameters.
Answer
training
- 86In the example, images are resized to_____by 80 pixels before entering the network.
Hint
The target dimensions are equal in both directions.
Answer
80
- 87The example uses one image channel because the input images are converted to_____.
Hint
This removes the need for separate color channels.
Answer
grayscale
- 88Normalizing image features to the range from zero to one helps the network learn_____.
Hint
Normalization improves the numerical scale of the input data.
Answer
faster
- 89One-hot encoding converts numerical labels into binary class_____.
Hint
Each class is represented by a vector with one active position.
Answer
vectors
- 90In the example, 20 percent of the data is reserved for the_____set.
Hint
The remaining 80 percent is used for training.
Answer
validation
- 91An image data generator synthesizes new images from existing images to introduce_____into training.
Hint
This helps the model become less dependent on exact training examples.
Answer
randomness
- 92The final model uses a learning-rate_____to adjust the learning rate during training.
Hint
It changes the learning rate at specified intervals.
Answer
schedule
- 93The course emphasizes that deep learning models are used in applications such as self-driving vehicles and medical_____.
Hint
This application involves using computer vision to support healthcare decisions.
Answer
diagnosis

Ask anything
We've read this whole study set, so questions about it get the best answers.