You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Initializes the Camera with a mock camera configuration.
11
+
* This is useful for testing purposes without requiring a physical camera.
12
+
*
13
+
* The mock camera will display a static image as the camera feed.
14
+
* Make sure to replace the image path with a valid one in your project.
15
+
*
16
+
* `MockCameraResourceProvider` - delegate that used for feeding camera with fake frames.
17
+
* `getFrameImagePath()` - should return path to the absolute path to the `File` in format without `file://` schema and will be used as detection frame.
18
+
* `getCapturedImagePath()` - should return path to the absolute path to the `File` in format without `file://` schema and will be used as captured image.
19
+
* `showDebugImage` - if true, the mock camera will show `getFrameImagePath` file as image preview.
20
+
* `tryHideFinderView` - if true, the finder view will be hidden.
21
+
* `tryHidePolygonView` - if true, the ar overlay polygon view will be hidden.
22
+
* `delayBetweenFramesMs` - delay between frames in milliseconds, used to simulate a camera feed.
23
+
* `forceImageUploadOnSamePath` - if true, the mock camera will reload the image from the file system even if the path has not changed. This is useful for testing scenarios where the image file might be updated.
24
+
* `imageFileReadAttemptLimit` - the number of attempts to read the image file. Helps to handle cases where the file might not be immediately available.
25
+
* `imageFileReadAttemptDelay` - delay between attempts to read the image file. Helps to avoid busy-waiting and allows the file system to stabilize if the file is being written to.
0 commit comments