moving data used by sample into a separate folder

small fix in find_obj.py
pull/2/head
Alexander Mordvintsev 13 years ago
parent 8610ff1b4d
commit 99e404fe86
  1. 0
      samples/python2/data/digits.png
  2. 2
      samples/python2/digits.py
  3. 2
      samples/python2/find_obj.py

Before

Width:  |  Height:  |  Size: 704 KiB

After

Width:  |  Height:  |  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)

Loading…
Cancel
Save