https://github.com/jcbritobr/opencv-java
Lots of opencv examples from books ported to java code
https://github.com/jcbritobr/opencv-java
computer-vision image-analysis image-processing java opencv
Last synced: 4 months ago
JSON representation
Lots of opencv examples from books ported to java code
- Host: GitHub
- URL: https://github.com/jcbritobr/opencv-java
- Owner: jcbritobr
- License: mit
- Created: 2021-02-10T14:08:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-17T18:43:37.000Z (over 4 years ago)
- Last Synced: 2025-04-06T19:56:00.676Z (9 months ago)
- Topics: computer-vision, image-analysis, image-processing, java, opencv
- Language: Java
- Homepage:
- Size: 155 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
This repository is a collection of [OpenCv](https://opencv.org/) examples from c++ books, ported to Java language. Some examples has some changes to better adapt Java language.
### Installation
1 - Download OpenCv release from [here](https://opencv.org/releases/).
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.
### List of examples
* [**Simple**](src/main/java/org/gardona/training/Simple.java) - This example shows how to setup [OpenCv](https://opencv.org/) in a Java program and create a matrix.
* [**Gui Use Cases**](src/main/java/org/gardona/training/GuiUseCase.java) - This example shows how to set up a gui to use with opencv.
* [**Converting images**](src/main/java/org/gardona/training/ConvertingImages.java) - This example shows how to convert image formats.
* [**Drawing on images**](src/main/java/org/gardona/training/DrawingOnImages.java) - Shows how to paint one image above other image.
* [**Flipping images**](src/main/java/org/gardona/training/FlipingImages.java) - Shows how to flip an image in horizontal and vertical directions.
* [**Load an image in gray scale** ](src/main/java/org/gardona/training/LoadGrayImage.java)- Shows how to convert an image in gray scale just when it is loading.
* [**Pixel by pixel process**](src/main/java/org/gardona/training/MatrixPixelProcess.java) - Shows how to process an matrix pixel by pixel.
* [**Matrix use cases**](src/main/java/org/gardona/training/MatrixUseCases.java) - Shows simple matrix use cases.
* [**Regions of interests**](src/main/java/org/gardona/training/RegionsOfInterest.java) - Shows how to process only certain portions of a matrix.
* [**Sobel**](src/main/java/org/gardona/training/Sobel.java) - Shows how to implement a sobel filter.
* [**Camera capture**](src/main/java/org/gardona/training/CameraCapture.java) - Shows how to capture from camera devices and apply filters in captured matrix.