Industrial camera adaptation method

By obtaining the manufacturer information and data dictionary of industrial cameras, it can adapt to industrial cameras from different manufacturers, solve the problems of tedious development and low efficiency, improve development efficiency and reduce maintenance costs.

CN111736870BActive Publication Date: 2024-10-15安徽李群智能机器人有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010571257.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-19
Publication Date
2024-10-15
Estimated Expiration
2040-06-19

AI Technical Summary

Technical Problem

The software development kit (SDK) development interfaces of existing industrial cameras are incompatible, causing developers to develop separately for industrial cameras from different manufacturers, resulting in cumbersome and inefficient development.

Method used

By receiving the parameters to be configured input by the user, the manufacturer information of the industrial camera is obtained and the data dictionary is obtained based on the manufacturer information, the node name of the parameters to be configured is queried, and the camera attributes are configured according to the parameter values ​​to realize the adaptation of industrial cameras from different manufacturers. Reduce development complexity and improve efficiency.

Benefits of technology

It achieves unified adaptation to industrial cameras from different manufacturers, reduces development burden, improves development efficiency, and eliminates the need to modify the underlying program code when upgrading or maintaining the camera, reducing maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111736870B_ABST
    Figure CN111736870B_ABST
Patent Text Reader

Abstract

The present application provides an industrial camera adaptation method, device, electronic device and storage medium, the industrial camera adaptation method comprising: receiving parameter values ​​corresponding to parameters to be configured input by a user; obtaining the manufacturer information of the industrial camera, and obtaining the corresponding data dictionary according to the manufacturer information; querying the node name of the industrial camera corresponding to the parameter to be configured according to the data dictionary, wherein each node name corresponds to a camera attribute of the industrial camera; and configuring the camera attribute according to the parameter value. By obtaining the corresponding data dictionary according to the manufacturer information and then configuring the industrial camera according to the data dictionary, there is no need to develop separate control programs for industrial cameras of different manufacturers, thereby achieving adaptation to industrial cameras of different manufacturers, reducing the tediousness of development and improving development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automatic control, and in particular to an industrial camera adaptation method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of the machine vision industry, industrial cameras, as one of the important components of machine vision systems, have also achieved tremendous development. In the control process of existing automation equipment, industrial cameras are often used to achieve functions such as positioning, detection, and measurement.

[0003] When using industrial cameras, it is necessary to configure and control the industrial cameras by writing control programs. However, the problem is that the development interfaces of the Software Development Kits (SDKs) provided by different manufacturers are different and incompatible with each other. Developers need to develop for industrial cameras of different manufacturers separately. The control program developed for an industrial camera of a certain manufacturer can only control the industrial camera of that manufacturer. When using industrial cameras of other manufacturers, it needs to be redeveloped, which leads to cumbersome development and low efficiency. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an industrial camera adaptation method, device, electronic device and storage medium to solve the problems of cumbersome development and low efficiency.

[0005] In a first aspect, an embodiment of the present invention provides an industrial camera adaptation method, including:

[0006] Receive parameter values ​​corresponding to the parameters to be configured input by the user;

[0007] Obtain the manufacturer information of the industrial camera, and obtain the corresponding data dictionary according to the manufacturer information;

[0008] Querying the node name of the industrial camera corresponding to the parameter to be configured according to the data dictionary, wherein each of the node names corresponds to a camera attribute of the industrial camera;

[0009] The camera properties are configured according to the parameter values.

[0010] By obtaining the corresponding data dictionary based on the manufacturer information and then configuring the industrial camera according to the data dictionary, there is no need to develop control programs for industrial cameras of different manufacturers. That is, adaptation to industrial cameras of different manufacturers is achieved, thereby reducing the complexity of development and improving development efficiency.

[0011] In an optional implementation manner, before acquiring the manufacturer information of the industrial camera and acquiring the corresponding data dictionary according to the manufacturer information, the industrial camera adaptation method further includes:

[0012] Get node list information of industrial cameras from different manufacturers;

[0013] Determine the correspondence between the parameters to be configured and the node names according to the node list data of the industrial cameras of different manufacturers;

[0014] The data dictionaries corresponding to different manufacturers are constructed respectively according to the corresponding relationships.

