Unit 4: Camera Interfacing & Computer Vision - Practice Quiz

ECE140 — Workshop On Iot For Digital Society 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which component connects a Raspberry Pi camera module to the Raspberry Pi board?

Raspberry Pi camera architecture Easy
A. USB connector
B. CSI connector
C. Ethernet connector
D. HDMI connector

2 What is the main purpose of the image sensor in a camera module?

Raspberry Pi camera architecture Easy
A. To connect to Wi-Fi networks
B. To control the display brightness
C. To store video files
D. To capture light and form an image

3 Before connecting a Raspberry Pi camera ribbon cable, what should usually be done?

Setting up the Raspberry Pi camera Easy
A. Power off the Raspberry Pi
B. Remove the microSD card
C. Start a video call
D. Enable Bluetooth

4 Which part of the Raspberry Pi camera cable must be aligned correctly with the connector?

Setting up the Raspberry Pi camera Easy
A. The cable outer edge
B. The cable length
C. The cable contacts
D. The cable label color

5 Which software feature may need to be enabled before using a Raspberry Pi camera?

Setting up the Raspberry Pi camera Easy
A. Audio recording support
B. Game controller support
C. Camera support
D. Printer support

6 What does ISP commonly stand for in a camera system?

Camera pipeline and ISP fundamentals Easy
A. Internet Streaming Protocol
B. Image Signal Processor
C. Image Storage Program
D. Input Sensor Port

7 Which task is commonly performed by an image signal processor?

Camera pipeline and ISP fundamentals Easy
A. Network cable testing
B. White balance adjustment
C. Keyboard layout selection
D. File compression only

8 What is the usual first source of data in a digital camera pipeline?

Camera pipeline and ISP fundamentals Easy
A. Web browser
B. Image sensor
C. Speaker
D. Keyboard

9 What is the purpose of converting raw camera data into a processed image?

Camera pipeline and ISP fundamentals Easy
A. To disable image colors
B. To improve image usability
C. To reduce screen size
D. To disconnect the camera

10 What is OpenCV mainly used for?

OpenCV installation and usage Easy
A. Writing spreadsheets
B. Managing email accounts
C. Computer vision tasks
D. Creating operating systems

11 Which Python package name is commonly used to install OpenCV?

OpenCV installation and usage Easy
A. opencv-python
B. python-image-system
C. vision-linux
D. camera-tools

12 Which Python statement commonly imports OpenCV?

OpenCV installation and usage Easy
A. include opencv
B. using vision
C. import cv2
D. load camera

13 Why might an image be converted to grayscale before processing?

Image preprocessing and enhancement Easy
A. To simplify image data
B. To add more color channels
C. To connect the image to Wi-Fi
D. To increase camera voltage

14 What does resizing an image change?

Image preprocessing and enhancement Easy
A. Its width and height
B. Its file permissions only
C. Its camera connector
D. Its network address

15 Which operation can help reduce small amounts of image noise?

Image preprocessing and enhancement Easy
A. Printing
B. Rotating
C. Blurring
D. Renaming

16 What is the goal of face detection?

Face detection and recognition Easy
A. To locate faces in an image
B. To change the camera lens
C. To increase image file size
D. To identify network cables

17 How is face recognition different from face detection?

Face detection and recognition Easy
A. Recognition controls camera power
B. Recognition only changes image size
C. Recognition removes all faces
D. Recognition identifies a person

18 What does an object detection model usually provide for an object in an image?

Object detection using deep learning models Easy
A. A sound level and a voltage
B. A class and a bounding box
C. A file name and a folder
D. A keyboard shortcut and a password

19 What is a bounding box in object detection?

Object detection using deep learning models Easy
A. A camera mounting bracket
B. A rectangle around an object
C. A network security rule
D. A box for storing model files

20 What does video streaming over a network allow a user to do?

Video streaming over a network Easy
A. Remove all video frames
B. View video from another device
C. Increase lens brightness physically
D. Replace the camera sensor

21 Which interface normally carries image data from an official Raspberry Pi camera module to the Raspberry Pi processor?

Raspberry Pi camera architecture Medium
A. MIPI CSI-2 interface
B. SPI serial interface
C. I2C control interface
D. UART communication interface

