mv_machine_learning: convert ObjectDetection class into template class