Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

[task_06] Add task 06 #125

Merged
merged 6 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added trunk/ii02211/task_06/Images/img1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/smoke_guy.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions trunk/ii02211/task_06/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Лабораторная работа №6 #

## Тема ##

Создание анимации

## Цель работы ##

Создание анимации.

## Задание ##

Создание анимации

## Результат работы ##

Анимация капельки

![снуп дог](./images/smoke_guy.gif)
23 changes: 23 additions & 0 deletions trunk/ii02211/task_06/scr/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import cv2
import os

path_to_images = 'C:\\Users\\VKN\\AppData\\Local\\Programs\\Python\\giis\\lab6\\img'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Путь относительный и непонятно где это картинка, я ее не вижу в пул риквесте


frames_list = []

images_files = sorted(os.listdir(path_to_images))

# Проход по каждому файлу в папке
for img_file in images_files:
if img_file.endswith('.png'):
frame = cv2.imread(os.path.join(path_to_images, img_file))
frame = cv2.resize(frame, (1000, 800))
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGBA)
frames_list.append(frame)

# Сохранение GIF-изображения
cv2.imwrite('smoke_guy.gif', frames_list[0], params=[cv2.IMWRITE_PNG_COMPRESSION, 0])

# Добавление остальных кадров
for frame in frames_list[1:]:
cv2.imwrite('smoke_guy.gif', frame, params=[cv2.IMWRITE_PNG_COMPRESSION, 0], append=True)
110 changes: 110 additions & 0 deletions trunk/ii02211/task_06/scr/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
annotated-types==0.6.0
anyio==4.3.0
argcomplete==1.10.3
asgiref==3.8.1
beautifulsoup4==4.8.2
blis==0.7.11
catalogue==2.0.10
certifi==2024.2.2
chardet==3.0.4
charset-normalizer==3.3.2
click==8.1.7
cloudpathlib==0.16.0
colorama==0.4.6
compressed-rtf==1.0.6
confection==0.1.4
contourpy==1.2.0
customtkinter==5.2.2
cycler==0.12.1
cymem==2.0.8
darkdetect==0.8.0
DAWG-Python==0.7.2
distro==1.9.0
Django==5.0.4
django-cors-headers==4.3.1
django-filter==24.2
djangorestframework==3.15.1
docx2txt==0.8
ebcdic==1.1.1
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl
extract-msg==0.28.7
filelock==3.13.1
fonttools==4.49.0
fsspec==2024.2.0
groq==0.5.0
h11==0.14.0
httpcore==1.0.5
httpx==0.27.0
idna==3.6
idx2numpy==1.2.3
IMAPClient==2.1.0
intel-openmp==2021.4.0
Jinja2==3.1.3
joblib==1.3.2
keyboard==0.13.5
kiwisolver==1.4.5
langcodes==3.3.0
lxml==5.2.1
MarkupSafe==2.1.5
matplotlib==3.8.3
mkl==2021.4.0
mpmath==1.3.0
murmurhash==1.0.10
networkx==3.2.1
nltk==3.8.1
numpy==1.26.4
olefile==0.47
opencv-python==4.9.0.80
packaging==23.2
pandas==2.2.1
pdfminer.six==20191110
pillow==10.2.0
preshed==3.0.9
prettytable==3.9.0
pycryptodome==3.20.0
pydantic==2.6.4
pydantic_core==2.16.3
pygame==2.5.2
pymorphy3==2.0.1
pymorphy3-dicts-ru==2.4.417150.4580142
pyodbc==5.1.0
pyparsing==3.1.1
PyPDF2==3.0.1
pyth==0.6.0
python-dateutil==2.8.2
python-mnist==0.7
python-pptx==0.6.23
pytz==2024.1
regex==2023.12.25
requests==2.31.0
ru-core-news-md @ https://github.com/explosion/spacy-models/releases/download/ru_core_news_md-3.7.0/ru_core_news_md-3.7.0-py3-none-any.whl
scikit-learn==1.4.1.post1
scipy==1.12.0
six==1.12.0
smart-open==6.4.0
sniffio==1.3.1
sortedcontainers==2.4.0
soupsieve==2.5
spacy==3.7.4
spacy-legacy==3.0.12
spacy-loggers==1.0.5
SpeechRecognition==3.8.1
sqlparse==0.5.0
srsly==2.4.8
striprtf==0.0.26
sympy==1.12
tbb==2021.11.0
textract==1.6.5
thinc==8.2.3
threadpoolctl==3.3.0
tqdm==4.66.2
typer==0.9.4
typing_extensions==4.10.0
tzdata==2024.1
tzlocal==5.2
urllib3==2.2.1
wasabi==1.1.2
wcwidth==0.2.13
weasel==0.3.4
xlrd==1.2.0
XlsxWriter==3.2.0
Loading