22 A fast-moving fan appears tilted in images captured by a Raspberry Pi camera with a rolling-shutter sensor. What is the most likely cause?

Raspberry Pi camera architecture Medium
A. Frames are stored in reverse order
B. Rows are exposed at different times
C. Pixels are transmitted through I2C
D. Colors are sampled at different depths

23 After connecting a camera to a recent Raspberry Pi OS installation, which command is most suitable for quickly verifying that the camera can capture a preview?

Setting up the Raspberry Pi camera Medium
A. rpicam-hello
B. sensor-check
C. opencv-preview
D. camera-mount

24 A CSI camera is not detected immediately after its ribbon cable was reconnected. What should be checked first?

Setting up the Raspberry Pi camera Medium
A. Neural-network confidence threshold
B. Network router port forwarding
C. Cable orientation and connector locking
D. OpenCV color conversion settings

25 What is the main purpose of the demosaicing stage in a camera image signal processor?

Camera pipeline and ISP fundamentals Medium
A. Reconstructing RGB values from filtered sensor samples
B. Transmitting raw pixels through a network socket
C. Detecting objects from trained feature representations
D. Compressing complete frames into an H.264 stream

26 A camera produces dark frames with little motion blur. Which adjustment is most appropriate if additional image noise is acceptable?

Camera pipeline and ISP fundamentals Medium
A. Lower the capture resolution
B. Increase the sensor gain
C. Reduce the exposure time
D. Disable color correction

27 Under white indoor lighting, a white object appears yellow in the captured image. Which ISP operation should primarily correct this effect?

Camera pipeline and ISP fundamentals Medium
A. Lossless image compression
B. Temporal frame buffering
C. Geometric lens correction
D. Automatic white balance

28 An OpenCV frame appears blue where red is expected after being displayed with a library that expects RGB data. Which conversion should be applied?

OpenCV installation and usage Medium
A. cv2.COLOR_RGB2GRAY
B. cv2.COLOR_GRAY2RGB
C. cv2.COLOR_BGR2RGB
D. cv2.COLOR_HSV2BGR

29 A Python camera program exits, but the camera remains unavailable to another process for a short time. Which OpenCV action helps prevent this problem?

OpenCV installation and usage Medium
A. Call capture.release() before exiting
B. Call cv2.resize() before displaying
C. Call frame.copy() after every capture
D. Call cv2.cvtColor() before saving

30 A program receives a valid frame from cv2.VideoCapture, but cv2.imshow() appears frozen because the event loop is not processed. Which call is needed inside the display loop?

OpenCV installation and usage Medium
A. cv2.waitKey(1)
B. cv2.destroyAllWindows()
C. cv2.getBuildInformation()
D. cv2.imwrite(frame)

31 An image of size must be resized to a width of while preserving its aspect ratio. What should the new height be?

Image preprocessing and enhancement Medium
A. pixels
B. pixels
C. pixels
D. pixels

32 A grayscale image has poor contrast in some regions, while other regions already have acceptable contrast. Which technique is most suitable for local enhancement without strongly amplifying noise?

Image preprocessing and enhancement Medium
A. Global thresholding
B. Binary inversion
C. Nearest-neighbor resizing
D. CLAHE

33 A Canny edge detector produces many false edges because the input image contains sensor noise. Which preprocessing step is most appropriate?

Image preprocessing and enhancement Medium
A. Increase color saturation
B. Rotate the image
C. Apply Gaussian smoothing
D. Convert to HSV

34 A face detector is missing several partially visible faces. Lowering its detection threshold is likely to produce which result?

Face detection and recognition Medium
A. Fewer detections and fewer false positives
B. More detections and faster inference
C. Fewer detections and higher resolution
D. More detections and more false positives

35 A face-recognition system represents each face as an embedding vector. How is a newly captured face commonly identified?

Face detection and recognition Medium
A. Compare its embedding with stored embeddings
B. Match its average brightness with templates
C. Match its bounding-box area with profiles
D. Compare its file size with stored images

36 A recognition system works for frontal faces but performs poorly when faces are tilted. Which preprocessing step is most likely to improve consistency?

Face detection and recognition Medium
A. Convert all frames to binary images
B. Encode frames using H.264
C. Increase the camera frame rate
D. Align faces using detected landmarks

