{"id":18270281,"url":"https://github.com/Glamdring/EasyCamera","last_synced_at":"2025-04-05T01:30:30.964Z","repository":{"id":15437750,"uuid":"18170465","full_name":"Glamdring/EasyCamera","owner":"Glamdring","description":"Wrapper around the android Camera class that simplifies its usage","archived":false,"fork":false,"pushed_at":"2017-08-09T11:22:12.000Z","size":25,"stargazers_count":642,"open_issues_count":0,"forks_count":100,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-11-05T11:52:41.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mongodb/mongo-spark","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Glamdring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-27T09:24:16.000Z","updated_at":"2024-10-07T13:57:00.000Z","dependencies_parsed_at":"2022-08-24T06:00:07.372Z","dependency_job_id":null,"html_url":"https://github.com/Glamdring/EasyCamera","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glamdring%2FEasyCamera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glamdring%2FEasyCamera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glamdring%2FEasyCamera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glamdring%2FEasyCamera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Glamdring","download_url":"https://codeload.github.com/Glamdring/EasyCamera/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276021,"owners_count":20912285,"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":[],"created_at":"2024-11-05T11:38:28.520Z","updated_at":"2025-04-05T01:30:30.679Z","avatar_url":"https://github.com/Glamdring.png","language":"Java","readme":"EasyCamera\n==========\n\nWrapper around the android Camera class that simplifies its usage (\u003ca href=\"http://techblog.bozho.net/?p=1380\"\u003eread more\u003c/a\u003e about the process)\n\nUsage:\n\n```java\n// the surface where the preview will be displayed\nSurfaceView surfaceView = (SurfaceView) findViewById(R.id.surfaceView);\nEasyCamera camera = DefaultEasyCamera.open();\nCameraActions actions = camera.startPreview(surfaceView.getHolder());\nPictureCallback callback = new PictureCallback() {\n    public void onPictureTaken(byte[] data, CameraActions actions) {\n        // store picture\n    }\n};\nactions.takePicture(Callbacks.create().withJpegCallback(callback));\n```\n\nBy default, preview stops when a picture is taken. If you want to restart preview, specify `.withRestartPreviewAfterCallbacks(true)` on the `Callbacks` object\n\nIf you need the `android.hardware.Camera` object, get it via `camera.getRawCamera()`\n\nHow to import in maven:\n```xml\n    \u003cdependency\u003e\n        \u003cgroupId\u003enet.bozho.easycamera\u003c/groupId\u003e\n        \u003cartifactId\u003eeasycamera\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.1\u003c/version\u003e\n        \u003ctype\u003eaar\u003c/type\u003e\n    \u003c/dependency\u003e\n```\nHow to import in gradle:\n```groovy\n    compile 'net.bozho.easycamera:easycamera:0.0.1:aar@aar'\n```\n","funding_links":[],"categories":["etc","Libs","Camera"],"sub_categories":["\u003cA NAME=\"Utility\"\u003e\u003c/A\u003eUtility"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGlamdring%2FEasyCamera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGlamdring%2FEasyCamera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGlamdring%2FEasyCamera/lists"}