1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MediaPipeのFACE_CONTOURSでトラブった話

Posted at

トラブル内容

こちらのサンプルでフェイスメッシュして遊ぼうとしたら、
エラー吐いて落ちる現象。

AttributeError: module 'mediapipe.python.solutions.face_mesh' has no attribute 'FACE_CONTOURS'

#環境

  • Windows 10 64bit
  • Python 3.9.1

#解決方法
海外サイトを漁っていたら見つけた情報。
「Update: FACEMESH_CONTOURS is the correct new name.」

サンプルのfacemesh.pyの35行目あたり、
FACE_CONTOURSをFACEMESH_CONTOURSに書き換えたらすんなり動いた。

connections=mp_face_mesh.FACEMESH_CONTOURS ,
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?