lab 3 part 1

This commit is contained in:
pbiskup 2021-11-28 20:35:20 +01:00
parent 95d4374868
commit 04016943d5
16 changed files with 762 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}

View File

@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}

BIN
img/app-billboard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 KiB

BIN
img/bakery.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 KiB

BIN
img/billboards.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

BIN
img/boat_1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 KiB

BIN
img/boat_2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 KiB

BIN
img/book-python-cover.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
img/caribou.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

BIN
img/document-alignment.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 KiB

BIN
img/panorama-manual.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

320
lab3.ipynb Normal file

File diff suppressed because one or more lines are too long

33
lab4.ipynb Normal file
View File

@ -0,0 +1,33 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "eba0bc77",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

77
lab5.ipynb Normal file
View File

@ -0,0 +1,77 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "a484c0ac",
"metadata": {},
"outputs": [],
"source": [
"import cv2 as cv"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "733098ae",
"metadata": {},
"outputs": [],
"source": [
"img = cv.imread('img/billboards.jpg')"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "22fc2441",
"metadata": {},
"outputs": [],
"source": [
"def click_event(event, x, y, flags, params):\n",
" \n",
" if event == cv2.EVENT_LBUTTONDOWN:\n",
" \n",
" # displaying the coordinates\n",
" # on the Shell\n",
" print(x, ' ', y)\n",
" \n",
" # displaying the coordinates\n",
" # on the image window\n",
" font = cv2.FONT_HERSHEY_SIMPLEX\n",
" cv2.putText(img, str(x) + ',' +\n",
" str(y), (x,y), font,\n",
" 1, (255, 0, 0), 2)\n",
" cv2.imshow('image', img)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "49972565",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
}
},
"nbformat": 4,
"nbformat_minor": 5
}