Skip to content

Comments

Samoylov pavel#16

Open
Pasha0909 wants to merge 7 commits intorailbotan:mainfrom
Pasha0909:Samoylov_Pavel
Open

Samoylov pavel#16
Pasha0909 wants to merge 7 commits intorailbotan:mainfrom
Pasha0909:Samoylov_Pavel

Conversation

@Pasha0909
Copy link

No description provided.

filter.py Outdated
wid = len(pixels[1])
for y in range(0, hei, size):
for x in range(0, wid, size):
illumination = get_illumination(pixels, p_x, p_y, size)
Copy link
Owner

Choose a reason for hiding this comment

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

У вас не объявлены переменные p_x и p-y

filter.py Outdated
result = 0
for range1 in range(p_x, p_x + size):
for pillar in range(p_y, p_y + size):
color_1 = int(pix[pillar][range1][0])
Copy link
Owner

Choose a reason for hiding this comment

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

pillar и range1 надо поменять, следуя из ваших наименований

filter.py Outdated

res = Image.fromarray(grey_img(img, 10, 50))
res.save('res.jpg')
res = Image.fromarray(grey_img(input("Введите название входного файла"),
Copy link
Owner

Choose a reason for hiding this comment

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

Вы пытаетесь обработать строку

@railbotan
Copy link
Owner

Ваш код не работает

@railbotan
Copy link
Owner

4

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