Bagaimana cara yang benar untuk membaca citra menggunakan OpenCV?
```
img = cv.____('image.jpg')
```
TA MODUL 12 (VERSI 1)
Quiz
•
Computers
•
University
•
Medium
Ibes Ibes
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara yang benar untuk membaca citra menggunakan OpenCV?
```
img = cv.____('image.jpg')
```
read
imread
load
import
Answer explanation
cv.imread() adalah fungsi dasar untuk membaca citra dalam OpenCV.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Untuk deteksi tepi Sobel, sumbu x direpresentasikan oleh parameter:
```
cv.Sobel(img, cv.CV_64F, ____, 0)
```
0
1
2
3
Answer explanation
dx=1 menunjukkan turunan pertama pada arah x.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mengubah citra ke grayscale?
```
gray = cv.______(img, cv.COLOR_BGR2GRAY)
```
toGray
cvtColor
grayscale
convert
Answer explanation
cv.cvtColor() digunakan untuk mengubah ruang warna citra.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut:
```
edges = cv.Canny(img, ____, 200)
```
Nilai threshold pertama yang umum digunakan adalah:
50
100
150
250
Answer explanation
100 adalah nilai threshold bawah yang umum untuk Canny edge detection.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara menyimpan citra menggunakan OpenCV?
```
cv.____('output.jpg', img)
```
save
imwrite
write
export
Answer explanation
cv.imwrite() menyimpan citra ke file.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi dari cv.getStructuringElement()?
Membuat kernel untuk morfologi
Membuat histogram
Membuat filter
Membuat mask
Answer explanation
getStructuringElement() membuat kernel untuk operasi morfologi.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi dari cv.bitwise_and()?
Operasi AND piksel
Operasi OR piksel
Operasi XOR piksel
Operasi NOT piksel
Answer explanation
bitwise_and() melakukan operasi AND per piksel.
12 questions
css
Quiz
•
University
15 questions
UTS PCD 20211
Quiz
•
University
8 questions
PCD 1a
Quiz
•
University
10 questions
Pengolahan Citra Digital
Quiz
•
University
11 questions
Monitörler
Quiz
•
University
10 questions
Quiz Pengolahan Citra Digital
Quiz
•
University
15 questions
Dasar Desain Grafis
Quiz
•
12th Grade - University
15 questions
Evaluasi UTS Basis Data
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade