CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 22:55:58 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/opencv/opencv.git
etag: W/"65ed16d3a416bd93e40024662730dbbd"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Xe9wipqRs3gsIckzw00IC46Pzef%2FAdB9GdULbPw7HDHZ%2BWZHhE80otXOlfL8kufetkgXaezeJiadNt5WX8DRKJqENyGpDJ9CEGo4LC7eHLTeAiufRfhKF%2BgifiXSgxIueFroZBjDtWBiuMCeMbnJoC%2FTinV7sVRp7JqGNDXxlK5UdyHp6cRmrf5OD6bcZMg16RmbYc2v6Go8usz47nLTFSBJIj8GSZ5vJM36tuHdfvmm%2F9k28b0aYg4g6WvVQ6EWkEsQCcQnnHZbs38BHyr31A%3D%3D--4PVOthBzRivefXjO--UpV0%2FddLPEcY82%2FG%2BoHq2Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.40945339.1753224957; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 22:55:57 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 22:55:57 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8108:39062F:1A42B0:23B4D4:688016FD
Merge pull request #20611 from VadimLevin:dev/vlevin/pure-python-modules · opencv/opencv@3c89a28 · GitHub
Copy file name to clipboardExpand all lines: modules/core/include/opencv2/core/bindings_utils.hpp
Copy file name to clipboard
Copy file name to clipboardExpand all lines: modules/python/common.cmake
Copy file name to clipboardExpand all lines: modules/python/package/cv2/__init__.py
Copy file name to clipboardExpand all lines: modules/python/package/cv2/_extra_py_code/__init__.py
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboardExpand all lines: modules/python/python3/CMakeLists.txt
Copy file name to clipboardExpand all lines: modules/python/python_loader.cmake
Copy file name to clipboardExpand all lines: modules/python/test/test_misc.py
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit 3c89a28
authored
Merge pull request #20611 from VadimLevin:dev/vlevin/pure-python-modules
* feat: OpenCV extension with pure Python modules
* feat: cv2 is now a Python package instead of extension module
Python package cv2 now can handle both Python and C extension modules
properly without additional "subfolders" like "_extra_py_code".
* feat: can call native function from its reimplementation in Python1 parent 41a2eb5 commit 3c89a28Copy full SHA for 3c89a28
File tree
Expand file treeCollapse file tree
10 files changed
+169
-84
lines changedFilter options
- modules
- core
- include/opencv2/core
- misc/python/package/utils
- python
- package
- cv2
- _extra_py_code
- extra_modules/misc
- python3
- test
Expand file treeCollapse file tree
10 files changed
+169
-84
lines changedmodules/core/include/opencv2/core/bindings_utils.hpp
Copy file name to clipboardExpand all lines: modules/core/include/opencv2/core/bindings_utils.hpp+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 |
| |
120 | 126 |
| |
121 | 127 |
| |
|
modules/core/misc/python/package/utils/__init__.py
Copy file name to clipboard+14Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + |
modules/python/common.cmake
Copy file name to clipboardExpand all lines: modules/python/common.cmake+32-15Lines changed: 32 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
4 | 29 |
| |
5 | 30 |
| |
6 | 31 |
| |
| |||
224 | 249 |
| |
225 | 250 |
| |
226 | 251 |
| |
227 |
| - | |
228 |
| - | |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
| 252 | + | |
242 | 253 |
| |
243 | 254 |
| |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
244 | 261 |
| |
245 | 262 |
| |
246 | 263 |
| |
|
modules/python/package/cv2/__init__.py
Copy file name to clipboardExpand all lines: modules/python/package/cv2/__init__.py+66-15Lines changed: 66 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
| |||
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 |
| |
19 |
| - | |
20 |
| - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
25 | 65 |
| |
26 |
| - | |
27 |
| - | |
28 | 66 |
| |
29 | 67 |
| |
30 | 68 |
| |
| |||
107 | 145 |
| |
108 | 146 |
| |
109 | 147 |
| |
110 |
| - | |
111 |
| - | |
112 |
| - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
113 | 162 |
| |
114 | 163 |
| |
115 | 164 |
| |
116 | 165 |
| |
117 |
| - | |
118 | 166 |
| |
119 |
| - | |
120 |
| - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
121 | 170 |
| |
122 | 171 |
| |
123 | 172 |
| |
124 |
| - | |
125 |
| - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
126 | 176 |
| |
127 | 177 |
| |
128 | 178 |
| |
| 179 | + | |
129 | 180 |
|
modules/python/package/cv2/_extra_py_code/__init__.py
Copy file name to clipboardExpand all lines: modules/python/package/cv2/_extra_py_code/__init__.py-53Lines changed: 0 additions & 53 deletions
This file was deleted.
modules/python/package/extra_modules/misc/__init__.py
Copy file name to clipboard+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + |
modules/python/package/extra_modules/misc/version.py
Copy file name to clipboard+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + |
modules/python/python3/CMakeLists.txt
Copy file name to clipboardExpand all lines: modules/python/python3/CMakeLists.txt+14Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
18 | 29 |
| |
19 | 30 |
| |
20 | 31 |
| |
21 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
22 | 36 |
| |
23 | 37 |
|
modules/python/python_loader.cmake
Copy file name to clipboardExpand all lines: modules/python/python_loader.cmake-1Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 | 28 |
| |
30 | 29 |
| |
31 | 30 |
| |
|
modules/python/test/test_misc.py
Copy file name to clipboardExpand all lines: modules/python/test/test_misc.py+31Lines changed: 31 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 |
| |
8 | 14 |
| |
9 | 15 |
| |
| |||
585 | 591 |
| |
586 | 592 |
| |
587 | 593 |
| |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
588 | 619 |
| |
589 | 620 |
| |
590 | 621 |
| |
|
You can’t perform that action at this time.
0 commit comments