├── .gitignore ├── results ├── original.png ├── background-removal.png └── foreground-removal.png ├── src └── it │ └── polito │ └── elite │ └── teaching │ └── cv │ ├── application.css │ ├── ImageSegController.java │ ├── ImageSegmentation.java │ ├── ImageSeg.fxml │ └── utils │ └── Utils.java ├── .classpath ├── .project └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | -------------------------------------------------------------------------------- /results/original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencv-java/image-segmentation/HEAD/results/original.png -------------------------------------------------------------------------------- /results/background-removal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencv-java/image-segmentation/HEAD/results/background-removal.png -------------------------------------------------------------------------------- /results/foreground-removal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencv-java/image-segmentation/HEAD/results/foreground-removal.png -------------------------------------------------------------------------------- /src/it/polito/elite/teaching/cv/application.css: -------------------------------------------------------------------------------- 1 | /* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */ -------------------------------------------------------------------------------- /src/it/polito/elite/teaching/cv/ImageSegController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencv-java/image-segmentation/HEAD/src/it/polito/elite/teaching/cv/ImageSegController.java -------------------------------------------------------------------------------- /src/it/polito/elite/teaching/cv/ImageSegmentation.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencv-java/image-segmentation/HEAD/src/it/polito/elite/teaching/cv/ImageSegmentation.java -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Lab6 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.xtext.ui.shared.xtextBuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.xtext.ui.shared.xtextNature 21 | org.eclipse.jdt.core.javanature 22 | 23 | 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Image Segmentation with OpenCV and JavaFX 2 | 3 | [![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/) 4 | 5 | *Computer Vision course - [Politecnico di Torino](http://www.polito.it)* 6 | 7 | A project, made in Eclipse (Neon), for experimenting with edge detection, erosion and dilatation. It performs image segmentation upon a webcam video stream. Some screenshots of the running project are available in the `results` folder. 8 | 9 | Please, note that the project is an Eclipse project, made for teaching purposes. Before using it, you need to install the OpenCV library (version 3.x) and JavaFX 8 and create a `User Library` named `opencv` that links to the OpenCV jar and native libraries. 10 | 11 | A guide for getting started with OpenCV and Java is available at [http://opencv-java-tutorials.readthedocs.org/en/latest/index.html](http://opencv-java-tutorials.readthedocs.org/en/latest/index.html). 12 | -------------------------------------------------------------------------------- /src/it/polito/elite/teaching/cv/ImageSeg.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |