CN111736870A - Industrial camera adaptation method and device, electronic equipment and storage medium - Google Patents
Industrial camera adaptation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111736870A CN111736870A CN202010571257.8A CN202010571257A CN111736870A CN 111736870 A CN111736870 A CN 111736870A CN 202010571257 A CN202010571257 A CN 202010571257A CN 111736870 A CN111736870 A CN 111736870A
- Authority
- CN
- China
- Prior art keywords
- industrial camera
- industrial
- parameter
- camera
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000006978 adaptation Effects 0.000 title claims abstract description 30
- 238000004590 computer program Methods 0.000 claims description 10
- 238000010276 construction Methods 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 14
- 230000000630 rising effect Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 101000857680 Xenopus laevis Runt-related transcription factor 1 Proteins 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
Abstract
The application provides an industrial camera adaptation method, an industrial camera adaptation device, electronic equipment and a storage medium, wherein the industrial camera adaptation method comprises the following steps: receiving a parameter value corresponding to a parameter to be configured, which is input by a user; acquiring manufacturer information of an industrial camera, and acquiring a corresponding data dictionary according to the manufacturer information; inquiring node names of the industrial cameras corresponding to the parameters to be configured according to the data dictionary, wherein each node name corresponds to one camera attribute of the industrial cameras; and configuring the camera attribute according to the parameter value. The corresponding data dictionary is obtained according to the manufacturer information, and the industrial cameras are configured according to the data dictionary, so that independent control program development is not needed for the industrial cameras of different manufacturers, adaptation of the industrial cameras of different manufacturers is realized, development complexity is reduced, and development efficiency is improved.
Description
Technical Field
The application relates to the field of automatic control, in particular to an industrial camera adapting method, an industrial camera adapting device, electronic equipment and a storage medium.
Background
With the rapid development of the machine vision industry, industrial cameras, which are one of the important components of machine vision systems, have also been greatly developed. In the control process of existing automation devices, industrial cameras are often used to perform functions such as positioning, detection, measurement, etc.
When the industrial camera is used, the industrial camera needs to be configured and controlled by writing a control program. However, the Software Development Kit (SDK) provided by different manufacturers has different Development interfaces and is incompatible with each other, developers need to develop the SDK respectively for the industrial cameras of different manufacturers, a control program developed for the industrial camera of a certain manufacturer can only control the industrial camera of the manufacturer, and the SDK needs to be developed again when the industrial cameras of other manufacturers are used, so that the Development is complicated, and the efficiency is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide an industrial camera adapting method, apparatus, electronic device and storage medium, so as to solve the problems of tedious development and low efficiency.
In a first aspect, an embodiment of the present invention provides an industrial camera adapting method, including:
receiving a parameter value corresponding to a parameter to be configured, which is input by a user;
acquiring manufacturer information of an industrial camera, and acquiring a corresponding data dictionary according to the manufacturer information;
inquiring node names of the industrial cameras corresponding to the parameters to be configured according to the data dictionary, wherein each node name corresponds to one camera attribute of the industrial cameras;
and configuring the camera attribute according to the parameter value.
The corresponding data dictionary is obtained according to the manufacturer information, and the industrial cameras are configured according to the data dictionary, so that control program development is not needed for the industrial cameras of different manufacturers, namely, adaptation of the industrial cameras of different manufacturers is realized, the complexity of development is reduced, and the development efficiency is improved.
In an optional embodiment, before the obtaining manufacturer information of the industrial camera and obtaining the corresponding data dictionary according to the manufacturer information, the industrial camera adapting method further includes:
acquiring node list data of industrial cameras of different manufacturers;
determining the corresponding relation between the parameter to be configured and the node name according to the node list data of the industrial cameras of different manufacturers;
and respectively constructing the data dictionaries corresponding to different manufacturers according to the corresponding relations.
In an optional embodiment, after the respectively constructing the data dictionaries corresponding to different manufacturers according to the correspondence, the industrial camera adapting method further includes:
and saving the data dictionary.
Through saving the data dictionary, when the camera is subsequently adapted or replaced by cameras of other manufacturers, the data dictionary does not need to be built again, the stored data dictionary is directly called to realize the control of the camera, and the adaptation efficiency is improved. Meanwhile, if the camera is upgraded and maintained, the node name is changed, the control program can be updated only by correspondingly modifying the stored data dictionary, the bottom program code does not need to be modified, and the labor cost for maintaining the industrial camera is reduced.
In an optional embodiment, there are multiple data types of the parameter to be configured for different industrial cameras, and before the configuring the camera attribute according to the parameter value, the industrial camera adapting method further includes:
and converting the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera.
In an optional embodiment, before the converting the data type of the parameter value into the data type corresponding to the parameter to be configured of the industrial camera, the industrial camera adapting method includes:
reading an XML description file of the industrial camera;
and determining the data type of the parameter to be configured of the industrial camera according to the XML description file.
The data type of the parameter value input by the user is converted into the data type corresponding to the parameter to be configured of the connected industrial camera, so that the normal operation of the industrial camera is ensured.
In an optional embodiment, before the receiving a parameter value corresponding to a parameter to be configured input by a user, the industrial camera adapting method further includes:
and acquiring the parameters to be configured, which are determined by the user according to the actual use scene and need to be configured.
In a second aspect, an embodiment of the present invention provides an industrial camera adapting device, including:
the receiving module is used for receiving a parameter value corresponding to a parameter to be configured, which is input by a user;
the acquisition module is used for acquiring manufacturer information of the industrial camera and acquiring a corresponding data dictionary according to the manufacturer information;
the query module is used for querying the node names of the industrial cameras corresponding to the parameters to be configured according to the data dictionary, wherein each node name corresponds to one camera attribute of the industrial camera;
and the configuration module is used for receiving the parameter values to configure the camera attributes.
In an optional embodiment, the industrial camera adapting device further comprises:
the acquisition module is also used for acquiring node list data of industrial cameras of different manufacturers;
the determining module is used for determining the corresponding relation between the parameter to be configured and the node name according to the node list information of the industrial cameras of different manufacturers;
and the construction module is used for respectively constructing the data dictionaries corresponding to different manufacturers according to the corresponding relation.
In an optional embodiment, the industrial camera adapting device further comprises:
and the storage module is used for storing the data dictionary.
In an optional embodiment, the industrial camera adapting device further comprises:
and the conversion module is used for converting the data type of the parameter value into the data type corresponding to the parameter to be configured of the industrial camera.
In an optional embodiment, the industrial camera adapting device further comprises:
the reading module is used for reading the XML description file of the industrial camera;
the determining module is further used for determining the data type of the parameter to be configured of the industrial camera according to the XML description file.
In an optional embodiment, the industrial camera adapting device further comprises:
the obtaining module is further configured to obtain the parameter to be configured, which is determined by the user according to the actual usage scenario and needs to be configured.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory stores computer program instructions, and the computer program instructions, when read and executed by the processor, perform the steps of the industrial camera adapting method according to any one of the foregoing embodiments.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a computer, the steps of the industrial camera adaptation method according to any one of the foregoing embodiments are performed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of an industrial camera adapting method according to an embodiment of the present disclosure;
fig. 2 is a block diagram illustrating a structure of an industrial camera adapting device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 200-an industrial camera adapting device; 201-a receiving module; 202-an obtaining module; 203-a query module; 204-configuration module; 205-a determination module; 206-a building block; 207-a saving module; 208-a conversion module; 209-reading module; 300-an electronic device; 301-a processor; 302-memory.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
With the rapid development of the machine vision industry, industrial cameras, which are one of the important components of machine vision systems, have also been greatly developed. In the control process of existing automation devices, industrial cameras are often used to perform functions such as positioning, detection, measurement, etc.
When the industrial camera is used, the industrial camera needs to be configured and controlled by writing a control program. However, the SDK development interfaces provided by different manufacturers are different and incompatible with each other, and developers need to respectively develop the industrial cameras of different manufacturers, and a control program developed for an industrial camera of a certain manufacturer can only control the industrial camera of the manufacturer, and needs to be re-developed when industrial cameras of other manufacturers are used, thereby resulting in complicated development and low efficiency.
The objective of the camera Generic Interface (Generic Interface for Cameras, GenICam) is to provide a Generic Programming Interface for various devices (mainly Cameras), and the Application Programming Interface (API) used is the same regardless of the Interface technology used. The core technology is to describe the camera attribute through an XML description file, so as to realize the configuration of the camera attribute.
Based on the analysis, the inventor of the present application provides an industrial camera adaptation method to solve the problems of tedious development and low efficiency.
Referring to fig. 1, fig. 1 is a flowchart illustrating an industrial camera adapting method according to an embodiment of the present disclosure, where the industrial camera adapting method includes the following steps:
step S101: and receiving a parameter value corresponding to the parameter to be configured, which is input by a user.
Step S102: and acquiring manufacturer information of the industrial camera, and acquiring a corresponding data dictionary according to the manufacturer information.
Step S103: and inquiring the node names of the industrial cameras corresponding to the parameters to be configured according to the data dictionary, wherein each node name corresponds to one camera attribute of the industrial camera.
Step S104: and configuring the camera attribute according to the parameter value.
Industrial cameras include GIGE cameras, USB3.0 cameras, and the like. In this embodiment, the industrial camera is a GIGE camera.
Specifically, first, a parameter value corresponding to a parameter to be configured, which is input by a user, is received, where the parameter to be configured is a working parameter of an industrial camera, for example: exposure values, gain values, pixel formats, etc.
Then, the manufacturer information of the industrial camera is obtained, and a corresponding data dictionary is obtained according to the manufacturer information. Because the Software Development Kit (SDK) of the industrial cameras of different manufacturers is different, corresponding data dictionaries can be established for different manufacturers. When the industrial camera configuration is needed, the manufacturer information of the connected industrial camera is obtained, and the data dictionary is obtained according to the manufacturer information.
And then inquiring the node name of the industrial camera of the manufacturer corresponding to the parameter to be configured according to the data dictionary. In the GenICam standard, nodes are defined, which are the basic units describing a certain configuration parameter. The data dictionary comprises the corresponding relation between the parameters to be configured and the node names. 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 input by the user.
According to the embodiment of the application, the corresponding data dictionary is acquired through the manufacturer information, the industrial cameras are configured according to the data dictionary, control program development does not need to be carried out on the industrial cameras of different manufacturers, namely, adaptation of the industrial cameras of different manufacturers is achieved, so that the complexity of development is reduced, and the development efficiency is improved.
The above-described flow will be described in detail below.
Step S101: and receiving a parameter value corresponding to the parameter to be configured, which is input by a user.
In the embodiment of the application, a parameter value corresponding to a parameter to be configured, which is input by a user, is first received, where the parameter to be configured is a working parameter of an industrial camera, for example: exposure values, gain values, pixel formats, etc. And the user inputs corresponding parameter values respectively aiming at different parameters to be configured so as to configure the industrial camera.
As an implementation manner, before receiving a parameter value corresponding to a parameter to be configured input by a user, the industrial camera adapting method further includes:
and acquiring parameters to be configured, which are determined by a user according to an actual use scene and need to be configured.
Specifically, in different usage scenarios, there are differences in the parameters to be configured that the industrial camera needs to be configured. Therefore, before receiving the parameter value corresponding to the parameter to be configured input by the user, the parameter to be configured, which is determined by the user according to the actual working scene of the industrial camera and needs to be configured, needs to be acquired. And after determining the to-be-configured parameters needing to be configured, receiving the parameter values corresponding to the to-be-configured parameters output by the user, and configuring the industrial camera.
Step S102: and acquiring manufacturer information of the industrial camera, and acquiring a corresponding data dictionary according to the manufacturer information.
The method for acquiring the manufacturer information can be realized in various ways, for example, acquiring the manufacturer information of the industrial camera selected by the manual input of the user; alternatively, after establishing a connection with the industrial camera, device information of the industrial camera is accessed to acquire vendor information of the industrial camera.
In the embodiment of the application, after step S101, a parameter value corresponding to a parameter to be configured, which is input by a user, is received, and then the parameter to be configured may be set according to the parameter value, that is, a 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 specific desired nodes cannot be indexed by a uniform name.
In the embodiment of the application, in order to realize adaptation of industrial cameras of different manufacturers, the data dictionary corresponding to the industrial cameras can be acquired according to manufacturer information.
It should be noted that, for each manufacturer, there is a set of data dictionary corresponding to the manufacturer.
The data dictionary is a corresponding relation table of parameters to be configured and node names. And defining each parameter to be configured as a key, and defining the node name corresponding to the parameter to be configured as a value. The key to be configured is unique, and the node name value is changed according to different manufacturers, so that the adaptation of industrial cameras of different manufacturers is realized.
For example, the parameters to be configured are: setting an exposure value and a rising edge trigger; the Exposure value is defined as Exposure and the rising edge trigger is defined as RisingEdge. Namely, there are 2 keys in the data dictionary: exposure and RisingEdge. The Haokwev video camera represents a node name for setting an exposure value: ExposureTimeRaw; the node name representing the rising edge trigger is: the Rising Edge, then the data dictionary of the Haikangwei video camera is:
node function | Key | value |
Setting exposure values | Exposure | ExposureTimeRaw |
Rising edge triggering | RisingEdge | Rising Edge |
Similarly, the conrady camera represents a node name for setting an exposure value: ExposureTimeAbs; the node name representing the rising edge trigger is: RisingEdge, then the data dictionary for the Kangnaire camera is:
node function | Key | value |
Setting exposure values | Exposure | ExposureTimeAbs |
Rising edge triggering | RisingEdge | RisingEdge |
It should be noted that, the above-mentioned to-be-configured parameter key is only an example provided in the embodiment of the present application for setting the exposure value and triggering the rising edge, and the to-be-configured parameter key may further include: pixel format, acquisition mode, trigger delay, auto-exposure mode, gain value, height, width, etc., and the application is not limited thereto.
As an embodiment, the data dictionary may be obtained by the following steps, that is, before step S102, the industrial camera adapting method further includes: acquiring node list data of industrial cameras of different manufacturers; determining the corresponding relation between the parameters to be configured and the node names according to the node list data of the industrial cameras of different manufacturers; and respectively constructing data dictionaries corresponding to different manufacturers according to the corresponding relation.
It should be noted that, in order to implement uniform adaptation to industrial cameras of different manufacturers, data dictionaries corresponding to different manufacturers need to be constructed in advance. The corresponding relation between the parameters to be configured and the node names can be determined according to camera specifications provided by manufacturers of industrial cameras; the corresponding relationship between the parameter to be configured and the node name can also be determined by accessing an XML file inside the industrial camera, so as to construct data dictionaries corresponding to different manufacturers, which is not limited in the present application.
After the data dictionary is built, the industrial camera adaptation method further comprises the following steps: and saving the data dictionary.
In order to flexibly use the data dictionary, the dictionary needs to be saved. Optionally, the stored format adopts a standard JSON or XAML file format. When camera adaptation is needed, the camera setting can be completed by loading the stored data dictionary.
Specifically, the data dictionary may be stored in various ways, such as: storing the data dictionary to the local in a certain file format (such as XAML or JSON file format), and directly calling the local data dictionary to complete related adaptation when performing industrial camera adaptation subsequently; the data dictionary can also be uploaded and stored on a server, and when other equipment (such as an industrial personal computer) needs to use the data dictionary, the data dictionary can be directly downloaded from the server, so that relevant adaptation is completed; the data dictionary can be transmitted to other electronic equipment in a network transmission mode, and the data dictionary can be stored in different places. It should be noted that the above storage manner of the data dictionary is only an example provided in the embodiment of the present application, and a person skilled in the art may adjust the storage manner of the data dictionary according to actual situations, and the present application is not limited thereto.
Through saving the data dictionary, when the camera is subsequently adapted or replaced by cameras of other manufacturers, the data dictionary does not need to be built again, the stored data dictionary is directly called to realize the control of the camera, and the adaptation efficiency is improved. Meanwhile, if the camera is upgraded and maintained, the node name is changed, the control program can be updated only by correspondingly modifying the stored data dictionary, the bottom program code does not need to be modified, and the labor cost for maintaining the industrial camera is reduced.
Then, the following steps may be performed using the data dictionary:
step S103: and inquiring the node names of the industrial cameras corresponding to the parameters to be configured according to the data dictionary, wherein each node name corresponds to one camera attribute of the industrial camera.
Step S104: and configuring the camera attribute according to the parameter value.
In the embodiment of the application, each node name corresponds to one camera attribute of the industrial camera (namely, a parameter to be configured corresponding to the node name), and the nodes are accessed and controlled according to the received parameter value input by the user, so that the camera attribute is configured, and the functions of image acquisition, image processing and the like of the industrial camera are realized.
As an embodiment, before step S104, the industrial camera adapting method further includes: and converting the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera.
The data types of the parameters to be configured of the industrial cameras of different manufacturers exist in various manners, for example, setting the exposure value, the industrial cameras of some manufacturers are controlled by adopting an integer type, and the industrial cameras of some manufacturers are controlled by adopting a floating point type. In the embodiment of the application, in order to realize the adaptive control of the industrial cameras of 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, so that the normal operation of the industrial camera is ensured.
As an embodiment, before converting the data type of the parameter value into the data type corresponding to the parameter to be configured of the industrial camera, the industrial camera adapting method further includes: reading an XML description file of the industrial camera; and determining the data type of the parameter to be configured of the industrial camera according to the XML description file.
There are various methods for determining the data type of the parameter to be configured, for example, the data type of the parameter to be configured may be obtained by reading an XML description file of the industrial camera; or the data type of the parameter to be configured is obtained according to the node list data provided by the manufacturer and is configured in the control program in advance so as to realize the conversion of the data type.
The data types of the parameter values are converted into the data types corresponding to the parameters to be configured of the industrial camera, so that the data types of the parameters to be configured of different cameras are adapted, and the normal operation of the industrial camera is ensured.
Based on the same inventive concept, the embodiment of the application provides an industrial camera adapting device. Referring to fig. 2, fig. 2 is a block diagram of an industrial camera adapting device according to an embodiment of the present invention, the industrial camera adapting device 200 includes:
a receiving module 201, configured to receive a parameter value corresponding to a parameter to be configured, which is input by a user;
the acquisition module 202 is used for acquiring manufacturer information of the industrial camera and acquiring a corresponding data dictionary according to the manufacturer information;
the query module 203 is configured to query node names of the industrial cameras corresponding to the parameters to be configured according to the data dictionary, where each node name corresponds to a camera attribute of the industrial camera;
a configuration module 204, configured to configure the camera attribute according to the parameter value.
As an embodiment, the industrial camera adapting device further comprises:
the obtaining module 202 is further configured to obtain node list data of industrial cameras of different manufacturers;
a determining module 205, configured to determine, according to node list data of the industrial cameras of different manufacturers, a correspondence between the parameter to be configured and the node name;
a building module 206, configured to respectively build the data dictionaries corresponding to different manufacturers according to the correspondence.
As an embodiment, the industrial camera adapting device further comprises:
and the storage module 207 is used for storing the data dictionary.
As an embodiment, the industrial camera adapting device further comprises:
a conversion module 208, configured to convert the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera.
As an embodiment, the industrial camera adapting device further comprises:
a reading module 209 for reading the XML description file of the industrial camera;
the determining module 205 is further configured to determine a data type of the parameter to be configured of the industrial camera according to the XML description file.
As an implementation manner, the obtaining module 202 is further configured to obtain the parameter to be configured, which is determined by the user according to the actual usage scenario and needs to be configured.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device 300 may be a Personal Computer (PC), a tablet PC, a smart phone, a Personal Digital Assistant (PDA), or the like.
The electronic device 300 may include: a process 301, a memory 302, and a communication bus for enabling connection communication of these components.
The Memory 302 is used for storing various data such as a computer program instruction corresponding to the industrial camera adaptation method provided in the embodiment of the present application, where the Memory 302 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 301 is configured to read and execute the computer program instructions stored in the memory, and execute the steps of the industrial camera adapting method provided by the embodiment of the present application.
The processor 301 may be an integrated circuit chip having signal processing capabilities. The Processor 301 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In addition, a storage medium is provided in an embodiment of the present application, and a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is caused to execute the method provided in any embodiment of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the 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.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. An industrial camera adaptation method, comprising:
receiving a parameter value corresponding to a parameter to be configured, which is input by a user;
acquiring manufacturer information of an industrial camera, and acquiring a corresponding data dictionary according to the manufacturer information;
inquiring node names of the industrial cameras corresponding to the parameters to be configured according to the data dictionary, wherein each node name corresponds to one camera attribute of the industrial cameras;
and configuring the camera attribute according to the parameter value.
2. The industrial camera adaptation method according to claim 1, wherein before the obtaining manufacturer information of the industrial camera and obtaining the corresponding data dictionary according to the manufacturer information, the industrial camera adaptation method further comprises:
acquiring node list data of industrial cameras of different manufacturers;
determining the corresponding relation between the parameter to be configured and the node name according to the node list data of the industrial cameras of different manufacturers;
and respectively constructing the data dictionaries corresponding to different manufacturers according to the corresponding relations.
3. The industrial camera adapting method according to claim 2, after the constructing the data dictionaries corresponding to different manufacturers respectively according to the correspondence, the industrial camera adapting method further comprises:
and saving the data dictionary.
4. The industrial camera adaptation method according to claim 1, wherein there are a plurality of data types of the parameter to be configured for different industrial cameras, and before the configuring the camera attribute according to the parameter value, the industrial camera adaptation method further comprises:
and converting the data type of the parameter value into a data type corresponding to the parameter to be configured of the industrial camera.
5. The industrial camera adaptation method according to claim 4, wherein prior to said converting the data type of the parameter value to the data type corresponding to the parameter to be configured of the industrial camera, the industrial camera adaptation method comprises:
reading an XML description file of the industrial camera;
and determining the data type of the parameter to be configured of the industrial camera according to the XML description file.
6. The industrial camera adaptation method according to claim 1, wherein before the receiving the parameter value corresponding to the parameter to be configured input by the user, the industrial camera adaptation method further comprises:
and acquiring the parameters to be configured, which are determined by the user according to the actual use scene and need to be configured.
7. An industrial camera adapting device, comprising:
the receiving module is used for receiving a parameter value corresponding to a parameter to be configured, which is input by a user;
the acquisition module is used for acquiring manufacturer information of the industrial camera and acquiring a corresponding data dictionary according to the manufacturer information;
the query module is used for querying the node names of the industrial cameras corresponding to the parameters to be configured according to the data dictionary, wherein each node name corresponds to one camera attribute of the industrial camera;
and the configuration module is used for configuring the camera attribute according to the parameter value.
8. The adapting device according to claim 7, further comprising:
the acquisition module is also used for acquiring node list data of industrial cameras of different manufacturers;
the determining module is used for determining the corresponding relation between the parameter to be configured and the node name according to the node list information of the industrial cameras of different manufacturers;
and the construction module is used for respectively constructing the data dictionaries corresponding to different manufacturers according to the corresponding relation.
9. An electronic device comprising a memory and a processor, the memory having stored therein computer program instructions which, when read and executed by the processor, perform the steps of the method of any of claims 1-6.
10. A storage medium having stored thereon computer program instructions which, when read and executed by a computer, perform the steps of the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010571257.8A CN111736870B (en) | 2020-06-19 | 2020-06-19 | Industrial camera adaptation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010571257.8A CN111736870B (en) | 2020-06-19 | 2020-06-19 | Industrial camera adaptation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111736870A true CN111736870A (en) | 2020-10-02 |
CN111736870B CN111736870B (en) | 2024-10-15 |
Family
ID=72651901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010571257.8A Active CN111736870B (en) | 2020-06-19 | 2020-06-19 | Industrial camera adaptation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111736870B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112667670A (en) * | 2020-12-30 | 2021-04-16 | 凌云光技术股份有限公司 | Method and device for configuring industrial camera parameters and computer-readable storage medium |
CN114237720A (en) * | 2021-11-12 | 2022-03-25 | 深圳市普渡科技有限公司 | Loading device, apparatus and method for depth camera and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049375A (en) * | 2012-12-07 | 2013-04-17 | 广东欧珀移动通信有限公司 | Camera online debugging method |
CN104125206A (en) * | 2013-04-27 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Client-side hardware environment adaption method, device, server and system |
CN105472249A (en) * | 2015-12-24 | 2016-04-06 | 惠州Tcl移动通信有限公司 | Compatible control method and device for camera |
US9547883B1 (en) * | 2016-08-19 | 2017-01-17 | Intelligent Security Systems Corporation | Systems and methods for dewarping images |
CN106462725A (en) * | 2014-01-07 | 2017-02-22 | Arb实验室公司 | Systems and methods of monitoring activities at a gaming venue |
CN107995412A (en) * | 2017-10-31 | 2018-05-04 | 武汉精测电子技术股份有限公司 | A kind of Fiber optic image acquisition device and its application process |
CN108206829A (en) * | 2017-12-28 | 2018-06-26 | 中国科学院西安光学精密机械研究所 | Method for realizing network communication by GigE Vision protocol based on FPGA |
CN110708469A (en) * | 2018-07-10 | 2020-01-17 | 北京地平线机器人技术研发有限公司 | Method and device for adapting exposure parameters and corresponding camera exposure system |
CN110958411A (en) * | 2020-02-23 | 2020-04-03 | 武汉精立电子技术有限公司 | Image acquisition control method and device based on FPGA |
-
2020
- 2020-06-19 CN CN202010571257.8A patent/CN111736870B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049375A (en) * | 2012-12-07 | 2013-04-17 | 广东欧珀移动通信有限公司 | Camera online debugging method |
CN104125206A (en) * | 2013-04-27 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Client-side hardware environment adaption method, device, server and system |
CN106462725A (en) * | 2014-01-07 | 2017-02-22 | Arb实验室公司 | Systems and methods of monitoring activities at a gaming venue |
CN105472249A (en) * | 2015-12-24 | 2016-04-06 | 惠州Tcl移动通信有限公司 | Compatible control method and device for camera |
US9547883B1 (en) * | 2016-08-19 | 2017-01-17 | Intelligent Security Systems Corporation | Systems and methods for dewarping images |
CN107995412A (en) * | 2017-10-31 | 2018-05-04 | 武汉精测电子技术股份有限公司 | A kind of Fiber optic image acquisition device and its application process |
CN108206829A (en) * | 2017-12-28 | 2018-06-26 | 中国科学院西安光学精密机械研究所 | Method for realizing network communication by GigE Vision protocol based on FPGA |
CN110708469A (en) * | 2018-07-10 | 2020-01-17 | 北京地平线机器人技术研发有限公司 | Method and device for adapting exposure parameters and corresponding camera exposure system |
CN110958411A (en) * | 2020-02-23 | 2020-04-03 | 武汉精立电子技术有限公司 | Image acquisition control method and device based on FPGA |
Non-Patent Citations (3)
Title |
---|
EMVA: "Generic Control Protocol", Retrieved from the Internet <URL:https://www.emva.org/wp-content/uploads/GenICam_Standard_v2_0.pdf> * |
HELLO-FPGA: "CoaXPress 接口相机的控制方法--1", Retrieved from the Internet <URL:https://www.cnblogs.com/xingce/p/15902246.html> * |
小时候挺菜: "GenIcam标准(二)", pages 1 - 4, Retrieved from the Internet <URL:https://blog.csdn.net/z735640642/article/details/84306355?spm=1001.2101.3001.6650.13&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-13-84306355-blog-91527129.235%5Ev43%5Epc_blog_bottom_relevance_base4&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-13-84306355-blog-91527129.235%5Ev43%5Epc_blog_bottom_relevance_base4&utm_relevant_index=17> * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112667670A (en) * | 2020-12-30 | 2021-04-16 | 凌云光技术股份有限公司 | Method and device for configuring industrial camera parameters and computer-readable storage medium |
CN114237720A (en) * | 2021-11-12 | 2022-03-25 | 深圳市普渡科技有限公司 | Loading device, apparatus and method for depth camera and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111736870B (en) | 2024-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111428462A (en) | Communication protocol template construction method and terminal equipment | |
CN109634841B (en) | Electronic device, interface automatic test method and storage medium | |
CN111736870B (en) | Industrial camera adaptation method | |
CN111506579B (en) | Method, program and equipment for generating intelligent contract code | |
CN112729868A (en) | Vehicle diagnosis method, device, equipment and medium | |
CN113961196A (en) | Method, device and equipment for automatically generating codes and readable storage medium | |
CN111488144B (en) | Data processing method and device | |
JP7313020B2 (en) | METHOD, MEDIUM AND DEVICE FOR GENERATING MOUNT DATA | |
CN111399849A (en) | Method and system for determining application program installation package | |
CN109284128B (en) | Method, device, storage medium and mobile terminal for converting data | |
CN116016692A (en) | Protocol description text construction method, device, equipment and storage medium | |
CN113867778B (en) | Image file generation method and device, electronic equipment and storage medium | |
CN114860362A (en) | Interface updating method and device | |
CN115291963A (en) | Method for configuring hardware resources, electronic device and storage medium | |
CN114356330A (en) | Page configuration method and device, electronic equipment and storage medium | |
CN113900755A (en) | Alarm page processing method and device, computer equipment and readable storage medium | |
CN112667670A (en) | Method and device for configuring industrial camera parameters and computer-readable storage medium | |
CN111026466A (en) | File processing method and device, computer readable storage medium and electronic equipment | |
CN116028055B (en) | Target object state control method and device, electronic equipment and storage medium | |
CN112748945B (en) | Data storage method and device and electronic equipment | |
CN112527285B (en) | Script generation method and device | |
CN114942899B (en) | Pin configuration method, module, equipment and storage medium | |
CN116319725A (en) | Device control method, device, electronic device and storage medium | |
CN118410212A (en) | Definition generation method and device for metadata in graph database | |
CN118363633A (en) | Virtual traffic card applet upgrading and service management methods and devices and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |