VG3 Software Manual
Software Update Log
Software Introduction
VisionGroup3 Vision Software Platform
Menu Bar
Quick Options Preview
Flow Tree and Global Flow Tree
Function Tree
Software Version Description
Function Addition Tree
Function Information
Image Display Area
AI Model Tree
Global Variable Tree
Camera
Coordinate System Tree
Hardware Communication Configuration
Usage and Troubleshooting of Various Communication Simulation Software
Hardware Management Device Connection Test
String Monitor Operation
Digital IO Monitor Operation
Register Monitor Operation
Image Processing
Image Acquisition and Display
Camera Image Acquisition
Camera Label Image Acquisition
Display Image
Window Clear
Read Camera Image
Video Processing
Video Reading
Video Download
Video Acquisition
Video Generation
Color Detection
Color Image Cropping
Color Selection
KNN Color Selection
Color Conversion
Block Sequence Detection
Color Blob Detection
Category Color
Image Preprocessing
Image Cropping
Image Merge
Image Ring Unfold
Image Filtering
Image Transformation
Camera Distortion Calibration
Perspective Distortion Calibration
Image Correction
Region Processing
Geometry to Region
Region Transformation
Region Screening
Region Operation
Blob Region
Region Creation
Region Generation
Simple Detection
Blob Detection
Blob Multi-Region Detection
Image Contrast
Image Brightness
Line Burr Detection
Circular Burr Detection
Pixel Difference Detection
Positioning and Measurement
Matching
Feature Matching
Optimized Feature Matching
Single Target Template Matching
Multi-Template Feature Matching
Geometric Extraction
Extract Line
Extract Circle
Extract Arc
Extract Ellipse
Edge Extraction
Extract Parallel Lines
Line Intersection
Extract Quadrilateral
Point-Line Caliper
Line-Line Caliper
Edge Distance Counting
Measurement Calibration
Farthest Nearest Point Extraction
Geometric Calculation
Custom Point
Custom Line
Custom Circle
Custom Pose
Custom Rotated Rectangle
Custom Coordinate System
Custom Rectangle Array
Line-Line Intersection
Line-Line Angle
Angle Bisector
Line-Line Distance
Point-Point Distance
Point-Line Distance
Point-Circle Distance
Point-Circle Tangent
Line-Circle Distance
Line-Circle Intersection
Circle-Circle Intersection
Position Correction
Point + Angle Correction
Two-Point Position Correction
Two-Line Position Correction
Positioning Guide
Camera Calibration
Long Radius Calibration (Auto)
Long Radius Calibration (Manual)
Camera Simple Calibration
N-Point Calibration
Calibration Transfer
Calibration Verification
Calibration Reference
Calibration Calculation
Calibration Conversion
Camera Calibration Conversion
Mapping
Mapping Reference
Mapping Conversion
Mechanical Transfer
UVW Calculation
Learn Reference Target
Single Camera Pick
Single Camera Pick (Eye-in-Hand)
Single Camera Pick and Place
Single Camera Correction
Multi-Camera Correction
Dual Camera Alignment
Mechanical Point Alignment
Multi-Camera Alignment
Mechanical Point Alignment (Weight)
Multi-Region Alignment
Identification Tools
Code Reading Tool
1D Barcode Quick Recognition
2D Barcode Quick Recognition
All Type Code Reading
Barcode Grading (AI)
Character Recognition
Matching Character Recognition
Deep Learning
Detection
Object Detection (AI)
Rotated Object Detection (AI)
Human Keypoint Detection[AI]
Segmentation
Image Segmentation AI
Classification
Image Classification[AI]
Recognition
Character Recognition[AI]
Auxiliary Tools
AI-Assisted Annotation
Auxiliary Tools
Control Statements
Flow Unit
Conditional Detection
Complex Condition Detection
Loop Detection
Break
Continue
Combo Box
Flow Delay
Jump Module
Flow Reset
Stop Software
Start Detection
Pause Software
Process Trigger
Async Flow Trigger
Recipe switching
Loop Position Filtering
System Tool
DEBUG INFO
System Time
System Info
Sequence Tools
Data Sequence
Data Sequence Calculation
Continuous state change
Continuous status confirmation
Spatial Displacement Change
Sequence Action
Mathematics and Data
Logical relationship
Arithmetic Operations
Relational Judgment
Absolute Value
Relative Value
Trigonometric Functions
Integer Bitwise Operation
Data Processing
Data Summary
Label Filters
Rotated Label Filtering
Multi-ROI Rotated Label Filtering
Data Calculation
Lua Script Tool
Variable Processing
Linear Variable Creation
Linear Variable Writing
Linear Variable Array Insertion
Linear Variable Array Deletion
Linear Variable Array Value Setting
Global Variable Reading
Global Variable Writing
Global Variable Invalidation
Global Variable Array Insertion
Global Variable Array Deletion
Global Variable Array Value Setting
Global Image Array Preview
Data Binding
Data Unbinding
Array and String
Array Insert
Array Slice
Array Remove
Array Get Value
Array and Data Concatenation
String Split/Conversion
Data to String
String to Data
String Split
String Find
String Substring
Result Analysis
Display Data
Display Array Data
Save Image
Statistical Counting
Display Result on Image
Display Results on Window
Detection Screenshot
Hardware Control
String Communication Read
String Command Control
String Communication Write
Register Communication Read
Register Communication Write
Register Command Control
Siemens DB Block Read
Siemens DB Block Write
Light Controller Control
Digital Input Read
Digital Output Read
Wait for Digital Input
Wait for Digital Output
Digital Output Write
Voice Broadcast
Motion Control
Axis Motion
Stop Axis
Wait for Axis Stop
Set Axis Parameters
Axis Enable
Multi Axis Motion
AI Trainer
AI Trainer Operation Guide
Deep Learning Labeling Principles and Details
Run Interface Edit
Enter Design Interface
Understanding Interface Composition
Object List
Main Menu
Others Design Window Property List Event Script
Widget List
Image Widget
Run Control Widget
Button Widget
Status Monitor Widget
Label Widget
Condition Label Widget
BOOL Setting Widget
Integer Setting Widget
Float Setting Widget
String Setting Widget
Dropdown Setting Control Widget
Integer Slider Widget
Float Slider Widget
Container Widget
Combo Box Widget
Tab Widget
Vertical Layout Widget
Horizontal Layout Widget
Vertical Spacer Widget
Horizontal Spacer Widget
Login Widget
Image Box Widget
Log Widget
Pie Chart Widget
Bar Line Chart Widget
Static Table Widget
Dynamic Table Widget
Circular Progress Widget
Preview Mode
Script Mode
Run Mode
Custom Logo
Software FAQ
How to Solve Global Camera Fly Shooting Smear Problem
Maximize Graphics Card Performance Settings
Method to Enable Virtual Memory
Vision Software Freeze Troubleshooting Steps
Secondary Development
VisionGroup3 CSharp Secondary Development Manual
VG3 SDK Development Guide V1.0 Cpp
VG3 Module Plugin Development
本站点使用 MrDoc 构建
-
+
首页
VG3 SDK Development Guide V1.0 Cpp
# VG3 SDK Development Guide V1.0 Cpp ## 1. Initialization ### 1.1. Vision_DevelopKit_CheckLicenseValid 1. Function: Check license validity 2. Note: 1. This function is used to get whether the dongle is valid 2. This function can be called before environment initialization 3. Parameters: None > Return > ◾ Validity [false: invalid true: valid] ### 1.2. Vision_DevelopKit_Initialize 1. Function: Initialize development environment 2. Note: Need to call this function before loading the configuration project. Inside the function, operations such as form construction, software delay execution, external program calling, software skin setting, and hardware scanning will be performed. > Parameters > |||| | --- | --- | --- | | parent | [IN] | Parent window pointer (mostly main window) | | configPath | [IN] | Path of configuration file (storing recipes, etc.) | | threadNumber | [IN] | Number of threads in thread pool [0: software sets according to CPU cores] | | isLoadDevDriver | [IN] | Whether to load device drivers [mainly camera drivers] | | isUserProjManager | [IN] | Whether to enable recipe management | > Return > ◾ Refer to GMvRuntimeStatus.h ### 1.3. Vision_DevelopKit_isItialized 1. Function: Determine whether the development environment has been initialized 2. Note: Refer to GMvRuntimeStatus.h value: VISIONSTATUSSUCCESS initialized ; VISIONSTATUSUNINIT uninitialized ### 1.4. Vision_DevelopKit_Uninstall 1. Function: Uninstall development environment 2. Note: Release resources allocated by software > Return > ◾ Refer to GMvRuntimeStatus.h ## 2. Interface Operation ### 2.1. Vision_DevelopKit_GetMainWidget 1. Function: Get the pointer of the main interface 2. Note: Can get a pointer similar to the main interface of standard software 3. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.2. Vision_DevelopKit_DestoryMainWidget 1. Function: Destroy the pointer of the main interface 2. Note: Only need to call this function when VisionDevelopKitGetMainWidget is called and the mainWidget window is not addWidget to another window 3. Parameters: No parameters > Return > ◾ Refer to GMvRuntimeStatus.h ### 2.3. Vision_DevelopKit_SetMainSplitWidgetVisible 1. Function: Set the display or hiding of the upper part interface of VisionDevelopKitGetMainWidget 2. Note: Refer to emSplitDockWidgetPanel in GMvDevelopKitData.h, it is an overload function of VisionDevelopKitSetMainSplitWidgetShow > Parameters > |||| | --- | --- | --- | | flags | [IN] | Interface flag, refer to emSplitDockWidgetPanel in GMvDevelopKitData.h, e.g. | | Control all interfaces | Input | SplitAll | | Control flow tree and global flow tree interface | Input | SplitLineTree\SplitGLineTree | | Only control flow tree interface | Input | SplitLineTree | | isVisible | [IN] | true: Show false: Hide | > Return > ◾ Refer to GMvRuntimeStatus.h ### 2.4. Vision_DevelopKit_SetMainSplitWidgetShow 1. Function: Set the display or hiding of the upper part interface of VisionDevelopKitGetMainWidget 2. Note: Refer to cySplitDockWidgetPanel, it is an overload function of VisionDevelopKitSetMainSplitWidgetVisible > Parameters > |||| | --- | --- | --- | | flags | [IN] | Interface flag, member variable of cySplitDockWidgetPanel is true, means display the interface, false means hide the interface | | isVisible | [IN] | true: Show false: Hide | > Return > ◾ Refer to GMvRuntimeStatus.h ### 2.5. Vision_DevelopKit_ResetMainSplitWidgetLayout 1. Function: Reset the interface layout on VisionDevelopKitGetMainWidget 2. Parameters: None > Return > ◾ Refer to GMvRuntimeStatus.h ### 2.6. Vision_DevelopKit_SetStyleSheet 1. Function: Set the overall style sheet > Parameters > |||| | --- | --- | --- | | colorStyle | [IN] | 0: Black style 1: White style | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.7. Vision_DevelopKit_GetMenuWidget 1. Function: Get the window pointer of the menu bar 2. Note: Through this window, buttons for functions such as project, view, debug, tools, permissions, help, etc. can be displayed > Parameters > |||| > | --- | --- | --- | > | flags | [IN] | Interface flag, refer to emSplitTopMenuWidgetMenuVisible in GMvDevelopKitData.h, e.g. | > | Control all interfaces | Input | MenuVisibleActionAll | > | Control project menu items and view menu items | Input | MenuVisibleMenuSolution \ MenuVisibleMenuView | > | Only control new project and open project under project menu items | Input | MenuVisibleActionSolutionNew \MenuVisibleActionSolutionOpen | > | isVisible | [IN] | true: Show false: Hide | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.8. Vision_DevelopKit_SetMenuWidgetActionVisible 1. Function: Set the display or hiding of some menus or menu items on VisionDevelopKitGetMenuWidget 2. Note: The call should be after VisionDevelopKitGetMenuWidget call, refer to emSplitTopMenuWidgetMenuVisible in GMvDevelopKitData.h > Parameters > |||| > | --- | --- | --- | > | flags | [IN] | Interface flag, refer to emSplitTopMenuWidgetMenuVisible in GMvDevelopKitData.h, e.g. | > | Control all interfaces | Input | MenuVisibleActionAll | > | Control project menu items and view menu items | Input | MenuVisibleMenuSolution \ MenuVisibleMenuView | > | Only control new project and open project under project menu items | Input | MenuVisibleActionSolutionNew \MenuVisibleActionSolutionOpen | > | isVisible | [IN] | true: Show false: Hide | > Return > ◾ Refer to GMvRuntimeStatus.h ### 2.9. Vision_DevelopKit_GetToolWidget 1. Function: Get the window pointer of the toolbar 2. Note: Through this window, functions such as new project, open project, permissions; recipe management, recipe switching; camera management, hardware management, AI training; save project, save project as, open soft keyboard, run, etc. can be performed > Parameters > |||| > | --- | --- | --- | > | flags | [IN] | Interface flag, refer to emSplitToolMenuWidgetActionVisible in GMvDevelopKitData.h, e.g. | > | Control all buttons | Input | ToolMenuVisibleActionAll | > | Control user login item and new project item | Input | ToolMenuVisibleActionUser \ ToolMenuVisibleActionNewSolution | > | isVisible | [IN] | true: Show false: Hide | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.10. Vision_DevelopKit_SetToolWidgetActionVisible 1. Function: Set the display or hiding of some menus or menu items on VisionDevelopKitGetToolWidget 2. Note: The call should be after VisionDevelopKitGetToolWidget call, refer to emSplitTopMenuWidgetMenuVisible in GMvDevelopKitData.h > Parameters > |||| > | --- | --- | --- | > | flags | [IN] | Interface flag, refer to emSplitToolMenuWidgetActionVisible in GMvDevelopKitData.h, e.g. | > | Control all buttons | Input | ToolMenuVisibleActionAll | > | Control user login item and new project item | Input | ToolMenuVisibleActionUser \ ToolMenuVisibleActionNewSolution | > | isVisible | [IN] | true: Show false: Hide | > Return > ◾ Refer to GMvRuntimeStatus.h ### 2.11. Vision_DevelopKit_GetLineManageWidget 1. Function: Get the window pointer of flow management (recipe editing) 2. Note: Edit flow through this window > Parameters > |||| > | --- | --- | --- | > | isShowTitle | [IN] | Whether to show title | > | isShowBtn | [IN] | Whether to show operation buttons [valid when showing title] | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.12. Vision_DevelopKit_GetGlobalLineManageWidget 1. Function: Get the window pointer of global flow management (global recipe editing) 2. Note: Edit flow through this window > Parameters > |||| > | --- | --- | --- | > | isShowTitle | [IN] | Whether to show title | > | isShowBtn | [IN] | Whether to show operation buttons [valid when showing title] | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.13. Vision_DevelopKit_GetFuncLibWidget 1. Function: Get the window pointer of function library (function addition tree) 2. Note: Display usable function modules in the software through this window 3. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.14. Vision_DevelopKit_GetFuncManageWidget 1. Function: Get the window pointer of function management (flow editing) 2. Note: Edit flow through this window > Parameters > |||| > | --- | --- | --- | > | isShowTitle | [IN] | Whether to show title | > | isShowBtn | [IN] | Whether to show operation buttons [valid when showing title] | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.15. Vision_DevelopKit_GetShowImageWidget 1. Function: Get the window pointer of the image display area 2. Note: 1. Display software detection image through this window 2. VisionDevelopKitGetShowImageWidget and VisionDevelopKitGetSingleImageWidget cannot be used at the same time > Parameters > |||| > | --- | --- | --- | > | isShowModeBox | [IN] | Whether to show image mode control | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.16. Vision_DevelopKit_GetSingleImageWidget 1. Function: Get the single window pointer of the image display area 2. Note: 1. Display software detection image through this window 2. VisionDevelopKitGetSingleImageWidget and VisionDevelopKitGetShowImageWidget cannot be used at the same time > Parameters > |||| > | --- | --- | --- | > | widgetId | [IN] | Index of display image window [0-31] | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.17. Vision_DevelopKit_GetFuncInWidget 1. Function: Get the window pointer of function input 2. Note: Display function input information through this window 3. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.18. Vision_DevelopKit_GetFuncOutWidget 1. Function: Get the window pointer of function output 2. Note: Display function output information through this window 3. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.19. Vision_DevelopKit_GetFuncPropertyWidget 1. Function: Get the window pointer of function property 2. Note: Display function property information through this window 3. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.20. Vision_DevelopKit_GetLoggerWidget 1. Function: Get the window pointer of running log 2. Note: Display running log information through this window > Parameters > |||| > | --- | --- | --- | > | isShowTitle | [IN] | Whether to show title | > | isShowBox | [IN] | Whether to show log type control [valid when showing title] | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.21. Vision_DevelopKit_AppendLogInfoToLogTree 1. Function: Add a line of log information to the log interface 2. Note: This information will be displayed on the interface called by VisionDevelopKitGetLoggerWidget > Parameters > |||| > | --- | --- | --- | > | logInfo | [IN] | Log information | > Return > ◾ Success: true Failure: false ### 2.22. Vision_DevelopKit_GetGlobalVarWidget 1. Function: Get the window pointer of global variables 2. Note: Display global variable information through this window 3. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.23. Vision_DevelopKit_UpdateGlobalVarTreeWidget 1. Function: Refresh the global variable interface 2. Note: Refresh the global variable interface according to the global variable data, refresh the total number of rows and the display content of each row > Parameters > |||| > | --- | --- | --- | > | isRebulidRow | [IN] | isRebulidRow: true: delete all rows, re-add rows and refresh false: only refresh existing rows. If there is a change in the number of rows in the global variable block, true needs to be passed in, otherwise the refresh will fail | > Return > ◾ Success: Refresh successful Failure: Refresh failed ### 2.24. Vision_DevelopKit_SaveGlobalVar 1. Function: Save global variable data 2. Note: By default, the global variable save flag will be judged, and it will be saved only if the flag is true. When isForceSave is true, it is always saved > Parameters > |||| > | --- | --- | --- | > | isForceSave | [IN] | Whether to force save | > Return > ◾ Refer to GMvRuntimeStatus.h ### 2.25. Vision_DevelopKit_GetCoordSystemWidget 1. Function: Get the window pointer of the coordinate system 2. Note: Display coordinate system information through this window 3. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.26. Vision_DevelopKit_GetAIModelWidget 1. Function: Get the window pointer of the AI model 2. Note: Display AI model information through this window 3. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.27. Vision_DevelopKit_GetStatusWidget 1. Function: Get the window pointer displaying software status 2. Note: Through this window, hardware such as camera connection, communication connection, and mouse position information can be displayed > Parameters > |||| > | --- | --- | --- | > | isHiddenCam | [IN] | Whether to hide camera status | > | isHiddenComm | [IN] | Whether to hide communication status | > | isHiddenLight | [IN] | Whether to hide light source status | > | isHiddenIoCard | [IN] | Whether to hide IO card status | > | isHiddenMotion | [IN] | Whether to hide motion control status | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 2.28. Vision_DevelopKit_GetShowMessageWidget 1. Function: Get the window pointer displaying software prompt information 2. Note: Through this window, software compilation prompt information and communication logs can be displayed. This window is displayed independently and does not need to be inserted into the layout manager 3. Parameters: No parameters > Return > ◾ Success: Valid pointer Failure: Null pointer ## 3. Software Attributes ### 3.1. Vision_DevelopKit_GetVersionInfo 1. Function: Get software version information 2. Note: This function is used to get the version information of the software > Parameters > |||| > | --- | --- | --- | > | verInfo | [OUT] | Version information [eg. VG-DR-3.0.2.1(x64)] | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.2. Vision_DevelopKit_GetReleaseDate 1. Function: Get software release date 2. Note: This function is used to get the release date of the software > Parameters > |||| > | --- | --- | --- | > | date | [OUT] | Date [eg. 2024-09-03] | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.3. Vision_DevelopKit_IsBackgroundRun 1. Function: Get whether the software is in background running mode 2. Note: When the software is in background running mode, the display interface will be hidden. This mode must set the software tray 3. Parameters: No parameters > Return > ◾ Success: Background mode Failure: Foreground mode ### 3.4. Vision_DevelopKit_SetSoftwareTray 1. Function: Set software tray 2. Note: The software tray is mainly used to call out the display interface in background mode > Parameters > |||| > | --- | --- | --- | > | parent | [IN] | Parent window displayed by software tray | > | iconPath | [IN] | Path of tray icon | > | softwareName | [IN] | Name displayed by tray | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.5. Vision_DevelopKit_GetEncryptTipInfo 1. Function: Get encryption prompt information 2. Note: This function is used to display the remaining time during encryption authorization of the trial version > Parameters > |||| > | --- | --- | --- | > | encryptTime | [OUT] | Remaining time | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.6. Vision_DevelopKit_GetEntityCameraManager 1. Function: Get the pointer of the entity camera management class 3. Parameters: No parameters > Return > ◾ Success: Valid pointer Failure: Null pointer ### 3.7. Vision_DevelopKit_ShowCameraManageWidget 1. Function: Show the window of camera management 2. Note: Through this window, camera connection and parameters can be set 3. Parameters: None > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.8. Vision_DevelopKit_GetExternalDeviceManager 1. Function: Get the pointer of the peripheral device management class 2. Note: Through this pointer, relevant functions of communication, light source controller, and IO card can be accessed 3. Parameters: No parameters > Return > ◾ Success: Valid pointer Failure: Null pointer ### 3.9. Vision_DevelopKit_ShowHardwareWidget 1. Function: Show the window of hardware settings 2. Note: Through this window, communication, light source controller, and IO card can be set > Parameters > |||| > | --- | --- | --- | > | isHiddenComm | [IN] | Whether to hide communication settings | > | isHiddenLight | [IN] | Whether to hide light source settings | > | isHiddenIoCard | [IN] | Whether to hide IO card settings | > | isHiddenMotion | [IN] | Whether to hide motion control settings | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.10. Vision_DevelopKit_GetHardwareStatus 1. Function: Get the connection status of hardware devices 2. Note: This function is used to get the connection status of hardware devices > Parameters > |||| > | --- | --- | --- | > | deviceType | [IN] | Device type [0: camera 1: comm 2: light 3: io card] | > | deviceId | [IN] | Device ID [-1: all device >=0: single device] | > Return > ◾ -1: Unused 0: Connection abnormal 1: Connection normal ### 3.11. Vision_DevelopKit_ShowLineAddFuncWidget 1. Function: Show the window of flow editing 2. Note: 1. Through this window, functions can be added, deleted, and copied 2. This function cannot be called when the software is running > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Flow identifier | > | isShowTip | [IN] | Whether to show prompt information | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.12. Vision_DevelopKit_ShowLoginWidget 1. Function: Show the window of user login 2. Note: Through this window, different user levels can be switched 3. Parameters: None > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.13. Vision_DevelopKit_ShowGlobalDataWidget 1. Function: Show the window of global data 2. Note: Through this window, global data can be modified > Parameters > |||| > | --- | --- | --- | > | isRunning | [IN] | Whether it is running | > | isHiddenGlobalVar | [IN] | Whether to hide global variable settings | > | isHiddenCoordSys | [IN] | Whether to hide coordinate system settings | > | isHiddenAIVar | [IN] | Whether to hide AI model variable settings | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.14. Vision_DevelopKit_ImageWidgetResize 1. Function: Resize image display window 2. Note: This function is mainly used to adapt the image display window after changing the window layout 3. Parameters: None > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.15. Vision_DevelopKit_OpenSolution 1. Function: Open project file 2. Note: 1. Confirm in the standard software that the configuration file can be compiled and run 2. Calling this function requires that the configuration file generated by the standard software cannot change the path and other operations > Parameters > |||| > | --- | --- | --- | > | solutionFolder | [IN] | Path of opening project [folder path containing .cysln file] | > | isMakeProject | [IN] | Whether to create a project if the project does not exist | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.16. Vision_DevelopKit_ImportSolution 1. Function: Import project from specified directory 2. Note: 1. Calling this function will delete the project with the same name in the software directory 2. The imported project file is suffixed with .cyZip3 > Parameters > |||| > | --- | --- | --- | > | solutionFile | [IN] | Path of imported project [including .cyZip3] | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.17. Vision_DevelopKit_ExportSolution 1. Function: Export project to specified directory 2. Note: The exported project file is suffixed with .cyZip3 > Parameters > |||| > | --- | --- | --- | > | solutionFolder | [IN] | Path of exporting project | > | isRemoveOld | [IN] | Whether to delete files with the same name | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.18. Vision_DevelopKit_SetUserLevel 1. Function: Set user level > Parameters > |||| > | --- | --- | --- | > | level | [IN] | User level [0: Administrator 1: Engineer 2: Operator] | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.19. Vision_Runtime_GetUserLevel 1. Function: Get current user level 3. Parameters: None > Return > ◾ User level [0: Administrator 1: Engineer 2: Operator] ### 3.20. Vision_DevelopKit_SetSoftKeyboardStatus 1. Function: Set the status of the soft keyboard > Parameters > |||| > | --- | --- | --- | > | isOpened | [IN] | Keyboard status [false: Closed true: Open] | > Return > ◾ No return value ### 3.21. Vision_DevelopKit_GetSoftKeyboardStatus *1. Function: Get the status of the soft keyboard 3. Parameters: None > Return > ◾ Status [false: Closed true: Open [Default]] ### 3.22. Vision_DevelopKit_RegisterProcessEventCallback 1. Function: Register callback function for processing events 2. Note: Software initialization completion, hardware device disconnection, start detection, and flow running completion will call this callback function > Parameters > |||| > | --- | --- | --- | > | proc | [IN] | Function pointer of callback function | > | pContext | [IN] | User pointer of callback function | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.23. Vision_DevelopKit_RegisterDisposeDataCallback 1. Function: Register callback function for processing data 2. Note: Actual input data needs to be obtained by finding the corresponding output port of the corresponding module through the connection relationship of the function input port > Parameters > |||| > | --- | --- | --- | > | proc | [IN] | Function pointer of callback function | > | pContext | [IN] | User pointer of callback function | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.24. Vision_DevelopKit_RegisterReleaseDisposeDataCallback 1. Function: Register callback function for releasing processing data memory 2. Note: This callback function will be called if the port data memory is allocated by the customer when the software destructs the port > Parameters > |||| > | --- | --- | --- | > | proc | [IN] | Function pointer of callback function | > | pContext | [IN] | User pointer of callback function | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.25. Vision_DevelopKit_SetDisplayOnImageNameList 1. Function: Set the image name for displaying results on the image 2. Note: The image name set by this function is used when getting the display result > Parameters > |||| > | --- | --- | --- | > | nameList | [IN] | Multiple image names separated by English commas | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.26. Vision_DevelopKit_SetDisplayOnWindowNameList 1. Function: Set the window name for displaying results on the window 2. Note: The window name set by this function is used when getting the display window, up to 8 names > Parameters > |||| > | --- | --- | --- | > | nameList | [IN] | Multiple image names separated by English commas | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.27. Vision_DevelopKit_GetDisplayResultOnImage 1. Function: Get the display result drawn on the image 2. Note: This function only returns valid display result images > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Flow identifier | > | imageNameList | [OUT] | List of result image names | > | resultImageList | [OUT] | List of result images | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.28. Vision_DevelopKit_GetDisplayOnWindow 1. Function: Get the display window for displaying results on the window 2. Note: This function finds the display window according to the name, supporting up to 8 windows > Parameters > |||| > | --- | --- | --- | > | windowNameList | [IN] | List of image window names | > | isToolBarHidden | [IN] | Whether to hide toolbar | > | windowList | [OUT] | List of image windows | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.29. Vision_DevelopKit_GetLibraryDirecory 1. Function: Get the path where library files are located 2. Note: The path where library files are located may not be consistent with the recipe path > Parameters > |||| > | --- | --- | --- | > | libraryDir | [IN][OUT] | Library file path | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.30. Vision_DevelopKit_StartRun 1. Function: Start the software to enter continuous detection state 2. Note: After the software enters the detection state: 1. If external signal input is required, it will stop at the program waiting for external signal input 2. If no external signal is required, it will directly run the set production line 3. This function does not necessarily start running when it returns, you can judge whether it starts running successfully through VisionDevelopKitIsRunning > Parameters > |||| > | --- | --- | --- | > | isClearLastShowImage | [IN] | Whether to clear the last displayed image | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.31. Vision_DevelopKit_StopRun 1. Function: Stop the continuous detection state of the software 2. Note: The detection thread will not stop immediately when this function returns, you can judge whether it stops completely through isRunning() 3. Parameters: No parameters > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.32. Vision_DevelopKit_StopGlobalRun 1. Function: Start global recipe running 2. Note: Global recipe will not run immediately when this function returns, you can judge whether it starts running successfully through VisionDevelopKitIsGlobalRunning 3. Parameters: No parameters > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.33. Vision_DevelopKit_StopGlobalRun 1. Function: Stop global recipe running 2. Note: The detection thread will not stop immediately when this function returns, you can judge whether it stops completely through isGlobalRunning() 3. Parameters: No parameters > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.34. Vision_DevelopKit_ForceStop 1. Function: Stop the running of software and global recipe 2. Note: The detection thread will not stop immediately when this function returns, you can judge whether it stops completely through VisionDevelopKitIsRunning and VisionDevelopKitIsGlobalRunning 3. Parameters: No parameters > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.35. Vision_DevelopKit_DebugRun 1. Function: Detect once 2. Note: Please set the selected production line and scene before calling this function > Parameters > |||| > | --- | --- | --- | > | runMode | [IN] | Running mode 0: Single test selected flow 1: Continuous test selected flow 2: Retest selected flow does not support communication output | > | isAllowComm | [IN] | Whether to allow communication | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.36. Vision_DevelopKit_IsRunning 1. Function: Whether the software is running 2. Parameters: No parameters > Return > ◾ Success: Running state Failure: Stopped state ### 3.37. Vision_DevelopKit_IsGlobalRunning 1. Function: Whether global recipe is running 2. Parameters: No parameters > Return > ◾ Success: Running state Failure: Stopped state ### 3.38. Vision_DevelopKit_GetGlobalVarValueById 1. Function: Set the value of global variable 2. Note: Please refer to the global variable interface in VG3 for blockIdx and varIdx. The interface display index starts from 1 while the programming index starts from 0 > Parameters > |||| > | --- | --- | --- | > | blockIdx | [IN] | Block index of global variable | > | varIdx | [IN] | Index of variable in block | > | dataType | [IN][OUT] | Data type [cyDTunDef, cyDTBool, cyDT_Long...] | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 3.39. Vision_DevelopKit_GetGlobalVarValueByName 1. Function: Set the value of global variable 2. Note: 1. Please refer to the global variable interface in VG3 for blockName and varName 2. This function is not thread-safe > Parameters > |||| > | --- | --- | --- | > | blockIdx | [IN] | Block index of global variable | > | varIdx | [IN] | Index of variable in block | > | dataType | [IN] | Data type [cyDTunDef, cyDTBool, cyDT_Long...] | > Return > ◾ Success: Valid pointer Failure: Null pointer ### 3.40. Vision_DevelopKit_SetGlobalVarValueById 1. Function: Set the value of global variable 2. Note: 1. Please refer to the global variable interface in VG3 for blockIdx and varIdx. The interface display index starts from 1 while the programming index starts from 0 2. This function is not thread-safe > Parameters > |||| > | --- | --- | --- | > | blockIdx | [IN] | Block index of global variable | > | varIdx | [IN] | Index of variable in block | > | pValue | [IN] | Input value of parameter | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.41. Vision_DevelopKit_SetGlobalVarValueByName 1. Function: Set the value of global variable 2. Note: 1. Please refer to the global variable interface in VG3 for blockName and varName 2. This function is not thread-safe > Parameters > |||| > | --- | --- | --- | > | blockName | [IN] | Block name of global variable | > | varName | [IN] | Variable name | > | pValue | [IN] | Input value of parameter | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.42. Vision_DevelopKit_GetAdminSolution 1. Function: Get the pointer of the currently used recipe management 2. Note: Through this pointer, relevant information of the recipe can be accessed 3. Parameters: No parameters > Return > ◾ Success: Valid pointer Failure: Null pointer ### 3.43. Vision_DevelopKit_GetRunProject 1. Function: Get the currently used recipe pointer 2. Note: Through this pointer, relevant functions of the flow can be accessed (this recipe is a general recipe) 3. Parameters: No parameters > Return > ◾ Success: Valid pointer Failure: Null pointer ### 3.44. Vision_DevelopKit_GetGlobalProject 1. Function: Get global recipe pointer 2. Note: Through this pointer, relevant functions of the flow can be accessed 3. Parameters: No parameters > Return > ◾ Success: Valid pointer Failure: Null pointer ### 3.45. Vision_DevelopKit_GetRunProjectInfo 1. Function: Get the path and project name of the running project 2. Note: This path includes configuration information such as the running recipe > Parameters > |||| > | --- | --- | --- | > | projDir | [IN][OUT] | Project path | > | projName | [IN][OUT] | Project name | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.46. Vision_DevelopKit_GetProjectNameList 1. Function: Get the names of all projects and the name of the running project > Parameters > |||| > | --- | --- | --- | > | nameList | [IN][OUT] | Names of all projects | > | curName | [IN][OUT] | Name of current project | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.47. Vision_DevelopKit_NewProject 1. Function: Create a new project 2. Note: The project path must be specified when there is no recipe management, and it is not needed when there is recipe management > Parameters > |||| > | --- | --- | --- | > | projName | [IN][OUT] | Name of project | > | projFolder | [IN][OUT] | Path of project, used when there is no recipe management | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.48. Vision_DevelopKit_DeleteProject 1. Function: Delete specified project 2. Note: The project path must be specified when there is no recipe management, and it is not needed when there is recipe management > Parameters > |||| > | --- | --- | --- | > | projName | [IN][OUT] | Name of project | > | projFolder | [IN][OUT] | Path of project, used when there is no recipe management | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.49. Vision_DevelopKit_ChangeProject 1. Function: Switch running project 2. Note: By default, it will judge whether projIdx is the same as the current recipe id. If it is the same, it will not be loaded. You can force switch recipe by setting isForceChange to true > Parameters > |||| > | --- | --- | --- | > | projIdx | [IN] | Identification index of project in all projects, starting from 0 | > | isForceChange | [IN] | Whether to force switch recipe | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.50. Vision_DevelopKit_CopyProject 1. Function: Copy the recipe at srcProjIdx to destProjIdx and modify the recipe name to destProjName 2. Note: When calling this function, please ensure that destProjName is different from all existing recipe names; if destProjIdx already exists, the software will overwrite the previous data with srcProjIdx > Parameters > |||| > | --- | --- | --- | > | srcProjIdx | [IN] | source project index to be copied | > | destProjIdx | [IN] | destination project index to be inserted | > | destProjName | [IN] | destination project name to be inserted | > Return > ◾ Success: Copy completed Failure: Copy not completed ### 3.51. Vision_DevelopKit_SetRunProject 1. Function: Set the running project, create a new one if it does not exist 2. Note: The project path must be specified when there is no recipe management, and it is not needed when there is recipe management > Parameters > |||| > | --- | --- | --- | > | projName | [IN] | Name of project | > | projFolder | [IN] | Path of project, used when there is no recipe management | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.52. Vision_DevelopKit_CompileRunProject 1. Function: Compile the currently running recipe, the scene can be run only when compilation is successful 2. Note: No need to call this function when setting running recipe 3. Parameters: No parameters > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.53. Vision_DevelopKit_SaveRunProject 1. Function: Save the currently running project > Parameters > |||| > | --- | --- | --- | > | isNoShowAsk | [IN] | Whether not to show confirmation information | > | isShowSaveTip | [IN] | Whether to show prompt information | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.54. Vision_DevelopKit_SaveAsProject 1. Function: Save project to other location > Parameters > |||| > | --- | --- | --- | > | projFolder | [IN] | Save path | > | projName | [IN] | Project name to be saved | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.55. Vision_DevelopKit_RenameProject 1. Function: Save project to other location 2. Note: The project path must be specified when there is no recipe management, and it is not needed when there is recipe management > Parameters > |||| > | --- | --- | --- | > | oldProjName | [IN] | Original name | > | newProjName | [IN] | New name | > | projFolder | [IN] | Path of project, used when there is no recipe management | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.56. Vision_DevelopKit_GetLineNameList 1. Function: Get the names of all flows in the recipe > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | nameList | [IN][OUT] | Names of all flows | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.57. Vision_DevelopKit_GetCurrentLine 1. Function: Get current flow 2. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### ◇ 3.58. Vision_DevelopKit_SetCurrentLine 1. Function: Set current selected flow 2. Note: The selected flow must be a flow in the selected recipe, this function is mostly used for debugging > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Selected flow sequence number | > Return > ◾ Refer to GMvRuntimeStatus.h ### 3.59. Vision_DevelopKit_SetCurrentLineByName 1. Function: Set current selected flow 2. Note: The selected flow must be a flow in the selected recipe, this function is mostly used for debugging > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Selected flow sequence number | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.60. Vision_DevelopKit_GetLineById 1. Function: Get specified flow in recipe > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Selected flow sequence number | > Return > ◾ Success: Valid pointer Failure: Null pointer ### ◇ 3.61. Vision_DevelopKit_GetLineByName 1. Function: Set current selected flow 2. Note: The selected flow must be a flow in the selected recipe, this function is mostly used for debugging > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Selected flow sequence number | > Return > ◾ Success: Valid pointer Failure: Null pointer ### ◇ 3.62. Vision_DevelopKit_CopyLineByLineId 1. Function: Copy the thread at srcLineId to destLineId 2. Note: This function appends a thread first and then copies data from source thread to new thread > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | srcLineId | [IN] | Source flow sequence number | > Return > ◾ Success: Copy completed Failure: Copy not completed ### ◇ 3.63. Vision_DevelopKit_CopyLineByName 1. Function: Copy the thread at srcLineId to destLineId 2. Note: This function appends a thread first and then copies data from source thread to new thread > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | srcLineName | [IN] | Source flow name | > Return > ◾ Success: Copy completed Failure: Copy not completed ### ◇ 3.64. Vision_DevelopKit_TriggerLineByTriggerId 1. Function: Call this function to execute a detection when the flow is set to signal trigger mode 2. Note: Software must be in running state when calling this function > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type to be triggered [0: Normal flow 1: Global flow] | > | trigId | [IN] | Communication sequence number of flow to be triggered | > Return > ◾ Success: Trigger completed Failure: Trigger not completed ### ◇ 3.65. Vision_DevelopKit_TriggerLineByName 1. Function: Call this function to execute a detection when the flow is set to signal trigger mode 2. Note: Software must be in running state when calling this function > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type to be triggered [0: Normal flow 1: Global flow] | > | lineName | [IN] | Name of flow to be triggered | > Return > ◾ Success: Trigger completed Failure: Trigger not completed ### ◇ 3.66. Vision_DevelopKit_RunLineById 1. Function: Run specified flow 2. Note: This function executes the flow in a blocking manner, that is, this function will exit only after the flow execution is completed > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Flow identifier | > | isWaitFinish | [IN] | Whether to wait for execution completion | > | isProcessEvents | [IN] | Whether to process Qt events when waiting for completion | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.67. Vision_DevelopKit_RunLineByName 1. Function: Run specified flow 2. Note: This function executes the flow in a blocking manner, that is, this function will exit only after the flow execution is completed > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Flow identifier | > | isWaitFinish | [IN] | Whether to wait for execution completion | > | isProcessEvents | [IN] | Whether to process Qt events when waiting for completion | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.68. Vision_DevelopKit_StopRunLine 1. Function: Stop running specified flow 2. Note: Only need to call this function when you need to exit the flow being executed by runLine (mostly used to terminate flow delay or wait for external signals, etc.) 3. Parameters: None > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.69. Vision_DevelopKit_ResetLineById 1. Function: Reset specified flow > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Flow identifier | > | type | [IN] | Reset type [0: Calibration/Mapping module counter reset] | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.70. Vision_DevelopKit_ResetLineByName 1. Function: Reset specified flow > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Flow identifier | > | type | [IN] | Reset type [0: Calibration/Mapping module counter reset] | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.71. Vision_DevelopKit_GetLineResultById 1. Function: Get result of specified flow > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Flow identifier | > | pLineState | [IN][OUT] | Flow running state [0: NG 1: OK] | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.72. Vision_DevelopKit_GetLineResultByName 1. Function: Get result of specified flow > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Flow identifier | > | pLineState | [IN][OUT] | Flow running state [0: NG 1: OK] | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.73. Vision_DevelopKit_GetCurrentFunc 1. Function: Get current function 2. Parameters: None > Return > ◾ Success: Valid pointer Failure: Null pointer ### ◇ 3.74. Vision_DevelopKit_SetCurrentFuncByFuncId 1. Function: Set current selected function 2. Note: The selected function must be a function in the currently selected flow. If you are not sure it is the current flow, you need to call VisionDevelopKitSetCurrentLineById or VisionDevelopKitSetCurrentLineByName in advance. This function is mostly used for debugging > Parameters > |||| > | --- | --- | --- | > | funcId | [IN] | Selected function sequence number, < 0: Select empty line, >= 0 Select function with specified subscript | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.75. Vision_DevelopKit_SetCurrentFuncByFuncName 1. Function: Set current selected function 2. Note: The selected function must be a function in the currently selected flow. If you are not sure it is the current flow, you need to call VisionDevelopKitSetCurrentLineById or VisionDevelopKitSetCurrentLineByName in advance. This function is mostly used for debugging > Parameters > |||| > | --- | --- | --- | > | funcName | [IN] | Selected function name | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.76. Vision_DevelopKit_GetFailFuncObjectById 1. Function: Get the first function with abnormal running state in the specified scene in the specified production line > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Flow identifier | > Return > ◾ Success: Valid pointer Failure: Null pointer ### ◇ 3.77. Vision_DevelopKit_GetFailFuncObjectByName 1. Function: Get the first function with abnormal running state in the specified scene in the specified production line > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineName | [IN] | Flow name | > Return > ◾ Success: Valid pointer Failure: Null pointer ### ◇ 3.78. Vision_DevelopKit_GetFuncObjectById 1. Function: Get specified function module in specified flow 2. Note: This pointer can be downcast to a pointer of a specific subclass to access the function of the corresponding module > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineId | [IN] | Sequence number of selected flow | > | funcId | [IN] | Sequence number of selected function in selected flow | > Return > ◾ Success: Valid pointer Failure: Null pointer ### ◇ 3.79. Vision_DevelopKit_GetFuncObjectByName 1. Function: Get specified function module in specified flow 2. Note: This pointer can be downcast to a pointer of a specific subclass to access the function of the corresponding module > Parameters > |||| > | --- | --- | --- | > | lineType | [IN] | Flow type [0: Normal flow 1: Global flow] | > | lineName | [IN] | Name of selected flow | > | funcName | [IN] | Name of selected function in selected flow | > Return > ◾ Success: Valid pointer Failure: Null pointer ### ◇ 3.80. Vision_DevelopKit_CreateFuncParamWidget 1. Function: Create parameter interface of specified function module in specified flow 2. Note: The window pointer returned by this function needs to call VisionDevelopKitDeleteFuncParamWidget to release memory when not in use > Parameters > |||| > | --- | --- | --- | > | pFuncObject | [IN] | Selected function | > | isShowParamOnly | [IN] | Whether to show parameters only | > | isHideCloseBtn | [IN] | Whether to hide Close/Confirm button [Valid when isShowParamOnly is false] | > | pParentWidget | [IN] | Parent window pointer | > Return > ◾ Success: Valid pointer Failure: Null pointer ### ◇ 3.81. Vision_DevelopKit_DeleteFuncParamWidget 1. Function: Delete parameter interface of function module 2. Note: This function is used to release the interface created by VisionDevelopKitCreateFuncParamWidget > Parameters > |||| > | --- | --- | --- | > | pParameterWidget | [IN] | Parameter interface of function module to be deleted | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.82. Vision_DevelopKit_BestScaleFuncParamWidget 1. Function: Scale the image display in the function module parameter interface to the best size > Parameters > |||| > | --- | --- | --- | > | pParameterWidget | [IN] | Parameter interface of function module to be scaled | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.83. Vision_DevelopKit_CleanFuncParamWidget 1. Function: Perform cleaning operation on the parameter interface of the function module 2. Note: 1. This function can stop continuous image acquisition after clicking the continuous image acquisition button in the camera image acquisition module parameter interface 2. This function can save the modified template image and use it during detection after modifying the module of template class > Parameters > |||| > | --- | --- | --- | > | pParameterWidget | [IN] | Parameter interface of function module to be cleaned | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.84. Vision_DevelopKit_UpdateFuncParamWidgetValue 1. Function: Update parameter interface data of specified function module in specified flow 2. Note: This function is used to refresh display data in the parameter interface created by the user > Parameters > |||| > | --- | --- | --- | > | pFuncWidget | [IN] | Function parameter interface | > | pFuncObject | [IN] | Selected function | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.85. Vision_DevelopKit_UpdateNativeFuncParamWidgetValue 1. Function: Update native parameter interface data of specified function module in specified flow 2. Note: This function is used to refresh display data in the standard software parameter interface after modifying parameters in the parameter interface created by the user > Parameters > |||| > | --- | --- | --- | > | pFuncObject | [IN] | Selected function | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.86. Vision_DevelopKit_ShowFuncParamWidget 1. Function: Show parameter interface of specified function module in specified flow > Parameters > |||| > | --- | --- | --- | > | pFuncObject | [IN] | Selected function | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.87. Vision_DevelopKit_SetFuncObjectParam 1. Function: Set current value of user parameter 2. Note: 1. Please refer to function property or function input interface in VG3 for portId 2. This function is not thread-safe > Parameters > |||| > | --- | --- | --- | > | pFuncObject | [IN] | Selected function | > | portId | [IN] | Selected port sequence number | > | pValue | [IN] | Input value of parameter | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.88. Vision_DevelopKit_GetFuncObjectResult 1. Function: Get result data of function 2. Note: 1. Please refer to result display or function output interface in VG3 for portId 2. This function is not thread-safe > Parameters > |||| > | --- | --- | --- | > | pFuncObject | [IN] | Selected function | > | portId | [IN] | Selected output port sequence number | > Return > ◾ CMvVoidDataForC type data wrapper, can be used to construct CMvVoidDataView for further safe access to data ### ◇ 3.89. Vision_DevelopKit_SetFuncObjectModelImage 1. Function: Set template image of function module 2. Note: 1. This function is used to modify the template image of the template class module and modify the save flag 2. This function uses the saved parameters of the module to create the template > Parameters > |||| > | --- | --- | --- | > | pFuncObject | [IN] | Selected function | > | sourceMat | [IN] | Image for creating template | > | modelRoi | [IN] | Creation area of template | > | maskMat | [IN] | Mask image | > | modelIdx | [IN] | Template index | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.90. Vision_DevelopKit_GetFuncObjectModelImage 1. Function: Get template image of function module 2. Note: This function is used to get the template image of the template class module > Parameters > |||| > | --- | --- | --- | > | pFuncObject | [IN] | Selected function | > | modelMat | [OUT] | Image for creating template | > | maskMat | [OUT] | Mask image | > | modelIdx | [IN] | Template index | > Return > ◾ Refer to GMvRuntimeStatus.h ### ◇ 3.91. Vision_DevelopKit_GetLastErrorCode 1. Function: Get the error code of the last interface call 2. Parameters: None > Return > ◾ Refer to GMvRuntimeStatus.h --- Click here to jump to the corresponding Chinese manual page: [VG3 SDK Development Guide V1.0 Cpp](/doc/278)
唐红
2026年3月12日 18:28
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
PDF文档(打印)
分享
链接
类型
密码
更新密码