import logging
import mpf_component_api as mpf
import mpf_component_util as mpf_util
logger = logging.getLogger('DeepFaceComponent')
class DeepFaceComponent(object):
detection_type =
'FACE'
@staticmethod
def get_detections_from_image(self,
image_job: mpf.ImageJob):
print(image_job)
# Must return mpf_component_api.ImageLocation
return mpf.ImageLocation(0,
0, 100,
100, 1.0, {'CLASSIFICATION':
'backpack'})
EXPORT_MPF_COMPONENT = DeepFaceComponent