2023-03-25 10:53:19 +01:00
|
|
|
from enum import Enum
|
|
|
|
|
2023-05-27 13:16:41 +02:00
|
|
|
|
|
|
|
class GarbageType(Enum):
|
2023-03-25 10:53:19 +01:00
|
|
|
PAPER = 0,
|
|
|
|
PLASTIC_AND_METAL = 1
|
|
|
|
GLASS = 3
|
|
|
|
BIO = 4
|
|
|
|
MIXED = 5
|
|
|
|
|
2023-05-27 13:16:41 +02:00
|
|
|
|
2023-03-25 10:53:19 +01:00
|
|
|
class Garbage:
|
|
|
|
img: str
|
2023-05-27 13:16:41 +02:00
|
|
|
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
|
|
|
|
2023-05-27 13:16:41 +02: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
|
2023-05-27 13:16:41 +02:00
|
|
|
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:
|
2023-05-27 13:16:41 +02:00
|
|
|
self.garbage_type = garbage_type
|
2023-05-29 09:57:52 +02:00
|
|
|
self.src = src
|