Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Claire Lemoine
TP3-image
Commits
4ade95b2
Commit
4ade95b2
authored
Dec 16, 2020
by
robinechuca
Browse files
commit intermediaire
parent
530326b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
__pycache__/cache.cpython-38.pyc
__pycache__/cache.cpython-38.pyc
+0
-0
cache.py
cache.py
+8
-2
main.py
main.py
+1
-0
No files found.
__pycache__/cache.cpython-38.pyc
View file @
4ade95b2
No preview for this file type
cache.py
View file @
4ade95b2
#
Fonctions pour cacher une image dans une autre
#
!/usr/bin/env python3
def
cache_img
(
support
,
img_a_cacher
):
"""
|=================================================|
| Fonctions pour cacher une image dans une autre. |
|=================================================|
"""
def
cache_img
(
support
,
img_a_cacher
):
"""
:param support: L'image que l'on voit a la fin.
:param img_a_cacher: L'image que l'on veut cacher.
...
...
main.py
View file @
4ade95b2
...
...
@@ -42,6 +42,7 @@ def main():
repertoire
=
tkinter
.
filedialog
.
askdirectory
(
title
=
"Repertoire d'enregistrement"
)
cv2
.
imwrite
(
os
.
path
.
join
(
repertoire
,
"image_mixe.png"
),
mixe
)
cv2
.
imwrite
(
os
.
path
.
join
(
repertoire
,
"image_disimulee.png"
),
devoile
)
if
__name__
==
"__main__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment