mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix keypoints match list.
This commit is contained in:
parent
a07fb2f600
commit
36948fff45
@ -5971,7 +5971,7 @@ static mp_obj_t py_image_match_descriptor(uint n_args, const mp_obj_t *args, mp_
|
||||
count = orb_match_keypoints(kpts1->kpts, kpts2->kpts, match, threshold, &r, &c, &theta);
|
||||
|
||||
// Add matching keypoints to Python list.
|
||||
for (int i=0; i<count; i+=2) {
|
||||
for (int i=0; i<count*2; i+=2) {
|
||||
mp_obj_t index_obj[2] = {
|
||||
mp_obj_new_int(match[i+0]),
|
||||
mp_obj_new_int(match[i+1]),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user