A digital twin construction method and system based on WEB configuration

Through the digital twin construction method based on WEB configuration, the graphical configuration and real-time monitoring of the production line equipment in the workshop are realized, which solves the problem that the existing system cannot be configured and monitored, and improves the user experience and security.

CN118296682BActive Publication Date: 2024-09-06NANJING XINGJI DIGITAL TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410720982.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-06
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

The existing digital twin system cannot configure the production line equipment inside the workshop through the graphical interface, and cannot realize real-time monitoring and warning of the operating status and alarm status of the production line equipment inside the workshop, which cannot meet the needs of users.

Method used

Adopt a digital twin construction method based on WEB configuration, process the images frame by frame by obtaining the workshop appearance video, abstract the functional characteristics and operating parameters of the production line equipment, generate a graphical configuration diagram, and edit the component library through the WEB page to build a digital twin model , to achieve graphical display and real-time monitoring.

Benefits of technology

It improves user experience and security, realizes monitoring and data interaction through the browser, provides management and security protection functions, and ensures the operational safety of production line equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118296682B
    Figure CN118296682B
Patent Text Reader

Abstract

The present invention discloses a method and system for constructing a digital twin based on WEB configuration, and belongs to the field of digital twin technology. A method for constructing a digital twin based on WEB configuration, comprising the following steps: Step 1: Acquire the appearance data of the workshop and the operating parameters of the production line equipment; Step 2: Process the collected data; Step 3: Synchronize the appearance data of the workshop to the web configuration framework module; Step 4: Generate a graphic configuration diagram; Step 5: Construct a digital twin based on WEB configuration. The present invention solves the problem that the prior art cannot configure the production line equipment inside the workshop through a graphical interface, nor can it realize real-time monitoring and warning of the operating status, alarm status, and equipment data of the production line equipment inside the workshop. The present invention realizes the intuitiveness and beauty of the data, improves the reliability and safety of the digital twin construction, and ensures the safety of the use of the production line equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital twins, and in particular to a digital twin construction method and system based on WEB configuration. Background Art

[0002] Digital twins make full use of data such as physical models, sensor updates, and operation history, integrate multi-disciplinary, multi-physical, multi-scale, and multi-probability simulation processes, and complete mapping in virtual space to reflect the entire life cycle of the corresponding physical equipment. Web configuration is a configuration solution based on Web technology that allows users to monitor and interact with data through a browser.

[0003] The Chinese patent with the publication number CN112818446B discloses a method for constructing a digital twin system of an intelligent workshop, including: constructing a multi-level twin model of all factors of the physical workshop production factors to obtain a digital twin workshop model; constructing a data acquisition system to collect multi-source heterogeneous data of the physical workshop, pre-processing and standardizing the multi-source heterogeneous data and storing them in the database; using the digital twin workshop model as the client, cooperating with the server to realize the interaction between the digital twin workshop client and the database, so that the digital twin workshop client and the physical workshop can achieve two-way mapping; based on the integration of the three-dimensional visualization system, the physical workshop and the digital twin workshop model are deeply integrated and interacted to complete the construction of the digital twin system of the intelligent workshop. This realizes the functions of real-time status display, historical status reproduction, remote control, fault alarm, status prediction, etc., and solves the problems of monotonous data presentation, poor interaction and immersion in existing digital workshops.

[0004] When constructing a digital twin, the above-mentioned patent constructs a model of the workshop, combines the physical workshop and the digital twin workshop model, and completes the construction of the digital twin system of the intelligent workshop. However, it is not possible to configure the production line equipment inside the workshop through a graphical interface, nor is it possible to perform real-time monitoring and warning of the operating status, alarm status, and equipment data of the production line equipment inside the workshop. Therefore, it does not meet existing needs, and a digital twin construction method and system based on WEB configuration is proposed. Summary of the invention

[0005] The purpose of the present invention is to provide a digital twin construction method and system based on WEB configuration. When constructing the digital twin, it is displayed in a graphical way on the web configuration client, which realizes the intuitiveness and beauty of the data, improves the user experience and satisfaction, and constructs the digital twin through WEB configuration. There is no need to install special software. Monitoring and data interaction can be achieved through the browser. It also provides users with management and security protection functions, which can better protect user information and data security, improve the reliability and security of digital twin construction, and can realize real-time monitoring and warning of information such as the operating status, alarm status and equipment data of the production line equipment, so that managers can discover and deal with it in time, ensuring the safety of the use of production line equipment and solving the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solution: a digital twin construction method based on WEB configuration, comprising the following steps:

[0007] Step 1: Obtain the appearance video of the workshop, obtain the image frames to be processed frame by frame from the appearance video of the workshop, obtain the appearance data of the workshop, and collect the operation parameters of the production line equipment;

[0008] Step 2: Process the collected data to graphically display the operating parameter data of the production line equipment, and synchronize the collected data into the web configuration framework as the basic elements of the web configuration;

[0009] Step 3: Perform logical abstraction on the production line equipment, establish the functional characteristics and operating parameters of the production line equipment, and synchronize the functional characteristics and operating parameters of the production line equipment as the basic elements of web configuration to the web configuration framework module, and synchronize the appearance data of the workshop as the basic elements of web configuration to the web configuration framework module;

[0010] Step 4: Establish an intelligent point matching engine and component library, edit each component in the component library through the WEB page, and generate a graphical configuration diagram based on the appearance data of the workshop and the operating parameters of the production line equipment;

[0011] Step 5: Build a digital twin model, input the graphic configuration diagram into the digital twin model, build a digital twin based on WEB configuration, and display it dynamically.

[0012] Preferably, the step of acquiring the image frames to be processed frame by frame from the appearance video of the workshop specifically includes:

[0013] First, the video data is preprocessed by taking screenshots of the key time frames of the video and dividing them into several key time frame screenshots;

[0014] The key time frame screenshots and the image data sent by the data acquisition module are merged to form an image data set;

[0015] All images in the image data set are subjected to a cutout process, and a partial image containing the workshop is cut out from the original image according to the grayscale difference between the workshop edge and the background;

[0016] The cut-out partial image is filled with a single color as a background layer, and is divided into equal-proportion grids to obtain a square first preset image unit;

[0017] Determine the centroid of the first preset image unit, extract all pixels of each first preset image unit, and calculate the distance between any pixel point and the centroid as the preset standard distance;

[0018] Counting the distance between the pixel point and any other pixel point as a first pixel distance, and counting the number of pixel points corresponding to the first pixel distance and a preset standard distance;

[0019] The centroid, the preset standard distance, the first pixel distance, and the number of pixel points corresponding to the first pixel distance and the preset standard distance are taken as the image, that is, the image frame of the workshop appearance.

[0020] Preferably, extracting a partial image containing the workshop from the original image according to the grayscale difference between the workshop edge and the background includes:

[0021] Extracting the grayscale value of the edge pixel block contained in the workshop edge;

[0022] Extracting the grayscale value of the background pixel block adjacent to the edge pixel block;

[0023] The grayscale difference evaluation value of each edge pixel block is obtained by using the grayscale value of the background pixel block that the edge pixel block contacts with the edge pixel block; wherein the grayscale difference evaluation value is obtained by the following formula:

[0024] ;

[0025] in, represents the grayscale difference evaluation value; h represents the evaluation adjustment coefficient corresponding to the edge pixel block; represents the grayscale value corresponding to the edge pixel block; n represents the number of background pixel blocks adjacent to the edge pixel block; Represents the gray value of the i-th background pixel block; Indicates the preset grayscale difference reference value;

[0026] The grayscale difference evaluation value corresponding to the edge pixel block is compared with a preset grayscale difference evaluation threshold, and it is determined whether to adjust the grayscale value of the edge pixel block and its corresponding background pixel block according to the comparison result.

[0027] Preferably, comparing the grayscale difference evaluation value corresponding to the edge pixel block with a preset grayscale difference evaluation threshold, and determining whether to adjust the grayscale value of the edge pixel block and its corresponding background pixel block according to the comparison result, comprises:

[0028] Compare the grayscale difference evaluation value corresponding to the edge pixel block with a preset grayscale difference evaluation threshold to obtain a comparison result;

[0029] When the comparison result indicates that the grayscale difference evaluation value corresponding to the edge pixel block is greater than or equal to the preset grayscale difference evaluation threshold, there is no need to adjust the grayscale value of the edge pixel block and its corresponding background pixel block;

[0030] When the comparison result indicates that the grayscale difference evaluation value corresponding to the edge pixel block is less than the preset grayscale difference evaluation threshold, the edge pixel block corresponding to the grayscale difference evaluation value less than the preset grayscale difference evaluation threshold is taken as the target pixel block;

[0031] Extracting grayscale difference evaluation values ​​corresponding to edge pixel blocks that are in contact with the target pixel block;

[0032] Determine whether the grayscale difference evaluation value corresponding to the edge pixel block contacted by the target pixel block is greater than or equal to the grayscale difference evaluation threshold;

[0033] When there is an edge pixel block contacted by the target pixel block and its corresponding grayscale difference evaluation value is greater than or equal to the grayscale difference evaluation threshold, the grayscale value of the edge pixel block greater than or equal to the grayscale difference evaluation threshold is retrieved, and the grayscale value compensation coefficient is obtained by combining the grayscale value of the edge pixel block contacting the target pixel block and greater than or equal to the grayscale difference evaluation threshold using the grayscale value compensation coefficient model;

[0034] When the grayscale difference evaluation values ​​corresponding to all edge pixel blocks contacted by the target pixel block are all less than the grayscale difference evaluation threshold, the grayscale values ​​of multiple edge pixel blocks whose distances from the target pixel block do not exceed a preset distance threshold and are greater than or equal to the grayscale difference evaluation threshold are retrieved, and the grayscale value compensation coefficient model is used in combination with the grayscale values ​​of multiple edge pixel blocks whose distances from the target pixel block do not exceed a preset distance threshold and are greater than or equal to the grayscale difference evaluation threshold to obtain the grayscale value compensation coefficient;

[0035] Wherein, the structure of the gray value compensation coefficient model is as follows:

[0036] ;

[0037] Wherein, r represents the gray value compensation coefficient; m represents the number of edge pixel blocks used to obtain the gray value compensation coefficient; represents the gray value of the i-th edge pixel block used to obtain the gray value compensation coefficient; Represents the gray value of the target pixel block; Indicates the grayscale value of the background pixel block corresponding to the minimum grayscale difference between the target pixel block and all background pixel blocks corresponding to the target pixel block; represents the coefficient mean; Indicates the evaluation adjustment coefficient corresponding to the target pixel block; represents the evaluation adjustment coefficient of the i-th edge pixel block;

[0038] The grayscale value compensation coefficient is used to adjust the grayscale value of the target pixel block and the grayscale value of the background pixel block corresponding to the target pixel block.

[0039] Preferably, adjusting the grayscale value of the target pixel block and the grayscale value of the background pixel block corresponding to the target pixel block by using the grayscale value compensation coefficient includes:

[0040] Retrieving the gray value compensation coefficient;

[0041] The target grayscale value corresponding to the target pixel block is obtained by using the grayscale value compensation coefficient, wherein the target grayscale value corresponding to the target pixel block is obtained by the following formula:

[0042] ;

[0043] in, represents the target gray value corresponding to the target pixel block; r represents the gray value compensation coefficient; Represents the gray value of the target pixel block; Represents the original grayscale value of the background pixel block;

[0044] Adjusting the grayscale value of the target pixel block according to the target grayscale value corresponding to the target pixel block;

[0045] The target grayscale value of the background pixel block corresponding to the target pixel block is obtained by using the grayscale value compensation coefficient, wherein the target grayscale value of the background pixel block is obtained by the following formula:

[0046] ;

[0047] in, Represents the target grayscale value of the background pixel block; Represents the original grayscale value of the background pixel block; represents the target gray value corresponding to the target pixel block; r represents the gray value compensation coefficient; Represents the gray value of the target pixel block;

[0048] The grayscale value of the background pixel block corresponding to the target pixel block is adjusted according to the target grayscale value of the background pixel block corresponding to the target pixel block.

[0049] Preferably, the building of the digital twin model specifically includes:

[0050] Classify the appearance data of the construction and the operating parameter data of the production line equipment to obtain a number of function files, and compile a dynamic link library according to each function file to obtain a number of function file dynamic link libraries;

[0051] According to the logic diagram of the workshop appearance and the logic diagram of the operating parameter data of the production line equipment, all functional file dynamic link libraries are called to establish a digital twin model, so as to drive the operation of the digital twin model through the logic diagram driving engine.

[0052] A digital twin construction system based on WEB configuration, comprising:

[0053] A data management module is used to collect data, process the collected data, and store the data after processing;

[0054] The web configuration framework module is used to synchronize the functional characteristics and operating parameter data of the production line equipment as the basic elements of the web configuration to the web configuration framework module, and display them graphically to monitor the operating status of the production line equipment in real time. If an abnormality is detected, the alarm information will be displayed through the WEB page;

[0055] The business management module is used to establish a digital twin construction model based on the operating parameters of the production line equipment and the appearance data of the workshop;

[0056] Configuration editing module, used to establish intelligent point matching engine and component library, edit each component in the component library through WEB page, and generate graphic configuration diagrams composed of various components based on the appearance data of the workshop and the operating parameters of the production line equipment;

[0057] The digital twin construction module is used to build a digital twin model, input the graphic configuration diagram into the digital twin model, build a digital twin based on WEB configuration, and display it dynamically.

[0058] Preferably, the web configuration framework module includes:

[0059] The WEB service module is used to graphically display the operating parameter data of the production line equipment and the appearance data of the workshop, and synchronize the collected data into the web configuration framework as the basic elements of the web configuration to realize the configuration basic tool;

[0060] The alarm processing module is used to monitor the operating status of production line equipment in real time, and display alarm information through the WEB page if an abnormality is detected.

[0061] Preferably, the data management module includes:

[0062] The data collection module is used to collect operating parameter data and workshop appearance data from production line equipment through the WEB page according to the pre-made unified data collection standard;

[0063] The data processing module is used to process the collected operating parameter data of the production line equipment and the workshop appearance data, wherein the processing includes: operating parameter data cleaning, operating parameter data classification, and operating parameter data analysis;

[0064] The data storage module is used to store the operating parameter data of the real-time production line equipment, the historical operating parameter data and the appearance data of the workshop.

[0065] Preferably, the data acquisition module specifically includes:

[0066] Obtain a monitoring video stream of the workshop appearance, and obtain the image frames to be processed frame by frame from the monitoring video stream to obtain the workshop appearance data;

[0067] Based on the pre-made unified data collection standard, the operating parameter data is collected from the production line equipment through the WEB page.

[0068] Preferably, the digital twin construction module specifically includes:

[0069] Input the acquired graphic configuration diagram into the pre-established digital twin construction model to obtain the corresponding pre-defined workshop appearance data and production line equipment operation parameter data slices;

[0070] Obtain composite workshop appearance data and production line equipment operation parameter data slices according to predefined workshop appearance data and production line equipment operation parameter data slices and customized workshop appearance data and production line equipment operation parameter data slices;

[0071] The construction of the digital twin based on WEB configuration is completed according to the slicing of the composite workshop appearance data and the production line equipment operation parameter data.

[0072] Compared with the prior art, the present invention has the following beneficial effects:

[0073] The present invention adopts WEB configuration editing and constructs digital twins through WEB configuration. Monitoring and data interaction can be realized through the browser, which provides users with management and security protection functions. It can better protect user information and data security, improve the reliability and security of digital twin construction, and send out an alarm signal when there is an abnormality in the operating parameters of the production line equipment. Real-time monitoring and warning of the operating status, alarm status, equipment data and other information of the production line equipment can be realized, so that management personnel can discover and deal with it in time, ensuring the safety of the use of production line equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 It is a flow chart of the digital twin construction method based on WEB configuration of the present invention;

[0075] Figure 2 This is a module diagram of the digital twin construction system based on WEB configuration of the present invention. DETAILED DESCRIPTION

[0076] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0077] In order to solve the problem that the existing technology cannot configure the production line equipment in the workshop through the graphical interface, and cannot realize the real-time monitoring and warning of the operation status, alarm status and equipment data of the production line equipment in the workshop, please refer to Figure 1-Figure 2 , this embodiment provides the following technical solutions:

[0078] A digital twin construction method based on WEB configuration includes the following steps:

[0079] Step 1: Obtain the appearance video of the workshop, obtain the image frames to be processed frame by frame from the appearance video of the workshop, obtain the appearance data of the workshop, and collect the operating parameters of the production line equipment. By collecting the appearance data of the workshop and the operating parameter data of the production line equipment, it is possible to configure the production line equipment of the workshop through a graphical interface when building a virtual model of the workshop, and understand the operating parameters of the production line equipment, and then adjust the operating parameters of the production line equipment of the physical workshop according to the operating status of the production line equipment of the virtual workshop, thereby ensuring the safety of the operation of the production line equipment;

[0080] Step 2: Process the collected data to graphically display the operating parameter data of the production line equipment, and synchronize the collected data to the web configuration framework as the basic elements of the web configuration. The digital twin is built through the web configuration. There is no need to install special software. Monitoring and data interaction can be achieved through the browser. It has platform independence, scalability, low maintenance cost and modern user experience, which improves user comfort and enhances the ability to quickly build digital twins.

