Diskon 80% terbatas! Masukkan kupon "merdeka" di kelas apa saja

Cara mengatasi error 'module' di OpenCV 3.2.0 dengan python 2.7.13

kak saya mau nanya bagaimana cara mengatasi error OpenCV 3.2.0 ini ya,

Traceback (most recent call last): File "C:/Python27/Project/Test3/SIFT_1.py", line 13, in sift = cv2.xfeatures2d.SIFT_create() AttributeError: 'module' object has no attribute 'xfeatures2d'

thank's kak.

avatar putty29
@putty29

1 Kontribusi 0 Poin

Diperbarui 6 tahun yang lalu

4 Jawaban:

Di line 13 ituu apa ya ?

Coba tampilkan disini..

avatar dodipsitorus
@dodipsitorus

412 Kontribusi 145 Poin

Dipost 8 tahun yang lalu

[module] ganti jadi ['module']

avatar thomsonmail
@thomsonmail

126 Kontribusi 25 Poin

Dipost 8 tahun yang lalu

Traceback (most recent call last): File "F:/KULIAH/SEMESTER 7/FOTOGRAMETRI JARAK DEKAT/Coba latihan/coba 1.py", line 10, in <module> kp1, des1 = orb.detechAndCompute(img1,None) AttributeError: 'cv2.ORB' object has no attribute 'detechAndCompute'

untuk error seperti ini bagaimana ya cara mengatasinya ? tolong indfo dong

avatar ChanSTRIX
@ChanSTRIX

1 Kontribusi 0 Poin

Dipost 6 tahun yang lalu

<pre> sift = cv2.xfeatures2d.SIFT_create() AttributeError: 'module' object has no attribute 'xfeatures2d'

</pre> artinya adalah ada kesalahan pada function diatas

coba perbaiki <pre> import cv2 </pre>

atau mungkin cv2 yang anda import tidak mempunyai function xfeatures2d

coba cek versi tersebut apakah mendukung tidak

coba deh, ikut instalasi dengan baik <a href=' http://www.softscients.web.id/2018/11/buku-belajar-mudah-python-dengan.html '> http://www.softscients.web.id/2018/11/buku-belajar-mudah-python-dengan.html </a>

avatar softscients
@softscients

77 Kontribusi 20 Poin

Dipost 6 tahun yang lalu

Login untuk ikut Jawaban