CARVIEW |
Select Language
HTTP/2 200
date: Mon, 21 Jul 2025 19:42:09 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/"03d8cf7ae72b347f86d8002279377dde"
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=rJFzwfR8phd24yXbMHNTfQ9n%2FqO8eVVg%2FK%2BxPbHf3MfWy1woE3RYlQtbPkrbta8PtkdJFUcxnw08oMUpVpVD4X%2B9sgHTuFEEfxWN9BY1dmIgaOBzeDKCnTPROm2h0TxGhY1PPvr9M64dcf%2FTgeRwrHaWxJizOWCHi3u3i%2FxCgr8qUFNRaqjtGJhVH2BgMGtmzbm5kgvUac1WTQIXCvQWA1L4zyqiGAdKABuZlNK3gwtWYQkhudfHH%2F00OnB0TrFTk65hq53Hz%2FtZzqkYGJS6pw%3D%3D--9jlLAE39yueZpRP3--8OVOAruO3Ff19%2BHmZIJETA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.224752463.1753126928; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 19:42:08 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 19:42:08 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D11E:36EDF7:2B0145:33D740:687E9810
Merge pull request #24473 from alexlyulkov:al/samples_with_maven · opencv/opencv@6c57ce9 · GitHub
Copy file name to clipboardExpand all lines: cmake/android/android_gradle_projects.cmake
Copy file name to clipboardExpand all lines: platforms/android/build-tests/test_gradle.sh
Copy file name to clipboardExpand all lines: samples/android/15-puzzle/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/camera-calibration/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java
Copy file name to clipboardExpand all lines: samples/android/color-blob-detection/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/face-detection/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/face-detection/jni/CMakeLists.txt
Copy file name to clipboardExpand all lines: samples/android/image-manipulations/build.gradle.in
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit 6c57ce9
authored
Merge pull request #24473 from alexlyulkov:al/samples_with_maven
Updated Android samples for modern Android studio. Added OpenCV from Maven support. #24473
Updated samples for recent Android studio:
- added namespace field that is required in build.gradle files
- replaced _switch_ by _if-else_ because it doesn't work with constants from resources
- added missed log library dependency in face-detection/jni/CMakeLists.txt
- use local.properties to define NDK location
Added support for OpenCV from Maven. Now you can choose 3 possible sources of OpenCV lib in settings.gradle: SDK path, local Maven repository, public Maven repository. (Creating Maven repository from SDK is added here #24456 )
There are differences in project configs for SDK and Maven versions:
- different dependencies in build.gradle
- different OpenCV library names in CMakeLists.txt
- SDK version requires OpenCV_DIR definition
Requires:
- opencv/ci-gha-workflow#124
- opencv-infrastructure/opencv-gha-dockerfile#261 parent fad0dbb commit 6c57ce9Copy full SHA for 6c57ce9
File tree
Expand file treeCollapse file tree
17 files changed
+163
-34
lines changedFilter options
- cmake/android
- platforms/android/build-tests
- samples/android
- 15-puzzle
- camera-calibration
- src/org/opencv/samples/cameracalibration
- color-blob-detection
- face-detection
- jni
- image-manipulations
- mobilenet-objdetect
- tutorial-1-camerapreview
- tutorial-2-mixedprocessing
- jni
- tutorial-3-cameracontrol
- tutorial-4-opencl
- jni
Expand file treeCollapse file tree
17 files changed
+163
-34
lines changedcmake/android/android_gradle_projects.cmake
Copy file name to clipboardExpand all lines: cmake/android/android_gradle_projects.cmake+30-10Lines changed: 30 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
| 112 | + | |
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
116 | 122 |
| |
117 | 123 |
| |
118 | 124 |
| |
119 | 125 |
| |
120 | 126 |
| |
121 | 127 |
| |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
127 | 147 |
| |
128 | 148 |
| |
129 | 149 |
| |
|
platforms/android/build-tests/test_gradle.sh
Copy file name to clipboardExpand all lines: platforms/android/build-tests/test_gradle.sh+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 |
| |
33 | 36 |
| |
34 | 37 |
| |
|
samples/android/15-puzzle/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/15-puzzle/build.gradle.in+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 |
|
samples/android/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/build.gradle.in+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 |
| |
23 | 28 |
| |
24 | 29 |
| |
|
samples/android/camera-calibration/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/camera-calibration/build.gradle.in+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 |
|
samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java
Copy file name to clipboardExpand all lines: samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java+5-6Lines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
140 |
| - | |
| 139 | + | |
141 | 140 |
| |
142 | 141 |
| |
143 | 142 |
| |
144 | 143 |
| |
145 |
| - | |
| 144 | + | |
146 | 145 |
| |
147 | 146 |
| |
148 | 147 |
| |
149 | 148 |
| |
150 |
| - | |
| 149 | + | |
151 | 150 |
| |
152 | 151 |
| |
153 | 152 |
| |
154 | 153 |
| |
155 |
| - | |
| 154 | + | |
156 | 155 |
| |
157 | 156 |
| |
158 | 157 |
| |
| |||
196 | 195 |
| |
197 | 196 |
| |
198 | 197 |
| |
199 |
| - | |
| 198 | + | |
200 | 199 |
| |
201 | 200 |
| |
202 | 201 |
| |
|
samples/android/color-blob-detection/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/color-blob-detection/build.gradle.in+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 |
|
samples/android/face-detection/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/face-detection/build.gradle.in+19-2Lines changed: 19 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
14 |
| - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 |
| |
16 | 24 |
| |
17 | 25 |
| |
| |||
35 | 43 |
| |
36 | 44 |
| |
37 | 45 |
| |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
38 | 51 |
| |
39 | 52 |
| |
40 | 53 |
| |
41 | 54 |
| |
42 |
| - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
43 | 60 |
|
samples/android/face-detection/jni/CMakeLists.txt
Copy file name to clipboardExpand all lines: samples/android/face-detection/jni/CMakeLists.txt+8-2Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 |
| |
8 | 13 |
| |
9 | 14 |
| |
| |||
12 | 17 |
| |
13 | 18 |
| |
14 | 19 |
| |
15 |
| - | |
| 20 | + | |
| 21 | + |
samples/android/image-manipulations/build.gradle.in
Copy file name to clipboardExpand all lines: samples/android/image-manipulations/build.gradle.in+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 |
|
You can’t perform that action at this time.
0 commit comments