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 3.0.0-rc.3

Published by mrousavy over 1 year ago

3.0.0-rc.3 (2023-07-03)

✨ Features

  • Better Native Module Error Detection (#1515) (f791c6b)
  • Make Frame Processor Plugins object-oriented on iOS as well (#1496) (622d383)
  • New CameraDevice + CameraFormat detection using CameraX (#1495) (0d83a13)

📚 Documentation

🐛 Bug Fixes

  • Catch device == null error (f227a3e)
  • Fix runAtTargetFps for multiple invocations per FP (af4e366)
  • Fix Android namespace (cf19ff2)
  • Fix missing Camera error (38749fb)
  • Fix Skia build (#1582) (f03dde7)
  • ignore duplicate .so libraries in package (ad5d64b)
  • Improve C++ safety by attaching Cache Invalidator to jsi::Runtime's lifecycle (#1488) (0c3cd66)
  • Remove RN Skia dependency on Android for now (61f19df)
  • Remove temp-patch for REA plugin (6deb686)
  • Set min iOS version to 12.4 (bb7ab30)
  • Simplify Podfile (0111f2e)
  • Use global.expo.modules for JSI expo modules (a1af891)
react-native-vision-camera - Release 3.0.0-rc.2

Published by mrousavy over 1 year ago

3.0.0-rc.2 (2023-02-21)

This is the first V3 version with Frame Processor + Skia integration (aka "draw onto frame"/write-back Frame Processors)! For now it only works on iOS, Android is currently WIP. I will probably need to rewrite the entire Android part from CameraX to Camera2 (one of Android's worst APIs) for this.

Example:

const INVERTED_COLORS_SHADER = `
uniform shader image;

half4 main(vec2 pos) {
  vec4 color = image.eval(pos);
  return vec4(1.0 - color.rgb, 1.0);
}`
const runtimeEffect = Skia.RuntimeEffect.Make(INVERTED_COLORS_SHADER)
const shaderBuilder = Skia.RuntimeShaderBuilder(runtimeEffect)
const imageFilter = Skia.ImageFilter.MakeRuntimeShader(shaderBuilder, null, null)

const paint = Skia.Paint()
paint.setImageFilter(imageFilter)

const frameProcessor = useFrameProcessor((frame) => {
    'worklet';
    console.log(`Frame: ${frame.orientation}`);

    frame.render(paint);
}, [paint])

return <Camera frameProcessor={frameProcessor} previewType="skia" ... />

Or:

const paint = Skia.Paint()
paint.setColor(Skia.Color("red"))

const frameProcessor = useFrameProcessor((frame) => {
    'worklet';
    console.log(`Frame: ${frame.orientation}`);

    frame.drawRect({ x: 150, y: 300, width: 100, height: 100 }, paint);
}, [paint])

return <Camera frameProcessor={frameProcessor} previewType="skia" ... />

🐛 Bug Fixes

✨ Features

  • Draw onto Frame as if it was a Skia Canvas (#1479) (12f850c), closes #1487
  • Add fpsGraph prop to show a debug view of the current FPS the Camera is drawing at (#1479
  • Add previewType prop to switch between native OS preview and the Skia Canvas preview view (#1479
  • Add toByteArray(), orientation, isMirrored and timestamp to Frame (#1487)
react-native-vision-camera - Release 3.0.0-rc.1

Published by mrousavy over 1 year ago

3.0.0-rc.1 (2023-02-15)

✨ Features

  • Replace Reanimated with RN Worklets (#1468) (a0590dc)
  • Sync Frame Processors (plus runAsync and runAtTargetFps) (#1472) (30b5615)

🐛 Bug Fixes

  • Fix CI for V3 (#1475) (f0ea181)
  • Prevent possible crash in log error handler (222ded4)
  • Print correct error in build.gradle (6825c1f)
react-native-vision-camera - Release 2.15.4

Published by mrousavy over 1 year ago

2.15.4 (2023-02-01)

🐛 Bug Fixes

react-native-vision-camera - Release 2.15.3

Published by mrousavy over 1 year ago

2.15.3 (2023-01-30)

🐛 Bug Fixes

  • Add support for react-native 0.71 (#1438) (b82d0e3)
  • Fix orientation glitching on first frame (bf71901)
react-native-vision-camera - Release 2.15.2

Published by mrousavy almost 2 years ago

2.15.2 (2022-10-31)

📚 Documentation

  • Replace outdated react-native-reanimated doc links (#1304) (6b32cd9)

🐛 Bug Fixes

  • Allowed setting custom downloads directory (#1306) (c046440)
  • Update CLANG_CXX_LANGUAGE_STANDARD to C++17 (#1309) (045794c)
  • Use +load for registering Frame Processors (#1308) (3416e94)
react-native-vision-camera - Release 2.15.1

Published by mrousavy almost 2 years ago

2.15.1 (2022-10-24)

🐛 Bug Fixes

  • Support new Reanimated Headers directory (2.11.10+) (#1301) (a7932bd)
react-native-vision-camera - Release 2.15.0

Published by mrousavy almost 2 years ago

2.15.0 (2022-10-20)

✨ Features

  • Continue to record audio when receiving a phone call (try to prevent interruptions) (#1278) (4781ad9)

🐛 Bug Fixes

react-native-vision-camera - Release 2.14.1

Published by mrousavy about 2 years ago

2.14.1 (2022-08-09)

📚 Documentation

🐛 Bug Fixes

  • Fix takePhoto not working inside an Modal (#1021) (80df818)
  • Support RN 0.69 and use Hermes from source! 🎉 (#1186) (205e542)
react-native-vision-camera - Release 2.14.0

Published by mrousavy over 2 years ago

2.14.0 (2022-07-18)

🐛 Bug Fixes

📚 Documentation

  • add vision-camera-plugin-builder sections in Creating Frame Processor Plugins (#1123) (2a73c09)

✨ Features

  • Allow returning of ImageProxy in a Frame Processor (#1149) (8bafd96)
react-native-vision-camera - Release 2.13.5

Published by mrousavy over 2 years ago

2.13.5 (2022-06-14)

📚 Documentation

🐛 Bug Fixes

  • (Android) Give real video resolutions, unbind/rebind preview in onHostResume, add missing Android capture errors (#1079) (096b1cc)
  • add session prefix to audio-session-failed-to-activate error (#1036) (fce7994)
  • Asset Writer Video-Audio Sync (#1075) (fb2156e)
  • AVWriter status 1 crash (#996) (83943da)
  • Fix outputOrientation Main Thread API checker (#1094) (04a8794)
react-native-vision-camera - Release 2.13.3

Published by mrousavy over 2 years ago

2.13.3 (2022-05-05)

📚 Documentation

🐛 Bug Fixes

  • AVAssetWriter status is 1 crash (#995) (2ccce35), closes #930
  • Fix RecordingSession nil crash by keeping it local (#938) (971b824)
react-native-vision-camera - Release 2.13.2

Published by mrousavy over 2 years ago

2.13.2 (2022-04-11)

🐛 Bug Fixes

react-native-vision-camera - Release 2.13.1

Published by mrousavy over 2 years ago

2.13.1 (2022-03-30)

🐛 Bug Fixes

  • Fix issue with resolving camera view in Modal (#928) (bea4aa8)
react-native-vision-camera - Release 2.13.0

Published by mrousavy over 2 years ago

2.13.0 (2022-03-22)

✨ Features

  • Add pauseRecording and resumeRecording 🔥 (#911) (4b9bcb3)

🐛 Bug Fixes

react-native-vision-camera - Release 2.12.2

Published by mrousavy over 2 years ago

2.12.2 (2022-03-07)

react-native-vision-camera - Release 2.12.1

Published by mrousavy over 2 years ago

2.12.1 (2022-02-28)

🐛 Bug Fixes

  • Fix duplicate libhermes.so package (#741) (00fc398)
  • Fix unmount crash (06bcb53)
  • Make duration non-optional (#744) (28fc6a6)
  • Prevent NaN/+Inf crash for auto frameProcessorFps (d9932f4)
  • Use ViewGroupManager instead of SimpleViewManager (#735) (202508b)

📚 Documentation

react-native-vision-camera - Release 2.12.0

Published by mrousavy almost 3 years ago

2.12.0 (2022-01-12)

✨ Features

  • Add disableFrameProcessors flag to Expo Config Plugin (#708) (17a3430)

🐛 Bug Fixes

📚 Documentation

  • Add documentation for disabling Frame Processors on Expo (c2518bc)
  • Update orientation documentation (fb5d687)
react-native-vision-camera - Release 2.11.2

Published by mrousavy almost 3 years ago

2.11.2 (2022-01-04)

✨ Features

react-native-vision-camera - Release 2.11.1

Published by mrousavy almost 3 years ago

2.11.1 (2022-01-03)

✨ Features

🐛 Bug Fixes

  • Fix crash after Activity is destroyed (1d27f6a), closes #664
  • Fix REA detection to build Frame Processors (#703) (fc4ed60)
  • Resolve node_modules/ better (#706) (675dec5)