{"id":26406928,"url":"https://github.com/asukiaaa/clj-opencv-swing-example","last_synced_at":"2026-05-16T17:09:08.521Z","repository":{"id":87452282,"uuid":"89154228","full_name":"asukiaaa/clj-opencv-swing-example","owner":"asukiaaa","description":"A clojre project to use opencv and swing.","archived":false,"fork":false,"pushed_at":"2018-10-21T01:39:05.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-20T09:34:43.811Z","etag":null,"topics":["clojure","opencv","swing"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asukiaaa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2017-04-23T16:00:22.000Z","updated_at":"2019-10-14T18:04:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"b29709da-c648-4d95-a6f7-06e6b712d281","html_url":"https://github.com/asukiaaa/clj-opencv-swing-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/asukiaaa/clj-opencv-swing-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asukiaaa%2Fclj-opencv-swing-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asukiaaa%2Fclj-opencv-swing-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asukiaaa%2Fclj-opencv-swing-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asukiaaa%2Fclj-opencv-swing-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asukiaaa","download_url":"https://codeload.github.com/asukiaaa/clj-opencv-swing-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asukiaaa%2Fclj-opencv-swing-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280893651,"owners_count":26409279,"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-24T02:00:06.418Z","response_time":73,"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":["clojure","opencv","swing"],"created_at":"2025-03-17T17:28:33.663Z","updated_at":"2025-10-25T01:43:29.437Z","avatar_url":"https://github.com/asukiaaa.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clj-opencv-swing-example\n\nA Clojure project to use opencv and swing.\n\n# Usage\n\n## Compile opencv files for java\n\nFor ubuntu16.10.\n\n```\nsudo apt install cmake ant openjdk-8-jdk\nmkdir ~/gitprojects\ncd ~/gitprojects\ngit clone https://github.com/opencv/opencv.git opencv_source\ncd opencv_source\ngit checkout tags/3.2.0\n# git fetch -p # if you cannot find 3.2.0 tag\nmkdir build\ncd build\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/\ncmake -D BUILD_SHARED_LIBS=OFF ..\nmake -j4\n```\n\n## Copy opencv files for java to this project\n\n```\ncd [this proejct dir]\nmkdir lib\n# jar file\ncp ~/gitprojects/opencv_source/build/bin/opencv-320.jar lib/\n\n# needs so file for linux\n# needs dylib file for mac\n# needs dll file for windows\ncp ~/gitprojects/opencv_source/build/lib/libopencv_java320.so lib/ # for linux\n```\n\n## Run\n```\ncd [this project dir]\nlein run\n```\n\n# License\n\nDistributed under the Eclipse Public License either version 1.0 or (at your option) any later version.\n\n# References\n\n- [Install commands example](https://github.com/milq/milq/blob/master/scripts/bash/install-opencv.sh)\n- [opencv for java](http://docs.opencv.org/3.0-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html)\n- [play opencv in clojure](http://keens.github.io/blog/2015/06/07/clojuredeopencv3_0totawamureru/)\n- [opencv java doc](http://docs.opencv.org/java/3.1.0/)\n- [opencv3.2 + clojure](http://qiita.com/woxtu/items/bf39e3d53cbf60396d2c)\n- [show opencv mat on swing](http://qiita.com/JackMasaki/items/79b883ca5084d7586008)\n- [swing JFrame in clojure](http://hifistar.hatenablog.com/entry/2016/04/10/175525)\n- [opencv load image to GUI on java](http://answers.opencv.org/question/10344/opencv-java-load-image-to-gui/)\n- [how to show imagebuffer to jframe](http://stackoverflow.com/questions/299495/how-to-add-an-image-to-a-jpanel)\n- [ImShow-Java-OpenCV](https://github.com/master-atul/ImShow-Java-OpenCV/blob/master/ImShow_JCV/src/com/atul/JavaOpenCV/Imshow.java)\n- [content pane remove all](http://stackoverflow.com/questions/9347076/how-to-remove-all-components-from-a-jframe-in-java)\n- [clojureでopencv3.2を呼び出し、javax.swingで画像を表示する方法](http://asukiaaa.blogspot.jp/2017/04/clojureopencv32javaxswing.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasukiaaa%2Fclj-opencv-swing-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasukiaaa%2Fclj-opencv-swing-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasukiaaa%2Fclj-opencv-swing-example/lists"}