[0081] Step 3: Logically abstract the production line equipment, establish the functional characteristics and operating parameters of the production line equipment, and synchronize the functional characteristics and operating parameters of the production line equipment as the basic elements of the web configuration to the web configuration framework module. Synchronize the appearance data of the workshop as the basic elements of the web configuration to the web configuration framework module. By using the functional characteristics and operating parameters of the production line equipment as the basic elements of the web configuration, you can better understand the operation of the production line equipment, make corresponding adjustments according to the operation of the virtual construction production line equipment, and realize efficient operation and maintenance management of the production line equipment.

[0082] Step 4: Establish an intelligent point matching engine and component library, edit each component in the component library through the WEB page, and generate a graphical configuration diagram based on the appearance data of the workshop and the operating parameters of the production line equipment;

[0083] Step 5: Build a digital twin model, input the graphic configuration diagram into the digital twin model, build a digital twin based on WEB configuration, and display it dynamically. By combining the appearance data of the workshop and the operating parameter data of the production line equipment for digital twin and displaying it dynamically, you can quickly understand the operating status of the production line equipment, thereby improving the efficiency and convenience of production line equipment management.

[0084] Obtain the image frames to be processed frame by frame from the appearance video of the workshop, including:

[0085] First, the video data is preprocessed by taking screenshots of the key time frames of the video and dividing them into several key time frame screenshots;

[0086] The key time frame screenshots and the image data sent by the data acquisition module are merged to form an image data set;

[0087] All images in the image data set are subjected to a cutout process, and a partial image containing the workshop is cut out from the original image according to the grayscale difference between the workshop edge and the background;

[0088] The cut-out partial image is filled with a single color as a background layer, and is divided into equal-proportion grids to obtain a square first preset image unit;

[0089] Determine the centroid of the first preset image unit, extract all pixels of each first preset image unit, and calculate the distance between any pixel point and the centroid as the preset standard distance;

[0090] Counting the distance between the pixel point and any other pixel point as a first pixel distance, and counting the number of pixel points corresponding to the first pixel distance and a preset standard distance;

[0091] The centroid, the preset standard distance, the first pixel distance, and the number of pixel points corresponding to the first pixel distance and the preset standard distance are taken as the image, that is, the image frame of the workshop appearance.

[0092] Since image data and video data are common forms of collected data, and video data is often composed of many key time frame screenshots, the video data is first converted into image data through key time frame screenshots during the data processing process, so that the data format is unified with the original image data. Subsequently, only unified data processing needs to be performed on the image data, which simplifies the steps and difficulty of data processing. In the image processing process, since the image includes the background and the workshop, and the background is often different, the background takes a relatively long time to process the image data, but it is not actually the focus of data processing. Based on the grayscale difference between the edge of the workshop and the background, the workshop image is first cut out, and then the workshop image is grid-divided in equal proportion to obtain a first preset square image unit. By setting the center of mass for the first preset image, the distance between any pixel point and the center of mass can be obtained and set as the preset standard distance. At the same time, the distance between the pixel point and any other pixel point is counted. During the statistical process, this method takes into account the information of other pixels that are at a preset standard distance from the pixel and uses them as image features. Since the obtained image features integrate the spatial information of the pixel and the information of adjacent pixels, this method can describe the image more accurately, thereby improving the accuracy of image recognition. When constructing a digital twin of the workshop appearance, the generated virtual workshop is closer to the physical workshop, ensuring the accuracy of the digital twin construction.

[0093] Specifically, a local image containing the workshop is extracted from the original image according to the grayscale difference between the workshop edge and the background, including:

[0094] Extracting the grayscale value of the edge pixel block contained in the workshop edge;

[0095] Extracting the grayscale value of the background pixel block adjacent to the edge pixel block;

[0096] The grayscale difference evaluation value of each edge pixel block is obtained by using the grayscale value of the background pixel block that the edge pixel block contacts with the edge pixel block; wherein the grayscale difference evaluation value is obtained by the following formula:

[0097] ;

[0098] in, represents the grayscale difference evaluation value; h represents the evaluation adjustment coefficient corresponding to the edge pixel block; represents the grayscale value corresponding to the edge pixel block; n represents the number of background pixel blocks adjacent to the edge pixel block; Represents the gray value of the i-th background pixel block; Indicates the preset grayscale difference reference value;

[0099] The grayscale difference evaluation value corresponding to the edge pixel block is compared with a preset grayscale difference evaluation threshold, and it is determined whether to adjust the grayscale value of the edge pixel block and its corresponding background pixel block according to the comparison result.

[0100] The technical effect of the above technical solution is: by calculating the grayscale difference evaluation value between the edge pixel block and the adjacent background pixel block, the edge position of the workshop can be determined more accurately. This method can capture edge details that are meaningful even if the grayscale difference is small. The introduction of the evaluation adjustment coefficient h allows the algorithm to be adjusted according to specific application scenarios and image characteristics to meet different edge detection requirements. This increases the flexibility and adaptability of the algorithm.

[0101] By comparing the grayscale difference evaluation value with the preset grayscale difference evaluation threshold, it can be determined which edge pixel blocks and their corresponding background pixel blocks need grayscale value adjustment. This helps to effectively separate the workshop from the complex background. The grayscale value adjustment process can further refine the edges of the workshop, eliminate or reduce edge blur or breakage caused by factors such as uneven lighting and noise, thereby improving the quality of the image. The entire cutout process is based on grayscale difference calculation and evaluation, and can be highly automated. No manual intervention or complex parameter adjustment is required, reducing the complexity and cost of the operation.

[0102] In summary, this technical solution can accurately cut out local images containing workshops and improve image quality through edge detection and processing based on grayscale differences. It has a high degree of automation and real-time potential.

[0103] Specifically, comparing the grayscale difference evaluation value corresponding to the edge pixel block with a preset grayscale difference evaluation threshold, and determining whether to adjust the grayscale value of the edge pixel block and its corresponding background pixel block according to the comparison result, including:

