Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
99e404fe
Commit
99e404fe
authored
Jul 16, 2012
by
Alexander Mordvintsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moving data used by sample into a separate folder
small fix in find_obj.py
parent
8610ff1b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
digits.png
samples/python2/data/digits.png
+0
-0
digits.py
samples/python2/digits.py
+1
-1
find_obj.py
samples/python2/find_obj.py
+1
-1
No files found.
samples/python2/digits.png
→
samples/python2/d
ata/d
igits.png
View file @
99e404fe
File moved
samples/python2/digits.py
View file @
99e404fe
...
...
@@ -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
=
'd
ata/d
igits.png'
def
split2d
(
img
,
cell_size
,
flatten
=
True
):
h
,
w
=
img
.
shape
[:
2
]
...
...
samples/python2/find_obj.py
View file @
99e404fe
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment