CN115311233A - Visualization method and visualization device for product defects - Google Patents

Visualization method and visualization device for product defects Download PDF

Info

Publication number
CN115311233A
CN115311233A CN202210949737.2A CN202210949737A CN115311233A CN 115311233 A CN115311233 A CN 115311233A CN 202210949737 A CN202210949737 A CN 202210949737A CN 115311233 A CN115311233 A CN 115311233A
Authority
CN
China
Prior art keywords
defect
defect detection
display
sampling point
target product
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.)
Pending
Application number
CN202210949737.2A
Other languages
Chinese (zh)
Inventor
赵亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shendian Vision Technology Co ltd
Original Assignee
Beijing Shendian Vision Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Shendian Vision Technology Co ltd filed Critical Beijing Shendian Vision Technology Co ltd
Priority to CN202210949737.2A priority Critical patent/CN115311233A/en
Publication of CN115311233A publication Critical patent/CN115311233A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0008Industrial image inspection checking presence/absence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The application provides a visualization method and a visualization device for product defects, wherein the visualization method comprises the following steps: acquiring first defect detection results of the plurality of detection areas of the front surface of the target product by at least one first defect detection device; simultaneously acquiring second defect detection results of the plurality of detection areas on the reverse side of the target product by at least one second defect detection device; the detection area and the detection progress of the first defect detection equipment on the front side are respectively the same as the detection area and the detection progress of the second defect detection equipment on the back side at the same moment; and drawing and rendering a defect data distribution diagram showing the target product in a preset display area of a display interface according to the first defect detection result and the second defect detection result. By the visualization method and the visualization device, the distribution positions of the defects on the product can be visually seen.

Description

Visualization method and visualization device for product defects
Technical Field
The application relates to the technical field of data processing and display, in particular to a visualization method and a visualization device for product defects.
Background
As society continues to advance, consumers have increasingly demanded greater product appearance, and therefore product manufacturers are required to check the appearance of products before they are produced. In the process of detecting the appearance of a product, a large amount of defect data is generated, and in order to track and process the defects in time, the distribution position of each defect on the product is generally required to be obtained.
In the prior art, the method for obtaining the distribution position of each defect on the product is to display the position data in the defect data on the display interface in a list form, however, the scheme in the prior art cannot visually see the distribution position of the defect on the product, which is not beneficial for a product manufacturer to track and process the defect.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method and an apparatus for visualizing defects of a product, which can visually see the distribution positions of the defects on the product.
In a first aspect, an embodiment of the present application provides a method for visualizing defects of a product, where the product includes two identical faces, and both the front face and the back face of the product are divided into multiple detection areas according to a predetermined length from a length direction of the product;
the visualization method comprises the following steps:
acquiring first defect detection results of the plurality of detection areas of the front surface of the target product by at least one first defect detection device; at the same time, the user can select the desired position,
acquiring second defect detection results of the plurality of detection areas of the reverse side of the target product by at least one second defect detection device; the detection area and the detection progress of the first defect detection equipment on the front side are respectively the same as the detection area and the detection progress of the second defect detection equipment on the back side at the same moment;
and drawing and rendering a defect data distribution diagram showing the target product in a preset display area of a display interface according to the first defect detection result and the second defect detection result.
Optionally, the preset display area of the display interface corresponds to an abscissa axis and an ordinate axis; the display interface is divided into a plurality of drawing coordinate points by the abscissa axis and the ordinate axis, wherein each drawing coordinate point corresponds to a corresponding sampling point of the target product; the sampling points are overlapped points with the same coordinates of the front side and the back side of the same product.
Optionally, the drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result includes:
determining a defect type of a front sampling point of the target product with a front defect based on the first defect detection result in response to a front display operation;
acquiring a front defect display mark corresponding to the defect type of the front sampling point;
drawing and rendering the front defect display mark and displaying a drawing coordinate point corresponding to the front sampling point in the preset display area;
and/or the presence of a gas in the gas,
determining the defect type of a reverse side sampling point with reverse side defects of a target product based on the first defect detection result in response to reverse side display operation;
acquiring a back defect display mark corresponding to the defect type of the back sampling point;
and drawing and rendering the reverse defect display mark to display a drawing coordinate point corresponding to the reverse sampling point in the preset display area.
Optionally, the drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result further includes:
and responding to the front-back switching operation, updating and displaying the current defect of the currently displayed target product in the preset display area as the defect corresponding to the current opposite side.
Optionally, the drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result includes:
receiving a screening condition in response to a screening operation;
screening a first defect detection result and a second defect detection result which meet the screening condition from the first defect detection result and the second defect detection result;
determining the defect type of a front sampling point with a front defect and the defect type of a back sampling point with a back defect of a target product based on the first defect detection result and the second defect detection result;
acquiring a front defect display mark corresponding to the defect type of the front sampling point and a back defect display mark corresponding to the defect type of the back sampling point;
and respectively drawing the front defect display mark and the back defect display mark corresponding to the defect type of the front sampling point, and simultaneously rendering and displaying drawing coordinate points corresponding to the front sampling point and the back sampling point in the preset display area.
In a second aspect, the embodiment of the present application provides a device for visualizing defects of a product, where the product includes two identical faces, and the front face and the back face of the product are both divided into a plurality of detection areas according to a predetermined length from the length direction of the product; the visualization device includes:
the acquisition module is used for acquiring first defect detection results of the plurality of detection areas of the front surface of the target product by at least one first defect detection device; at the same time, the user can select the desired position,
acquiring second defect detection results of the plurality of detection areas of the reverse side of the target product by at least one second defect detection device; the detection area and the detection progress of the first defect detection equipment on the front side are respectively the same as the detection area and the detection progress of the second defect detection equipment on the back side at the same moment;
and the display module is used for drawing and rendering a defect data distribution diagram for displaying the target product in a preset display area of a display interface according to the first defect detection result and the second defect detection result.
Optionally, the preset display area of the display interface corresponds to an abscissa axis and an ordinate axis; the display interface is divided into a plurality of drawing coordinate points by the abscissa axis and the ordinate axis, wherein each drawing coordinate point corresponds to a corresponding sampling point of the target product; the sampling points are overlapped points with the same coordinates of the front side and the back side of the same product.
Optionally, the display module is configured to:
determining a defect type of a front sampling point of the target product with a front defect based on the first defect detection result in response to a front display operation;
acquiring a front defect display mark corresponding to the defect type of the front sampling point;
drawing and rendering the front defect display mark to display a drawing coordinate point corresponding to the front sampling point in the preset display area;
and/or the presence of a gas in the gas,
determining the defect type of a reverse side sampling point with reverse side defects of a target product based on the first defect detection result in response to reverse side display operation;
acquiring a back defect display mark corresponding to the defect type of the back sampling point;
and drawing, rendering and displaying the reverse defect display mark in a drawing coordinate point corresponding to the reverse sampling point in the preset display area.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the memory communicate with each other through the bus, and the processor executes the machine-readable instructions to perform the steps of the method for visualizing the product defects according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method for visualizing the product defect according to any one of the first aspect.
According to the visualization method and the visualization device for the product defects, the first defect detection results of the multiple detection areas on the front side of the target product are obtained by at least one first defect detection device; simultaneously acquiring second defect detection results of the plurality of detection areas on the reverse side of the target product by at least one second defect detection device; and drawing and rendering a defect data distribution map showing the target product in a preset display area of a display interface according to the first defect detection result and the second defect detection result, so that the distribution positions of the defects on the product can be visually seen.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
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 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 for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a flow chart illustrating a method for visualizing product defects according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a defect data distribution map of the target product drawn and rendered in a predetermined display area of a display interface in response to a front-side demonstration operation according to an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a defect data distribution diagram of the target product drawn and rendered in a predetermined display area of a display interface in response to a reverse-side exhibition operation according to an exemplary embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a defect data distribution diagram of the target product drawn and rendered in a predetermined display area of a display interface in response to a front-side display operation and a back-side display operation according to an exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram illustrating a product defect visualization apparatus provided by an embodiment of the present application;
fig. 6 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
Before the application proposes, the existing visualization method for the product defects is to display the position data in the defect data on a display interface in a list form, however, the scheme in the prior art cannot visually see the distribution positions of the defects on the product, and is not beneficial for a product manufacturer to track and process the defects.
In view of the above, an object of the present application is to provide a method and an apparatus for visualizing defects of a product, which can visually see the distribution positions of the defects on the product.
For the convenience of understanding the embodiments of the present application, a detailed description will be given first of all on a method for visualizing product defects disclosed in the embodiments of the present application.
In the embodiment of the application, the product comprises the same front surface and the back surface, and the front surface and the back surface of the product are divided into a plurality of detection areas according to a preset length from the length direction of the product.
By way of example, the product described herein may be a roll-up type product, for example, the product may be a piece of cloth. Generally, the length of the curling product is larger than the width, for example, the length is 10000 meters, and the width is 1.5 meters, so that the product can be divided into a plurality of regions to be detected according to a predetermined length from the length direction of the product.
Here, the predetermined length may be 2 meters, and the detection area may be an area within a range surrounded by the predetermined length and a width of the product, for example, the detection area may be an area within a range surrounded by 2 meters × 1.5 meters of the product. Wherein each detection area is 2 meters by 1.5 meters.
In addition, in the embodiment of the application, the front side and the back side of the product respectively correspond to at least one first defect detection device and at least one second defect detection device; and the detection area and the detection progress of the first defect detection equipment on the front side are respectively the same as the detection area and the detection progress of the second defect detection equipment on the back side at the same moment.
It can be understood that the front side detection area and the back side detection area at the corresponding position are overlapped, so that at the same time, the detection area of the first defect detection device on the front side is the same as the detection area of the second defect detection device on the back side, and the detection progress of the first defect detection device on the front side is the same as the detection progress of the second defect detection device on the back side.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for visualizing a product defect according to an embodiment of the present application.
As shown in fig. 1, a method for visualizing a product defect provided in an embodiment of the present application includes the following steps:
s100, obtaining first defect detection results of a plurality of detection areas of the front surface of a target product by at least one first defect detection device; and simultaneously acquiring second defect detection results of a plurality of detection areas of the reverse side of the target product by at least one second defect detection device.
As an example, the first defect detection result and the second defect detection result may be sent to the visualization apparatus in real time during the process that the first defect detection device and the second defect detection device detect the plurality of detection areas on the front side of the target product and the plurality of detection areas on the back side of the target product in real time. That is, the first defect detection result and the second defect detection result are transmitted while the front side and the back side are detected.
As another example, the first defect detection result and the second defect detection result may be sent to the visualization apparatus after the first defect detection device and the second defect detection device have detected each front detection area and each corresponding back detection area.
As another example, the first defect detection result and the second defect detection result may be sent to the visualization apparatus after the first defect detection device and the second defect detection device have detected all the front detection areas and all the corresponding back detection areas.
Further, as an example, the first defect detection result includes information on whether or not a defect exists for sampling points in a plurality of detection areas of the front surface of the target product, defect type information, and front-back surface information of the defect; as an example, the defect type information may include any one of a pinhole type, a concavo-convex point type, a wrinkle type, a dot type, and a color difference spot type. The front and back information of the defect indicates that the defect is on the front or back of the target product, and therefore, in the first defect detection result, the front and back information of the defect is both on the front. The second defect detection result is similar, and therefore is not described in detail.
S200, drawing and rendering a defect data distribution diagram showing the target product in a preset display area of a display interface according to the first defect detection result and the second defect detection result.
Here, the predetermined display area of the display interface corresponds to an abscissa axis and an ordinate axis; the preset display area is divided into a plurality of drawing coordinate points by the abscissa axis and the ordinate axis, wherein each drawing coordinate point corresponds to a corresponding sampling point of the target product, and the sampling points are overlapped points with the same coordinates of the front side and the back side of the same product.
As an example, the abscissa axis and the ordinate axis may be plotted with an upper left corner of the predetermined display area as a coordinate origin, in which case the predetermined display area is within a fourth quadrant formed by the abscissa axis and the ordinate axis. Alternatively, the abscissa axis and the ordinate axis may be plotted with a lower left corner of the predetermined display area as a coordinate origin, in which case the predetermined display area is within a first quadrant formed by the abscissa axis and the ordinate axis.
As an example, an abscissa range of an abscissa axis and an ordinate range of a predetermined ordinate axis displayed in a predetermined display area may be set, and then the abscissa axis and the ordinate axis may be drawn by a GDI tool, the abscissa range of the abscissa axis may be greater than the width range of the target product, or the abscissa range of the abscissa axis may be equal to the width range of the target product, and further, as an example, the ordinate range of the ordinate axis may be smaller than the length range of the target product, or the ordinate range of the ordinate axis may be equal to the length range of the target product. For example, when the article has a length of 10000 meters and a width of 1.5 meters, the ordinate axis may have an ordinate range of 0 meter to 6 meters, or alternatively, the ordinate axis may have an ordinate range of 0 meter to 10000 meters.
Here, when the ordinate axis range of the ordinate axis is smaller than the length range of the target product, the ordinate axis corresponding to the predetermined display area and the corresponding drawing coordinate point are scroll-displayed, and as an example, the range of scrolling may be determined based on the detection progress, or a scroll operation may be received, and the range of scrolling may be adjusted.
The above abscissa range and the ordinate range may be arbitrarily combined, which is not limited in the embodiment of the present application, for example, the abscissa range of the abscissa axis displayed by the predetermined display area in the embodiment of the present application is equal to the width range of the target product, and the ordinate range of the ordinate axis is smaller than the length range of the target product, or the abscissa range of the abscissa axis displayed by the predetermined display area is equal to the width range of the target product, and the ordinate range of the ordinate axis is equal to the length range of the target product.
In the following, how to draw and render a defect data distribution map showing the target product in a predetermined display area of a display interface will be described with reference to specific examples.
As an example, regarding step S200, the step of drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result may include:
s211, responding to the front display operation, and determining the defect type of a front sampling point with front defects of the target product based on the first defect detection result; s212, acquiring a front defect display mark corresponding to the defect type of the front sampling point; and S213, drawing, rendering and displaying the front defect display mark on a drawing coordinate point corresponding to the front sampling point in the preset display area.
In specific implementation, as an example, the display interface may include a front display control, a back display control, and a switching control, and as an example, when the front display control or the back display control is not clicked, the defect data is not displayed in a predetermined display area of the display interface, and when the front display control or the back display control is clicked, the defect data is displayed in the predetermined display area of the display interface. Here, the front show operation may point to touch the front show control.
Here, the front defect display mark corresponding to the defect type of each front sampling point may be stored in the database in advance. As an example, the front defect display mark may be composed of a letter mark and a square frame with a color-filled background, wherein, as an example, different letter marks may represent different defect types, and the square frame with the different color-filled background may represent the front and back sides of a defect. For example, the correspondence between the letter identifier and the defect type may be: the corresponding relation between the square frame of the color filling background and the front and back information of the defect is as follows: green-front, red-back.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a defect data distribution diagram of the target product drawn and rendered in a predetermined display area of a display interface in response to a front-side display operation according to an exemplary embodiment of the present application.
As shown in fig. 2, the abscissa axis range of the abscissa axis displayed in the predetermined display area is 0 to 1 meter, the ordinate axis range of the ordinate axis displayed in the predetermined display area is 0 to 3 meters, and the defect information corresponding to the defect of the first front surface is plotted as [ sample point: (0.4, 0.6); the defect type is as follows: a type of concave-convex point; front face ], the defect information corresponding to the defect of the second front face is plotted as [ sample point: (0.2, 1.2); the defect type: a dot type; front face ], the defect information corresponding to the defect of the third front face is plotted as [ sample point: (0.6, 1.8); the defect type: a pinhole type; front face ].
Additionally, at any time after responding to the front display operation, responding to the front and back switching operation, updating and displaying the defect of the current surface of the currently displayed target product in the preset display area as the defect corresponding to the surface opposite to the current surface.
Here, when the current predetermined display area displays defect data on the front side of the target product, the front-back side switching operation may be a point-touch back-side display control, or the front-back side switching operation may be a point-touch switching control.
Correspondingly, the defect of the front side of the target product currently displayed in the preset display area can be updated and displayed as the defect corresponding to the back side of the target product in response to the front-back side switching operation.
As another example, regarding step S200, the step of drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result may include:
s221, responding to the back surface display operation, and determining the defect type of a back surface sampling point with a back surface defect of the target product based on the first defect detection result; s222, acquiring a back defect display mark corresponding to the defect type of the back sampling point; and S223, drawing and rendering the reverse defect display mark and displaying the drawing coordinate point corresponding to the reverse sampling point in the preset display area.
Here, the reverse-side show operation may point to touch the reverse-side show control.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a defect data distribution diagram of the target product drawn and rendered in a predetermined display area of a display interface in response to a reverse-side display operation according to an exemplary embodiment of the present application.
As shown in fig. 3, the defect information corresponding to the first defect is plotted as [ sample point: (0.4, 0.6); the defect type is as follows: a dot type; and on the contrary ], the drawn defect information corresponding to the second defect is [ sample point: (0.2, 1.2); the defect type is as follows: a dot type; and the reverse side ], the drawn defect information corresponding to the third defect is [ sampling point: (0.6, 1.2); the defect type is as follows: a pinhole type; and the reverse side ].
Additionally, at any time after responding to the back-side display operation, responding to the front-side and back-side switching operation, updating and displaying the defect of the current side of the currently displayed target product in the preset display area as the defect corresponding to the opposite side of the current side.
Here, when the current predetermined display area displays defect data on the reverse side of the target product, the front-back side switching operation may be a point-touch front-side display control, or the front-back side switching operation may be a point-touch switching control.
Correspondingly, the defect of the reverse side of the target product currently displayed in the preset display area can be updated and displayed as the defect corresponding to the front side of the target product in response to the front-back side switching operation.
As another example, regarding step S200, the step of drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result may include:
s231, responding to the front display operation, and determining the defect type of the front sampling point with the front defect of the target product based on the first defect detection result; s232, acquiring a front defect display mark corresponding to the defect type of the front sampling point; s233, drawing and rendering the front defect display mark to display a drawing coordinate point corresponding to the front sampling point in the predetermined display area, and meanwhile, in step S234, responding to the back display operation, determining the defect type of the back sampling point of the target product having the back defect based on the first defect detection result; s235, obtaining a back defect display mark corresponding to the defect type of the back sampling point; and S236, drawing, rendering and displaying the reverse defect display mark on a drawing coordinate point corresponding to the reverse sampling point in the preset display area.
In this embodiment, it means that both the front defect and the back defect exist in a predetermined display area, and only the front defect or the back defect exists alone.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a defect data distribution diagram of the target product drawn and rendered in a predetermined display area of a display interface in response to a front-side display operation and a back-side display operation according to an exemplary embodiment of the present application.
As shown in fig. 4, after responding to the front display operation and responding to the back display operation, the front defect display mark and the back defect display mark corresponding to the defect type of the front sampling point may be respectively drawn and simultaneously rendered and displayed on the drawing coordinate points corresponding to the front sampling point and the back sampling point in the predetermined display area. When the front side and the back side corresponding to the same sampling point have defects, the front side defect display mark and the back side defect display mark can be spliced and displayed on the drawing coordinate point corresponding to the sampling point.
In the exemplary embodiment shown in fig. 4, it may be understood that the three front defect display marks shown in fig. 2 and the three back defect display marks shown in fig. 3 are respectively drawn and simultaneously rendered to show the drawing coordinate points corresponding to the front sampling points and the back sampling points within the predetermined display area. Here, since the front defect and the back defect exist at the sampling point (0.4, 0.6) at the same time, the front defect display mark and the back defect display mark are displayed in a mosaic manner at the corresponding drawing point (0.4, 0.6).
Further, as another example, regarding step S200, the step of drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result may include:
s241, responding to the screening operation and receiving a screening condition; the screening condition comprises one or more combinations of defect types and defect front and back information;
by way of example, a filtering control can be further included on the display interface, and the filtering operation can point to touch the filtering control. The screening condition refers to a combination of the inputted defect information. For example, the screening conditions may be (defect type: pinhole type, defect front and back sides: front side).
S242, screening a first defect detection result and a second defect detection result which meet the screening condition from the first defect detection result and the second defect detection result;
s243, determining the defect type of the front sampling point with the front defect and the defect type of the back sampling point with the back defect of the target product based on the first defect detection result and the second defect detection result;
s244, acquiring a front defect display mark corresponding to the defect type of the front sampling point and a back defect display mark corresponding to the defect type of the back sampling point;
s245, respectively drawing the front defect display mark and the back defect display mark corresponding to the defect type of the front sampling point, and simultaneously rendering and displaying drawing coordinate points corresponding to the front sampling point and the back sampling point in the preset display area.
Here, the abscissa range of the abscissa and the ordinate range of the ordinate displayed on the predetermined display interface may be dynamically adjusted according to the positions of the sampling points corresponding to the first defect detection result and the second defect detection result that meet the screening condition, or the ordinate range of the ordinate may be equal to the length range of the target product.
As an example, when both the front and back surfaces corresponding to the same sampling point have defects, the front defect display mark and the back defect display mark may be displayed in a tiled manner at a drawing coordinate point corresponding to the sampling point.
According to the visualization method for the product defects, first defect detection results of the multiple detection areas on the front side of the target product are obtained by at least one first defect detection device; simultaneously acquiring second defect detection results of the plurality of detection areas on the reverse side of the target product by at least one second defect detection device; and drawing and rendering a defect data distribution diagram showing the target product in a preset display area of a display interface according to the first defect detection result and the second defect detection result, so that the distribution position of the defects on the product can be visually seen.
Based on the same inventive concept, the embodiment of the application also provides a visualization device of the product defects corresponding to the visualization method of the product defects.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a visualization apparatus for a product defect according to an embodiment of the present application, where the visualization apparatus 500 includes:
an obtaining module 510, configured to obtain first defect detection results of the multiple detection areas on the front surface of the target product by at least one first defect detection device; at the same time, the user can select the desired position,
acquiring second defect detection results of the plurality of detection areas of the reverse side of the target product by at least one second defect detection device; the detection area and the detection progress of the first defect detection equipment on the front side are respectively the same as the detection area and the detection progress of the second defect detection equipment on the back side at the same moment;
and a display module 520, configured to draw and render a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result.
In one possible implementation, the predetermined display area of the display interface corresponds to an abscissa axis and an ordinate axis; the display interface is divided into a plurality of drawing coordinate points by the abscissa axis and the ordinate axis, wherein each drawing coordinate point corresponds to a corresponding sampling point of the target product; the sampling points are overlapped points with the same coordinates of the front side and the back side of the same product.
In one possible implementation, the display module 520 is configured to:
determining a defect type of a front sampling point of the target product with a front defect based on the first defect detection result in response to a front display operation;
acquiring a front defect display mark corresponding to the defect type of the front sampling point;
drawing and rendering the front defect display mark and displaying a drawing coordinate point corresponding to the front sampling point in the preset display area;
and/or the presence of a gas in the atmosphere,
determining the defect type of a reverse side sampling point with reverse side defects of a target product based on the first defect detection result in response to reverse side display operation;
acquiring a back defect display mark corresponding to the defect type of the back sampling point;
and drawing and rendering the reverse defect display mark to display a drawing coordinate point corresponding to the reverse sampling point in the preset display area.
In a possible implementation, the display module 520 is further configured to:
and responding to the front-back switching operation, updating and displaying the current defect of the currently displayed target product in the preset display area as the defect corresponding to the current opposite side.
In a possible implementation, the display module 520 is further configured to:
receiving a screening condition in response to a screening operation;
screening a first defect detection result and a second defect detection result which meet the screening condition from the first defect detection result and the second defect detection result;
determining the defect type of a front sampling point with a front defect and the defect type of a back sampling point with a back defect of a target product based on the first defect detection result and the second defect detection result;
acquiring a front defect display mark corresponding to the defect type of the front sampling point and a back defect display mark corresponding to the defect type of the back sampling point;
and respectively drawing the front defect display mark and the back defect display mark corresponding to the defect type of the front sampling point, and simultaneously rendering and displaying drawing coordinate points corresponding to the front sampling point and the back sampling point in the preset display area.
The visualization device for the product defects, provided by the embodiment of the application, obtains first defect detection results of the plurality of detection areas on the front surface of the target product by at least one first defect detection device; simultaneously acquiring second defect detection results of the plurality of detection areas on the reverse side of the target product by at least one second defect detection device; and drawing and rendering a defect data distribution map showing the target product in a preset display area of a display interface according to the first defect detection result and the second defect detection result, so that the distribution positions of the defects on the product can be visually seen.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 6, the electronic device 600 includes a processor 610, a memory 620, and a bus 630.
The memory 620 stores machine-readable instructions executable by the processor 610, when the electronic device 600 runs, the processor 610 communicates with the memory 620 through the bus 630, and when the machine-readable instructions are executed by the processor 610, the steps of the method for visualizing the product defects in the above method embodiments may be executed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the step of the method for visualizing the product defect in the foregoing method embodiment may be executed.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, 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 coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
The 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.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in software functional units and sold or used as a stand-alone product, may be stored in a non-transitory computer-readable storage medium executable by a processor. 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.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: those skilled in the art can still make modifications or changes to the embodiments described in the foregoing embodiments, or make equivalent substitutions for some features, within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The visualization method for the product defects is characterized in that the product comprises the same front surface and the back surface, and the front surface and the back surface of the product are divided into a plurality of detection areas according to a preset length from the length direction of the product;
the visualization method comprises the following steps:
acquiring first defect detection results of the plurality of detection areas of the front surface of the target product by at least one first defect detection device; at the same time, the user can select the required time,
acquiring second defect detection results of the plurality of detection areas of the reverse side of the target product by at least one second defect detection device; the detection area and the detection progress of the first defect detection equipment on the front side are respectively the same as the detection area and the detection progress of the second defect detection equipment on the back side at the same moment;
and drawing and rendering a defect data distribution diagram showing the target product in a preset display area of a display interface according to the first defect detection result and the second defect detection result.
2. A visualization method as claimed in claim 1, characterized in that the predetermined display area of the display interface corresponds to an abscissa axis and an ordinate axis; the display interface is divided into a plurality of drawing coordinate points by the abscissa axis and the ordinate axis, wherein each drawing coordinate point corresponds to a corresponding sampling point of the target product; the sampling points are overlapped points with the same coordinates of the front side and the back side of the same product.
3. The visualization method according to claim 2, wherein the step of drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result comprises:
determining a defect type of a front sampling point of the target product with a front defect based on the first defect detection result in response to a front display operation;
acquiring a front defect display mark corresponding to the defect type of the front sampling point;
drawing and rendering the front defect display mark to display a drawing coordinate point corresponding to the front sampling point in the preset display area;
and/or the presence of a gas in the atmosphere,
determining the defect type of a reverse side sampling point with reverse side defects of a target product based on the first defect detection result in response to reverse side display operation;
acquiring a back defect display mark corresponding to the defect type of the back sampling point;
and drawing and rendering the reverse defect display mark to display a drawing coordinate point corresponding to the reverse sampling point in the preset display area.
4. A visualization method according to claim 3, wherein the drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result further comprises:
and in response to the front-back switching operation, updating and displaying the current defect of the currently displayed target product in the preset display area as the defect corresponding to the current opposite side.
5. A visualization method according to claim 2, wherein the drawing and rendering a defect data distribution map showing the target product in a predetermined display area of a display interface according to the first defect detection result and the second defect detection result comprises:
receiving a screening condition in response to a screening operation;
screening a first defect detection result and a second defect detection result which meet the screening condition from the first defect detection result and the second defect detection result;
determining the defect type of a front sampling point with a front defect and the defect type of a back sampling point with a back defect of a target product based on the first defect detection result and the second defect detection result;
acquiring a front defect display mark corresponding to the defect type of the front sampling point and a back defect display mark corresponding to the defect type of the back sampling point;
and respectively drawing the front defect display mark and the back defect display mark corresponding to the defect type of the front sampling point, and simultaneously rendering and displaying drawing coordinate points corresponding to the front sampling point and the back sampling point in the preset display area.
6. The device for visualizing the defects of the product is characterized in that the product comprises the same front surface and the back surface, and the front surface and the back surface of the product are divided into a plurality of detection areas according to a preset length from the length direction of the product; the visualization device includes:
the acquisition module is used for acquiring first defect detection results of the plurality of detection areas on the front surface of the target product by at least one first defect detection device; at the same time, the user can select the desired position,
acquiring second defect detection results of the plurality of detection areas of the reverse side of the target product by at least one second defect detection device; the detection area and the detection progress of the first defect detection equipment on the front side are respectively the same as the detection area and the detection progress of the second defect detection equipment on the back side at the same moment;
and the display module is used for drawing and rendering a defect data distribution diagram for displaying the target product in a preset display area of a display interface according to the first defect detection result and the second defect detection result.
7. A visualization device as recited in claim 6, wherein the predetermined display area of the display interface corresponds to an abscissa axis and an ordinate axis; the display interface is divided into a plurality of drawing coordinate points by the abscissa axis and the ordinate axis, wherein each drawing coordinate point corresponds to a corresponding sampling point of the target product; the sampling points are overlapped points with the same coordinates of the front side and the back side of the same product.
8. A visualization device as recited in claim 7, wherein the display module is configured to:
determining a defect type of a front sampling point of the target product with a front defect based on the first defect detection result in response to a front display operation;
acquiring a front defect display mark corresponding to the defect type of the front sampling point;
drawing and rendering the front defect display mark and displaying a drawing coordinate point corresponding to the front sampling point in the preset display area;
and/or the presence of a gas in the gas,
determining the defect type of a back surface sampling point with a back surface defect of the target product based on the first defect detection result in response to a back surface display operation;
acquiring a back defect display mark corresponding to the defect type of the back sampling point;
and drawing, rendering and displaying the reverse defect display mark in a drawing coordinate point corresponding to the reverse sampling point in the preset display area.
9. An electronic device, comprising: processor, memory and bus, said memory storing machine-readable instructions executable by said processor, said processor and said memory communicating via said bus when the electronic device is running, said machine-readable instructions being executable by said processor to perform the steps of the method for visualizing a product defect as defined in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that it has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for visualizing defects in products according to any one of claims 1 to 6.
CN202210949737.2A 2022-08-09 2022-08-09 Visualization method and visualization device for product defects Pending CN115311233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210949737.2A CN115311233A (en) 2022-08-09 2022-08-09 Visualization method and visualization device for product defects

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210949737.2A CN115311233A (en) 2022-08-09 2022-08-09 Visualization method and visualization device for product defects