[0104] Compare the grayscale difference evaluation value corresponding to the edge pixel block with a preset grayscale difference evaluation threshold to obtain a comparison result;

[0105] When the comparison result indicates that the grayscale difference evaluation value corresponding to the edge pixel block is greater than or equal to the preset grayscale difference evaluation threshold, there is no need to adjust the grayscale value of the edge pixel block and its corresponding background pixel block;

[0106] When the comparison result indicates that the grayscale difference evaluation value corresponding to the edge pixel block is less than the preset grayscale difference evaluation threshold, the edge pixel block corresponding to the grayscale difference evaluation value less than the preset grayscale difference evaluation threshold is taken as the target pixel block;

[0107] Extracting grayscale difference evaluation values ​​corresponding to edge pixel blocks that are in contact with the target pixel block;

[0108] Determine whether the grayscale difference evaluation value corresponding to the edge pixel block contacted by the target pixel block is greater than or equal to the grayscale difference evaluation threshold;

[0109] When there is an edge pixel block contacted by the target pixel block and its corresponding grayscale difference evaluation value is greater than or equal to the grayscale difference evaluation threshold, the grayscale value of the edge pixel block greater than or equal to the grayscale difference evaluation threshold is retrieved, and the grayscale value compensation coefficient is obtained by combining the grayscale value of the edge pixel block contacting the target pixel block and greater than or equal to the grayscale difference evaluation threshold using the grayscale value compensation coefficient model;

[0110] When the grayscale difference evaluation values ​​corresponding to all edge pixel blocks contacted by the target pixel block are all less than the grayscale difference evaluation threshold, the grayscale values ​​of multiple edge pixel blocks whose distances from the target pixel block do not exceed a preset distance threshold and are greater than or equal to the grayscale difference evaluation threshold are retrieved, and the grayscale value compensation coefficient model is used in combination with the grayscale values ​​of multiple edge pixel blocks whose distances from the target pixel block do not exceed a preset distance threshold and are greater than or equal to the grayscale difference evaluation threshold to obtain the grayscale value compensation coefficient;

[0111] Wherein, the structure of the gray value compensation coefficient model is as follows:

[0112] ;

[0113] Wherein, r represents the gray value compensation coefficient; m represents the number of edge pixel blocks used to obtain the gray value compensation coefficient; represents the gray value of the i-th edge pixel block used to obtain the gray value compensation coefficient; Represents the gray value of the target pixel block; Indicates the grayscale value of the background pixel block corresponding to the minimum grayscale difference between the target pixel block and all background pixel blocks corresponding to the target pixel block; represents the coefficient mean; Indicates the evaluation adjustment coefficient corresponding to the target pixel block; represents the evaluation adjustment coefficient of the i-th edge pixel block;

[0114] The grayscale value compensation coefficient is used to adjust the grayscale value of the target pixel block and the grayscale value of the background pixel block corresponding to the target pixel block.

[0115] The technical effect of the above technical solution is that by comparing the grayscale difference evaluation value of the edge pixel block with the preset grayscale difference evaluation threshold, those edge pixel blocks with smaller grayscale differences (i.e., target pixel blocks) can be accurately identified, and then more detailed grayscale value adjustments can be made to these pixel blocks. This helps to improve the edge clarity and the accuracy of edge detection.

[0116] When the grayscale difference evaluation value of the target pixel block is less than the preset threshold, the grayscale compensation coefficient is calculated by using the grayscale compensation coefficient model, and the grayscale value of the target pixel block and its corresponding background pixel block is adjusted according to the compensation coefficient. This method can adaptively determine the compensation amount according to the grayscale value and characteristics of the surrounding pixels, so as to adjust the grayscale value more accurately. When calculating the grayscale compensation coefficient, not only the grayscale value of the edge pixel block directly in contact with the target pixel block is considered, but also the grayscale value of other edge pixel blocks whose distance from the target pixel block does not exceed the preset distance threshold is considered. This approach of considering the influence of surrounding pixels helps to improve the accuracy and rationality of grayscale value adjustment. By adjusting the grayscale value of the target pixel block and its corresponding background pixel block, the edge blur or break phenomenon caused by factors such as uneven illumination and noise can be eliminated or reduced, thereby improving the overall quality of the image. The grayscale compensation coefficient model in the technical solution can be adjusted and optimized according to different application scenarios and image characteristics to adapt to different grayscale value adjustment requirements. At the same time, the solution is also highly robust and can handle various complex images and edge situations.

[0117] In summary, this technical solution can accurately identify and process edge pixel blocks with small grayscale differences through a fine grayscale value adjustment method, thereby improving the accuracy of edge detection and the overall quality of the image. At the same time, this solution is also highly flexible and robust, and can adapt to different application scenarios and image characteristics.

[0118] Specifically, adjusting the grayscale value of the target pixel block and the grayscale value of the background pixel block corresponding to the target pixel block by using the grayscale value compensation coefficient includes:

[0119] Retrieving the gray value compensation coefficient;

[0120] The target grayscale value corresponding to the target pixel block is obtained by using the grayscale value compensation coefficient, wherein the target grayscale value corresponding to the target pixel block is obtained by the following formula:

[0121] ;

[0122] in, represents the target gray value corresponding to the target pixel block; r represents the gray value compensation coefficient; Represents the gray value of the target pixel block; Represents the original grayscale value of the background pixel block;

[0123] Adjusting the grayscale value of the target pixel block according to the target grayscale value corresponding to the target pixel block;

[0124] The target grayscale value of the background pixel block corresponding to the target pixel block is obtained by using the grayscale value compensation coefficient, wherein the target grayscale value of the background pixel block is obtained by the following formula:

[0125] ;

[0126] in, Represents the target grayscale value of the background pixel block; Represents the original grayscale value of the background pixel block; represents the target gray value corresponding to the target pixel block; r represents the gray value compensation coefficient; Represents the gray value of the target pixel block;

[0127] The grayscale value of the background pixel block corresponding to the target pixel block is adjusted according to the target grayscale value of the background pixel block corresponding to the target pixel block.

