{"id":21719422,"url":"https://github.com/carterchen247/camerakit","last_synced_at":"2026-04-16T01:33:06.758Z","repository":{"id":76046329,"uuid":"116786624","full_name":"CarterChen247/CameraKit","owner":"CarterChen247","description":"A SDK that facilitates the rapid development on camera applications.","archived":false,"fork":false,"pushed_at":"2020-05-20T13:32:11.000Z","size":177,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T09:39:25.565Z","etag":null,"topics":["android","camera","camera-api"],"latest_commit_sha":null,"homepage":"","language":"Java","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/CarterChen247.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,"zenodo":null}},"created_at":"2018-01-09T08:16:07.000Z","updated_at":"2020-05-20T13:32:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e32477b-b69e-423f-937f-7ca20cccb1e2","html_url":"https://github.com/CarterChen247/CameraKit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/CarterChen247/CameraKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarterChen247%2FCameraKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarterChen247%2FCameraKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarterChen247%2FCameraKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarterChen247%2FCameraKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarterChen247","download_url":"https://codeload.github.com/CarterChen247/CameraKit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarterChen247%2FCameraKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31867710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","camera","camera-api"],"created_at":"2024-11-26T01:37:29.822Z","updated_at":"2026-04-16T01:33:06.727Z","avatar_url":"https://github.com/CarterChen247.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CameraKit\n\nA SDK that facilitates the rapid development on camera applications.\n\n## Notice\n\nBecause the SDK is designed as light-weighted, which means it does not have many features, there are something noteworthy:\n\n- You'll need to handle permission requesting on your own.\n\n- Only few device hardware support full function of Camera API 2, as a result this SDK is written by Camera API 1. If you need advanced features of Camera API 2, you can extend it.\n\n## Usage\n\nDemo application shows the steps of setting up this SDK. The usage of `Camerakit` is very easy:\n\n### Preview\n\n1. Create `CameraPresenter` instance\n\n```java\nCameraPresenter cameraPresenter;\n```\n\n2. Place startPreview and stopPreview in your app lifecycle, such as `onResume` and `onPause`:\n```java\n\n@Override\nprotected void onResume() {\n    super.onResume();\n    cameraPresenter.startPreview();\n}\n    \n\n@Override\nprotected void onPause() {\n    super.onPause();\n    cameraPresenter.stopPreview();\n}\n\n```\n\n\n3. Call `releaseCamera` at the end of lifecycle:\n```java\n@Override\n    protected void onDestroy() {\n        super.onDestroy();\n        cameraPresenter.releaseCamera();\n    }\n```\n\n### User Actions\n\n```java\ncameraPresenter.toggleCameraPosition();\ncameraPresenter.toggleFlashMode();\ncameraPresenter.capture();\ncameraPresenter.focus();\n\n```\n\n### Monitor user action and change UI\n\n```java\ncameraPresenter.setUserActionCallback(this);\n\n@Override\npublic void onUsingFrontCamera() {\n    img.setImageResource(R.drawable.icon_camera_front);\n}\n\n@Override\npublic void onUsingBackCamera() {\n    img.setImageResource(R.drawable.icon_camera_back);\n}\n\n@Override\npublic void onUsingFlashOnMode() {\n    img.setImageResource(R.drawable.icon_flash_on);\n}\n\n@Override\npublic void onUsingFlashOffMode() {\n    img.setImageResource(R.drawable.icon_flash_off);\n}\n\n@Override\npublic void onUsingFlashAutoMode() {\n    img.setImageResource(R.drawable.icon_flash_auto);\n}\n\n@Override\npublic void onCaptureButtonShouldLock() {\n    \n}\n\n@Override\npublic void onCaptureButtonShouldUnlock() {\n    \n}\n```\n\n### Get Result\n```java\ncameraPresenter.setOnPictureCapturedCallback(this);\n\n@Override\npublic void onPictureCaptured(byte[] data, final int cameraPosition) {\n\n}\n```\n \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarterchen247%2Fcamerakit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarterchen247%2Fcamerakit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarterchen247%2Fcamerakit/lists"}