added openCV Scala port