Since opencv can support java now, so we use opencv directly