[0015] In an optional implementation, after constructing the data dictionaries corresponding to different manufacturers according to the corresponding relationships, the industrial camera adaptation method further includes:

[0016] The data dictionary is saved.

[0017] By saving the data dictionary, when you subsequently adapt the camera or replace the camera with another manufacturer's camera, you do not need to build the data dictionary again. You can directly call the saved data dictionary to control the camera, which improves the adaptation efficiency. At the same time, if the camera is upgraded and maintained, and the node name changes, you only need to modify the saved data dictionary accordingly to complete the update of the control program, without modifying the underlying program code, reducing the labor cost of industrial camera maintenance.

[0018] In an optional implementation manner, the data types of the parameters to be configured for different industrial cameras are various. Before configuring the camera properties according to the parameter values, the industrial camera adaptation method further includes:

[0019] The data type of the parameter value is converted into a data type corresponding to the parameter to be configured of the industrial camera.

[0020] In an optional implementation, before converting the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera, the industrial camera adaptation method includes:

[0021] Read the XML description file of the industrial camera;

[0022] The data type of the to-be-configured parameter of the industrial camera is determined according to the XML description file.

[0023] By converting the data type of the parameter value input by the user into the data type corresponding to the parameter to be configured of the connected industrial camera, the normal operation of the industrial camera is ensured.

[0024] In an optional implementation, before receiving the parameter value corresponding to the parameter to be configured input by the user, the industrial camera adaptation method further includes:

[0025] The parameters to be configured that need to be configured according to the actual usage scenario determined by the user are obtained.

[0026] In a second aspect, an embodiment of the present invention provides an industrial camera adaptation device, including:

[0027] A receiving module, used to receive parameter values ​​corresponding to the parameters to be configured input by the user;

[0028] An acquisition module is used to acquire the manufacturer information of the industrial camera and acquire the corresponding data dictionary according to the manufacturer information;

[0029] A query module, used for querying the node name of the industrial camera corresponding to the parameter to be configured according to the data dictionary, wherein each of the node names corresponds to a camera attribute of the industrial camera;

[0030] A configuration module is used to receive the parameter value to configure the camera attribute.

[0031] In an optional embodiment, the industrial camera adaptation device further includes:

[0032] The acquisition module is also used to obtain node list information of industrial cameras from different manufacturers;

[0033] A determination module, used to determine the correspondence between the parameters to be configured and the node names according to the node list data of the industrial cameras of different manufacturers;

[0034] A construction module is used to construct the data dictionaries corresponding to different manufacturers according to the corresponding relationships.

[0035] In an optional embodiment, the industrial camera adaptation device further includes:

[0036] A saving module is used to save the data dictionary.

[0037] In an optional embodiment, the industrial camera adaptation device further includes:

[0038] The conversion module is used to convert the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera.

[0039] In an optional embodiment, the industrial camera adaptation device further includes:

[0040] A reading module, used for reading the XML description file of the industrial camera;

[0041] The determination module is further used to determine the data type of the to-be-configured parameter of the industrial camera according to the XML description file.

[0042] In an optional embodiment, the industrial camera adaptation device further includes:

[0043] The acquisition module is also used to acquire the parameters to be configured that need to be configured according to the actual usage scenario determined by the user.

[0044] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores computer program instructions, and when the computer program instructions are read and executed by the processor, the steps of the industrial camera adaptation method as described in any one of the aforementioned embodiments are executed.

[0045] In a fourth aspect, an embodiment of the present invention provides a storage medium having computer program instructions stored thereon. When the computer program instructions are read and executed by a computer, the steps of the industrial camera adaptation method as described in any one of the aforementioned embodiments are executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A flowchart of an industrial camera adaptation method provided in an embodiment of the present application;

[0048] Figure 2 A structural block diagram of an industrial camera adapter device provided in an embodiment of the present application;

[0049] Figure 3 A schematic structural diagram of an electronic device is provided for an embodiment of the present application.

[0050] Icons: 200 - industrial camera adapter; 201 - receiving module; 202 - acquiring module; 203 - query module; 204 - configuration module; 205 - determination module; 206 - construction module; 207 - saving module; 208 - conversion module; 209 - reading module; 300 - electronic device; 301 - processor; 302 - memory. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0052] With the rapid development of the machine vision industry, industrial cameras, as one of the important components of machine vision systems, have also achieved tremendous development. In the control process of existing automation equipment, industrial cameras are often used to achieve functions such as positioning, detection, and measurement.

[0053] When using industrial cameras, it is necessary to configure and control the industrial cameras by writing control programs. However, the problem is that the SDK development interfaces provided by different manufacturers are different and incompatible with each other. Developers need to develop for industrial cameras of different manufacturers separately. The control program developed for a certain manufacturer's industrial camera can only control the manufacturer's industrial camera. When using industrial cameras of other manufacturers, it needs to be redeveloped, which leads to cumbersome development and low efficiency.

[0054] The Generic Interface for Cameras (GenICam) aims to provide a universal programming interface for various devices (mainly cameras). Regardless of the interface technology used, the application programming interface (API) used is the same. The core technology is to describe the camera properties through XML description files, thereby realizing the configuration of camera properties.

[0055] Based on the above analysis, the inventor of the present application provides an industrial camera adaptation method to solve the above-mentioned problems of cumbersome development and low efficiency.

[0056] See also Figure 1 , Figure 1 A flowchart of an industrial camera adaptation method provided in an embodiment of the present application, the industrial camera adaptation method may include the following steps:

[0057] Step S101: receiving a parameter value corresponding to a parameter to be configured input by a user.

[0058] Step S102: Obtain the manufacturer information of the industrial camera, and obtain the corresponding data dictionary according to the manufacturer information.

[0059] Step S103: querying the node name of the industrial camera corresponding to the parameter to be configured according to the data dictionary, wherein each node name corresponds to a camera attribute of the industrial camera.

[0060] Step S104: configuring the camera properties according to the parameter values.

[0061] Industrial cameras include GIGE cameras, USB3.0 cameras, etc. In this embodiment, the industrial camera is a GIGE camera.

[0062] Specifically, firstly, a parameter value corresponding to a parameter to be configured input by a user is received, wherein the parameter to be configured is a working parameter of an industrial camera, such as exposure value, gain value, pixel format, etc.

[0063] Then, obtain the manufacturer information of the industrial camera and obtain the corresponding data dictionary according to the manufacturer information. Since the software development kits (SDKs) of industrial cameras of different manufacturers are different, corresponding data dictionaries can be established for different manufacturers. When the industrial camera configuration is required, obtain the manufacturer information of the connected industrial camera and obtain the data dictionary according to the manufacturer information.

[0064] Then, the node name of the industrial camera of the manufacturer corresponding to the parameter to be configured is queried according to the data dictionary. In the GenICam standard, nodes are defined as the basic unit for describing a configuration parameter. The data dictionary includes the correspondence between the parameter to be configured and the node name. When the camera needs to be configured, the corresponding node name is found through the data dictionary, and the configuration of the industrial camera is realized according to the parameter value entered by the user.

[0065] The embodiment of the present application obtains the corresponding data dictionary through manufacturer information and configures the industrial camera according to the data dictionary. There is no need to develop control programs for industrial cameras of different manufacturers. That is, adaptation to industrial cameras of different manufacturers is achieved, thereby reducing the complexity of development and improving development efficiency.

[0066] The above process will be described in detail below.

[0067] Step S101: receiving a parameter value corresponding to a parameter to be configured input by a user.

[0068] In the embodiment of the present application, the parameter values ​​corresponding to the parameters to be configured input by the user are first received, where the parameters to be configured are working parameters of the industrial camera, such as exposure value, gain value, pixel format, etc. The user inputs corresponding parameter values ​​for different parameters to be configured to configure the industrial camera.

[0069] As an implementation manner, before receiving the parameter value corresponding to the parameter to be configured input by the user, the industrial camera adaptation method further includes:

[0070] Obtain the parameters to be configured that the user needs to configure based on the actual usage scenario.

[0071] Specifically, in different usage scenarios, the parameters to be configured for industrial cameras are different. Therefore, before receiving the parameter values ​​corresponding to the parameters to be configured input by the user, it is necessary to obtain the parameters to be configured that the user determines based on the actual working scenario of the industrial camera. After determining the parameters to be configured, the parameter values ​​corresponding to the parameters to be configured output by the user are received to configure the industrial camera.

