This repository was archived by the owner on Apr 9, 2025. It is now read-only.
Update#1
Open
emilienbidet wants to merge 319 commits into
Open
Conversation
* fix: Use `DynamicRangeBitDepth` to avoid unsafe enum case names * Update ResolvableConstraint+VideoDynamicRangeConstraint.swift * Update ResolvableConstraint+VideoDynamicRangeConstraint.swift
…VisionCamera.createNormalizedMeteringPoint(...)` (#3742)
Add 'worklet' directive to getCurrentThreadMarker
* docs: Add note about disposing `Photo` when no longer used * Update CameraPhotoOutput.nitro.ts
…lash for now (#3754) * fix: Rename `Orientation` to `CameraOrientation` to workaround name clash for now * Rename everything * lint all
…rename (#3757) The rename in #3754 (Orientation to CameraOrientation) also replaced references to UIKit's nested UIImage.Orientation enum, which caused iOS builds to fail with: 'CameraOrientation' is not a member type of class 'UIKit.UIImage' UIImage is an Apple UIKit class and its nested enum is literally named Orientation, so the references must remain UIImage.Orientation. UIImageOrientation+exif.swift already uses the correct name, which is how the partial rename was spotted. Affected (8 occurrences across 7 files): - packages/react-native-vision-camera/ios/Extensions/Converters/UI+CameraOrientation.swift (x3) - packages/react-native-vision-camera/ios/Extensions/AVFoundation/AVCapturePhoto+getMediaSampleMetadata.swift - packages/react-native-vision-camera/ios/Extensions/AVFoundation/AVDepthData+toUIImage.swift - packages/react-native-vision-camera/ios/Extensions/CoreMedia/CMSampleBuffer+toUIImage.swift - packages/react-native-vision-camera/ios/Extensions/CIImage+toUIImage.swift - packages/react-native-vision-camera/ios/Public/MediaSampleMetadata.swift - packages/react-native-vision-camera-barcode-scanner/ios/Extensions/UI+CameraOrientation.swift
* docs: Add JSON+LD data * Use Organization as publisher * link to margelo too
The `postinstall: "tsc || exit 0;"` script in packages/react-native-vision-camera/package.json runs `tsc` on every consumer install. When `tsc` is on the consumer's PATH (commonly the case on Linux CI runners and Windows dev machines), the unprovisioned `tsc` walks up the consumer's tree to find a tsconfig.json, then emits compiled .js files next to every .ts source it can reach. The `|| exit 0` swallows the error so install "succeeds", leaving stray files behind in the consumer's project. On macOS dev machines `tsc` usually isn't on the postinstall PATH, so the bug is invisible there. This re-applies the fix from #3275, which addressed the same symptom for v4.6.x but was lost in the 5.x rewrite. The package ships a pre-built `lib/` (per the `files` field and `main: "lib/index"`), so consumers never need to compile anything on install. The existing `build: "tsc"` script remains for explicit invocation by maintainers and release tooling. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat: Support `getDefaultCamera('external')` on Android too
* fix: Replace `CameraPosition` with `TargetCameraPosition`
* add getDefaultCamera test
* guard ios 17 external
* docs: Add Amazon Shopping to showcase * add numbers for amazon * Add OnePay finance * Use B for billion number * order by downloads * 10 more * appstore url is now optional * add more * sort * Update production-apps-showcase.tsx * chore: add `.tmp` to gitignore
* feat: Better `useCameraDevice(...)` including default Cameras * kinda fix with latest main * mark deprecated * Use `Set` * Update useCamera.ts
* chore: Test Frame Output pixel formats end-to-end * test: inline frame pixel format cases
* chore: Test that no `'unknown'` cases exist * way simpler test lol * chore: Also test Pixel Format and Container Format
…onfiguration (#4057) * feat: Add support for passing declarative position to Camera Device configuration * use extension method for default for * implement Swift first idea * fix: Resolve Connections upfront (#4059) * fix: Resolve connections upfront * WIP * ughhhh * rename * Resolve for input * Update HybridCameraSession.swift * Restructure ResolvedCameraSessionConnection to map 1:1 * uhm? * Update HybridCameraController.swift * it builds * custom config type ig * Move out * extract * chore: Lint * remove dead code * impl android hihi * Update ResolvableConstraint+AVAutoFocusSystem.swift * Update CameraSessionConnection+getCameraInfo.kt * chore: Add test for `input: TargetCameraPosition` * re-use CameraSession * Add outputs to the test too * docs * fix: Make `useCameraDeviceExtensions` use `useCameraDeviceFactory()` * Update docs to remove deprecated APIs * clean up
…4062) * chore: Add hook tests * fix: Fix `useCameraDevice` stale on position switch * fix promise rejection deferred test
* fix: Fix unknown Pixel Formats (specifically rgb) * docs * Update PixelFormat+fromImageFormat.kt * remove pixelFormat constraint test
* docs: Add more apps to showcase * add evernote and magicplan * add ATT lol * add more * add momo and sunoco * add guess up, luxer one and party lab * add holodex and mychoice benefits
Bumps the camera-libs group with 1 update in the /packages/react-native-vision-camera-barcode-scanner/android directory: androidx.camera:camera-core. Bumps the camera-libs group with 7 updates in the /packages/react-native-vision-camera/android directory: | Package | From | To | | --- | --- | --- | | androidx.camera:camera-core | `1.7.0-alpha01` | `1.7.0-alpha02` | | androidx.camera:camera-camera2 | `1.7.0-alpha01` | `1.7.0-alpha02` | | androidx.camera:camera-camera2-pipe | `1.7.0-alpha01` | `1.7.0-alpha02` | | androidx.camera:camera-lifecycle | `1.7.0-alpha01` | `1.7.0-alpha02` | | androidx.camera:camera-video | `1.7.0-alpha01` | `1.7.0-alpha02` | | androidx.camera:camera-view | `1.7.0-alpha01` | `1.7.0-alpha02` | | androidx.camera:camera-extensions | `1.7.0-alpha01` | `1.7.0-alpha02` | Updates `androidx.camera:camera-core` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-core` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-camera2` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-camera2-pipe` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-lifecycle` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-video` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-view` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-extensions` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-camera2` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-camera2-pipe` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-lifecycle` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-video` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-view` from 1.7.0-alpha01 to 1.7.0-alpha02 Updates `androidx.camera:camera-extensions` from 1.7.0-alpha01 to 1.7.0-alpha02 --- updated-dependencies: - dependency-name: androidx.camera:camera-core dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-core dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-camera2 dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-camera2-pipe dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-lifecycle dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-video dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-view dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-extensions dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-camera2 dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-camera2-pipe dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-lifecycle dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-video dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-view dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs - dependency-name: androidx.camera:camera-extensions dependency-version: 1.7.0-alpha02 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: camera-libs ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: Fix `getSupportedResolutions('video')` crashing on some Android phones
* Actually nvm use Camera2 sizes again.
…#4077) * fix: Fix `getSupportedResolutions('photo')` throwing on some Androids * fix: More things can be nullable apparently
Adds a third ScaleMode to the resizer: 'stretch' fills the whole output by stretching the input independently on each axis - no bars, no cropping, aspect ratio NOT preserved. Motivation: ML models with fixed square inputs (e.g. 640x640 detectors) are usually trained on stretched-to-square images. 'cover' crops away detector targets near the frame edges and 'contain' wastes ~44% of a square input on black bars when fed 16:9 frames - 'stretch' matches the training-time preprocessing exactly and uses every input pixel. - Vulkan (Android) + Metal (iOS) compute kernels: ordinal 2u maps the entire source [0,1]^2 to the entire output [0,1]^2 per-axis; cover/contain paths are unchanged (refactored into per-case blocks since stretch has no scale factor or centering offset) - ScaleMode TS union + docs - nitrogen-generated ScaleMode.swift / ScaleMode.hpp updated to match (same output 'nitrogen' produces for the updated spec) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* chore: Test `'locked'` focus(..) * Simpler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Changes
Tested on
Related issues