[0128] The technical effect of the above technical solution is: by introducing the grayscale value compensation coefficient, the grayscale value of the target pixel block (i.e. the edge pixel block) can be more accurately adjusted to make it more coordinated with the grayscale values ​​of the surrounding pixels, thereby improving the clarity and quality of the image edge.

[0129] Enhance image contrast: Adjusting the grayscale values ​​of the target pixel blocks and the background pixel blocks can enhance the contrast of the image, making the boundary between the workshop and the background clearer, which is helpful for image segmentation and recognition tasks.

[0130] Reduce edge blur: The use of gray value compensation coefficient can reduce edge blur caused by uneven lighting, noise and other factors, making the image edges sharper.

[0131] Maintain the naturalness of the image: By adjusting the grayscale values ​​of the target pixel block and the background pixel block at the same time, the naturalness and continuity of the image can be maintained, avoiding unnatural transitions or distortion. This technical solution can adapt to different images and edge conditions and has strong robustness. Even under complex background or lighting conditions, a good edge adjustment effect can be obtained. The grayscale value adjustment process performed in the above manner can achieve a faster processing speed while maintaining high accuracy. At the same time, it can increase the rationality of the grayscale values ​​of the edge pixel blocks and the background pixel blocks after adjustment, and prevent the problem of large deviations in the grayscale values ​​of the edge pixel blocks and the background pixel blocks after adjustment, which leads to a decrease in the accuracy of subsequent intelligent image recognition.

[0132] In summary, this technical solution can significantly improve the quality and contrast of image edges, reduce edge blurring, and maintain the naturalness and coherence of images by adjusting the grayscale values ​​of target pixel blocks and their corresponding background pixel blocks using grayscale value compensation coefficients. At the same time, this solution also has strong robustness and real-time potential.

[0133] Build a digital twin model, including:

[0134] Classify the appearance data of the construction and the operating parameter data of the production line equipment to obtain a number of function files, and compile a dynamic link library according to each function file to obtain a number of function file dynamic link libraries;

[0135] According to the logic diagram of the workshop appearance and the logic diagram of the operating parameter data of the production line equipment, all functional file dynamic link libraries are called to establish a digital twin model, so as to drive the operation of the digital twin model through the logic diagram driving engine.

[0136] A digital twin construction system based on WEB configuration, comprising:

[0137] A data management module is used to collect data, process the collected data, and store the data after processing;

[0138] The web configuration framework module is used to synchronize the functional characteristics and operating parameter data of the production line equipment as the basic elements of the web configuration to the web configuration framework module, and display them graphically to monitor the operating status of the production line equipment in real time. If an abnormality is detected, the alarm information will be displayed through the WEB page;

[0139] The business management module is used to establish a digital twin construction model based on the operating parameters of the production line equipment and the appearance data of the workshop;

[0140] Configuration editing module, used to establish intelligent point matching engine and component library, edit each component in the component library through WEB page, and generate graphic configuration diagrams composed of various components based on the appearance data of the workshop and the operating parameters of the production line equipment;

[0141] The digital twin construction module is used to build a digital twin model, input the graphic configuration diagram into the digital twin model, build a digital twin based on WEB configuration, and display it dynamically.

[0142] By adopting WEB technology to collect, process and configure the appearance data of the workshop and the operating parameters of the production line equipment in the workshop, they are displayed graphically on the web configuration client when building the digital twin, which makes the data intuitive and beautiful, and improves the user experience and satisfaction. In addition, through WEB configuration editing and WEB configuration for building digital twins, there is no need to install special software. Monitoring and data interaction can be achieved through the browser, which also provides users with management and security protection functions, which can better protect user information and data security and improve the reliability and security of digital twin construction.

[0143] Web configuration framework modules, including:

[0144] The WEB service module is used to graphically display the operating parameter data of the production line equipment and the appearance data of the workshop, and synchronize the collected data into the web configuration framework as the basic elements of the web configuration to realize the configuration basic tool;

[0145] The alarm processing module is used to monitor the operating status of the production line equipment in real time. If an abnormality is detected, the alarm information will be displayed through the WEB page. When the operating parameters of the production line equipment are abnormal, an alarm signal will be issued. It can realize real-time monitoring and warning of the operating status, alarm status, equipment data and other information of the production line equipment, so that management personnel can discover and deal with it in time, ensuring the safety of the use of production line equipment.

[0146] Data management module, including:

[0147] The data collection module is used to collect operating parameter data and workshop appearance data from production line equipment through the WEB page according to the pre-made unified data collection standard;

[0148] The data processing module is used to process the collected operating parameter data of the production line equipment and the workshop appearance data, wherein the processing includes: operating parameter data cleaning, operating parameter data classification, and operating parameter data analysis;

[0149] The data storage module is used to store the operating parameter data of the real-time production line equipment, the historical operating parameter data and the appearance data of the workshop.

[0150] Data acquisition module, specifically including:

[0151] Obtain a monitoring video stream of the workshop appearance, and obtain the image frames to be processed frame by frame from the monitoring video stream to obtain the workshop appearance data;

[0152] Based on the pre-made unified data collection standard, the operating parameter data is collected from the production line equipment through the WEB page.

[0153] Digital twin building blocks, including:

[0154] Input the acquired graphic configuration diagram into the pre-established digital twin construction model to obtain the corresponding pre-defined workshop appearance data and production line equipment operation parameter data slices;

[0155] Obtain composite workshop appearance data and production line equipment operation parameter data slices according to predefined workshop appearance data and production line equipment operation parameter data slices and customized workshop appearance data and production line equipment operation parameter data slices;

[0156] The construction of the digital twin based on WEB configuration is completed according to the slicing of the composite workshop appearance data and the production line equipment operation parameter data.

