{"id":25738774,"url":"https://github.com/suzusou/opencv-color-detection","last_synced_at":"2026-03-07T02:03:11.220Z","repository":{"id":42036986,"uuid":"510268312","full_name":"suzusou/OpenCV-Color-Detection","owner":"suzusou","description":"This program uses OpenCV to process CameraX information.","archived":false,"fork":false,"pushed_at":"2024-01-30T05:18:26.000Z","size":75818,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T21:19:11.136Z","etag":null,"topics":["android","bitmap","camerax","camerax-api","java","mat","opencv","opencv-library"],"latest_commit_sha":null,"homepage":"https://github.com/suzusou","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/suzusou.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}},"created_at":"2022-07-04T08:09:20.000Z","updated_at":"2024-12-02T03:48:47.000Z","dependencies_parsed_at":"2024-01-30T06:50:48.374Z","dependency_job_id":null,"html_url":"https://github.com/suzusou/OpenCV-Color-Detection","commit_stats":null,"previous_names":["suzusou/opencv-color-detection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suzusou/OpenCV-Color-Detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suzusou%2FOpenCV-Color-Detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suzusou%2FOpenCV-Color-Detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suzusou%2FOpenCV-Color-Detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suzusou%2FOpenCV-Color-Detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suzusou","download_url":"https://codeload.github.com/suzusou/OpenCV-Color-Detection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suzusou%2FOpenCV-Color-Detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30205893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","bitmap","camerax","camerax-api","java","mat","opencv","opencv-library"],"created_at":"2025-02-26T07:33:45.677Z","updated_at":"2026-03-07T02:03:11.172Z","avatar_url":"https://github.com/suzusou.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://opencv.org/\" rel=\"noopener\" target=\"_blank\"\u003e\u003cimg width=\"150\" src=\"/OpenCV_logo.svg\" alt=\"OpenCV logo\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eOpenCV-Color-Detection\u003c/h1\u003e\n\nThis program uses `OpenCV` to process `CameraX information`.   \n## Version\n### OpenCV Version \nOpenCV 3.4.1  \ncompileSdkVersion 31  \nbuildToolsVersion \"29.0.2\"  \nminSdkVersion 28  \ntargetSdkVersion 31  \n\n### Android Version   \ncompileSdkVersion 31  \nbuildToolsVersion \"30.0.3\"  \nminSdkVersion 28  \ntargetSdkVersion 31    \nsourceCompatibility JavaVersion.VERSION_1_8  \ntargetCompatibility JavaVersion.VERSION_1_8  \n\n## Setting\nMainActivity Path : /app/src/main/java/com/example/opencvcolordetection/\n``` Java\nimageAnalysis = new ImageAnalysis.Builder().setTargetResolution(new Size(176, 144))\n                            .setBackpressureStrategy(ImageAnalysis.STRATEGY_KEEP_ONLY_LATEST).build();\n``` \nAt setTargetResolution(new Size(x, y)), set the resolution. \n``` Java\n    private class MyImageAnalyzer implements ImageAnalysis.Analyzer {\n        private Mat matPrevious = null;\n\n        @Override\n        public void analyze(@NonNull ImageProxy image) {\n\n            Mat matOrg = getMatFromImage(image);\n\n            Mat mat = fixMatRotation(matOrg);\n\n            if (matPrevious == null) matPrevious = mat;\n            matPrevious = mat;\n\n            Bitmap bitmap = Bitmap.createBitmap(matPrevious.cols(), matPrevious.rows(), Bitmap.Config.ARGB_8888);\n            Utils.matToBitmap(matPrevious, bitmap);\n            \n            //Describe the process you want to process in this class\n\n            image.close();\n        }\n``` \nIn this case, if you continue to take the average of the `RGB`, you can see it in the log.　　\n\n## Difference\nProcessing speed has been increased by cutting the library files by about `one-third`.\n\n## Finally\nFor more information, tap the logo above and visit the official website.  \nIf you found this helpful, please give us a star.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuzusou%2Fopencv-color-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuzusou%2Fopencv-color-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuzusou%2Fopencv-color-detection/lists"}