Publications (1)

Publication Number Publication Date
CN115311233A true CN115311233A (en) 2022-11-08

Family

ID=83860784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210949737.2A Pending CN115311233A (en) 2022-08-09 2022-08-09 Visualization method and visualization device for product defects

Country Status (1)

Country Link
CN (1) CN115311233A (en)

Similar Documents

Publication Publication Date Title
US9767531B2 (en) Systems and methods for scaling visualizations
US20070073475A1 (en) Navigation apparatus and map display device
EP3043248B1 (en) Graphic user interface of three-dimensional substrate inspection device
US20080238914A1 (en) Map Information Creating Device, Map Information Creating Method, and Map Information Creating Program
KR920008659A (en) Peak device and method in video display system
JP2009003867A (en) Display device and computer program
CN110858415A (en) Method and device for labeling object in 3D point cloud data
CN107491289B (en) Window rendering method and device
CN109840929B (en) Method and device for realizing dynamic base line drawing based on Echarts
US5473747A (en) Method and apparatus for identifying features in a multidimensional data set
CN115311233A (en) Visualization method and visualization device for product defects
CN112068749B (en) System and method for centralized display and control of screens of multi-screen single-terminal equipment
US11574113B2 (en) Electronic apparatus, information processing method, and recording medium
CN106445208B (en) A method of the mark figure based on serial ports follows display
CN111736748B (en) Data processing method and device based on map information and electronic equipment
CN114283138A (en) Display screen defect marking method and device, electronic equipment and storage medium
US6947867B2 (en) Vehicle collision damage display technique
KR20020027581A (en) Method for evaluating dynamic perspective distortion of transparent body and method for supporting designing of three-dimensional shape of transparent body
CN112215935A (en) LOD model automatic switching method and device, electronic equipment and storage medium
CN111489443A (en) Construction site construction scene three-dimensional visualization method and device
JP4490215B2 (en) Data display device and program
CN110930857B (en) Method and device for drawing scattered points
CN113143196B (en) Visual sensitivity determination method, device, system, equipment and readable storage medium
CN108334507B (en) Chart display method and device and electronic equipment
JP2002023906A (en) Coordinate display device

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