sztuczna_inteligencja_2023_.../garbage.py

42 lines
938 B
Python
Raw Permalink Normal View History

2023-03-25 10:53:19 +01:00
from enum import Enum
class GarbageType(Enum):
2023-03-25 10:53:19 +01:00
PAPER = 0,
PLASTIC_AND_METAL = 1
GLASS = 3
BIO = 4
MIXED = 5
2023-03-25 10:53:19 +01:00
class Garbage:
img: str
shape: str
flexibility: str
does_smell: str
weight: str
size: str
color: str
softness: str
does_din: str
2023-03-25 10:53:19 +01:00
def __init__(self, img: str, shape: str, flexibility: str, does_smell: str, weight: str, size: str, color: str, softness: str, does_din: str) -> None:
2023-03-25 10:53:19 +01:00
self.img = img
self.shape = shape
self.flexibility = flexibility
self.does_smell = does_smell
self.weight = weight
self.size = size
self.color = color
self.softness = softness
self.does_din = does_din
2023-03-25 10:53:19 +01:00
2023-05-29 09:57:52 +02:00
class RecognizedGarbage:
2023-03-25 10:53:19 +01:00
garbage_type: GarbageType
2023-05-29 09:57:52 +02:00
src: Garbage
2023-03-25 10:53:19 +01:00
def __init__(self, src: Garbage, garbage_type: GarbageType) -> None:
self.garbage_type = garbage_type
2023-05-29 09:57:52 +02:00
self.src = src