[0157] In summary, the present invention provides a digital twin construction method based on WEB configuration, which adopts WEB technology to realize functions such as data collection, processing, and configuration editing. When constructing the digital twin, it is displayed in a graphical way on the web configuration client, which realizes the intuitiveness and beauty of the data and improves the user experience and satisfaction. Moreover, through WEB configuration editing and WEB configuration for digital twin construction, there is no need to install special software, and monitoring and data interaction can be realized through the browser. It also provides users with management and security protection functions, which can better protect user information and data security, improve the reliability and security of digital twin construction, and monitor the operation status of production line equipment in real time. If an abnormality is detected, the alarm information is displayed through the WEB page. When there is an abnormality in the operation parameters of the production line equipment, an alarm signal is issued, which can realize real-time monitoring and warning of the operation status, alarm status, equipment data and other information of the production line equipment, so that management personnel can discover and deal with it in time, thereby ensuring the safety of the use of production line equipment.

[0158] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0159] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A digital twin construction method based on WEB configuration, It is characterized by: The following steps are involved: Step 1: Obtain the appearance video of the workshop, obtain the image frames to be processed frame by frame from the appearance video of the workshop, obtain the appearance data of the workshop, and collect the operation parameters of the production line equipment; Step 2: Process the collected data to graphically display the operating parameter data of the production line equipment, and synchronize the collected data into the web configuration framework as the basic elements of the web configuration; Step 3: Perform logical abstraction on the production line equipment, establish the functional characteristics and operating parameters of the production line equipment, and synchronize the functional characteristics and operating parameters of the production line equipment as the basic elements of web configuration to the web configuration framework module, and synchronize the appearance data of the workshop as the basic elements of web configuration to the web configuration framework module; Step 4: Establish an intelligent point matching engine and component library, edit each component in the component library through the WEB page, and generate a graphical configuration diagram based on the appearance data of the workshop and the operating parameters of the production line equipment; Step 5: Build a digital twin model, input the graphic configuration diagram into the digital twin model, build a digital twin based on WEB configuration, and display it dynamically; Obtain the image frames to be processed frame by frame from the appearance video of the workshop, including: Preprocess the video data by taking screenshots of the key time frames of the video and dividing the screenshots into several key time frame screenshots; The key time frame screenshots and the image data sent by the data acquisition module are merged to form an image data set; All images in the image data set are subjected to a cutout process, and a partial image containing the workshop is cut out from the original image according to the grayscale difference between the workshop edge and the background; The cut-out partial image is filled with a single color as a background layer, and is divided into equal-proportion grids to obtain a square first preset image unit; Determine the centroid of the first preset image unit, extract all pixels of each first preset image unit, and calculate the distance between any pixel point and the centroid as the preset standard distance; Counting the distance between the pixel point and any other pixel point as a first pixel distance, and counting the number of pixel points corresponding to the first pixel distance and a preset standard distance; The centroid, the preset standard distance, the first pixel distance, and the number of pixel points corresponding to the first pixel distance and the preset standard distance are taken as an image, which is an image frame of the workshop appearance; According to the grayscale difference between the edge of the workshop and the background, a partial image containing the workshop is extracted from the original image, including: Extracting the grayscale value of the edge pixel block contained in the workshop edge; Extracting the grayscale value of the background pixel block adjacent to the edge pixel block; The grayscale difference evaluation value of each edge pixel block is obtained by using the grayscale value of the background pixel block that the edge pixel block contacts with the edge pixel block; wherein the grayscale difference evaluation value is obtained by the following formula: ; Wherein, Hp represents the grayscale difference evaluation value; h represents the evaluation adjustment coefficient corresponding to the edge pixel block; Hb represents the grayscale value corresponding to the edge pixel block; n represents the number of background pixel blocks adjacent to the edge pixel block; Hi represents the grayscale value of the i-th background pixel block; Hc represents the preset grayscale difference reference value; Comparing the grayscale difference evaluation value corresponding to the edge pixel block with a preset grayscale difference evaluation threshold, and determining whether to adjust the grayscale value of the edge pixel block and its corresponding background pixel block according to the comparison result; Comparing the grayscale difference evaluation value corresponding to the edge pixel block with a preset grayscale difference evaluation threshold, and determining whether to adjust the grayscale value of the edge pixel block and its corresponding background pixel block according to the comparison result, including: Compare the grayscale difference evaluation value corresponding to the edge pixel block with a preset grayscale difference evaluation threshold to obtain a comparison result; When the comparison result indicates that the grayscale difference evaluation value corresponding to the edge pixel block is greater than or equal to the preset grayscale difference evaluation threshold, there is no need to adjust the grayscale value of the edge pixel block and its corresponding background pixel block; When the comparison result indicates that the grayscale difference evaluation value corresponding to the edge pixel block is less than the preset grayscale difference evaluation threshold, the edge pixel block corresponding to the grayscale difference evaluation value less than the preset grayscale difference evaluation threshold is taken as the target pixel block; Extracting grayscale difference evaluation values ​​corresponding to edge pixel blocks that are in contact with the target pixel block; Determine whether the grayscale difference evaluation value corresponding to the edge pixel block contacted by the target pixel block is greater than or equal to the grayscale difference evaluation threshold; When there is an edge pixel block contacted by the target pixel block and its corresponding grayscale difference evaluation value is greater than or equal to the grayscale difference evaluation threshold, the grayscale value of the edge pixel block greater than or equal to the grayscale difference evaluation threshold is retrieved, and the grayscale value compensation coefficient is obtained by combining the grayscale value of the edge pixel block contacting the target pixel block and greater than or equal to the grayscale difference evaluation threshold using the grayscale value compensation coefficient model; When the grayscale difference evaluation values ​​corresponding to all edge pixel blocks contacted by the target pixel block are all less than the grayscale difference evaluation threshold, the grayscale values ​​of multiple edge pixel blocks whose distances from the target pixel block do not exceed a preset distance threshold and are greater than or equal to the grayscale difference evaluation threshold are retrieved, and the grayscale value compensation coefficient model is used in combination with the grayscale values ​​of multiple edge pixel blocks whose distances from the target pixel block do not exceed a preset distance threshold and are greater than or equal to the grayscale difference evaluation threshold to obtain the grayscale value compensation coefficient; Wherein, the structure of the gray value compensation coefficient model is as follows: ; Wherein, r represents the gray value compensation coefficient; m represents the number of edge pixel blocks used to obtain the gray value compensation coefficient; Hxi represents the gray value of the i-th edge pixel block used to obtain the gray value compensation coefficient; Hr represents the gray value of the target pixel block; Hz represents the gray value of the background pixel block corresponding to the minimum gray value difference between the target pixel block and all background pixel blocks corresponding to the target pixel block; hp represents the coefficient average value; hr represents the evaluation adjustment coefficient corresponding to the target pixel block; hi represents the evaluation adjustment coefficient of the i-th edge pixel block; The grayscale value of the target pixel block and the grayscale value of the background pixel block corresponding to the target pixel block are adjusted by using the grayscale value compensation coefficient; The grayscale value of the target pixel block and the grayscale value of the background pixel block corresponding to the target pixel block are adjusted by using the grayscale value compensation coefficient, including: Retrieving the gray value compensation coefficient; The target grayscale value corresponding to the target pixel block is obtained by using the grayscale value compensation coefficient, wherein the target grayscale value corresponding to the target pixel block is obtained by the following formula: ; Wherein, Hm represents the target gray value corresponding to the target pixel block; r represents the gray value compensation coefficient; Hr represents the gray value of the target pixel block; Hb0 represents the original gray value of the background pixel block; Adjusting the grayscale value of the target pixel block according to the target grayscale value corresponding to the target pixel block; The target grayscale value of the background pixel block corresponding to the target pixel block is obtained by using the grayscale value compensation coefficient, wherein the target grayscale value of the background pixel block is obtained by the following formula: ; Wherein, Hbm represents the target gray value of the background pixel block; Hb0 represents the original gray value of the background pixel block; Hm represents the target gray value corresponding to the target pixel block; r represents the gray value compensation coefficient; Hr represents the gray value of the target pixel block; The grayscale value of the background pixel block corresponding to the target pixel block is adjusted according to the target grayscale value of the background pixel block corresponding to the target pixel block.

