CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 17:41:41 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/"8c93b9895b56a98d98c9ae3ad6471b0a"
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=fxs%2BoeawNVh2Q3wdL7QyKZfmmb5snvEDNXLDeTyXlVn%2BRQEhS0hsxRwEeK4quGK6hMHrF53YSe34ZU6XYpJ7VVVGpjWI4vjZU6Fdzy%2B%2F522krIwLRSWqnhDgLCu948JsksEzzgeVx1lCXjX42ql2CKtd9dFnZZ%2BtI%2BG%2BRPxYTFp%2B3r0QboB32QB4XT%2Fa9204G5NnFRl8jAkXgMSXzOpGjTwjPmUhiceGg4afJI0AgIWAzYISJ1KHNGcFSpMJmrrwgIMuyy9jrQSg1qqTUcvO8A%3D%3D--Lacu%2FwH1p2lhPKoL--ep2hbsCJAdzPClUnqwxCPw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1501996690.1753292501; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 17:41:41 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 17:41:41 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C992:35B563:F5B0E4:12280D6:68811ED5
Merge pull request #24869 from alexlyulkov:al/android-camera-view-rotate · opencv/opencv@bfad61f · GitHub
Copy file name to clipboardExpand all lines: modules/java/generator/android-21/java/org/opencv/android/JavaCamera2View.java
Copy file name to clipboardExpand all lines: modules/java/generator/android-24/java/org/opencv/android/NativeCameraView.java
Copy file name to clipboardExpand all lines: modules/java/generator/android/java/org/opencv/android/CameraBridgeViewBase.java
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit bfad61f
authored
Merge pull request #24869 from alexlyulkov:al/android-camera-view-rotate
Added screen rotation support to JavaCamera2View amd NativeCameraView. Fixed JavaCamera2View initialization. #24869
Added automatic image rotation to JavaCamera2View and NativeCameraView so the video preview was matched with screen orientation.
Fixed double preview initialization bug in JavaCamera2View.
Added proper cameraID parsing to NativeCameraView similar to JavaCameraView
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake1 parent d1e4bd8 commit bfad61fCopy full SHA for bfad61f
File tree
Expand file treeCollapse file tree
4 files changed
+188
-101
lines changedFilter options
- modules/java/generator
- android-21/java/org/opencv/android
- android-24/java/org/opencv/android
- android/java/org/opencv/android
Expand file treeCollapse file tree
4 files changed
+188
-101
lines changedmodules/java/generator/android-21/java/org/opencv/android/JavaCamera2View.java
Copy file name to clipboardExpand all lines: modules/java/generator/android-21/java/org/opencv/android/JavaCamera2View.java+31-16Lines changed: 31 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| 49 | + | |
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
| |||
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
89 |
| - | |
90 |
| - | |
| 90 | + | |
| 91 | + | |
91 | 92 |
| |
92 | 93 |
| |
93 | 94 |
| |
| |||
110 | 111 |
| |
111 | 112 |
| |
112 | 113 |
| |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
| 114 | + | |
| 115 | + | |
118 | 116 |
| |
119 | 117 |
| |
120 |
| - | |
121 | 118 |
| |
122 | 119 |
| |
123 | 120 |
| |
124 | 121 |
| |
125 | 122 |
| |
126 | 123 |
| |
127 | 124 |
| |
128 |
| - | |
| 125 | + | |
129 | 126 |
| |
130 |
| - | |
| 127 | + | |
131 | 128 |
| |
132 |
| - | |
| 129 | + | |
133 | 130 |
| |
134 | 131 |
| |
135 | 132 |
| |
| |||
204 | 201 |
| |
205 | 202 |
| |
206 | 203 |
| |
| 204 | + | |
207 | 205 |
| |
208 | 206 |
| |
209 | 207 |
| |
| |||
213 | 211 |
| |
214 | 212 |
| |
215 | 213 |
| |
216 |
| - | |
| 214 | + | |
217 | 215 |
| |
| 216 | + | |
218 | 217 |
| |
219 | 218 |
| |
220 | 219 |
| |
| |||
303 | 302 |
| |
304 | 303 |
| |
305 | 304 |
| |
306 |
| - | |
| 305 | + | |
307 | 306 |
| |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
308 | 313 |
| |
309 |
| - | |
310 |
| - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
311 | 321 |
| |
312 | 322 |
| |
313 | 323 |
| |
| |||
322 | 332 |
| |
323 | 333 |
| |
324 | 334 |
| |
325 |
| - | |
326 | 335 |
| |
327 | 336 |
| |
328 | 337 |
| |
329 | 338 |
| |
330 | 339 |
| |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
331 | 345 |
| |
332 | 346 |
| |
333 | 347 |
| |
| |||
442 | 456 |
| |
443 | 457 |
| |
444 | 458 |
| |
| 459 | + | |
445 | 460 |
| |
446 | 461 |
| |
447 | 462 |
| |
|
modules/java/generator/android-24/java/org/opencv/android/NativeCameraView.java
Copy file name to clipboardExpand all lines: modules/java/generator/android-24/java/org/opencv/android/NativeCameraView.java+54-12Lines changed: 54 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
| |||
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
28 |
| - | |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
89 | 90 |
| |
90 | 91 |
| |
91 | 92 |
| |
92 |
| - | |
93 |
| - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 |
| |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
99 | 116 |
| |
100 | 117 |
| |
101 |
| - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
102 | 123 |
| |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
103 | 128 |
| |
| 129 | + | |
| 130 | + | |
104 | 131 |
| |
105 | 132 |
| |
106 | 133 |
| |
107 |
| - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
108 | 141 |
| |
109 | 142 |
| |
110 | 143 |
| |
111 | 144 |
| |
112 |
| - | |
113 |
| - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
114 | 152 |
| |
115 | 153 |
| |
116 | 154 |
| |
| |||
131 | 169 |
| |
132 | 170 |
| |
133 | 171 |
| |
134 |
| - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
135 | 176 |
| |
136 | 177 |
| |
137 | 178 |
| |
| |||
162 | 203 |
| |
163 | 204 |
| |
164 | 205 |
| |
| 206 | + | |
165 | 207 |
| |
166 | 208 |
| |
167 | 209 |
| |
|
modules/java/generator/android/java/org/opencv/android/CameraBridgeViewBase.java
Copy file name to clipboardExpand all lines: modules/java/generator/android/java/org/opencv/android/CameraBridgeViewBase.java+88Lines changed: 88 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
| 21 | + | |
20 | 22 |
| |
21 | 23 |
| |
| 24 | + | |
22 | 25 |
| |
23 | 26 |
| |
24 | 27 |
| |
| |||
189 | 192 |
| |
190 | 193 |
| |
191 | 194 |
| |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
192 | 248 |
| |
193 | 249 |
| |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
194 | 282 |
| |
195 | 283 |
| |
196 | 284 |
| |
|
You can’t perform that action at this time.
0 commit comments