polished OpenCVExtractor.scala