Implementation of computer vision in Java