Skip to content

Commit ceec6c2

Browse files
adding more example
1 parent 6ba4f9a commit ceec6c2

40 files changed

+7075
-172
lines changed

.gitignore

Lines changed: 1 addition & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,6 @@ __pycache__/
33
*.py[cod]
44
*$py.class
55

6-
# C extensions
7-
*.so
8-
9-
# Distribution / packaging
10-
.Python
11-
build/
12-
develop-eggs/
13-
dist/
14-
downloads/
15-
eggs/
16-
.eggs/
17-
lib/
18-
lib64/
19-
parts/
20-
sdist/
21-
var/
22-
wheels/
23-
pip-wheel-metadata/
24-
share/python-wheels/
25-
*.egg-info/
26-
.installed.cfg
27-
*.egg
28-
MANIFEST
29-
30-
# PyInstaller
31-
# Usually these files are written by a python script from a template
32-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33-
*.manifest
34-
*.spec
35-
36-
# Installer logs
37-
pip-log.txt
38-
pip-delete-this-directory.txt
39-
406
# Unit test / coverage reports
417
htmlcov/
428
.tox/
@@ -55,25 +21,6 @@ coverage.xml
5521
*.mo
5622
*.pot
5723

58-
# Django stuff:
59-
*.log
60-
local_settings.py
61-
db.sqlite3
62-
db.sqlite3-journal
63-
64-
# Flask stuff:
65-
instance/
66-
.webassets-cache
67-
68-
# Scrapy stuff:
69-
.scrapy
70-
71-
# Sphinx documentation
72-
docs/_build/
73-
74-
# PyBuilder
75-
target/
76-
7724
# Jupyter Notebook
7825
.ipynb_checkpoints
7926

@@ -84,46 +31,14 @@ ipython_config.py
8431
# pyenv
8532
.python-version
8633

87-
# pipenv
88-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91-
# install all needed dependencies.
92-
#Pipfile.lock
93-
9434
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
9535
__pypackages__/
9636

97-
# Celery stuff
98-
celerybeat-schedule
99-
celerybeat.pid
100-
101-
# SageMath parsed files
102-
*.sage.py
103-
10437
# Environments
10538
.env
10639
.venv
10740
env/
10841
venv/
10942
ENV/
11043
env.bak/
111-
venv.bak/
112-
113-
# Spyder project settings
114-
.spyderproject
115-
.spyproject
116-
117-
# Rope project settings
118-
.ropeproject
119-
120-
# mkdocs documentation
121-
/site
122-
123-
# mypy
124-
.mypy_cache/
125-
.dmypy.json
126-
dmypy.json
127-
128-
# Pyre type checker
129-
.pyre/
44+
venv.bak/
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
""" Drawing function in Opencv """
2+
3+
import cv2
4+
5+
img = cv2.imread("./Media/apple.jpeg")
6+
if img is not None:
7+
""" It will be create a line from (10, 10) to (100, 100)"""
8+
img = cv2.line(img,
9+
pt1=(10, 10),
10+
pt2=(180, 100),
11+
color=(255, 255, 255),
12+
thickness=2)
13+
14+
img = cv2.arrowedLine(img,
15+
pt1=(20, 20),
16+
pt2=(300, 300),
17+
color=(0, 255, 255),
18+
thickness=2)
19+
20+
img = cv2.rectangle(img,
21+
pt1=(250, 0),
22+
pt2=(450, 250),
23+
color=(0, 255, 0),
24+
thickness=2)
25+
26+
img = cv2.circle(img,
27+
center=(100, 100),
28+
radius=50,
29+
color=(255, 0, 255),
30+
thickness=-1)
31+
32+
cv2.imshow("output", img)
33+
else:
34+
print('file not found.')
35+
36+
cv2.waitKey(0)
37+
cv2.destroyAllWindows()

01. GUI features in OpenCV/addingTwoImages.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

01. GUI features in OpenCV/drawing function in opencv.py

Lines changed: 0 additions & 23 deletions
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)