Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tzolov/spring-boot-tensorflow-demo
Spring Boot and Tensorflow demos for Image-Recognition, Pose-Estimation, Object-Detection, Instance-Segmentation
https://github.com/tzolov/spring-boot-tensorflow-demo
computer-vision image-recognition instance-segmentation object-detection pose-estimation spring-boot spring-cloud-dataflow tensorflow
Last synced: 4 days ago
JSON representation
Spring Boot and Tensorflow demos for Image-Recognition, Pose-Estimation, Object-Detection, Instance-Segmentation
- Host: GitHub
- URL: https://github.com/tzolov/spring-boot-tensorflow-demo
- Owner: tzolov
- License: apache-2.0
- Created: 2018-07-25T09:16:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-25T10:59:19.000Z (over 6 years ago)
- Last Synced: 2023-03-23T02:47:15.687Z (over 1 year ago)
- Topics: computer-vision, image-recognition, instance-segmentation, object-detection, pose-estimation, spring-boot, spring-cloud-dataflow, tensorflow
- Language: Java
- Homepage:
- Size: 118 KB
- Stars: 12
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SpringBoot & Tensorflow Demos
Spring Boot demo application that leverages the [Tensorflow SCSt App Starters](https://github.com/spring-cloud-stream-app-starters/tensorflow) and [SCSt Computer Vision](https://github.com/tzolov/computer-vision) projects to
perform `Image-Recognition`, `Object-Detection`, `Image-Segmentation` and `Pose-Estimation`. Under the hood
the [SpringBootTensorflowDemoApplication](./src/man/java/org/springframework/cloud/stream/app/demo/SpringBootTensorflowDemoApplication.java) spring-boot demo uses the `AggregateApplicationBuilder` for `in-memory` binding of the existing [Image-Recognition](https://github.com/spring-cloud-stream-app-starters/tensorflow/tree/master/spring-cloud-starter-stream-processor-image-recognition),
[Object-Detection](https://github.com/spring-cloud-stream-app-starters/tensorflow/tree/master/spring-cloud-starter-stream-processor-object-detection),
[Image-Segmentation](https://github.com/spring-cloud-stream-app-starters/tensorflow/tree/master/spring-cloud-starter-stream-processor-object-detection)
and [Pose-Estimation]() Tesnerflow app starters.
Multiple pre-trained models are available for every task. Check the annotations in the [SpringBootTensorflowDemoApplication](./src/man/java/org/springframework/cloud/stream/app/demo/SpringBootTensorflowDemoApplication.java) class for further details.![Instance Segmentation, Pose Estimation and Object Detection](./src/main/resources/spring-boot-tensorflow-cv-demos.png)
# Quick Start
Download the pre-build [spring-boot-tensorflow-demo-0.0.1-SNAPSHOT.jar](https://drive.google.com/file/d/1-_rHqQdcIMOVo0EgXfG2C-n-2w2yi1mP) SpringBoot application and run it form the command line:
```bash
java -jar ./spring-boot-tensorflow-demo-0.0.1-SNAPSHOT.jar --demoType=pose_estimation --server.port=8081
```Select between following demos: `pose_estimation`, `object_detection`, `image_recognition` and `instance_segmentation`.
* The `pose_estimation`, `object_detection` and `instance_segmentation` pipelines use the web camera for source input and plot the
output in an `Image-Viewer`.
* The `image_recognition` still uses `File` source (listening for new images in the `/tmp/input` folder) and plots the result in an `Image-Viewer`.# Build
```bash
git clone https://github.com/tzolov/spring-boot-tensorflow-demo.git
cd ./spring-boot-tensorflow-demo
./mvnw clean install
```NOTE: Due to the snapshot dependencies on the Tensorflow app starters the desired functionality may not be present.