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
807f5e33
Commit
807f5e33
authored
7 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10055 from mabdullahrafique:patch-1
parents
11330b92
c180047b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
digits_video.py
samples/python/digits_video.py
+2
-1
No files found.
samples/python/digits_video.py
View file @
807f5e33
...
...
@@ -55,7 +55,7 @@ def main():
if
not
(
16
<=
h
<=
64
and
w
<=
1.2
*
h
):
continue
pad
=
max
(
h
-
w
,
0
)
x
,
w
=
x
-
pad
/
2
,
w
+
pad
x
,
w
=
x
-
(
pad
//
2
),
w
+
pad
cv2
.
rectangle
(
frame
,
(
x
,
y
),
(
x
+
w
,
y
+
h
),
(
0
,
255
,
0
))
bin_roi
=
bin
[
y
:,
x
:][:
h
,:
w
]
...
...
@@ -98,3 +98,4 @@ def main():
if
__name__
==
'__main__'
:
main
()
cv2
.
destroyAllWindows
()
This diff is collapsed.
Click to expand it.
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