Dynamsoft Panorama - API Reference
|
Defines a class that provides functions for Panorama stitching. More...
Public Member Functions | |
PanoramaStitcher () | |
Default constructor More... | |
void | Release () |
Releases an instance of Dynamsoft Panorama Stitcher. More... | |
EnumErrorCode | InitRuntimeSettingsWithString (string jsonSetting, out string errorMessage) |
Initializes Panorama settings with the parameters obtained from a JSON string. More... | |
EnumErrorCode | SetResultCallback (CB_PanoramaResult cb, IntPtr pUser) |
Sets callback function to process panorama result, including stitched image and barcodes. More... | |
EnumErrorCode | SetErrorCodeCallback (CB_PanoramaErrorCode cb, IntPtr pUser) |
Sets callback function to process errors generated during image stitching. More... | |
DPS_RuntimeSettings | GetRuntimeSettings () |
Gets current settings and saves them into a struct. More... | |
EnumErrorCode | UpdateRuntimeSettings (DPS_RuntimeSettings pSetting, out string errorMsg) |
Updates runtime settings with a given struct. More... | |
string | OutputSettingsToString () |
Outputs runtime settings to a string. More... | |
EnumErrorCode | SetBlockImgSavePath (string path) |
Set the save path of small block images. More... | |
Initialization Functions | |
EnumErrorCode | InitLicense (string keyWin) |
Reads product key and activates the SDK. More... | |
EnumErrorCode | InitLicenseFromServer (string licenseServer, string keyWin) |
Initializes the license and connections to the specified server for online verification. More... | |
EnumErrorCode | InitLicenseFromLicenseContent (string keyWin, string licenseContent) |
Initializes the license and connects to the specified server for online verification. More... | |
string | OutputLicenseToString () |
Outputs the license content as an encrypted string from the license server to be used for offline license verification. More... | |
Stitching Functions | |
int | StartPanoramaStitchingByFile () |
Starts threads to manage images reading from file, this function should be used with AppendNewFrameByFile Function. More... | |
int | StartPanoramaStitchingByBuffer (int width, int height, int stride, EnumImagePixelFormat format) |
Starts threads to manage images reading from buffer, this function should be used with AppendNewFrameByBuffer Function. More... | |
int | AppendNewFrameByFile (string fileName, int isVistaImg) |
Appends a new frame from a file to the inner frame queue. More... | |
int | AppendNewFrameByBuffer (IntPtr pBuffer, int isVistaImg) |
Appends a new frame image buffer from a file to the inner frame queue. More... | |
void | WaitForFinishStitching () |
Waits for finishing stitching all frames in the inner frame queue. More... | |
void | StopPanoramaStitching () |
Stops stitching immediately, avoid stitching the remaining frames in the inner frame queue. More... | |
Result Functions | |
PanoramaResult [] | GetFinalResults () |
Gets the image and barcodes results. More... | |
RunningState | GetRunningState () |
Gets running state of Panorama program. More... | |
Bitmap | GetCompleteResultImage (PanoramaResult panoramaResult) |
Gets complete stitched image from block-images. More... | |
Defines a class that provides functions for Panorama stitching.
|
inline |
Default constructor
|
inline |
Appends a new frame image buffer from a file to the inner frame queue.
pBuffer | The array of bytes which contain the image data. |
isVistaImg | A parameter defining whether is a image captured from long-distance or not. |
|
inline |
Appends a new frame from a file to the inner frame queue.
fileName | A string defining the file name. |
isVistaImg | A parameter defining whether is a image captured from long-distance or not. |
|
inline |
Gets complete stitched image from block-images.
|
inline |
Gets the image and barcodes results.
|
inline |
Gets running state of Panorama program.
|
inline |
Gets current settings and saves them into a struct.
|
inline |
Reads product key and activates the SDK.
keyWin | The license key of Barcode Reader. |
|
inline |
Initializes the license and connects to the specified server for online verification.
keyWin | The license key. |
licenseContent | An encrypted string representing the license content (quota, expiration date, barcode type, etc.) obtained from the method OutputLicenseToString(). |
|
inline |
Initializes the license and connections to the specified server for online verification.
licenseServer | The URL of the license server. |
keyWin | The license key. |
|
inline |
Initializes Panorama settings with the parameters obtained from a JSON string.
jsonSetting | A JSON string that represents the content of the settings. |
errorMessage | The error message string. |
|
inline |
Outputs the license content as an encrypted string from the license server to be used for offline license verification.
|
inline |
Outputs runtime settings to a string.
|
inline |
|
inline |
Set the save path of small block images.
path | The save path of small block images. |
|
inline |
Sets callback function to process errors generated during image stitching.
cb | Callback function. |
pUser | Customized arguments passed to your function. |
|
inline |
Sets callback function to process panorama result, including stitched image and barcodes.
cb | Callback function. |
pUser | Customized arguments passed to your function. |
|
inline |
Starts threads to manage images reading from buffer, this function should be used with AppendNewFrameByBuffer Function.
width | The width of the frame image in pixels. |
height | The height of the frame image in pixels. |
stride | iStride The stride (or scan width) of the frame image. |
format | format The image pixel format used in the image byte array. |
|
inline |
Starts threads to manage images reading from file, this function should be used with AppendNewFrameByFile Function.
|
inline |
Stops stitching immediately, avoid stitching the remaining frames in the inner frame queue.
|
inline |
Updates runtime settings with a given struct.
pSetting | The struct of template settings. |
errorMsg | The error message string. |
|
inline |
Waits for finishing stitching all frames in the inner frame queue.