37 A detector produces several highly overlapping boxes for the same object. Which post-processing method should be applied?

Object detection using deep learning models Medium
A. Bilinear interpolation
B. Non-maximum suppression
C. Histogram equalization
D. Background subtraction

38 An object-detection model expects a square input, but the camera frame is widescreen. Which preprocessing method best preserves object shapes?

Object detection using deep learning models Medium
A. Resize proportionally and add padding
B. Crop equal strips from all sides
C. Stretch directly to the square size
D. Convert the frame to grayscale

39 A Raspberry Pi object detector is accurate but too slow for the required frame rate. Which change is most likely to improve speed while retaining the same general task?

Object detection using deep learning models Medium
A. Disable all confidence filtering
B. Increase the model input resolution
C. Use a quantized lightweight model
D. Save every frame as PNG

40 An MJPEG stream sends JPEG frames per second, and each frame averages KB. Approximately what application-level bandwidth is required?

Video streaming over a network Medium
A. Mbps
B. Mbps
C. Mbps
D. Mbps

41 A Raspberry Pi camera is connected through the CSI interface, while image processing is performed largely by the SoC multimedia subsystem. Which consequence is most important when diagnosing a high-resolution capture failure?

Raspberry Pi camera architecture Hard
A. The sensor supplies pixels, but memory bandwidth and ISP throughput can limit usable modes
B. The GPU can increase the physical resolution of the attached sensor
C. The camera automatically bypasses the ISP during still-image capture
D. The CSI connector determines the sensor's maximum exposure time

42 A rolling-shutter Raspberry Pi camera observes a rapidly rotating fan. Which artifact is most likely, and which architectural property explains it?

Raspberry Pi camera architecture Hard
A. Color banding, caused by Bayer interpolation
B. Uniform darkening, caused by ISP color correction
C. Radial blur, caused by JPEG quantization
D. Geometric skew, caused by sequential row exposure

43 A camera application must provide a low-latency preview and periodically save high-quality still images. Which design best uses the camera architecture?

Raspberry Pi camera architecture Hard
A. Use a low-resolution video stream for preview and a still stream for photographs
B. Capture every frame as a full-resolution JPEG and resize for preview
C. Switch the sensor off between preview frames to reduce processing load
D. Process the preview only after each still image has finished encoding

44 After physically connecting a camera, the preview command reports that no camera is detected. Which diagnostic sequence is most appropriate?

Setting up the Raspberry Pi camera Hard
A. Change the image format to PNG, then disable automatic exposure
B. Verify ribbon orientation and seating, inspect detection output, then test a supported mode
C. Increase JPEG quality, then reboot the camera process
D. Install OpenCV first, then replace the power supply

45 A camera works at 640x480 but fails at its advertised maximum resolution. Which explanation is most technically defensible?

Setting up the Raspberry Pi camera Hard
A. The lens focal length prevents large image buffers
B. The selected mode may exceed available bandwidth, memory, or pipeline constraints
C. The operating system always limits CSI cameras to VGA
D. The camera sensor cannot expose pixels larger than VGA

46 A manually focused camera produces sharp images at close range but blurred images for distant objects. Which adjustment is most appropriate?

Setting up the Raspberry Pi camera Hard
A. Rotate the lens focus mechanism toward the distance-focused position
B. Increase the frame rate to force a shorter focal distance
C. Disable the ISP so the lens receives more exposure data
D. Increase JPEG compression to sharpen edge transitions

47 Why can a raw Bayer frame appear strongly tinted when opened directly as if it were an ordinary RGB image?

Camera pipeline and ISP fundamentals Hard
A. The sensor has already applied an incorrect gamma curve
B. Each pixel stores only one color sample under a Bayer color filter pattern
C. JPEG decoding is required before any sensor color exists
D. The CSI link reverses the red and blue channels

48 An image has correct brightness but a strong blue cast under warm indoor lighting. Which ISP operation primarily addresses this problem?

Camera pipeline and ISP fundamentals Hard
A. H.264 entropy coding
B. Lens shading correction
C. Temporal denoising
D. White-balance estimation and channel gain adjustment

49 A scene contains a bright window and a dark indoor subject. Why might enabling HDR or multi-exposure processing improve the subject while introducing motion artifacts?

