akt
This commit is contained in:
15
dzien_05/przyklady/ocv_01.py
Normal file
15
dzien_05/przyklady/ocv_01.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
from exif import Image
|
||||
|
||||
file_name = "adam.jpg"
|
||||
|
||||
if not os.path.exists(file_name):
|
||||
print(f"Brak pliku: {file_name}")
|
||||
# kod błedu na podstawie https://questdb.com/docs/troubleshooting/os-error-codes/
|
||||
exit(5)
|
||||
|
||||
with open(file_name, 'rb') as image_file:
|
||||
image = Image(image_file)
|
||||
|
||||
print(image.list_all())
|
||||
|
||||
Reference in New Issue
Block a user