{"id":16162462,"url":"https://github.com/sunsided/python-conv2d","last_synced_at":"2025-10-09T22:40:31.470Z","repository":{"id":141992943,"uuid":"72847454","full_name":"sunsided/python-conv2d","owner":"sunsided","description":"2D image convolution example in Python","archived":false,"fork":false,"pushed_at":"2020-07-15T21:37:22.000Z","size":16,"stargazers_count":23,"open_issues_count":0,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T12:32:42.546Z","etag":null,"topics":["2d-convolution","image-processing","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/sunsided.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":"2016-11-04T12:52:19.000Z","updated_at":"2024-08-10T14:20:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"2aa7fd82-b7b2-4dd1-b5f9-d46406787aff","html_url":"https://github.com/sunsided/python-conv2d","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/sunsided%2Fpython-conv2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fpython-conv2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fpython-conv2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fpython-conv2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunsided","download_url":"https://codeload.github.com/sunsided/python-conv2d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950927,"owners_count":20373664,"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":["2d-convolution","image-processing","python"],"created_at":"2024-10-10T02:30:14.255Z","updated_at":"2025-10-09T22:40:26.438Z","avatar_url":"https://github.com/sunsided.png","language":"Python","readme":"# 2D Convolutions in Python (OpenCV 2, numpy)\n\nIn order to demonstrate 2D kernel-based filtering without relying on library code too much, `convolutions.py` gives some examples to play around with.\n\n```python\nimage = cv2.imread('clock.jpg', cv2.IMREAD_GRAYSCALE).astype(float) / 255.0\n\nkernel = np.array([[1, 0, -1],\n                   [1, 0, -1],\n                   [1, 0, -1]])\n\nfiltered = cv2.filter2D(src=image, kernel=kernel, ddepth=-1)\ncv2.imshow('horizontal edges', filtered)\n```\n\nIn addition, `convolution_manual.py` implements a manual 2D convolution to explain the concept.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fpython-conv2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunsided%2Fpython-conv2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fpython-conv2d/lists"}