{"id":26260114,"url":"https://github.com/wonderkiln/CameraKit-Android","last_synced_at":"2025-03-13T23:01:40.065Z","repository":{"id":37390603,"uuid":"74909348","full_name":"CameraKit/camerakit-android","owner":"CameraKit","description":"Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.","archived":false,"fork":false,"pushed_at":"2023-08-08T13:23:27.000Z","size":21847,"stargazers_count":5368,"open_issues_count":162,"forks_count":880,"subscribers_count":157,"default_branch":"master","last_synced_at":"2024-10-29T15:38:14.872Z","etag":null,"topics":["android","android-library","c-plus-plus","camera","camera-api","capture-video","captured-images","java","native","ndk","performance"],"latest_commit_sha":null,"homepage":"https://camerakit.io","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CameraKit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-11-27T19:29:43.000Z","updated_at":"2024-10-27T23:48:54.000Z","dependencies_parsed_at":"2023-01-21T05:17:21.828Z","dependency_job_id":"ee766076-67f1-4927-8c10-bed0185ab061","html_url":"https://github.com/CameraKit/camerakit-android","commit_stats":null,"previous_names":["wonderkiln/camerakit-android"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CameraKit%2Fcamerakit-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CameraKit%2Fcamerakit-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CameraKit%2Fcamerakit-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CameraKit%2Fcamerakit-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CameraKit","download_url":"https://codeload.github.com/CameraKit/camerakit-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243495503,"owners_count":20299922,"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":["android","android-library","c-plus-plus","camera","camera-api","capture-video","captured-images","java","native","ndk","performance"],"created_at":"2025-03-13T23:01:27.670Z","updated_at":"2025-03-13T23:01:40.047Z","avatar_url":"https://github.com/CameraKit.png","language":"C","readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://camerakit.io\" target=\"_blank\"\u003e\n        \u003cimg alt='CameraKit Header' src='.repo/gh-readme-header.svg' /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://play.google.com/store/apps/details?id=com.wonderkiln.camerakit.demo\" target=\"_blank\"\u003e\n        \u003cimg alt='Google Play Link' height=\"42px\" src='.repo/gh-readme-googleplay-demo-button.svg'/\u003e\n    \u003c/a\u003e\n        \u003ca href=\"https://spectrum.chat/camerakit/\"\u003e\n        \u003cimg alt=\"Join Spectrum\" height=\"42px\" src=\".repo/gh-readme-spectrum-button.svg\" \u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://buddy.works/\" target=\"_blank\"\u003e\n        \u003cimg alt='Buddy.Works' height=\"41px\" src='https://assets.buddy.works/automated-dark.svg'/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nCameraKit helps you add reliable camera to your app quickly. Our open source camera platform provides consistent capture results, service that scales, and endless camera possibilities.\n\nWith CameraKit you are able to effortlessly do the following: \n\n- Image and video capture seamlessly working with the same preview session.\n- Automatic system permission handling.\n- Automatic preview scaling.\n  - Create a `CameraView` of any size (not just presets!).\n  - Automatic output cropping to match your `CameraView` bounds.\n- Multiple capture methods.\n  - `METHOD_STANDARD`: an image captured normally using the camera APIs.\n  - `METHOD_STILL`: a freeze frame of the `CameraView` preview (similar to SnapChat and Instagram) for devices with slower cameras.\n  - `METHOD_SPEED`: automatic capture method determination based on measured speed.\n- Built-in continuous focus.\n- Built-in tap to focus.\n- Built-in pinch to zoom.\n\n## Sponsored By\n\u003ca href=\"https://www.expensify.com/\"\u003e\u003cimg alt=\"Expensify\" src=\".repo/gh-readme-expensify-logo.svg\" height=\"45px\" width=\"375px\" align=\"center\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.buddy.works/\"\u003e\u003cimg alt=\"Buddy.Works\" src=\".repo/gh-readme-buddyworks-logo.png\" height=\"100px\"  width=\"250px\" align=\"center\"\u003e\u003c/a\u003e\n\n\n## Trusted By\n\u003ca href=\"https://www.infitting.com/\"\u003e\u003cimg alt=\"InFitting\" src=\".repo/gh-readme-infitting-logo.svg\" height=\"30px\" width=\"110px\" align=\"center\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.goosechase.com/\"\u003e\u003cimg alt=\"GooseChase\" src=\".repo/gh-readme-goosechase-logo.svg\" height=\"30px\" width=\"175px\" align=\"center\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.alpha-apps.ae/\"\u003e\u003cimg alt=\"Alpha Apps\" src=\".repo/gh-readme-alphaapps-logo.png\" height=\"30px\" width=\"78px\" align=\"center\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.expensify.com/\"\u003e\u003cimg alt=\"Expensify\" src=\".repo/gh-readme-expensify-logo.svg\" height=\"26px\" width=\"220px\" align=\"center\"\u003e\u003c/a\u003e\n\n\u0026nbsp;\n\n# Get The Most From CameraKit\nThere are currently two versions of CameraKit that we support, `v1.0.0-beta3.X` and `v0.13.X`. \n\nIf photo is your only need, try out the latest and greatest CameraKit features with `v1.0.0-beta3.11`. Our `beta3.11` release does not yet support video, but that feature is coming! \n\nIn the meantime, if your application requires video we recommend sticking with `v0.13.4`; the latest stable release with video implementation.\n\n\n| Use Case | Version | Notes | Documentation Link |\n| --- | --- | --- | --- |\n| Photo only | `v1.0.0-beta3.11` | The latest and greatest CameraKit has to offer. Video support coming soon! | [camerakit.io/docs/beta3.11](https://camerakit.io/docs?v=1.0.0-beta3.10) |\n| Photo and Video | `v0.13.4` | Stable build with full photo and video support | [camerakit.io/docs/0.13.4](https://camerakit.io/docs?v=0.13.2) |\n\n\n## Documentation Site\nSetup instructions for `1.0.0-beta3.11` are below. To see the full documentation head over to our website, [camerakit.io/docs](https://camerakit.io/docs).\n\n\n## Setup\nTo include __CameraKit__ in your project, add the following to your `app` level `build.gradle`.\n```java\ndependencies {\n    implementation 'com.camerakit:camerakit:1.0.0-beta3.11'\n    implementation 'com.camerakit:jpegkit:0.1.0'\n    implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.0'\n    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0'\n}\n```\n## Usage\nCreate a `CameraKitView` in your layout as follows:\n```\n\u003ccom.camerakit.CameraKitView\n    android:id=\"@+id/camera\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:adjustViewBounds=\"true\"\n    android:keepScreenOn=\"true\"   \u003c!-- keep screen awake while CameraKitView is active --\u003e\n    app:camera_flash=\"auto\"\n    app:camera_facing=\"back\"\n    app:camera_focus=\"continuous\"\n    app:camera_permissions=\"camera\" /\u003e\n```\n\nThen create a new `CameraKitView` object in your `Activity` and override the following methods.\n```java\nprivate CameraKitView cameraKitView;\n\n@Override\nprotected void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    setContentView(R.layout.activity_main);\n    cameraKitView = findViewById(R.id.camera);\n}\n\n@Override\nprotected void onStart() {\n    super.onStart();\n    cameraKitView.onStart();\n}\n\n@Override\nprotected void onResume() {\n    super.onResume();\n    cameraKitView.onResume();\n}\n\n@Override\nprotected void onPause() {\n    cameraKitView.onPause();\n    super.onPause();\n}\n\n@Override\nprotected void onStop() {\n    cameraKitView.onStop();\n    super.onStop();\n}\n\n@Override\npublic void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n    super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n    cameraKitView.onRequestPermissionsResult(requestCode, permissions, grantResults);\n}\n```\n## ProGuard\nIf using ProGuard, add the following rules:\n```\n-dontwarn com.google.android.gms.**\n-keepclasseswithmembers class com.camerakit.preview.CameraSurfaceView {\n    native \u003cmethods\u003e;\n}\n```\n\n## License\nCameraKit is [MIT License](https://github.com/CameraKit/CameraKit-Android/blob/master/LICENSE)\n","funding_links":[],"categories":["TODO scan for Android support in followings"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonderkiln%2FCameraKit-Android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwonderkiln%2FCameraKit-Android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonderkiln%2FCameraKit-Android/lists"}