{"id":15068911,"url":"https://github.com/rladstaetter/javacv-webcam","last_synced_at":"2025-04-10T17:11:47.501Z","repository":{"id":150990656,"uuid":"260028034","full_name":"rladstaetter/javacv-webcam","owner":"rladstaetter","description":"Display a videostream from your webcam with JavaFX and JavaCV","archived":false,"fork":false,"pushed_at":"2020-10-17T20:14:52.000Z","size":39,"stargazers_count":28,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T14:51:23.294Z","etag":null,"topics":["java","java11","javacv","javafx","maven","opencv","webcam","webcamera"],"latest_commit_sha":null,"homepage":"https://ladstatt.blogspot.com/2020/05/webcam-image-stream-with-javacv.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rladstaetter.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-29T19:53:10.000Z","updated_at":"2024-09-28T03:35:46.000Z","dependencies_parsed_at":"2023-04-19T23:27:25.511Z","dependency_job_id":null,"html_url":"https://github.com/rladstaetter/javacv-webcam","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rladstaetter%2Fjavacv-webcam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rladstaetter%2Fjavacv-webcam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rladstaetter%2Fjavacv-webcam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rladstaetter%2Fjavacv-webcam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rladstaetter","download_url":"https://codeload.github.com/rladstaetter/javacv-webcam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261750,"owners_count":21074223,"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","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","java11","javacv","javafx","maven","opencv","webcam","webcamera"],"created_at":"2024-09-25T01:39:42.399Z","updated_at":"2025-04-10T17:11:47.450Z","avatar_url":"https://github.com/rladstaetter.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# javacv-webcam\n\nA project which shows how to use JavaFX together with OpenCV / JavaCV bindings.\n \nThis project can be used as a starting point for experiments with OpenCV and Java. It showcases the usage of the PixelBuffer API which permits a fast display / rendering of a webcam image stream with JavaFX. \n\nFurthermore it uses [javafx-maven-plugin](https://github.com/openjfx/javafx-maven-plugin) to generate a custom java image. \n\nYou will need at least [Java11](https://adoptopenjdk.net) and [Maven 3.6.2](https://maven.apache.org/) to build.\n\n## Compile and run with javafx-maven-plugin\n\nFor a quick glimpse of what this project does just checkout the code and enter\n\n    mvn javafx:run -Djavacpp.platform.custom -Djavacpp.platform.host\n\nNote: Providing javacpp properties is not mandatory, but it reduces download size for bytedeco significantly (only fetches\nlibs for your platform - remember to always provide those parameters though).\n \nAfter downloading dependencies and compiling a window should appear with your webcam image stream.\n\nIf you want to create a custom jre distribution, enter\n\n    mvn javafx:jlink -Djavacpp.platform.custom -Djavacpp.platform.host\n  \nwhich creates a custom JDK11 based distribution. You can start the application by entering\n\n    ./target/javacv-webcam/bin/jwebcam\n    \nIf you peek into the ``javacv-webcam`` directory.\n\nAttention: If you are using Windows or Linux you'll have to adapt module-info.java to include native libraries of suitable for those platforms. On MacOsX, you may have problems with permissions to access your webcam from a java application, make sure to allow access in your system preferences.\n\n## Compile and run with client-maven-plugin\n\nThis project contains also a configuration for compiling it to a native image using [GraalVM](https://www.graalvm.org/). You have\nto download and install GraalVM in a recent version (I tested it with 20.2.0) and then compile and run it with following command:\n\n    mvn clean client:build client:run -Djavacpp.platform.custom -Djavacpp.platform.host -Dgraalvm.home=/path/to/your/graalvm/distribution\n    \nAfter downloading necessary toolings, dependencies and compiling and linking (takes some time) a JavaFX application which uses\nyour webcam will start.    \n\n## Links\n\n- Have a look at [https://openjfx.io](https://openjfx.io) where you can find more information and introductory examples for developing JavaFX applications. \n- [https://github.com/bytedeco/javacv](https://github.com/bytedeco/javacv) is the home of JavaCV which enables Java Developers to use native libraries like [OpenCV](https://opencv.org).\n- Some posts on [http://ladstatt.blogspot.com/](https://ladstatt.blogspot.com) may be of interest, too.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frladstaetter%2Fjavacv-webcam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frladstaetter%2Fjavacv-webcam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frladstaetter%2Fjavacv-webcam/lists"}