Commit 99e404fe authored by Alexander Mordvintsev's avatar Alexander Mordvintsev

moving data used by sample into a separate folder

small fix in find_obj.py
parent 8610ff1b
......@@ -29,7 +29,7 @@ from numpy.linalg import norm
SZ = 20 # size of each digit is SZ x SZ
CLASS_N = 10
DIGITS_FN = 'digits.png'
DIGITS_FN = 'data/digits.png'
def split2d(img, cell_size, flatten=True):
h, w = img.shape[:2]
......
......@@ -71,7 +71,7 @@ def explore_match(win, img1, img2, kp_pairs, status = None, H = None):
cv2.polylines(vis, [corners], True, (255, 255, 255))
if status is None:
status = np.ones(len(p1), np.bool_)
status = np.ones(len(kp_pairs), np.bool_)
p1 = np.int32([kpp[0].pt for kpp in kp_pairs])
p2 = np.int32([kpp[1].pt for kpp in kp_pairs]) + (w1, 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment