{"id":19431142,"url":"https://github.com/zqpei/pybind11_cpp_python","last_synced_at":"2025-04-14T17:22:32.716Z","repository":{"id":109499467,"uuid":"155667860","full_name":"ZQPei/pybind11_cpp_python","owner":"ZQPei","description":"cpp call python, or python call cpp, hybrid programming using pybind11, with and without numpy","archived":false,"fork":false,"pushed_at":"2018-11-02T01:15:44.000Z","size":1721,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-28T06:03:22.501Z","etag":null,"topics":["cpp","cpp-call-python","mat-numpy","numpy","opencv-numpy","pybind11","python","python-call-cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","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/ZQPei.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":"2018-11-01T05:50:01.000Z","updated_at":"2024-04-29T06:05:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9bac5c7-5639-481f-91df-f5df7fa544f6","html_url":"https://github.com/ZQPei/pybind11_cpp_python","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/ZQPei%2Fpybind11_cpp_python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZQPei%2Fpybind11_cpp_python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZQPei%2Fpybind11_cpp_python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZQPei%2Fpybind11_cpp_python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZQPei","download_url":"https://codeload.github.com/ZQPei/pybind11_cpp_python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923988,"owners_count":21184007,"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":["cpp","cpp-call-python","mat-numpy","numpy","opencv-numpy","pybind11","python","python-call-cpp"],"created_at":"2024-11-10T14:28:23.158Z","updated_at":"2025-04-14T17:22:32.675Z","avatar_url":"https://github.com/ZQPei.png","language":"C++","readme":"# Pybind11 cpp python hybrid programming\r\n\r\n## Introduction\r\n\r\nThis repository shows how to hybrid programming with cpp and python using pybind11.\r\n\r\nIt includes two main topic,\r\n\r\n- extend python with c++ (python_call_cpp)\r\n- extend c++ with python (cpp_call_python)\r\n\r\nThis repository contains several folders. \r\n\r\nEach folder cooresponds to an specific topic with all source code privided and shows how to compile them.\r\n\r\n**The hardest part is how to convert opencv Mat type in cpp to numpy ndarray and vice versa.**\r\n\r\n\r\n## Dependencies\r\n- GCC 4.x\r\n- python 3.x\r\n- opencv 2.x+\r\n- eigen3\r\n- numpy\r\n\r\n\r\n\r\n## 1 extend python with c++\r\n\r\n- python_call_cpp\r\n- python_call_cpp_opencv_numpy\r\n\r\n## 2 embed python in c++\r\n\r\n- cpp_call_python\r\n- cpp_call_python_numpy (eigen)\r\n- cpp_call_python_opencv_numpy\r\n- cpp_call_python_so\r\n\r\n\r\n\r\n\r\n## References\r\n\r\n- [pybind11](https://github.com/pybind/pybind11)\r\n- [edmBernard/pybind11_opencv_numpy](https://github.com/edmBernard/pybind11_opencv_numpy)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzqpei%2Fpybind11_cpp_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzqpei%2Fpybind11_cpp_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzqpei%2Fpybind11_cpp_python/lists"}