[0072] Step S102: Obtain the manufacturer information of the industrial camera, and obtain the corresponding data dictionary according to the manufacturer information.

[0073] Among them, the method of obtaining manufacturer information can be implemented in a variety of ways, for example, obtaining the manufacturer information of the industrial camera selected by the user manually input; or, after establishing a connection with the industrial camera, accessing the device information of the industrial camera to obtain the manufacturer information of the industrial camera.

[0074] In the embodiment of the present application, after step S101, the parameter value corresponding to the parameter to be configured input by the user is received, and then the parameter to be configured can be set according to the parameter value, that is, the node corresponding to the parameter to be configured of the industrial camera is configured. However, industrial cameras of different manufacturers have different node names for the same parameter to be configured, and it is impossible to index the specific desired node through a unified name.

[0075] In the embodiment of the present application, in order to adapt to industrial cameras of different manufacturers, the corresponding data dictionary can be obtained according to the manufacturer information.

[0076] It should be noted that for each manufacturer, there will be a corresponding data dictionary.

[0077] The data dictionary is a table of correspondence between parameters to be configured and node names. Each parameter to be configured is defined as a key, and the node name corresponding to the parameter to be configured is defined as a value. The key of the parameter to be configured is unique, and the node name value changes according to different manufacturers, thereby achieving adaptation to industrial cameras of different manufacturers.

[0078] For example, the parameters to be configured are: setting exposure value and rising edge trigger; define the exposure value as Exposure and the rising edge trigger as RisingEdge. That is, there are two keys in the data dictionary: Exposure and RisingEdge. The node name for setting exposure value of Hikvision camera is: ExposureTimeRaw; the node name for rising edge trigger is: Rising Edge, so the data dictionary of Hikvision camera is:

[0079] Node Function Key value Setting the exposure value Exposure ExposureTimeRaw Rising edge trigger RisingEdge Rising Edge

[0080] Similarly, the node name for setting the exposure value of the Cognex camera is ExposureTimeAbs; the node name for the rising edge trigger is RisingEdge, and the data dictionary of the Cognex camera is:

[0081] Node Function Key value Setting the exposure value Exposure ExposureTimeAbs Rising edge trigger RisingEdge RisingEdge

[0082] It should be noted that the above-mentioned parameter keys to be configured are only examples provided in the embodiments of the present application for setting the exposure value and the rising edge trigger. The parameter keys to be configured may also include: pixel format, acquisition mode, trigger mode, trigger delay, automatic exposure mode, gain value, height, width, etc. The present application is not limited to this.

[0083] As an implementation method, the data dictionary can be obtained through the following steps, that is, before step S102, the industrial camera adaptation method also includes: obtaining node list information of industrial cameras from different manufacturers; determining the correspondence between the parameters to be configured and the node names based on the node list information of industrial cameras from different manufacturers; and constructing data dictionaries corresponding to different manufacturers according to the corresponding relationships.

[0084] It should be noted that in order to achieve uniform adaptation of industrial cameras from different manufacturers, it is necessary to pre-build data dictionaries corresponding to different manufacturers. The correspondence between the parameters to be configured and the node names can be determined according to the camera manual provided by the manufacturer of the industrial camera; the correspondence between the parameters to be configured and the node names can also be determined by accessing the XML file inside the industrial camera, thereby building data dictionaries corresponding to different manufacturers, but this application is not limited to this.

[0085] After the data dictionary is constructed, the industrial camera adaptation method further includes: saving the data dictionary.

[0086] In order to use the data dictionary flexibly, the dictionary needs to be saved. Optionally, the saved format uses standard file formats such as JSON or XAML. When camera adaptation is required, the camera settings can be completed by loading the saved data dictionary.

[0087] Specifically, there are many ways to save the data dictionary. For example, the data dictionary can be saved locally in a certain file format (such as the above-mentioned XAML or JSON file format). When the industrial camera is adapted later, the local data dictionary can be directly called to complete the relevant adaptation; the data dictionary can also be uploaded and saved on the server. When other devices (such as industrial computers) need to use the data dictionary, the data dictionary can be directly downloaded from the server to complete the relevant adaptation; the data dictionary can also be transmitted to other electronic devices through the network to realize the remote storage of the data dictionary. It should be noted that the above-mentioned data dictionary storage method is only an example provided in the embodiment of the present application. Those skilled in the art can adjust the data dictionary storage method according to actual conditions, and the present application is not limited to this.

[0088] By saving the data dictionary, when you subsequently adapt the camera or replace the camera with another manufacturer's camera, you do not need to build the data dictionary again. You can directly call the saved data dictionary to control the camera, which improves the adaptation efficiency. At the same time, if the camera is upgraded and maintained, and the node name changes, you only need to modify the saved data dictionary accordingly to complete the update of the control program, without modifying the underlying program code, reducing the labor cost of industrial camera maintenance.

[0089] Then, you can use the data dictionary to perform the following steps:

[0090] Step S103: querying the node name of the industrial camera corresponding to the parameter to be configured according to the data dictionary, wherein each node name corresponds to a camera attribute of the industrial camera.

[0091] Step S104: configuring the camera properties according to the parameter values.

[0092] In an embodiment of the present application, each node name corresponds to a camera property of an industrial camera (i.e., the parameter to be configured corresponding to the node name). The node is accessed and controlled based on the parameter value received from the user input, and then the camera property is configured to realize image acquisition and image processing functions of the industrial camera.

[0093] As an implementation manner, before step S104, the industrial camera adaptation method further includes: converting the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera.

[0094] There are many data types for the parameters to be configured of industrial cameras from different manufacturers. Taking the setting of exposure value as an example, some manufacturers' industrial cameras use integer type for control, while some manufacturers' industrial cameras use floating point type for control. In the embodiment of the present application, in order to achieve adaptive control of industrial cameras from different manufacturers, the data type of the parameter value input by the user can be converted into the data type corresponding to the parameter to be configured of the connected industrial camera to ensure the normal operation of the industrial camera.

[0095] As an implementation mode, before converting the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera, the industrial camera adaptation method also includes: reading the XML description file of the industrial camera; determining the data type of the parameter to be configured of the industrial camera according to the XML description file.

[0096] There are many ways to determine the data type of the parameter to be configured. For example, the data type of the parameter to be configured can be obtained by reading the XML description file of the industrial camera; or the data type of the parameter to be configured can be obtained according to the node list information provided by the manufacturer and pre-configured in the control program to realize the data type conversion.

[0097] By converting the data type of the parameter value into the data type corresponding to the parameter to be configured of the industrial camera, adaptation of the data type of the parameter to be configured of different cameras is achieved, thereby ensuring the normal operation of the industrial camera.

[0098] Based on the same inventive concept, the present application embodiment provides an industrial camera adapter device. Figure 2 , Figure 2 The structural block diagram of an industrial camera adapter device provided by an embodiment of the present invention, the industrial camera adapter device 200 includes:

[0099] The receiving module 201 is used to receive the parameter value corresponding to the parameter to be configured input by the user;

[0100] An acquisition module 202 is used to acquire the manufacturer information of the industrial camera and acquire the corresponding data dictionary according to the manufacturer information;

[0101] A query module 203 is used to query the node name of the industrial camera corresponding to the parameter to be configured according to the data dictionary, wherein each node name corresponds to a camera attribute of the industrial camera;

[0102] The configuration module 204 is used to configure the camera properties according to the parameter values.

[0103] As an implementation method, the industrial camera adaptation device further includes:

[0104] The acquisition module 202 is also used to obtain node list information of industrial cameras from different manufacturers;

[0105] A determination module 205 is used to determine the correspondence between the to-be-configured parameters and the node names according to the node list data of the industrial cameras of different manufacturers;

[0106] The construction module 206 is used to construct the data dictionaries corresponding to different manufacturers according to the corresponding relationships.

[0107] As an implementation method, the industrial camera adaptation device further includes:

[0108] The saving module 207 is used to save the data dictionary.

[0109] As an implementation method, the industrial camera adaptation device further includes:

[0110] The conversion module 208 is used to convert the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera.

[0111] As an implementation method, the industrial camera adaptation device further includes:

[0112] A reading module 209, used to read the XML description file of the industrial camera;