2. According to the digital twin construction method based on WEB configuration according to claim 1, Features: Build a digital twin model, including: Classify the appearance data of the construction and the operating parameter data of the production line equipment to obtain a number of function files, and compile a dynamic link library according to each function file to obtain a number of function file dynamic link libraries; According to the logic diagram of the workshop appearance and the logic diagram of the operating parameter data of the production line equipment, all functional file dynamic link libraries are called to establish a digital twin model, so as to drive the operation of the digital twin model through the logic diagram driving engine.

3. A digital twin construction system based on WEB configuration, applied in the digital twin construction method based on WEB configuration according to any one of claims 1-2, It is characterized in that include: A data management module is used to collect data, process the collected data, and store the data after processing; The web configuration framework module is used to synchronize the functional characteristics and operating parameter data of the production line equipment as the basic elements of the web configuration to the web configuration framework module, and display them graphically to monitor the operating status of the production line equipment in real time. If an abnormality is detected, the alarm information will be displayed through the WEB page; The business management module is used to establish a digital twin construction model based on the operating parameters of the production line equipment and the appearance data of the workshop; Configuration editing module, used to establish intelligent point matching engine and component library, edit each component in the component library through WEB page, and generate graphic configuration diagrams composed of various components based on the appearance data of the workshop and the operating parameters of the production line equipment; The digital twin construction module is used to build a digital twin model, input the graphic configuration diagram into the digital twin model, build a digital twin based on WEB configuration, and display it dynamically.

4. According to the digital twin construction system based on WEB configuration according to claim 3, Features: The web configuration framework module includes: The WEB service module is used to graphically display the operating parameter data of the production line equipment and the appearance data of the workshop, and synchronize the collected data into the web configuration framework as the basic elements of the web configuration to realize the configuration basic tool; The alarm processing module is used to monitor the operating status of production line equipment in real time, and display alarm information through the WEB page if an abnormality is detected.

5. According to the digital twin construction system based on WEB configuration according to claim 3, Features: The data management module comprises: The data collection module is used to collect operating parameter data and workshop appearance data from production line equipment through the WEB page according to the pre-made unified data collection standard; The data processing module is used to process the collected operating parameter data of the production line equipment and the workshop appearance data; The data storage module is used to store the operating parameter data of the real-time production line equipment, the historical operating parameter data and the appearance data of the workshop.

6. According to claim 5, a digital twin construction system based on WEB configuration, Features: The data acquisition module specifically includes: Obtain a monitoring video stream of the workshop appearance, and obtain the image frames to be processed frame by frame from the monitoring video stream to obtain the workshop appearance data; Based on the pre-made unified data collection standard, the operating parameter data is collected from the production line equipment through the WEB page.

7. According to claim 3, a digital twin construction system based on WEB configuration, Features: The digital twin building module specifically includes: Input the acquired graphic configuration diagram into the pre-established digital twin construction model to obtain the corresponding pre-defined workshop appearance data and production line equipment operation parameter data slices; Obtain composite workshop appearance data and production line equipment operation parameter data slices according to predefined workshop appearance data and production line equipment operation parameter data slices and customized workshop appearance data and production line equipment operation parameter data slices; The construction of the digital twin based on WEB configuration is completed according to the slicing of the composite workshop appearance data and the production line equipment operation parameter data.

Citation Information

Patent Citations

  • Construction method of intelligent workshop digital twin system

    CN112818446A

  • Modularization-based configuration editing software implementation system and method

    CN113741896A

  • Industrial robot grabbing method and device based on digital twinning and storage medium

    CN115070780A

  • Method for constructing digital twinborn model for assembly workshop

    CN115392645A

  • Intelligent workshop real-time monitoring method based on digital twinning

    CN116414081A