
Jetson Nanoには最初からOpenCV3が入っている。
顔識別のソフトを使おうとしたところ表題のエラー。
recoginizer = cv2.createLBPHFaceRecognizer()
AttributeError: ‘module’ object has no attribute ‘createLBPHFaceRecognizer’if you have that error it means the face class is installed.
https://github.com/opencv/opencv/issues/10516#issuecomment-369510955
but the updated version of opencv-contrib doesnt have ‘createLBPHFaceRecognizer’ it changed the name. so to find out print(help(cv2.face))
どうやらアップデートによって名前が変わってしまったようだ。
OpenCV4にアップデートした所、AttributieErrorは出なくなり解決した。
参考




コメント