moving data used by sample into a separate folder

small fix in find_obj.py
This commit is contained in:
Alexander Mordvintsev 2012-07-16 11:46:05 +00:00
parent 8610ff1b4d
commit 99e404fe86
3 changed files with 2 additions and 2 deletions

Before

(image error) Size: 704 KiB

After

(image error) Size: 704 KiB

@ -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)