lab 3 part 1
320
.ipynb_checkpoints/lab3-checkpoint.ipynb
Normal file
6
.ipynb_checkpoints/lab4-checkpoint.ipynb
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"cells": [],
|
||||
"metadata": {},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
6
.ipynb_checkpoints/lab5-checkpoint.ipynb
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"cells": [],
|
||||
"metadata": {},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
BIN
img/app-billboard.png
Normal file
After Width: | Height: | Size: 856 KiB |
BIN
img/bakery.jpg
Normal file
After Width: | Height: | Size: 641 KiB |
BIN
img/billboards.jpg
Normal file
After Width: | Height: | Size: 417 KiB |
BIN
img/boat_1.jpg
Normal file
After Width: | Height: | Size: 718 KiB |
BIN
img/boat_2.jpg
Normal file
After Width: | Height: | Size: 649 KiB |
BIN
img/book-python-cover.jpg
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
img/book-python-in-hands.jpg
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
img/caribou.jpg
Normal file
After Width: | Height: | Size: 303 KiB |
BIN
img/document-alignment.png
Normal file
After Width: | Height: | Size: 706 KiB |
BIN
img/panorama-manual.png
Normal file
After Width: | Height: | Size: 198 KiB |
320
lab3.ipynb
Normal file
33
lab4.ipynb
Normal 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
@ -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
|
||||
}
|