{"id":16101849,"url":"https://github.com/zxj5470/opencv-kotlinnative","last_synced_at":"2025-04-06T00:42:31.237Z","repository":{"id":127598030,"uuid":"114091855","full_name":"zxj5470/OpenCV-KotlinNative","owner":"zxj5470","description":"Call OpenCV v2.4 in Kotlin-Native","archived":false,"fork":false,"pushed_at":"2018-05-09T05:50:09.000Z","size":783,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:55:52.483Z","etag":null,"topics":["kotlin-native","opencv-kotlinnative","opencv2"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zxj5470.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-12-13T08:03:17.000Z","updated_at":"2024-05-17T03:46:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"3428e890-a170-4281-9f5f-22c0a4943f2a","html_url":"https://github.com/zxj5470/OpenCV-KotlinNative","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxj5470%2FOpenCV-KotlinNative","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxj5470%2FOpenCV-KotlinNative/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxj5470%2FOpenCV-KotlinNative/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxj5470%2FOpenCV-KotlinNative/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zxj5470","download_url":"https://codeload.github.com/zxj5470/OpenCV-KotlinNative/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419813,"owners_count":20936012,"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":["kotlin-native","opencv-kotlinnative","opencv2"],"created_at":"2024-10-09T18:51:26.100Z","updated_at":"2025-04-06T00:42:31.220Z","avatar_url":"https://github.com/zxj5470.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenCV-KotlinNative\n\n\u003c!-- TOC --\u003e\n\n- [OpenCV-KotlinNative](#opencv-kotlinnative)\n\t- [Dependencies](#dependencies)\n\t\t- [Build Environment](#build-environment)\n\t\t- [Runtime dependencies](#runtime-dependencies)\n\t- [Environment](#environment)\n\t- [Run](#run)\n\t\t- [sample1: Hello Lena](#sample1-hello-lena)\n\t\t- [sample2: Scale a image](#sample2-scale-a-image)\n\t- [C_Interop](#c_interop)\n\t- [Misc (Linux Ubuntu/Debian/Deepin)](#misc-linux-ubuntudebiandeepin)\n\n\u003c!-- /TOC --\u003e\n\n## Dependencies\n\n### Build Environment \n- OS: \n    - Linux (Ubuntu 18.04 + Deepin 15.5 Desktop)\n        - sources build [Misc (Linux Ubuntu/Debian/Deepin)](#misc-linux-ubuntudebiandeepin)\n    - macOS Sierra 10.12 \n        - `brew install opencv@2`\n        - Default Directory `/usr/local/opt/opencv@2`\n- [Kotlin Native](https://github.com/JetBrains/kotlin-native) version: 0.7\n- OpenCV 2.4.13\n- CLion 2018.1.2\n\n### Runtime dependencies\n- if Ubuntu or Debian\n    - libgtk2.0-dev\n    - pkg-config\n- libopencv2_core\n- libopencv2_highgui\n\n## Environment\n- macOS Sierra 10.12\n- CLion (With Kotlin and Kotlin/Native Plugins)\n- JDK 1.8\n\n## Run\n### sample1: Hello Lena\n[hello_lena-c_interop_version](https://github.com/zxj5470/OpenCV-KotlinNative/blob/master/samples/hello_lena/c_interop_version/CInterop.kt)\n![finally you can see lena.jpg](./pic/pic0.png)\n\n### sample2: Scale a image\nScale \n- It needs about 30 seconds ... please wait a moment \n- (needs about 15 seconds in OS X with Intel i5 2.3 GHz and about 7 seconds in Linux/Ubuntu(Deepin Desktop Intel i5)\n- so if you have a better algorithm to enhance the effect please tell me....)\n![scale](./pic/pic1.png)\n\n## C_Interop\nWhat you can interact-operator:\n- libopencv2_core\n- libopencv2_highgui (which include the former)\n- libopencv2_imgproc (such as cvThreshold)\n\n```kotlin\nimport libopencv2_highgui.*\n```\n\n## Misc (Linux Ubuntu/Debian/Deepin)\n\nif your libs were installed in `/usr/local/lib` (Makefile settings with build OpenCV2)\nlike\n```\ncd opencv2.4.*\nmkdir build\ncd build\ncmake .. -DCMAKE_INSTALL_PREFIX=/usr/local\n```\nthen do these as follows:\n```bash\n$ vi /etc/ld.so.conf\n```\nappend `/usr/local/lib` at the end:\n```\ninclude /etc/ld.so.conf.d/*.conf   # default\n/usr/local/lib\n```\nthen the command line to flush it.\n```bash\nsudo ldconfig\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxj5470%2Fopencv-kotlinnative","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzxj5470%2Fopencv-kotlinnative","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxj5470%2Fopencv-kotlinnative/lists"}