juangallostra / augmented-reality

Augmented reality proof of concept project with Python and OpenCV
MIT License
335 stars 118 forks source link

Hi, just got some error #1

Closed lucasjinreal closed 6 years ago

lucasjinreal commented 6 years ago

When I change to my image as model.jpg, program error:

 File "src/ar_main.py", line 55, in main
    matches = bf.match(des_model, des_frame)
cv2.error: OpenCV(3.4.1) /Users/travis/build/skvark/opencv-python/opencv/modules/core/src/batch_distance.cpp:238: error: (-215) type == src2.type() && src1.cols == src2.cols && (type == 5 || type == 0) in function batchDistance

What should this error means?

juangallostra commented 6 years ago

@jinfagang can you check / try the following?

  1. That des_model and des_frame are not None
  2. Try setting crossCheck to False in https://github.com/juangallostra/augmented-reality/blob/45e90e82ac8d3c6ad3407eb4744989776c18773d/src/ar_main.py#L33
juangallostra commented 6 years ago

@jinfagang closing for inactivity. Will re-open if required.

PropovedNik007 commented 5 years ago

Have the same problem, tryed your way. still nothing