ZheyuanXie / KLT-Feature-Tracking

A Python implementation of the Kanade–Lucas–Tomasi (KLT) feature tracker
90 stars 23 forks source link

How to increase the keypoints? #3

Open caokui1221 opened 5 years ago

caokui1221 commented 5 years ago

Hi, @ZheyuanXie .Thank you very much for sharing. I have some questions:

  1. How to get more features(keypoints)?
  2. If can, Do I need to modify this code x = np.full((N,n_object),-1) y = np.full((N,n_object),-1) in getFeatures.py ? Thanks for your time.
ZheyuanXie commented 5 years ago

In getFeatures.py line 23, peak_local_max(corner_response,num_peaks=20,exclude_border=2), change the value of num_peaks.

caokui1221 commented 5 years ago

Thanks. I will try it.