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
Copy file name to clipboardExpand all lines: programming/javascript/api-reference/camera-control.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1121,7 +1121,7 @@ cameraEnhancer.setZoom({
1121
1121
1122
1122
Turns off the camera's torch (flashlight) mode.
1123
1123
1124
-
> This method should be called when the camera is turned on. Note that it only works with Chromium-based browsers such as Edge and Chrome on Windows or Android. Other browsers such as Firefox or Safari are not supported. Note that all browsers on iOS (including Chrome) use WebKit as the rendering engine and are not supported.
1124
+
> This method should be called when the camera is turned on. Note that it only works with Chromium-based browsers such as Edge and Chrome on Windows or Android. Other browsers such as Firefox or Safari are not supported.
|[convertToPageCoordinates](#convertToPageCoordinates)| Converts coordinates from the video's coordinate system to coordinates relative to the whole page. |
18
-
|[convertToClientCoordinates](#convertToClientCoordinates)| Converts coordinates from the video's coordinate system to coordinates relative to the viewport. |
19
-
|[setCameraView](#setCameraView)| Sets the `CameraView` instance to be used with the `CameraEnhancer`. |
20
-
|[getCameraView](#getCameraView)| Retrieves the current `CameraView` instance associated with the `CameraEnhancer`. |
21
-
|[getVideoEl](#getVideoEl)| Retrieves the HTMLVideoElement used by the `CameraEnhancer` for displaying the camera feed. |
|[convertToScanRegionCoordinates](#convertToScanRegionCoordinates)| Converts coordinates from the video's coordinate system to coordinates relative to the scan region. |
18
+
|[convertToPageCoordinates](#convertToPageCoordinates)| Converts coordinates from the video's coordinate system to coordinates relative to the whole page. |
19
+
|[convertToClientCoordinates](#convertToClientCoordinates)| Converts coordinates from the video's coordinate system to coordinates relative to the viewport. |
20
+
|[setCameraView](#setCameraView)| Sets the `CameraView` instance to be used with the `CameraEnhancer`. |
21
+
|[getCameraView](#getCameraView)| Retrieves the current `CameraView` instance associated with the `CameraEnhancer`. |
22
+
|[getVideoEl](#getVideoEl)| Retrieves the HTMLVideoElement used by the `CameraEnhancer` for displaying the camera feed. |
23
+
24
+
## convertToScanRegionCoordinates
25
+
26
+
Converts coordinates from the video's coordinate system to coordinates relative to the scan region.
27
+
28
+
This is useful for overlaying HTML elements on top of specific points in the video, aligning with the page's layout.
0 commit comments