Image detection project written in scala