{"id":13507565,"url":"https://github.com/Yalantis/CameraModule","last_synced_at":"2025-03-30T09:32:56.479Z","repository":{"id":146811796,"uuid":"21393069","full_name":"Yalantis/CameraModule","owner":"Yalantis","description":"Simple camera module for android applications","archived":false,"fork":false,"pushed_at":"2017-01-23T17:46:37.000Z","size":266,"stargazers_count":686,"open_issues_count":12,"forks_count":193,"subscribers_count":58,"default_branch":"master","last_synced_at":"2024-11-01T07:33:09.643Z","etag":null,"topics":["android","camera-api","java"],"latest_commit_sha":null,"homepage":"https://yalantis.com/","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/Yalantis.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":"2014-07-01T15:33:51.000Z","updated_at":"2024-10-25T08:32:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"99cf1c61-747b-495f-a569-c17c1e7c026f","html_url":"https://github.com/Yalantis/CameraModule","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/Yalantis%2FCameraModule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yalantis%2FCameraModule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yalantis%2FCameraModule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yalantis%2FCameraModule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yalantis","download_url":"https://codeload.github.com/Yalantis/CameraModule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301963,"owners_count":20755512,"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","camera-api","java"],"created_at":"2024-08-01T02:00:36.254Z","updated_at":"2025-03-30T09:32:56.469Z","avatar_url":"https://github.com/Yalantis.png","language":"Java","readme":"CameraModule\n============\nCamera module for Android applications.\n\nScreenshots:\nhttps://www.dropbox.com/sh/2d7svoykpwpwmbw/AAAveLqvtaJ2Zt5NHaEu3-QSa\n\nUsage\n--------\nIn your Application class call managers initializer:\n\n```java\npublic class App extends Application {\n    @Override\n    public void onCreate() {\n        super.onCreate();\n        ManagerInitializer.i.init(getApplicationContext());\n    }\n}\n```\n\nThen call `CameraActivity` to use camera:\n\n```java\nIntent intent = new Intent(this, CameraActivity.class);\nintent.putExtra(CameraActivity.PATH, Environment.getExternalStorageDirectory().getPath());\nintent.putExtra(CameraActivity.OPEN_PHOTO_PREVIEW, true);\nintent.putExtra(CameraActivity.USE_FRONT_CAMERA, false);\nstartActivity(intent);\n```\n\nCustomising\n--------\nTo create custom layout for `CameraFragment`, please use this ids:\n\n`camera_preview` - Container for `CameraPreview` that extends ViewGroup.\n\n`capture` - View for capturing photos\n\n`zoom_ratio` - `TextView` for displaying zoom ratio value\n\n`flash_mode` - `ImageButton` for displaying and switching flash mode\n\n`progress` - `ProgressBar` that indicates that capturing or saving photo in progress\n\n`camera_settings` - `ImageButton` that call `CameraSettingsDialogFragment`\n\nThen put layout resources id to intent extras for `CameraActivty`:\n```java\nIntent intent = new Intent(this, CameraActivity.class);\nintent.putExtra(CameraActivity.PATH, Environment.getExternalStorageDirectory().getPath());\nintent.putExtra(CameraActivity.OPEN_PHOTO_PREVIEW, true);\nintent.putExtra(CameraActivity.LAYOUT_ID, R.layout.fragment_camera_custom);\nstartActivity(intent);\n```\n\n#### Let us know!\n\nWe’d be really happy if you sent us links to your projects where you use our component. Just send an email to github@yalantis.com And do let us know if you have any questions or suggestion regarding the animation. \n\nP.S. We’re going to publish more awesomeness wrapped in code and a tutorial on how to make UI for Android (iOS) better than better. Stay tuned!\n\nLicense\n--------\n\n\tThe MIT License (MIT)\n\t\n\t\tCopyright (c) 2017 Zillow\n\t\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\tof this software and associated documentation files (the \"Software\"), to deal\n\tin the Software without restriction, including without limitation the rights\n\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\tcopies of the Software, and to permit persons to whom the Software is furnished\n\tto do so, subject to the following conditions:\n\t\n\tThe above copyright notice and this permission notice shall be included in all\n\tcopies or substantial portions of the Software.\n\t\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n\tWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n\tCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["CN","Index","Java"],"sub_categories":["[Yalantis](https://github.com/Yalantis)","Camera"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYalantis%2FCameraModule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYalantis%2FCameraModule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYalantis%2FCameraModule/lists"}