Skip to content

Chapter_1/bayes.py #5

@omniqa

Description

@omniqa

Hi, getting this error:

Traceback (most recent call last):
  File "bayes.py", line 217, in <module>
    main()
  File "bayes.py", line 210, in main
    cv.circle(app.img, (sailor_x[0], sailor_y[0]), 3, (255, 0, 0), -1)
TypeError: 'int' object is not subscriptable

sailor_x, sailor_y are int why do you treat them as arrays?

cv.circle(app.img, (sailor_x, sailor_y), 3, (255, 0, 0), -1)
this is working fine....

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