Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-157
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-157
2021-157
Commits
66d30974
Commit
66d30974
authored
Nov 26, 2021
by
Faseel Nazeel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
a26b2dbd
Pipeline
#4233
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
meta.py
meta.py
+26
-0
No files found.
meta.py
0 → 100644
View file @
66d30974
# author: Adrian Rosebrock
# website: http://www.pyimagesearch.com
# import the necessary packages
from
__future__
import
print_function
import
cv2
import
re
def
find_function
(
name
,
pretty_print
=
True
,
module
=
None
):
# if the module is None, initialize it to to the root `cv2`
# library
if
module
is
None
:
module
=
cv2
# grab all function names that contain `name` from the module
p
=
".*{}.*"
.
format
(
name
)
filtered
=
filter
(
lambda
x
:
re
.
search
(
p
,
x
,
re
.
IGNORECASE
),
dir
(
module
))
# check to see if the filtered names should be returned to the
# calling function
if
not
pretty_print
:
return
filtered
# otherwise, loop over the function names and print them
for
(
i
,
funcName
)
in
enumerate
(
filtered
):
print
(
"{}. {}"
.
format
(
i
+
1
,
funcName
))
\ No newline at end of file
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