Commit Graph

352 Commits

Author SHA1 Message Date
Marc Rousavy
0ffaa7fc29
docs: Add tap to focus example 2024-01-09 17:28:05 +01:00
Marc Rousavy
5c99728561
feat: Add new enableCodeScanner prop to build.gradle to make sure CodeScanner always works (#2355)
* feat: Always download model instead of relying on Google Play Services

* feat: Use `VisionCamera_enableCodeScanner` flag instead of unsafely replacing

* Update CODE_SCANNING.mdx
2024-01-08 13:14:47 +01:00
Marc Rousavy
2d84b7f40e
docs: Create pinch-to-zoom example for docs 2024-01-08 12:51:31 +01:00
Marc Rousavy
7241342fd8
docs: Add plugin by mgcrea/vision-camera-barcode-scanner 2023-12-22 10:42:34 +01:00
Marc Rousavy
591cf30a06
perf: Make getCameraPermission and getMicrophonePermission synchronous (#2302) 2023-12-19 14:22:04 +01:00
Marc Rousavy
3d2feb6f6c
Revert "Update banner for Producthunt"
This reverts commit 2fb56e5802.
2023-12-18 12:36:49 +01:00
Marc Rousavy
2fb56e5802
Update banner for Producthunt 2023-12-14 11:54:45 +01:00
Marc Rousavy
3a627c7262
docs: Add ShadowLens announcement (#2285)
* docs: Add ShadowLens announcement

* Update docusaurus.config.js

* Update docusaurus.config.js
2023-12-13 22:46:03 +01:00
Marc Rousavy
7fccee226c
docs: Update C++ Frame Processor docs (#2277) 2023-12-12 11:39:36 +01:00
Rodrigo Gomes
248a08b18c
feat: Support for C++ Frame Processor Plugins by publishing VisionCamera as a prefab (#2251)
* update docs

* add prefabs support
2023-12-12 11:21:21 +01:00
Matthew Terry
a77939f6c4
docs: Add missing import for FP docs (#2254) 2023-12-05 20:33:46 +01:00
RhysJosmin
9df46670a8
docs: Use npx expo instead of expo for snippets (#2241)
updated The installation snippet from `expo install react-native-vision-camera` to `npx expo install react-native-vision-camera` since the The global expo-cli package has been deprecated.
2023-12-04 11:45:49 +01:00
Marc Rousavy
cad5240420
fix: Move minExposure/maxExposure from format into device (#2211)
* fix: Move `minExposure`/`maxExposure` into `device`

* Update docs

* chore: Remove unneeded dependency

* chore: Update code
2023-11-24 18:20:56 +01:00
Marc Rousavy
49d58d0d0c
perf: Use lossy compressed YUV buffers if available (#2195) 2023-11-22 16:19:29 +01:00
Marc Rousavy
ef58d13b87
feat: Implement exposure (#2173)
* feat: Implement `exposure` (iOS)

* Update Podfile.lock

* Format

* Expose exposure in format

* Set exposure in Camera2

* fix: Fix exposure calculation

* Add exposure docs
2023-11-19 15:26:43 +01:00
Marc Rousavy
c5dfb6c247
feat: Split videoHdr and photoHdr into two settings (#2161)
* feat: Split `videoHdr` and `photoHdr` into two settings

* fix: Rename all `hdr`

* fix: Fix HDR on Android

* Update CameraDeviceDetails.kt

* Update CameraDeviceDetails.kt

* fix: Correctly configure `pixelFormat` AFTER `format`

* Update CameraSession+Configuration.swift

* fix: Also after format changed
2023-11-15 18:33:12 +01:00
Marc Rousavy
fe6221e4e0
docs: Add Worklets babel plugin to docs 2023-10-31 15:04:52 +01:00
Marc Rousavy
e1f8e1bd2a
docs: Add "Templates" to Format docs 2023-10-24 14:50:29 +02:00
Marc Rousavy
3929c0ac46
fix: Initialize Plugins in a static block of ReactPackage (#2039)
* fix: Initialize Plugins in a `static` block of ReactPackage

* fix: Also register FP Plugins in Example
2023-10-19 11:34:09 +02:00
Marc Rousavy
07027d8010
fix: Rename getFrameProcessorPlugin to initFrameProcessorPlugin (#2038)
* fix: Rename `getFrameProcessorPlugin` to `initFrameProcessorPlugin`

* fix: Make nullable, add comments

* Format

* Update FrameProcessorPlugin.java

* Update FrameProcessorPlugin.h

* fix: Fix dead links

* Call super constructor

* Update ExampleFrameProcessorPlugin.java

* fix: Init calls
2023-10-19 11:19:47 +02:00
Mateusz Mędrek
a291642c53
feat: Reintroduce Macros for Frame Processor Plugin registration (#2027)
in VisionCamera v1 & v2 there were two ObjC macros that were helping
in creation/registration of Frame Processors, but these were removed with
v3

This PR reintroduces such macros, which will not only make FP development
easier, but also it will also fix issues people had with registration of
Swift Frame Processors (+load vs +initialize issues)

Docs were also updated to reflect that the macros should be used to
correctly initialize and register ObjC/Swift Frame Processors
2023-10-19 10:35:14 +02:00
Marc Rousavy
e845dc8397
Update .gitattributes 2023-10-18 11:30:01 +02:00
Marc Rousavy
b4960d1e5f
Update .gitattributes 2023-10-17 15:04:06 +02:00
Marc Rousavy
3b1d8353a5
chore: Add .gitattributes 2023-10-16 18:07:04 +02:00
Marc Rousavy
8884a1c3e4
docs: Update phrasing 2023-10-16 13:40:52 +02:00
Marc Rousavy
208d737e9d
docs: Update meta tags 2023-10-16 13:37:09 +02:00
Marc Rousavy
53475dc1f3
docs: Use wrong index again 2023-10-16 13:24:08 +02:00
Marc Rousavy
54871022f4
docs: Use correct index 2023-10-12 10:15:01 +02:00
Marc Rousavy
92c27b06ae Update DEVICES.mdx 2023-10-06 11:53:13 +02:00
Marc Rousavy
36e9e00930
docs: Add **Flash** documentation 2023-10-05 16:40:15 +02:00
Marc Rousavy
658695dca5
docs: Use smaller title on mobile (#1928) 2023-10-05 14:50:36 +02:00
Nate Krieger
b14958b1b0
docs: Fix closing xml tag for CodeScanner docs (#1918)
* add full list of supported codes to example and add closing xml tag

* Revert exhaustive code list in example

---------

Co-authored-by: Nate Krieger <nate.krieger@traxero.co>
2023-10-05 14:48:30 +02:00
Marc Rousavy
ffd64feee8 feat: Add enableCodeScanner to Expo Config Plugin 2023-10-05 11:06:38 +02:00
Marc Rousavy
59699929f4 fix: Use minSdkVersion of 26 again 2023-10-05 10:56:30 +02:00
Marc Rousavy
93019c37e6 docs: Update example 2023-10-04 13:00:23 +02:00
Marc Rousavy
889b37d063 docs: Update links 2023-10-04 12:57:30 +02:00
Marc Rousavy
5efaefee98 docs: Update QR Code references 2023-10-04 12:56:47 +02:00
Marc Rousavy
6640b72a00
feat: Code Scanner API (#1912)
* feat: CodeScanner JS API

* feat: iOS

* Use guard

* Format

* feat: Android base

* fix: Attach Surfaces

* Use isBusy var

* fix: Use separate Queue

* feat: Finish iOS types

* feat: Implement all other code types on Android

* fix: Call JS event

* fix: Pass codetypes on Android

* fix: iOS use Preview coordinate system

* docs: Add comments

* chore: Format code

* Update CameraView+AVCaptureSession.swift

* docs: Add Code Scanner docs

* docs: Update

* feat: Use lazily downloaded model on Android

* Revert changes in CameraPage

* Format

* fix: Fix empty QR codes

* Update README.md
2023-10-04 12:53:52 +02:00
Marc Rousavy
e9b39924d7 docs: Add "Pixel Formats" documentation page 2023-10-03 14:35:26 +02:00
Marc Rousavy
324e269173
fix: Set minSdkVersion to 23 (#1911)
* fix: Set `minSdkVersion` to 21

* sorry I meant 23
2023-10-03 13:52:42 +02:00
Mateusz Mędrek
bdd81cf2fb
chore: Improve native Frame Processor Plugin documentation (#1877) 2023-10-03 11:36:55 +02:00
Marc Rousavy
b24b1c808f docs: Fix links 2023-10-03 11:31:37 +02:00
Shiran Gabriel
12c2987b85
doc: Code fixes on saving & getting the photo in TAKING_PHOTOS.mdx (#1896)
code fixes on saving & getting the photo in TAKING_PHOTOS.mdx

- The variable path has been renamed to file, as camera.current.takePhoto() always returns a file
- CameraRoll.save() method has been updated to use file.path for saving the captured photo.
- fetch() method has been updated to use file.path on getting captured photo as blob
2023-10-03 11:20:41 +02:00
Marc Rousavy
554b7416b1 docs: Update minSdkVersion to 26 2023-10-03 11:04:36 +02:00
Marc Rousavy
39b9c908f9 docs: Fix b 2023-09-30 15:34:31 +02:00
Lihang Xu
94c05f9113
docs: Add Dynamsoft Document Normalizer to the frame processor plugins lists (#1331)
Update FRAME_PROCESSOR_PLUGIN_LIST.mdx

Add Dynamsoft Document Normalizer.

Co-authored-by: Marc Rousavy <me@mrousavy.com>
2023-09-30 15:33:08 +02:00
Yasin Torun
3a080901a8
docs: Add vision-camera-base64 plugin to list (#1411)
* docs: Add vision-camera-base64 plugin to list

* chore: Update text

* Update FRAME_PROCESSOR_PLUGIN_LIST.mdx

---------

Co-authored-by: Marc Rousavy <me@mrousavy.com>
Co-authored-by: Marc Rousavy <marcrousavy@hotmail.com>
2023-09-30 15:32:03 +02:00
Marc Rousavy
ce07750dea docs: Fix runAsync example 2023-09-30 12:12:43 +02:00
Marc Rousavy
5a98716f31 docs: Update link colors 2023-09-29 19:28:38 +02:00
Marc Rousavy
fd6d52f1de docs: Fix search by disabling contextual search 2023-09-29 19:18:00 +02:00