Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dynamsoft-camera-enhancer

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamsoft-camera-enhancer - npm Package Compare versions

Comparing version 3.2.0-iv-202211222105 to 3.2.0

LICENSE

46

dist/types/class/cameraenhancer.d.ts

@@ -39,3 +39,3 @@ import { PlayCallbackInfo } from '../interface/playcallbackinfo';

* ```js
* Dynamsoft.DCE.CameraEnhancer.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.2.0-iv-202211222105/dist/";
* Dynamsoft.DCE.CameraEnhancer.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.2.0/dist/";
* ```

@@ -52,2 +52,6 @@ */

static isDCEFrame(value: any): boolean;
static testCameraAccess(): Promise<{
ok: boolean;
message: string;
}>;
private _maxCvsSideLength;

@@ -65,3 +69,3 @@ private _defaultMaxCvsSideLength;

* ```js
* Dynamsoft.DCE.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.2.0-iv-202211222105/dist/dce.ui.html";
* Dynamsoft.DCE.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.2.0/dist/dce.ui.html";
* let pEnhancer = null;

@@ -179,2 +183,4 @@ * (async()=>{

private _tapDoFocus;
private _touchMoved;
private _touchMoveEvent;
private _recordedStates;

@@ -311,4 +317,6 @@ /**

private _drawingLayerOfTip;
private _autoUpdateTip;
onSuggestedTipChanged: (occasion: string, message: string) => void;
private _tipStyleId;
private _tipArgs;
private _hideTipTimeoutId;
onTipSuggested: (occasion: string, message: string) => void;
/**

@@ -369,3 +377,3 @@ * Set the scan region.

*/
setViewDecorator(type: string | string[], area: Area): void;
setViewDecorator(type: "rectangle" | "focus" | "crossline" | "crosshair" | string[], area: Area): void;
/**

@@ -382,3 +390,3 @@ * Return the view decorator type, area and the decorator itself in a object.

*/
setViewDecoratorLineWidth(type: string, width: number): void;
setViewDecoratorLineWidth(type: "rectangle" | "focus" | "crossline" | "crosshair", width: number): void;
/**

@@ -388,3 +396,3 @@ * Set the stroke style for drawing the view decorator.

*/
setViewDecoratorStrokeStyle(type: string, style: string): void;
setViewDecoratorStrokeStyle(type: "rectangle" | "focus" | "crossline" | "crosshair", style: string): void;
/**

@@ -394,3 +402,3 @@ * Set the fill style for drawing the view decorator.

*/
setViewDecoratorFillStyle(type: string, style: string): void;
setViewDecoratorFillStyle(type: "rectangle" | "focus", style: string): void;
/**

@@ -400,3 +408,3 @@ * Set the fill style for drawing the mask for the view decorator.

*/
setViewDecoratorMaskFillStyle(type: string, style: string): void;
setViewDecoratorMaskFillStyle(type: "rectangle" | "focus", style: string): void;
/**

@@ -879,2 +887,3 @@ * Might be called when:

getFrameRate(): number;
private _setFocus;
/**

@@ -889,9 +898,11 @@ * Adjusts the focus distance. Only available in Chrome and Edge.

* @category Camera Settings
* @deprecated
*/
private _setFocus;
setFocus(settings: string | {
mode: string;
distance?: number;
area?: {
} | {
mode: "manual";
distance: number;
} | {
mode: "manual";
area: {
centerPoint: {

@@ -920,3 +931,3 @@ x: string;

private _setLocalFocus;
enableTapToFocus(): void;
enableTapToFocus(): Promise<void>;
disableTapToFocus(): void;

@@ -1000,2 +1011,3 @@ isTapToFocusEnabled(): boolean;

getFrameFromBuffer(index?: number): DCEFrame;
clearFrameBuffer(): void;
/**

@@ -1018,3 +1030,3 @@ * Force lose webgl context.

_createDrawingLayer(drawingLayerId?: number): import("./drawinglayer").default;
deleteDrwaingLayer(drawingLayerId: number): void;
deleteDrawingLayer(drawingLayerId: number): void;
createDrawingLayer(): import("./drawinglayer").default;

@@ -1029,6 +1041,6 @@ getDrawingLayer(drawingLayerId: number): import("./drawinglayer").default;

clearDrawingLayers(): void;
showTip(x: number, y: number, width: number, initialMessage?: string, autoShowSuggestedTip?: boolean): void;
showTip(x: number, y: number, width: number, initialMessage?: string, duration?: number, autoShowSuggestedTip?: boolean): void;
hideTip(): void;
updateTipMessage(message: string): void;
changeSuggestedTip(occasion: string, message: string): void;
suggestTip(occasion: string, message: string): void;
private _controler;

@@ -1035,0 +1047,0 @@ _createControler(): Controler;

@@ -14,3 +14,3 @@ import DrawingLayer from "./drawinglayer";

createDrawingLayer(baseCvs: HTMLCanvasElement, drawingLayerId?: number): DrawingLayer;
deleteDrwaingLayer(drawingLayerId: number): void;
deleteDrawingLayer(drawingLayerId: number): void;
clearDrawingLayers(): void;

@@ -17,0 +17,0 @@ getDrawingLayer(drawingLayerId: number): DrawingLayer;

{
"name": "dynamsoft-camera-enhancer",
"version": "3.2.0-iv-202211222105",
"version": "3.2.0",
"description": "Allow your website to easily control cameras on desktop and mobile devices.",

@@ -46,3 +46,3 @@ "private": false,

},
"license": "",
"license": "SEE LICENSE IN LICENSE",
"repository": {

@@ -71,4 +71,4 @@ "type": "git",

"detect-browser-node-ssr": "^2.0.0",
"dm-browser-info": "http://npm.dynamsoftwebtwain.com/dm-browser-info/-/dm-browser-info-1.0.7.tgz",
"dm-curscript-path": "http://npm.dynamsoftwebtwain.com/dm-curscript-path/-/dm-curscript-path-1.0.3.tgz",
"@scannerproxy/browser-info": "^1.0.7",
"@scannerproxy/curscript-path": "^1.0.3",
"inline-css": "^4.0.1",

@@ -75,0 +75,0 @@ "markdown-styles": "^3.2.0",

@@ -10,2 +10,3 @@ # Dynamsoft Camera Enhancer for Your Website

> See how Dynamsoft Camera Enhancer helps in camera control and video recognition:
>
> - **Barcode scanning from video stream**: check [Dynamsoft Barcode Reader JS User Guide](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/?ver=latest)

@@ -16,13 +17,22 @@ > - **MRZ scanning and OCR from video stream**: check [Dynamsoft Label Recognizer JS User Guide](https://www.dynamsoft.com/label-recognition/programming/javascript/user-guide.html?ver=latest&utm_source=dceguide)

**Table of Contents**
- [Dynamsoft Camera Enhancer for Your Website](#dynamsoft-camera-enhancer-for-your-website)
- [Getting Started](#getting-started)
- [Include the SDK](#include-the-sdk)
- [Use a CDN](#use-a-cdn)
- [Host the SDK yourself](#host-the-sdk-yourself)
- [Interact with the SDK](#interact-with-the-sdk)
- [Create a `CameraEnhancer` object](#create-a-cameraenhancer-object)
- [Configure the `CameraEnhancer` object](#configure-the-cameraenhancer-object)
- [Customize the UI](#customize-the-ui)
- [Hosting the SDK](#hosting-the-sdk)
- [Step One: Deploy the dist folder](#step-one-deploy-the-dist-folder)
- [Step Two: Configure the Server](#step-two-configure-the-server)
- [Step Three: Include the SDK from the server](#step-three-include-the-sdk-from-the-server)
- [FAQ](#faq)
- [Can I open the web page directly from the hard drive?](#can-i-open-the-web-page-directly-from-the-hard-drive)
- [Why can't I use my camera?](#why-cant-i-use-my-camera)
- [API Documentation](#api-documentation)
- [Release Notes](#release-notes)
- [Next Steps](#next-steps)
* [Getting Started](#getting-started)
* [Include the SDK](#include-the-sdk)
* [Interact with the SDK](#interact-with-the-sdk)
* [Hosting the SDK](#hosting-the-sdk)
* [FAQ](#faq)
* [API Documentation](#api-documentation)
* [Release Notes](#release-notes)
* [Next Steps](#next-steps)
## Getting Started

@@ -36,14 +46,16 @@

* jsDelivr
- jsDelivr
```html
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.2.0-iv-202211222105/dist/dce.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer/dist/dce.js"></script>
```
* UNPKG
- UNPKG
```html
<script src="https://unpkg.com/dynamsoft-camera-enhancer@3.2.0-iv-202211222105/dist/dce.js"></script>
<script src="https://unpkg.com/dynamsoft-camera-enhancer/dist/dce.js"></script>
```
> In some rare cases, you might not be able to access the CDN. If this happens, you can use (https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.2.0/dist/dce.js)[https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.2.0/dist/dce.js]
#### Host the SDK yourself

@@ -55,7 +67,7 @@

* From the website
- From the website
[Download the JavaScript Package](https://www.dynamsoft.com/camera-enhancer/downloads/1000021-confirmation/?utm_source=npm)
* yarn
- yarn

@@ -66,3 +78,3 @@ ```cmd

* npm
- npm

@@ -76,3 +88,3 @@ ```cmd

```html
<script src="/dce-js-3.1.0/dist/dce.js"></script>
<script src="/dce-js-3.2.0/dist/dce.js"></script>
```

@@ -184,3 +196,3 @@

> By default, only 4 hard-coded resolutions (3840 x 2160, 1920 x 1080, 1280 x 720, 640 x 480), are populated as options. You can show a customized set of options by hardcoding them.
> By default, only 3 hard-coded resolutions (1920 x 1080, 1280 x 720, 640 x 480), are populated as options. You can show a customized set of options by hardcoding them.

@@ -187,0 +199,0 @@ ```html

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc