react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.

MIT License

Downloads
545.4K
Stars
7.1K
Committers
102

Bot releases are visible (Hide)

react-native-vision-camera - Release 4.0.0-beta.18

Published by mrousavy 6 months ago

4.0.0-beta.18 (2024-04-21)

✨ Features

🐛 Bug Fixes

  • Fix already bound to a different lifecycle error when flipping camera (#2768) (a1b7602)
  • Simplify cpp/ codebase into android/ios folders (#2766) (1f4381a)
react-native-vision-camera - Release 4.0.0-beta.17

Published by mrousavy 6 months ago

4.0.0-beta.17 (2024-04-21)

✨ Features

  • Separate VisionCamera into React, Core and FrameProcessors subspecs (#2764) (464ea94)
  • Separate VisionCamera into two subspecs (#2761) (f7dbb24)

🐛 Bug Fixes

  • Fix Promise resolve wrong name (e124c00)
  • Fix build for Android because of Worklet usage (9fcb61a)
  • Refactor Android codebase into core, react and frameprocessors (#2765) (991dc79)
react-native-vision-camera - Release 4.0.0-beta.16

Published by mrousavy 6 months ago

4.0.0-beta.16 (2024-04-19)

✨ Features

🐛 Bug Fixes

  • Also override onProviderDisabled to prevent abstract method crash (b0a5585)
  • Clean up Skia resources on Worklet context to avoid race condition (#2754) (b8e44ab)
  • Fix minFps being larger in Range than maxFps (#2755) (16ccfdf)
  • Make dependencies (ModuleProxy) actually optional (#2750) (c3098db)
  • Remove enableGpuBuffers (b751f2d)

📚 Documentation

react-native-vision-camera - Release 4.0.0-beta.15

Published by mrousavy 6 months ago

4.0.0-beta.15 (2024-04-17)

This is the first beta for Skia Frame Processors! 🥳
You can try this today in your app by using the useSkiaFrameProcessor hook:

const frameProcessor = useSkiaFrameProcessor((frame) => {
  'worklet'

  // 1. create blur filter
  const blurRadius = 10
  const blurFilter = Skia.ImageFilter.MakeBlur(blurRadius, blurRadius, TileMode.Repeat, null)

  // 2. wrap blur filter in Paint
  const paint = Skia.Paint()
  paint.setImageFilter(blurFilter)

  // 3. render image with the blur filter paint
  frame.render(paint)
}, [])

Note: Skia Frame Processors require react-native-worklets-core 1.1.1 or higher, react-native-reanimated 3.x.x or higher, and react-native-skia 1.2.1 or higher

Note: You might need to set pixelFormat="rgb", as "yuv" buffers are still work in progress (see https://github.com/Shopify/react-native-skia/pull/2357)

✨ Features

🐛 Bug Fixes

  • Fix ResolutionSelector difference abs (#2746) (1b73b69)
  • Rename ReactLogger to VisionLogger (b89df9a)
  • Use 1280x720 for QR scanner (ca2995d)
react-native-vision-camera - Release 4.0.0-beta.14

Published by mrousavy 6 months ago

4.0.0-beta.14 (2024-04-16)

✨ Features

  • Add hardware-cost-too-high error for iOS 16 (56a5c8d)

🐛 Bug Fixes

  • Always support rgb and yuv, remove native (cd9b84d)
  • Fall-back to H.264 if custom codec is not supported (4595b4f)
  • Use ResolutionSelectors with fallback values (adcca77)
react-native-vision-camera - Release 4.0.0-beta.13

Published by mrousavy 7 months ago

4.0.0-beta.13 (2024-04-04)

🐛 Bug Fixes

  • Remove mustPlayShutterSound() check (a6323cf)
react-native-vision-camera - Release 4.0.0-beta.12

Published by mrousavy 7 months ago

4.0.0-beta.12 (2024-04-02)

✨ Features

  • Disable shutter sound if in silent (86c0f86)

🐛 Bug Fixes

  • Remove enablePrecapture (688acd8)
  • Use correct UIManager in findCameraView depending on the architecture (#2702) (5223f5b)
react-native-vision-camera - Release 4.0.0-beta.11

Published by mrousavy 7 months ago

4.0.0-beta.11 (2024-03-27)

💨 Performance Improvements

  • Add @FastNative flags to critical Frame Processor methods (ff2005b)

🐛 Bug Fixes

  • Fix RCTDeviceEventEmitter import for RN 0.71.X (#2692) (8a95414)
  • Fix wrong orientation enum being send to ImageCapture (#2683) (4c00ffd)

4.0.0-beta.10 (2024-03-21)

🐛 Bug Fixes

  • Fix location permission not resolving on iOS (#2672) (a255c24)

4.0.0-beta.9 (2024-03-21)

✨ Features

  • Add GPS Location EXIF tagging for photos and videos (enableLocation={true}) (#2665) (c8033dd)

🐛 Bug Fixes

  • Fix CodeScanner not working (c0e3a14)
  • Fix focus on Android by using PX instead of DP (#2666) (f794d48)
  • Remove HardwareBufferUtils (3f113e8)

4.0.0-beta.8 (2024-03-19)

✨ Features

  • Basic read-only Frame Processors (ImageAnalysis Use-Case) (#2664) (ca6518f)

🐛 Bug Fixes

  • Properly set maxPhotoDimensions on PhotoOutput (#2659) (7f14f25)

4.0.0-beta.7 (2024-03-18)

✨ Features

  • Write proper photo metadata (orientation & isMirrored) (#2660) (babed3c)

🐛 Bug Fixes

  • Also dont enable if other extension is enabled (5525f2b)
  • Fix 10-bit HDR in combination with HDR Extension (19a7b0c)
  • Fix Camera not starting because PreviewView isn't laid out (ad746d5)
  • Fix capture session configuration error by manually layouting PreviewView (3d68d74)
  • Properly check SDR (211783a)
  • Remove focus listeners after resetting (2611625)
  • Throw correct errors (5fe7608)
  • Update outputs if video stabilization or low-light-boost changes (27a4f85)
  • Use CREATED as default lifecycle state (1682bb2)

4.0.0-beta.6 (2024-03-14)

✨ Features

  • Catch Objective-C init errors on plugin init (fa21983)

🐛 Bug Fixes

  • Catch Objective-C errors in iOS Frame Processor Plugins (c1f274f)
  • Check format requirements in outputs (79d4554)
  • Fix TimeoutException by using STARTED lifecycle (5283020)
  • Fix rotation getting (a9093cf)
  • Remove didSessionChangeFromOutside (5119639)
  • Remove not-compatible-with-outputs error on Android since CameraX supports StreamSharing (8ad08f3)
  • Remove unneeded context (aac2162)
  • Use dummy metering factory instead of display-oriented (a57d640)

4.0.0-beta.5 (2024-03-08)

✨ Features

  • Add type to onShutter (photo or snapshot) (f721d97)
  • Remove enableAutoStabilization prop as this was deprecated in iOS 13 (72c8c1b)

🐛 Bug Fixes

  • Allow catching errors in .await() (7ec53f7)
  • Allow re-creating if session changed from outside (17feff3)
  • Don't play shutter sound unless explicitly enabled (f5c0131)
  • Export Snapshot.ts (6be93af)
  • Fix calling sendAvailableDevicesChangedEvent before module is initialized (b4a9086)
  • Only unbind current outputs, not all (50f47c5)

4.0.0-beta.4 (2024-03-01)

✨ Features

  • Add androidPreviewViewType prop (dd56925)
  • Add cancelRecording (f51921b)
  • Add onShutter event (dd49365)
  • Add takeSnapshot() to PreviewView (e17eb50)
  • Add CodeScanner pipeline (ImageAnalysis) (08d86d4)
  • Allow setting custom format in ImageWriter (d0eb702)
  • Give V4 🫴 (dd4c8fb)
  • Implement native HardwareBuffer rendering for VideoPipeline (00155c9)
  • Properly get orientation and isMirrored in FP (a4a78e9)
  • Shutter sound and stabilization (7b46390)
  • Use CameraX for device details (#2624) (54997a2)
  • Use HDR or NIGHT extensions if available (b9a0434)

🐛 Bug Fixes

  • Capture directly in lambda (c741c90)
  • Check for ImageAnalysis support (cb2f1c3)
  • Fix focus not running on UI Thread (e4a5fe3)
  • Fix optional delegate (c6e55ac)
  • Fix transform matrix (fd1b118)
  • Implement takeSnaphot on iOS (a638b66)
  • Properly close ImageWriter (f36d304)
  • Rename to qualityBalance (e135b3b)
  • Use image transformation info from input surface (0a415f3)
  • Use runOnUiThread only if needed (d8dbd53)

📚 Documentation

  • Update docs for qualityBalance (158de70)

3.9.2 (2024-03-27)

react-native-vision-camera - Release 3.9.2

Published by mrousavy 7 months ago

3.9.2 (2024-03-27)

✨ Features

🐛 Bug Fixes

  • Changes relative import paths in usePreferredCameraDevice.ts (#2661) (ebe04b2)

📚 Documentation

react-native-vision-camera - Release 4.0.0-beta.10

Published by mrousavy 7 months ago

4.0.0-beta.10 (2024-03-21)

🐛 Bug Fixes

  • Fix location permission not resolving on iOS (#2672) (a255c24)
react-native-vision-camera - Release 4.0.0-beta.9

Published by mrousavy 7 months ago

4.0.0-beta.9 (2024-03-21)

✨ Features

  • Add GPS Location EXIF tagging for photos and videos (enableLocation={true}) (#2665) (c8033dd)
  • Add UPC-A support (#2563) (97941a9)

🐛 Bug Fixes

  • Changes relative import paths in usePreferredCameraDevice.ts (#2661) (ebe04b2)
  • Fix CodeScanner not working (c0e3a14)
  • Fix focus on Android by using PX instead of DP (#2666) (f794d48)
  • Remove HardwareBufferUtils (3f113e8)

📚 Documentation

3.9.1 (2024-03-04)

🐛 Bug Fixes

react-native-vision-camera - Release 4.0.0-beta.8

Published by mrousavy 7 months ago

4.0.0-beta.8 (2024-03-19)

✨ Features

  • Basic read-only Frame Processors (ImageAnalysis Use-Case) (#2664) (ca6518f)

🐛 Bug Fixes

  • Properly set maxPhotoDimensions on PhotoOutput (#2659) (7f14f25)
react-native-vision-camera - Release 4.0.0-beta.7

Published by mrousavy 7 months ago

4.0.0-beta.7 (2024-03-18)

✨ Features

  • Write proper photo metadata (orientation & isMirrored) (#2660) (babed3c)

🐛 Bug Fixes

  • Also dont enable if other extension is enabled (5525f2b)
  • Fix 10-bit HDR in combination with HDR Extension (19a7b0c)
  • Fix Camera not starting because PreviewView isn't laid out (ad746d5)
  • Fix capture session configuration error by manually layouting PreviewView (3d68d74)
  • Properly check SDR (211783a)
  • Remove focus listeners after resetting (2611625)
  • Throw correct errors (5fe7608)
  • Update outputs if video stabilization or low-light-boost changes (27a4f85)
  • Use CREATED as default lifecycle state (1682bb2)
react-native-vision-camera - Release 4.0.0-beta.6

Published by mrousavy 7 months ago

4.0.0-beta.6 (2024-03-14)

✨ Features

  • Catch Objective-C init errors on plugin init (fa21983)

🐛 Bug Fixes

  • Catch Objective-C errors in iOS Frame Processor Plugins (c1f274f)
  • Check format requirements in outputs (79d4554)
  • Fix TimeoutException by using STARTED lifecycle (5283020)
  • Fix rotation getting (a9093cf)
  • Remove didSessionChangeFromOutside (5119639)
  • Remove not-compatible-with-outputs error on Android since CameraX supports StreamSharing (8ad08f3)
  • Remove unneeded context (aac2162)
  • Use dummy metering factory instead of display-oriented (a57d640)
react-native-vision-camera - Release 4.0.0-beta.5

Published by mrousavy 8 months ago

4.0.0-beta.5 (2024-03-08)

✨ Features

  • Add type to onShutter (photo or snapshot) (f721d97)
  • Remove enableAutoStabilization prop as this was deprecated in iOS 13 (72c8c1b)

🐛 Bug Fixes

  • Allow catching errors in .await() (7ec53f7)
  • Allow re-creating if session changed from outside (17feff3)
  • Don't play shutter sound unless explicitly enabled (f5c0131)
  • Export Snapshot.ts (6be93af)
  • Fix calling sendAvailableDevicesChangedEvent before module is initialized (b4a9086)
  • Only unbind current outputs, not all (50f47c5)
react-native-vision-camera - Release 3.9.1

Published by mrousavy 8 months ago

3.9.1 (2024-03-04)

✨ Features

🐛 Bug Fixes

  • Cancel focus on session close (#2578) (9af6e61)
  • Disable precapture sequence by default (#2629) (3f1a7c9)
  • Fix "Unknown AF/AE/AWB State" error (#2592) (fabf019)
  • Fix Precapture timed out after 5 seconds error (#2586) (369cb4a)
  • Fix Boolean.parse string values from gradle properties (#2599) (bca9472)
  • Fix Frame Processor SIGSEV crash in VisionCameraScheduler::trigger by locking mutex in dispatchAsync (#2591) (55992bb)
  • Trigger measure and layout manually in PreviewView (#2588) (7ac6f4d)
  • Use 0x0 as a fallback Size if SENSOR_INFO_PHYSICAL_SIZE is null (e.g. on USB cameras) (#2608) (e8dd1e0)

📚 Documentation

  • Add vision-camera-cropper to the plugins list (#2600) (79ebae5)
  • Fix toArrayBuffer example in Frame Processor Guide (#2595) (4c159af)
react-native-vision-camera - Release 4.0.0-beta.4

Published by mrousavy 8 months ago

4.0.0-beta.4 (2024-03-01)

✨ Features

  • Add androidPreviewViewType prop (dd56925)
  • Add cancelRecording (f51921b)
  • Add onShutter event (dd49365)
  • Add takeSnapshot() to PreviewView (e17eb50)
  • Add CodeScanner pipeline (ImageAnalysis) (08d86d4)
  • Allow setting custom format in ImageWriter (d0eb702)
  • Give V4 🫴 (dd4c8fb)
  • Implement native HardwareBuffer rendering for VideoPipeline (00155c9)
  • Properly get orientation and isMirrored in FP (a4a78e9)
  • Shutter sound and stabilization (7b46390)
  • Upload .apk as a GitHub artifact (#2575) (2c976d8)
  • Use CameraX for device details (#2624) (54997a2)
  • Use HDR or NIGHT extensions if available (b9a0434)

🐛 Bug Fixes

  • Cancel focus on session close (#2578) (9af6e61)
  • Capture directly in lambda (c741c90)
  • Check for ImageAnalysis support (cb2f1c3)
  • Fix "Unknown AF/AE/AWB State" error (#2592) (fabf019)
  • Fix Precapture timed out after 5 seconds error (#2586) (369cb4a)
  • Fix Boolean.parse string values from gradle properties (#2599) (bca9472)
  • Fix focus not running on UI Thread (e4a5fe3)
  • Fix Frame Processor SIGSEV crash in VisionCameraScheduler::trigger by locking mutex in dispatchAsync (#2591) (55992bb)
  • Fix optional delegate (c6e55ac)
  • Fix transform matrix (fd1b118)
  • Implement takeSnaphot on iOS (a638b66)
  • Properly close ImageWriter (f36d304)
  • Rename to qualityBalance (e135b3b)
  • Trigger measure and layout manually in PreviewView (#2588) (7ac6f4d)
  • Use 0x0 as a fallback Size if SENSOR_INFO_PHYSICAL_SIZE is null (e.g. on USB cameras) (#2608) (e8dd1e0)
  • Use image transformation info from input surface (0a415f3)
  • Use runOnUiThread only if needed (d8dbd53)

📚 Documentation

  • Add vision-camera-cropper to the plugins list (#2600) (79ebae5)
  • Fix toArrayBuffer example in Frame Processor Guide (#2595) (4c159af)
  • Update docs for qualityBalance (158de70)
react-native-vision-camera - Release 4.0.0-beta.3

Published by mrousavy 8 months ago

4.0.0-beta.3 (2024-02-29)

✨ Features

🐛 Bug Fixes

react-native-vision-camera - Release 4.0.0-beta.2

Published by mrousavy 8 months ago

4.0.0-beta.2 (2024-02-29)

✨ Features

🐛 Bug Fixes

  • Rename to qualityBalance (0b11ab2)
react-native-vision-camera - Release 4.0.0-beta.1

Published by mrousavy 8 months ago

4.0.0-beta.1 (2024-02-29)