Skip to content

Can't parse 'pt1'. Sequence item with index 0 has a wrong type: issue while running the code  #6

@Thejas775

Description

@Thejas775

`(thejas) thejas@thejas-Aspire-A715-51G:~/Desktop/Open Source/GoldenFace/Example$ python3 program.py
loading data from : /home/thejas/anaconda3/envs/thejas/lib/python3.12/site-packages/GoldenFace/landmark.yaml
loading data from : /home/thejas/anaconda3/envs/thejas/lib/python3.12/site-packages/GoldenFace/landmark.yaml
Traceback (most recent call last):
File "/home/thejas/Desktop/Open Source/GoldenFace/Example/program.py", line 14, in
analysis.drawTZM(color_b)
File "/home/thejas/anaconda3/envs/thejas/lib/python3.12/site-packages/GoldenFace/init.py", line 65, in drawTZM
self.img = goldenMath.drawTZM(self.img,self.faceBorders,self.facePoints,color)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thejas/anaconda3/envs/thejas/lib/python3.12/site-packages/GoldenFace/goldenMath.py", line 161, in drawTZM
cv2.line(img, (facePoints["nose_bottom"][0], y), (facePoints["nose_bottom"][0], facePoints["chin_down"][1]), red, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.10.0) 👎 error: (-5:Bad argument) in function 'line'

Overload resolution failed:

  • Can't parse 'pt1'. Sequence item with index 0 has a wrong type
  • Can't parse 'pt1'. Sequence item with index 0 has a wrong type`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions