Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AP-KINADINOVA-Dariya
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dariya Kinadinova
AP-KINADINOVA-Dariya
Commits
c9751539
Commit
c9751539
authored
1 year ago
by
Kinadinova Dariya
Browse files
Options
Downloads
Patches
Plain Diff
class block
parent
6e29373d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
projet/codes/Block.py
+1
-2
1 addition, 2 deletions
projet/codes/Block.py
projet/codes/Decouper_Image.py
+1
-2
1 addition, 2 deletions
projet/codes/Decouper_Image.py
projet/codes/color.py
+0
-0
0 additions, 0 deletions
projet/codes/color.py
projet/codes/ex.py
+0
-0
0 additions, 0 deletions
projet/codes/ex.py
with
2 additions
and
4 deletions
projet/Block.py
→
projet/
codes/
Block.py
+
1
−
2
View file @
c9751539
...
...
@@ -5,7 +5,7 @@
"""
from
PIL
import
Image
,
ImageDraw
from
color
.py
import
*
from
color
import
*
class
Block
:
def
__init__
(
self
,
image
):
...
...
@@ -30,7 +30,6 @@ class Block:
colors
=
liste_col
(
self
.
image
,
(
0
,
0
),
(
self
.
width
-
1
,
self
.
height
-
1
))
return
avg_col
(
colors
)
def
is_uniform
(
self
,
coordinates
:
tuple
()):
"""
à_remplacer_par_ce_que_fait_la_fonction
...
...
This diff is collapsed.
Click to expand it.
projet/Decouper_Image.py
→
projet/
codes/
Decouper_Image.py
+
1
−
2
View file @
c9751539
from
PIL
import
Image
,
ImageDraw
def
decouper
(
file
:
str
)
->
list
[
Image
]:
def
decouper
(
im
:
Image
)
->
list
[
Image
]:
"""
splits image into four blocks
Précondition :
...
...
@@ -9,7 +9,6 @@ def decouper(file: str) -> list[Image]:
$$$
"""
im
=
Image
.
open
(
file
)
im_rgb
=
im
.
convert
(
'
RGB
'
)
size
=
im_rgb
.
size
w
=
size
[
0
]
...
...
This diff is collapsed.
Click to expand it.
projet/color.py
→
projet/
codes/
color.py
+
0
−
0
View file @
c9751539
File moved
This diff is collapsed.
Click to expand it.
projet/ex.py
→
projet/
codes/
ex.py
+
0
−
0
View file @
c9751539
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment