Release Notes - JavaScript 2.x
2.3.2 (03/28/2022)
- Fixed bug in API
setVideoFit()
so that it works correctly with canvases created byaddScanRegionOverlayCanvas()
.
2.3.1 (03/21/2022)
Version Highlights
- The same camera enhancer instance can now be used by multiple products. (JS edition only)
- Added photo capturing features. You can now capture high-resolution images using the library. (Mobile editions only)
- Added device feedback features. You can now trigger vibrations or beep sounds of mobile devices. (Mobile editions only)
Changelog
New
- Added method
getResolutions()
to test and return supported resolutions by the current active camera. - Added property
frameColorMode
to control the color mode of the resulting image generated by the methodgetFrame()
. - Added event
frameAddedToBuffer
which is triggered each time a frame is added to the buffer. - Added method
toCanvas()
toDCEFrame
objects to allow the image data to be converted to a canvas at runtime.
2.1.0 (01/20/2022)
Version Highlights
- Added class scan region configuration APIs and
RegionDefinition
for users to set the region of interest. The frames will be cropped based on the scan region to accelerate further frame processing.
Changelog
New
- Added methods
getScanRegion()
andsetScanRegion()
to control which part of the original video frames are cropped when acquiring frames for a 3rd party application to use. - Added method
setScanRegionMaskStyle()
to set the style of the indicator for the scan region. - Added method
getVisibleRegion()
to return which part of the original video frames are currently visible in the video element. - Added methods
startFetchingLoop()
,stopFetchingLoop()
,isFetchingLoopStarted()
andgetFrameFromBuffer()
plus propertiesmaxNumberOfFramesInbuffer
,numberOfFramesInBuffer
andloopInterval
to control the continuous fetching of frames into the buffer. - Added methods
getFocus()
andsetFocus()
to control the camera focus. - Added methods
setVideoFit()
andgetVideoFit()
to control the fitting style of the video element. - Added the feature to display a view decorator with the methods
getViewDecorator()
andsetViewDecorator()
. Also, added methodssetViewDecoratorLineWidth()
,setViewDecoratorStrokeStyle()
,setViewDecoratorFillStyle()
andsetViewDecoratorMaskFillStyle()
to control the style of the view decorator. - Added method
addScanRegionOverlayCanvas()
to return a canvas above the video stream for users to draw on. - Added property
singelFrameMode
to handle the situation where no camera is available. - Added property
ifSkipCameraInspection
to skip camera inspection upon initialization to save time. - Added property
ifSaveLastUsedCamera
to keep track of last used camera. - Added methods
on()
andoff()
to control event binding and unbinding. - Added method
dispose()
to releases all resources used by a CameraEnhancer instance.
2.0.3 (10/29/2021)
- Fixed a bug that caused compiler errors in frameworks such as Angular, React, and Vue.
2.0.1 (10/26/2021)
- Improved the frame buffer mechanism.
2.0.0 (10/20/2021)
- Well-wrapped APIs to control cameras based on the MediaDevices interface.
- Automatic selection of the optimal camera to use.
- Built-in user interface for fast interaction.
- Built-in compatibility mode, suitable for scenes where no camera is available.
- Built-in frame buffer mechanism to save time for the application(s) making use of the video frames.
- Flexible frame acquisition methods, allowing automatic or manual interaction.