[0113] The determination module 205 is further configured to determine the data type of the to-be-configured parameter of the industrial camera according to the XML description file.

[0114] As an implementation manner, the acquisition module 202 is further used to acquire the parameters to be configured that need to be configured determined by the user according to an actual usage scenario.

[0115] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device is provided for an embodiment of the present application. The electronic device 300 may be a personal computer (PC), a tablet computer, a smart phone, a personal digital assistant (PDA), etc.

[0116] The electronic device 300 may include: a processor 301 , a memory 302 , and a communication bus, and the communication bus is used to realize connection and communication among these components.

[0117] The memory 302 is used to store various data such as computing program instructions corresponding to the industrial camera adaptation method provided in the embodiment of the present application, wherein the memory 302 can be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.

[0118] The processor 301 is used to read and run the computer program instructions stored in the memory to execute the steps of the industrial camera adaptation method provided in the embodiment of the present application.

[0119] Among them, the processor 301 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor 301 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0120] In addition, an embodiment of the present application further provides a storage medium, in which a computer program is stored. When the computer program is run on a computer, the computer executes the method provided by any embodiment of the present application.

[0121] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0122] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0124] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM) random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0125] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0126] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.

Claims

1. An industrial camera adaptation method, characterized in that: include: Receive parameter values ​​corresponding to the parameters to be configured input by the user; Obtain the manufacturer information of the industrial camera, and obtain the corresponding data dictionary according to the manufacturer information; Querying the node name of the industrial camera corresponding to the parameter to be configured according to the data dictionary, wherein each of the node names corresponds to a camera attribute of the industrial camera; configuring the camera properties according to the parameter values; Before obtaining the manufacturer information of the industrial camera and obtaining the corresponding data dictionary according to the manufacturer information, the industrial camera adaptation method further includes: Get node list information of industrial cameras from different manufacturers; Determine the correspondence between the parameters to be configured and the node names according to the node list data of the industrial cameras of different manufacturers; The data dictionaries corresponding to different manufacturers are constructed respectively according to the corresponding relationships.

2. The industrial camera adaptation method according to claim 1, characterized in that: After respectively constructing the data dictionaries corresponding to different manufacturers according to the corresponding relationships, the industrial camera adaptation method further includes: The data dictionary is saved.

3. The industrial camera adaptation method according to claim 1, characterized in that: There are various data types of the parameters to be configured for different industrial cameras. Before configuring the camera properties according to the parameter values, the industrial camera adaptation method further includes: The data type of the parameter value is converted into a data type corresponding to the parameter to be configured of the industrial camera.

4. The industrial camera adaptation method according to claim 3, characterized in that: Before converting the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera, the industrial camera adaptation method includes: Read the XML description file of the industrial camera; The data type of the to-be-configured parameter of the industrial camera is determined according to the XML description file.

5. The industrial camera adaptation method according to claim 1, characterized in that: Before receiving the parameter value corresponding to the parameter to be configured input by the user, the industrial camera adaptation method further includes: The parameters to be configured that need to be configured according to the actual usage scenario determined by the user are obtained.

6. An industrial camera adapter device, characterized in that: include: A receiving module, used to receive parameter values ​​corresponding to the parameters to be configured input by the user; An acquisition module is used to acquire the manufacturer information of the industrial camera and acquire the corresponding data dictionary according to the manufacturer information; A query module, used for querying the node name of the industrial camera corresponding to the parameter to be configured according to the data dictionary, wherein each of the node names corresponds to a camera attribute of the industrial camera; A configuration module, used to configure the camera properties according to the parameter values; The acquisition module is also used to obtain node list information of industrial cameras from different manufacturers; A determination module, used to determine the correspondence between the parameters to be configured and the node names according to the node list data of the industrial cameras of different manufacturers; A construction module is used to construct the data dictionaries corresponding to different manufacturers according to the corresponding relationships.

7. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer program instructions, and when the computer program instructions are read and executed by the processor, the steps of the method according to any one of claims 1 to 5 are executed.

8. A storage medium, characterized in that: The storage medium stores computer program instructions, and when the computer program instructions are read and executed by a computer, the steps of the method according to any one of claims 1 to 5 are executed.