compact with opencv 2.4.x