dynamsoft-barcode-reader-bundle 11.6.2100 → 11.6.3100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LEGAL.txt +1 -1
- package/README.html +33 -43
- package/README.md +33 -43
- package/dist/dbr.bundle.d.ts +100 -17
- package/dist/dbr.bundle.esm.js +2 -2
- package/dist/dbr.bundle.js +2 -2
- package/dist/dbr.bundle.mjs +2 -2
- package/dist/dbr.bundle.worker.js +2 -2
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread-with-pdf.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-with-pdf.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle.wasm +0 -0
- package/package.json +1 -2
- package/samples.url +1 -1
package/dist/dbr.bundle.d.ts
CHANGED
|
@@ -998,6 +998,7 @@ declare class CoreModule {
|
|
|
998
998
|
static get bSupportIRTModule(): number;
|
|
999
999
|
private static _versions;
|
|
1000
1000
|
static get versions(): any;
|
|
1001
|
+
static _isNoOnnx: boolean;
|
|
1001
1002
|
static _onLog: (message: string) => void;
|
|
1002
1003
|
static get _bDebug(): boolean;
|
|
1003
1004
|
static set _bDebug(value: boolean);
|
|
@@ -1479,7 +1480,6 @@ declare class CaptureVisionRouter {
|
|
|
1479
1480
|
#private;
|
|
1480
1481
|
static _onLog: (message: string) => void;
|
|
1481
1482
|
static _defaultTemplate: string;
|
|
1482
|
-
private static _isNoOnnx;
|
|
1483
1483
|
/**
|
|
1484
1484
|
* The maximum length of the longer side of the image to be processed. The default value is 2048 pixels in mobile devices and 4096 pixels in desktop browser.
|
|
1485
1485
|
*/
|
|
@@ -3515,6 +3515,15 @@ declare class Camera {
|
|
|
3515
3515
|
static _bReopenWhenChangeResolution: boolean;
|
|
3516
3516
|
_bTryAnotherCameraWhenFailToOpen: boolean;
|
|
3517
3517
|
_constraints4Fallback: MediaTrackConstraints | true;
|
|
3518
|
+
static _dynamsoftExports: any;
|
|
3519
|
+
/**
|
|
3520
|
+
* In the UI definition file, you can import SDK variables through this interface.
|
|
3521
|
+
*/
|
|
3522
|
+
dynamsoftExports: any;
|
|
3523
|
+
/**
|
|
3524
|
+
* You can use this interface to share variables between business logic and UI definition files.
|
|
3525
|
+
*/
|
|
3526
|
+
uiContext: any;
|
|
3518
3527
|
static _arrConstructors: CameraZsFunc[];
|
|
3519
3528
|
static _arrOnOpen: CameraZsFunc[];
|
|
3520
3529
|
static _arrBeforeClose: CameraZsFunc[];
|
|
@@ -3539,6 +3548,12 @@ declare class Camera {
|
|
|
3539
3548
|
* If `value` is a falsy value, `coreShell` is used as `ui`.
|
|
3540
3549
|
**/
|
|
3541
3550
|
set ui(value: HTMLElement | DocumentFragment | string | undefined);
|
|
3551
|
+
/**
|
|
3552
|
+
* Compare to `camera.ui = xxx`,
|
|
3553
|
+
* 1. accept url string as value
|
|
3554
|
+
* 2. accept nested tag `<UIInclude src='xxx'>`
|
|
3555
|
+
*/
|
|
3556
|
+
setUIAsync(value: HTMLElement | DocumentFragment | string | undefined): Promise<void>;
|
|
3542
3557
|
/**
|
|
3543
3558
|
* "closed" | "opening" | "opened" | "paused" | "closing"
|
|
3544
3559
|
*/
|
|
@@ -3916,6 +3931,18 @@ declare const stringToHtml: (str: string, config?: {
|
|
|
3916
3931
|
internalCss2Blob: boolean;
|
|
3917
3932
|
insertInternalCss2ExistedSheet?: boolean;
|
|
3918
3933
|
}) => Node;
|
|
3934
|
+
/**
|
|
3935
|
+
* Return `Element` if possible, otherwise return `DocumentFragment`.
|
|
3936
|
+
*
|
|
3937
|
+
* Compare to `stringToHtml`,
|
|
3938
|
+
* 1. accept url string as value
|
|
3939
|
+
* 2. accept nested tag `<UIInclude src='xxx'>`
|
|
3940
|
+
*/
|
|
3941
|
+
declare const toHtmlAsync: (value: HTMLElement | DocumentFragment | string, config?: {
|
|
3942
|
+
inlineScript2Blob?: boolean;
|
|
3943
|
+
internalCss2Blob: boolean;
|
|
3944
|
+
insertInternalCss2ExistedSheet?: boolean;
|
|
3945
|
+
}) => Promise<Node>;
|
|
3919
3946
|
|
|
3920
3947
|
declare class FramePipeline {
|
|
3921
3948
|
camera?: Camera;
|
|
@@ -4164,11 +4191,11 @@ declare namespace Camera {
|
|
|
4164
4191
|
isBufferEmpty(): boolean;
|
|
4165
4192
|
startFetching(): void;
|
|
4166
4193
|
_pixelFormat: number;
|
|
4167
|
-
getPixelFormat():
|
|
4168
|
-
setPixelFormat(format:
|
|
4194
|
+
getPixelFormat(): EnumImagePixelFormat;
|
|
4195
|
+
setPixelFormat(format: EnumImagePixelFormat): void;
|
|
4169
4196
|
_colourChannelUsageType: number;
|
|
4170
|
-
setColourChannelUsageType(format:
|
|
4171
|
-
getColourChannelUsageType():
|
|
4197
|
+
setColourChannelUsageType(format: EnumColourChannelUsageType): void;
|
|
4198
|
+
getColourChannelUsageType(): EnumColourChannelUsageType;
|
|
4172
4199
|
setScanRegion(region?: {
|
|
4173
4200
|
x: number;
|
|
4174
4201
|
y: number;
|
|
@@ -4575,7 +4602,7 @@ declare class ImageDrawingItem extends DrawingItem {
|
|
|
4575
4602
|
width: number;
|
|
4576
4603
|
height: number;
|
|
4577
4604
|
}, maintainAspectRatio: boolean, drawingStyleId?: any);
|
|
4578
|
-
getImage():
|
|
4605
|
+
getImage(): HTMLCanvasElement | HTMLImageElement | HTMLVideoElement;
|
|
4579
4606
|
setImage(image: {
|
|
4580
4607
|
bytes: Uint8Array;
|
|
4581
4608
|
width: number;
|
|
@@ -4643,16 +4670,6 @@ declare enum EnumEnhancedFeatures {
|
|
|
4643
4670
|
*/
|
|
4644
4671
|
EF_TAP_TO_FOCUS = 64
|
|
4645
4672
|
}
|
|
4646
|
-
declare enum EnumPixelFormat {
|
|
4647
|
-
GREY = "grey",
|
|
4648
|
-
GREY32 = "grey32",
|
|
4649
|
-
RGBA = "rgba",
|
|
4650
|
-
RBGA = "rbga",
|
|
4651
|
-
GRBA = "grba",
|
|
4652
|
-
GBRA = "gbra",
|
|
4653
|
-
BRGA = "brga",
|
|
4654
|
-
BGRA = "bgra"
|
|
4655
|
-
}
|
|
4656
4673
|
interface Resolution {
|
|
4657
4674
|
width: number;
|
|
4658
4675
|
height: number;
|
|
@@ -4718,7 +4735,73 @@ interface Note {
|
|
|
4718
4735
|
/** The content of the note, can be of any type. */
|
|
4719
4736
|
content: any;
|
|
4720
4737
|
}
|
|
4738
|
+
declare enum EnumColourChannelUsageType {
|
|
4739
|
+
/**
|
|
4740
|
+
* Automatically determines how color channels are used.
|
|
4741
|
+
* This option allows the SDK to choose the most appropriate channel usage mode dynamically.
|
|
4742
|
+
*/
|
|
4743
|
+
CCUT_AUTO = 0,
|
|
4744
|
+
/**
|
|
4745
|
+
* Utilizes all available color channels in the image for processing.
|
|
4746
|
+
* This mode is ideal for scenarios where full color information is necessary for accurate analysis or processing.
|
|
4747
|
+
*/
|
|
4748
|
+
CCUT_FULL_CHANNEL = 1,
|
|
4749
|
+
/**
|
|
4750
|
+
* Processes images using only the Y (luminance) channel, specifically in NV21 format images.
|
|
4751
|
+
* This mode is useful for operations that require analyzing the brightness or intensity of the image while ignoring color information.
|
|
4752
|
+
*/
|
|
4753
|
+
CCUT_Y_CHANNEL_ONLY = 2,
|
|
4754
|
+
/**
|
|
4755
|
+
* Uses only the red color channel for processing in RGB images.
|
|
4756
|
+
* This mode is useful for tasks that require analysis or manipulation based on the red component of the image.
|
|
4757
|
+
*/
|
|
4758
|
+
CCUT_RGB_R_CHANNEL_ONLY = 3,
|
|
4759
|
+
/**
|
|
4760
|
+
* Uses only the green color channel for processing in RGB images.
|
|
4761
|
+
* This mode is useful for tasks where the green component is most relevant.
|
|
4762
|
+
*/
|
|
4763
|
+
CCUT_RGB_G_CHANNEL_ONLY = 4,
|
|
4764
|
+
/**
|
|
4765
|
+
* Uses only the blue color channel for processing in RGB images.
|
|
4766
|
+
* This mode is useful for tasks where the blue component is of particular interest.
|
|
4767
|
+
*/
|
|
4768
|
+
CCUT_RGB_B_CHANNEL_ONLY = 5
|
|
4769
|
+
}
|
|
4770
|
+
declare enum EnumImagePixelFormat {
|
|
4771
|
+
/** Binary format representing images with two colors: 0 for black and 1 for white. */
|
|
4772
|
+
IPF_BINARY = 0,
|
|
4773
|
+
/** Inverted binary format with 0 for white and 1 for black. */
|
|
4774
|
+
IPF_BINARYINVERTED = 1,
|
|
4775
|
+
/** Grayscale format with 8 bits per pixel, allowing for 256 shades of gray. */
|
|
4776
|
+
IPF_GRAYSCALED = 2,
|
|
4777
|
+
/** NV21 format, a YUV planar format used commonly in camera preview and video encoding, with 8-bit Y followed by interleaved V/U values. */
|
|
4778
|
+
IPF_NV21 = 3,
|
|
4779
|
+
/** RGB format with 5 bits for red and blue, and 6 bits for green, stored in a 16-bit structure. */
|
|
4780
|
+
IPF_RGB_565 = 4,
|
|
4781
|
+
/** Similar to RGB_565 but with 5 bits for each color channel, providing uniform color depth across channels in a 16-bit structure. */
|
|
4782
|
+
IPF_RGB_555 = 5,
|
|
4783
|
+
/** Standard 24-bit RGB format with 8 bits per channel. */
|
|
4784
|
+
IPF_RGB_888 = 6,
|
|
4785
|
+
/** 32-bit ARGB format with 8 bits per channel, including an alpha channel for transparency. */
|
|
4786
|
+
IPF_ARGB_8888 = 7,
|
|
4787
|
+
/** High-depth 48-bit RGB format with 16 bits per channel. */
|
|
4788
|
+
IPF_RGB_161616 = 8,
|
|
4789
|
+
/** 64-bit ARGB format with 16 bits per channel, including an alpha channel. */
|
|
4790
|
+
IPF_ARGB_16161616 = 9,
|
|
4791
|
+
/** 32-bit ABGR format with 8 bits per channel, storing color information in reverse order of ARGB_8888. */
|
|
4792
|
+
IPF_ABGR_8888 = 10,
|
|
4793
|
+
/** 64-bit ABGR format with 16 bits per channel, providing high color depth and transparency in the reverse order of ARGB_16161616. */
|
|
4794
|
+
IPF_ABGR_16161616 = 11,
|
|
4795
|
+
/** 24-bit BGR format with 8 bits per channel, where the blue channel is stored first. */
|
|
4796
|
+
IPF_BGR_888 = 12,
|
|
4797
|
+
/** Binary format with 8 bits per pixel, enabling more detailed binary images by allowing for antialiasing or other binary representations. */
|
|
4798
|
+
IPF_BINARY_8 = 13,
|
|
4799
|
+
/** NV12 format, similar to NV21 but with the U and V color components swapped. */
|
|
4800
|
+
IPF_NV12 = 14,
|
|
4801
|
+
/** Inverted binary format with 8 bits per pixel. */
|
|
4802
|
+
IPF_BINARY_8_INVERTED = 15
|
|
4803
|
+
}
|
|
4721
4804
|
|
|
4722
|
-
export { Beep, Camera, CameraEnhancer, CameraEnhancerModule, CameraView, DrawingItem, DrawingLayer, DrawingStyleManager, EnumDrawingItemMediaType, EnumDrawingItemState, EnumEnhancedFeatures,
|
|
4805
|
+
export { Beep, Camera, CameraEnhancer, CameraEnhancerModule, CameraView, DrawingItem, DrawingLayer, DrawingStyleManager, EnumDrawingItemMediaType, EnumDrawingItemState, EnumEnhancedFeatures, Feedback, FramePipeline, ImageDrawingItem, LineDrawingItem, QuadDrawingItem, RectDrawingItem, TextDrawingItem, _bufferToCanvas, _distToSegment, _isPointInPolygon, beep, stringToHtml, toHtmlAsync, vibrate };
|
|
4723
4806
|
export type { CameraInfo, CameraPreset, CameraStatus, CameraZsFunc, DCEFrame, DMMoreMediaTrackCapabilities, DrawingStyle, Note, PlayCallbackInfo, Resolution, TipConfig, VideoDeviceInfo, VideoFrameTag };
|
|
4724
4807
|
|