Compare commits
No commits in common. "94e65feaa94d7db7b258cbbc0407d5e278949733" and "27a55891468917c5177971bf3bf12a14914aa6ea" have entirely different histories.
94e65feaa9
...
27a5589146
21
garbage.py
21
garbage.py
@ -1,21 +0,0 @@
|
|||||||
from enum import Enum
|
|
||||||
|
|
||||||
class GarbageType (Enum):
|
|
||||||
PAPER = 0,
|
|
||||||
PLASTIC_AND_METAL = 1
|
|
||||||
GLASS = 3
|
|
||||||
BIO = 4
|
|
||||||
MIXED = 5
|
|
||||||
|
|
||||||
class Garbage:
|
|
||||||
img: str
|
|
||||||
|
|
||||||
def __init__(self, img: str) -> None:
|
|
||||||
self.img = img
|
|
||||||
|
|
||||||
class RecognizedGarbage (Garbage):
|
|
||||||
garbage_type: GarbageType
|
|
||||||
|
|
||||||
def __init__(self, src: Garbage, garbage_type: GarbageType) -> None:
|
|
||||||
super().__init__(src.img)
|
|
||||||
self.garbage_type = garbage_type
|
|
Loading…
Reference in New Issue
Block a user