Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Перепелкин Ярослав. 3823Б1ПР1. Практическая работа №1. Обработка изображений с использованием библиотеки OpenCV #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

TepidmishA
Copy link

No description provided.

parser = argparse.ArgumentParser()

parser.add_argument('--image', '-i',
help='Image path',

Choose a reason for hiding this comment

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

Заменить табуляцию на пробелы.

Функция пикселизации выделенной прямоугольной области изображения

:param img: Исходное изображение
:param win_name: Имя окна с изображением

Choose a reason for hiding this comment

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

То, что касается окон должно быть извне. Разделить отображение от реализации фильтра.

if input_image is None:
raise ValueError("Image not found or unable to load.")

input_image = cv.resize(input_image, [int(x / 2) for x in input_image.shape[:2][::-1]])

Choose a reason for hiding this comment

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

Удалить.

Separate visualization from implementation in image_pixelate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants