OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products. Being a BSD-licensed product, OpenCV makes it easy for businesses to utilize and modify the code.
As of OpenCV 2.4.4, OpenCV supports desktop Java development using nearly the same interface as for Android development. The guide, Introduction to Java Development, will help you to create your first Java (or Scala) application using OpenCV, use Eclipse, Apache Ant or the Simple Build Tool (SBT) to build the application.