Camera pipeline and ISP fundamentals Hard
A. It replaces the lens with a wider aperture, which causes object duplication
B. It removes all saturated pixels by converting them to grayscale
C. It combines exposures with different dynamic ranges, which can misalign moving content
D. It lowers sensor resolution by interpolating every exposure independently

50 An OpenCV application reports that the camera backend opens successfully but returns empty frames intermittently. Which first change best isolates the cause?

OpenCV installation and usage Hard
A. Convert every frame to grayscale before checking its validity
B. Check the return status and frame contents before any processing operation
C. Increase the neural-network confidence threshold
D. Replace all NumPy arrays with Python lists

51 A script works in a system Python shell but fails inside a virtual environment with an import error for OpenCV. What is the most likely cause?

OpenCV installation and usage Hard
A. The image sensor has changed its Bayer pattern
B. The camera ribbon cable is reversed
C. The virtual environment is using a different interpreter or lacks the OpenCV package
D. OpenCV requires a separate HDMI driver for each environment

52 A BGR frame from OpenCV is passed directly to a model trained with RGB images. The model's confidence decreases substantially. Which correction is required?

OpenCV installation and usage Hard
A. Convert the image to a larger integer type only
B. Swap the blue and red channels before normalization
C. Rotate the image by 90 degrees before inference
D. Apply JPEG compression before inference

53 A grayscale image has poor global contrast because most pixels occupy a narrow intensity interval, but illumination varies across the scene. Which method is generally most suitable?

Image preprocessing and enhancement Hard
A. Nearest-neighbor enlargement followed by sharpening
B. Histogram equalization applied independently to every video frame
C. CLAHE with controlled tile contrast limits
D. Global thresholding with a fixed midpoint

54 A face detector misses small faces after an image is resized for speed. Which change most directly addresses the recall problem while controlling computational cost?

Image preprocessing and enhancement Hard
A. Lower JPEG quality to create more edge pixels
B. Apply a stronger median blur before detection
C. Use a larger detector input or image pyramid only when needed
D. Remove normalization so dark pixels remain unchanged

55 An edge detector produces many false edges in a low-light image. Which preprocessing choice is most likely to reduce false responses without eliminating all object boundaries?

Image preprocessing and enhancement Hard
A. Use a larger JPEG compression ratio before filtering
B. Increase saturation before converting to grayscale
C. Apply denoising before gradient calculation
D. Replace all pixels below the mean with white

56 A recognition system performs well on enrollment images but confuses people under different lighting and head poses. Which redesign best separates detection from recognition concerns?

Face detection and recognition Hard
A. Align detected faces, extract embeddings, and compare them with a calibrated threshold
B. Increase the detector's bounding-box size until identities become unique
C. Train the system using only blurred face thumbnails
D. Use a face detector alone and treat every detected box as an identity

57 A face-recognition system must reject unknown people, but its nearest-neighbor classifier always assigns the closest enrolled identity. What change is necessary?

Face detection and recognition Hard
A. Disable face alignment to preserve more background context
B. Use a distance or similarity threshold with an explicit unknown outcome
C. Increase the number of image color channels from three to four
D. Sort enrolled identities alphabetically before comparison

58 A detector produces multiple overlapping boxes for one object. Which post-processing operation is intended to retain the strongest box while suppressing redundant detections?

Object detection using deep learning models Hard
A. Batch normalization
B. Histogram stretching
C. Non-maximum suppression
D. Bilinear interpolation

59 A model trained on 640x640 letterboxed images receives a 1280x720 frame. Which preprocessing error is most likely to corrupt predicted box coordinates?

Object detection using deep learning models Hard
A. Applying non-maximum suppression after confidence filtering
B. Keeping the original frame rate during inference
C. Using RGB values instead of grayscale values
D. Ignoring the scale and padding offsets when mapping boxes back

60 A Raspberry Pi streams video over Wi-Fi. Viewers observe increasing delay even though the displayed video remains smooth. Which change most directly limits latency growth?

Video streaming over a network Hard
A. Encode every frame as a lossless image before transmission
B. Increase the stream resolution while preserving the same bitrate
C. Use an unbounded receive buffer to avoid dropped frames
D. Use bounded queues and discard stale frames when processing falls behind