# Path: navigation/ObjectDetector.py
# class ObjectDetector(metaclass=abc.ABCMeta):
#     def __init__(self):
#         self._detected = False
#         self._circle_coordonates = None
# 
#     @abc.abstractmethod
#     def process(self, image):
#         pass
# 
#     @property
#     def detected(self):
#         return self._detected
# 
#     @property
#     def circle_coordonates(self):
#         return self._circle_coordonates
# 
#     @detected.setter
#     def detected(self, value):
#         self._detected = value
# 
#     @circle_coordonates.setter
#     def circle_coordonates(self, value):
#         self._circle_coordonates = value


import re
import numpy as np
from PIL import Image
from tflite_runtime.interpreter import Interpreter
from navigation.ObjectDetector import ObjectDetector
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function





class TfNewObjectDetector(ObjectDetector):
    def __init__(self, model_path: str, label_file: str, label: str):
        self.__model_path = model_path
        self.__label_file = label_file
        self.__label = label
        self.__threshold = 0.4

# Path: navigation/ObjectDetector.py
# class ObjectDetector(metaclass=abc.ABCMeta):
#     def __init__(self):
#         self._detected = False
#         self._circle_coordonates = None
# 
#     @abc.abstractmethod
#     def process(self, image):
#         pass
# 
#     @property
#     def detected(self):
#         return self._detected
# 
#     @property
#     def circle_coordonates(self):
#         return self._circle_coordonates
# 
#     @detected.setter
#     def detected(self, value):
#         self._detected = value
# 
#     @circle_coordonates.setter
#     def circle_coordonates(self, value):
#         self._circle_coordonates = value


# Path: navigation/TfNewObjectDetector.py
import re
import numpy as np
from PIL import Image
from tflite_runtime.interpreter import Interpreter
from navigation.ObjectDetector import ObjectDetector

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function





class TfNewObjectDetector(ObjectDetector):
    def __init__(self, model_path: str, label_file: str, label: str):
        self.__model_path = model_path
        self.__label_file = label_file
        self.__label = label
        self.__threshold = 0.4

        self.__interpreter = None