AI-102 Implement computer vision solutions Practice Question
An application uses Azure AI Vision to analyze images and extract text. The application crashes when processing images with embedded barcodes. You suspect the issue is related to the image pre-processing. Which step should you add to the pipeline to resolve the issue?
⚠ Common exam trap
Watch out — candidates often assume the OCR engine can handle all image content or that simple image adjustments like contrast or resizing can fix the crash, when the real issue is that barcodes are non-text artifacts that must be explicitly removed from the processing pipeline.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Detect and remove barcodes from the image before OCR
Azure AI Vision's OCR engine is designed to extract text from natural images and documents, but embedded barcodes can introduce noise or unexpected patterns that interfere with the text detection algorithm. By detecting and removing barcodes from the image before OCR, you eliminate this interference, allowing the OCR engine to focus on textual content without crashing or producing erroneous results.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the image contrast before sending to the OCR engine
Why it's wrong here
Increasing contrast may make barcodes more prominent, potentially worsening the problem.
- ✗
Add more training data with barcodes to the OCR model
Why it's wrong here
Azure AI Vision OCR is a pre-built service and cannot be retrained.
- ✓
Detect and remove barcodes from the image before OCR
Why this is correct
Removing barcodes eliminates patterns that cause OCR errors, improving accuracy.
- ✗
Resize the image to a smaller resolution to reduce barcode impact
Why it's wrong here
Resizing may reduce image quality and does not specifically address barcode interference.
Visual reference
Go deeper
Related to this question
About these practice questions
One of 945 original AI-102 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-102 exam.