This repository is a collection of OpenCv examples from c++ books, ported to Java language. Some examples has some changes to better adapt Java language.
1 - Download OpenCv release from here.
2 - Put all this libraries in os path: opencv_videoio_ffmpeg450_64.dll, opencv_java450.dll, opencv_world450.dll, opencv_videoio_msmf450_64.dll.
3 - Clone this project, and in the root folder, add java opencv-450.jar library to libs folder(if not exists, just create one).
The same process is valid for linux but instead of *.dll, the shared libraries will have *.so extensions. Unfortunately, opencv 4.51 is not available on maven repositories. It cant be downloaded by gradle.
- Simple - This example shows how to setup OpenCv in a Java program and create a matrix.
- Gui Use Cases - This example shows how to set up a gui to use with opencv.
- Converting images - This example shows how to convert image formats.
- Drawing on images - Shows how to paint one image above other image.
- Flipping images - Shows how to flip an image in horizontal and vertical directions.
- Load an image in gray scale - Shows how to convert an image in gray scale just when it is loading.
- Pixel by pixel process - Shows how to process an matrix pixel by pixel.
- Matrix use cases - Shows simple matrix use cases.
- Regions of interests - Shows how to process only certain portions of a matrix.
- Sobel - Shows how to implement a sobel filter.
- Camera capture - Shows how to capture from camera devices and apply filters in captured matrix.