Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Custom Orientation #715

Merged
merged 11 commits into from
Jan 4, 2022
Merged

feat: Custom Orientation #715

merged 11 commits into from
Jan 4, 2022

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Jan 4, 2022

What

Adds a new prop called "orientation" that orients output connections (photo, video, frame processor).

This rotates the resulting image by 90 deg:

<Camera {...props} orientation="landscapeLeft" />

Changes

Tested on

Related issues

@mrousavy mrousavy merged commit 48da181 into main Jan 4, 2022
@mrousavy mrousavy deleted the feat/orientation branch January 4, 2022 15:57
isaaccolson pushed a commit to isaaccolson/deliveries-mobile that referenced this pull request Oct 30, 2024
* feat: Custom Orientation

* Update CameraView.swift

* Update CameraView.swift

* Try outputRotation approach

* whoops

* fix: Refactor `VideoCapture` instance

* Update orientation in didSetProps

* Update Orientation in iOS

* expose to objc

* Fix Orientation values

* format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant