{"id":18669351,"url":"https://github.com/szaza/tensorflow-java-examples-spring","last_synced_at":"2025-10-15T06:35:41.468Z","repository":{"id":69099664,"uuid":"123880023","full_name":"szaza/tensorflow-java-examples-spring","owner":"szaza","description":"Tensorflow Java tutorial with Spring and Gradle. This is a simple example application, which uses Yolo with TF Java API and Spring Framework.","archived":false,"fork":false,"pushed_at":"2019-04-20T09:55:35.000Z","size":666,"stargazers_count":59,"open_issues_count":1,"forks_count":28,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-19T06:40:55.694Z","etag":null,"topics":["java","spring","tensorflow","tutorial"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/szaza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-05T07:16:10.000Z","updated_at":"2024-11-13T04:12:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4fd0f3d-3653-4ed4-8b52-ff51872d8dbb","html_url":"https://github.com/szaza/tensorflow-java-examples-spring","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/szaza/tensorflow-java-examples-spring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szaza%2Ftensorflow-java-examples-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szaza%2Ftensorflow-java-examples-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szaza%2Ftensorflow-java-examples-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szaza%2Ftensorflow-java-examples-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szaza","download_url":"https://codeload.github.com/szaza/tensorflow-java-examples-spring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szaza%2Ftensorflow-java-examples-spring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279058407,"owners_count":26094844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","spring","tensorflow","tutorial"],"created_at":"2024-11-07T08:46:48.163Z","updated_at":"2025-10-15T06:35:41.453Z","avatar_url":"https://github.com/szaza.png","language":"Java","readme":"# TensorFlow Java tutorial with Spring Framework and Gradle\nObject detection server side application sample program written in Java. It uses the TensorFlow Java API with a trained YOLOv2 model. The server application is implemented with Spring Framework and it is built by Gradle.\n\n#### How it works?\n\nIt provides a web user interface to upload images and detect objects.\n\n\u003cimg src=\"https://github.com/szaza/java-tensorflow-spring/blob/master/sample/home-page.jpg\" alt=\"TensorFlow Java API home page\" title=\"TensorFlow Java API home page\" width=\"600\"/\u003e\u003cbr/\u003e\nStep1: upload your image\n\n\u003cimg src=\"https://github.com/szaza/java-tensorflow-spring/blob/master/sample/object-detection-page.jpg\" alt=\"TensorFlow Java API object detection page\" title=\"TensorFlow Java API object detection page\" width=\"600\"/\u003e\u003cbr/\u003eStep2: display the recognized objects\n\n#### Compile and run\n\nPreconditions:\n- Java JDK 1.8 or greater;\n- TensorFlow 1.6 or grater;\n- Git version control system;\n\nStrongly recommended to install:\n- nVidia CUDA Toolkit 8.0 or higher version;\n- nVidia cuDNN GPU accelerated deep learning framework;\n\n**Download the frozen graph and the label file**\n\nBefore compiling the source code you have to place the frozen graph and the label file into the `./graph/YOLO` directory. Download one of my graphs from my [google drive](https://drive.google.com/drive/folders/1GfS1Yle7Xari1tRUEi2EDYedFteAOaoN). There are two graphs: tiny-yolo-voc.pb and yolo-voc.pb. The tiny-yolo.pb has a lower size, however it is less accurate than the yolo-voc.pb. Modify the [application.yml](https://github.com/szaza/tensorflow-java-examples-spring/blob/master/src/main/resources/application.yml) configuration file if it is necessary. Here you can increase the file upload limit also.\n\n**Compile with Gradle**\n\nCompile the code by typing `./gradlew clean build` in the terminal window.\u003cbr/\u003e\nRun it with the command `./gradlew bootRun`\n\nOpen the [http://localhost:8080](http://localhost:8080) and you should see the webpage.\u003cbr/\u003e\n\n#### Demo application\n\nDeployed to **Heroku** with a tiny-yolo model: https://still-crag-64816.herokuapp.com/\n\nHave a look at my previous project for better understanding of the object detection part: [Tensorflow Java API example application](https://github.com/szaza/tensorflow-example-java) or visit my site: https://sites.google.com/view/tensorflow-example-java-api.\n\n## News about YoloV3 support\n\nThe current solution doesn't support the YoloV3 model and unfortunately, I do not have time to implement it, however I would be very happy if I could help to implement and I could review a PR with this feture. \nFor this reason I've started a new branch here: https://github.com/szaza/tensorflow-java-examples-spring/tree/feature/add-yolov3-support; If you are interested in this feature and you would like to be a collabortor, please add a comment for this thread: https://github.com/szaza/tensorflow-java-examples-spring/issues/2;\n\nMany-many thank for any support!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszaza%2Ftensorflow-java-examples-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszaza%2Ftensorflow-java-examples-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszaza%2Ftensorflow-java-examples-spring/lists"}