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. Ethernet connector
B. HDMI connector
C. CSI connector
D. USB connector

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

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

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. Enable Bluetooth
D. Start a video call

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 length
B. The cable contacts
C. The cable outer edge
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. Camera support
B. Game controller support
C. Printer support
D. Audio recording support

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

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

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

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

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

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

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

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

10 What is OpenCV mainly used for?

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

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

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

12 Which Python statement commonly imports OpenCV?

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

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 increase camera voltage
D. To connect the image to Wi-Fi

14 What does resizing an image change?

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

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

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

16 What is the goal of face detection?

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

17 How is face recognition different from face detection?

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

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 file name and a folder
C. A keyboard shortcut and a password
D. A class and a bounding box

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 box for storing model files
D. A network security rule

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

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

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. SPI serial interface
B. UART communication interface
C. I2C control interface
D. MIPI CSI-2 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. Rows are exposed at different times
B. Pixels are transmitted through I2C
C. Frames are stored in reverse order
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. Network router port forwarding
B. Neural-network confidence threshold
C. OpenCV color conversion settings
D. Cable orientation and connector locking

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. Detecting objects from trained feature representations
C. Transmitting raw pixels through a network socket
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. Disable color correction
B. Reduce the exposure time
C. Lower the capture resolution
D. Increase the sensor gain

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. Automatic white balance
C. Geometric lens correction
D. Temporal frame buffering

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_GRAY2RGB
B. cv2.COLOR_BGR2RGB
C. cv2.COLOR_HSV2BGR
D. cv2.COLOR_RGB2GRAY

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 cv2.resize() before displaying
B. Call capture.release() before exiting
C. Call cv2.cvtColor() before saving
D. Call frame.copy() after every capture

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.imwrite(frame)
B. cv2.waitKey(1)
C. cv2.getBuildInformation()
D. cv2.destroyAllWindows()

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. Nearest-neighbor resizing
B. Binary inversion
C. Global thresholding
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. Apply Gaussian smoothing
C. Rotate the image
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. More detections and more false positives
B. Fewer detections and higher resolution
C. More detections and faster inference
D. Fewer detections and fewer 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. Compare its file size with stored images
D. Match its bounding-box area with profiles

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. Align faces using detected landmarks
B. Convert all frames to binary images
C. Increase the camera frame rate
D. Encode frames using H.264

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. Histogram equalization
B. Non-maximum suppression
C. Bilinear interpolation
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. Crop equal strips from all sides
B. Resize proportionally and add padding
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. Save every frame as PNG
B. Disable all confidence filtering
C. Use a quantized lightweight model
D. Increase the model input resolution

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 CSI connector determines the sensor's maximum exposure time
B. The sensor supplies pixels, but memory bandwidth and ISP throughput can limit usable modes
C. The GPU can increase the physical resolution of the attached sensor
D. The camera automatically bypasses the ISP during still-image capture

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. Geometric skew, caused by sequential row exposure
D. Radial blur, caused by JPEG quantization

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. Process the preview only after each still image has finished encoding
C. Switch the sensor off between preview frames to reduce processing load
D. Capture every frame as a full-resolution JPEG and resize for preview

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. Increase JPEG quality, then reboot the camera process
B. Verify ribbon orientation and seating, inspect detection output, then test a supported mode
C. Change the image format to PNG, then disable automatic exposure
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 operating system always limits CSI cameras to VGA
B. The camera sensor cannot expose pixels larger than VGA
C. The lens focal length prevents large image buffers
D. The selected mode may exceed available bandwidth, memory, or pipeline constraints

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. Increase JPEG compression to sharpen edge transitions
D. Disable the ISP so the lens receives more exposure data

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 CSI link reverses the red and blue channels
B. The sensor has already applied an incorrect gamma curve
C. Each pixel stores only one color sample under a Bayer color filter pattern
D. JPEG decoding is required before any sensor color exists

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. White-balance estimation and channel gain adjustment
B. Lens shading correction
C. Temporal denoising
D. H.264 entropy coding

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 removes all saturated pixels by converting them to grayscale
B. It lowers sensor resolution by interpolating every exposure independently
C. It combines exposures with different dynamic ranges, which can misalign moving content
D. It replaces the lens with a wider aperture, which causes object duplication

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. Replace all NumPy arrays with Python lists
B. Increase the neural-network confidence threshold
C. Convert every frame to grayscale before checking its validity
D. Check the return status and frame contents before any processing operation

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. Rotate the image by 90 degrees before inference
B. Swap the blue and red channels before normalization
C. Apply JPEG compression before inference
D. Convert the image to a larger integer type only

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. CLAHE with controlled tile contrast limits
C. Global thresholding with a fixed midpoint
D. Histogram equalization applied independently to every video frame

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. Use a larger detector input or image pyramid only when needed
B. Apply a stronger median blur before detection
C. Lower JPEG quality to create more edge pixels
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. Replace all pixels below the mean with white
B. Increase saturation before converting to grayscale
C. Apply denoising before gradient calculation
D. Use a larger JPEG compression ratio before filtering

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. Use a face detector alone and treat every detected box as an identity
B. Align detected faces, extract embeddings, and compare them with a calibrated threshold
C. Increase the detector's bounding-box size until identities become unique
D. Train the system using only blurred face thumbnails

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. Sort enrolled identities alphabetically before comparison
C. Use a distance or similarity threshold with an explicit unknown outcome
D. Increase the number of image color channels from three to four

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. Histogram stretching
B. Non-maximum suppression
C. Batch normalization
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. Ignoring the scale and padding offsets when mapping boxes back
C. Using RGB values instead of grayscale values
D. Keeping the original frame rate during inference

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. Use an unbounded receive buffer to avoid dropped frames
B. Encode every frame as a lossless image before transmission
C. Increase the stream resolution while preserving the same bitrate
D. Use bounded queues and discard stale frames when processing falls behind