Postingan lainnya
Buku Ini Koding!
Baru!
Buku ini akan jadi teman perjalanan kamu belajar sampai dapat kerjaan di dunia programming!
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.
4 Jawaban:
Di line 13 ituu apa ya ?
Coba tampilkan disini..
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
<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>