{"id":16135187,"url":"https://github.com/myzhar/opencv_cpu_vs_gpu","last_synced_at":"2025-04-06T16:17:45.810Z","repository":{"id":75927445,"uuid":"86214062","full_name":"Myzhar/opencv_cpu_vs_gpu","owner":"Myzhar","description":"A serie of tests to compare performances of CPU and GPU processing","archived":false,"fork":false,"pushed_at":"2017-04-26T07:49:17.000Z","size":4071,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T22:17:19.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Myzhar.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-26T07:01:50.000Z","updated_at":"2025-01-18T09:42:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"75c33826-0a8a-4980-9bd0-54eb412688f8","html_url":"https://github.com/Myzhar/opencv_cpu_vs_gpu","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.46153846153846156","last_synced_commit":"c4b444ff48bed2ed8f7ddf596be44261224a83d6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Myzhar%2Fopencv_cpu_vs_gpu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Myzhar%2Fopencv_cpu_vs_gpu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Myzhar%2Fopencv_cpu_vs_gpu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Myzhar%2Fopencv_cpu_vs_gpu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Myzhar","download_url":"https://codeload.github.com/Myzhar/opencv_cpu_vs_gpu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509241,"owners_count":20950232,"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-10-09T23:05:58.715Z","updated_at":"2025-04-06T16:17:45.792Z","avatar_url":"https://github.com/Myzhar.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opencv_cpu_vs_gpu\nA serie of tests to compare performances of **CPU** and **GPU** processing.\n\nThis benchmark is based on OpenCV 2.4.13 and performs a simple basic algorithm of computer vision :\n* **resize**: to keep costant the process time and indipendent by image size\n* **color conversion**: to pass from RGB to grayscale image\n* **blur**: to remove noises\n* **Canny**: to detect image corners\n\nThe algorithm has not a well defined goal, but it may be for example the beginning of a process of \"line\" or \"circle\" detection...\n\nThe process is iterated \"N\" times on the same image and a mean of the single step times and of the total time is calculated.\n\nThe same algorithm is moved to the **GPU** (only if the machine is *CUDA enabled*).\n\n**GPU TEST**\n* *Classic memory copy*: uses the \"upload\" approach to copy memory from host to device\n* *ZERO COPY*: uses \"gpu::CudaMem\" with \"ALLOC_ZEROCOPY\" flag to take advantage of shared memory *(if available)*\n* *Memory Managed*: allocates memory using \"cudaMallocManaged\" to take advantage of pinned memory *(if available)*\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyzhar%2Fopencv_cpu_vs_gpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyzhar%2Fopencv_cpu_vs_gpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyzhar%2Fopencv_cpu_vs_gpu/lists"}