A random sampling method and system for crude copper

By combining industrial cameras and laser pointers with AI visual recognition technology, automatic random sampling and drill sample point selection of blister copper ingots are realized, which solves the problems of low manual sampling efficiency and risk of cheating in the existing technology, and improves the compliance of the sampling process. sex and accuracy.

CN114878212BActive Publication Date: 2024-08-23ZIJIN COPPER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210504000.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2024-08-23
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

In the existing technology, the sampling process of blister copper ingots requires manual operation, resulting in a heavy workload and difficulty in automation, and there is a risk of sampling cheating.

Method used

Industrial cameras and laser pointers with pan-tilts are used combined with AI visual recognition technology to achieve random sampling of blister copper ingots and automated selection of drilling sample points, ensuring the legal compliance of the sampling process through a systematic process.

Benefits of technology

It effectively reduces human influence, ensures the legal compliance of the sampling process, prevents sampling cheating, and improves sampling efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114878212B
    Figure CN114878212B
Patent Text Reader

Abstract

The invention discloses a random sampling method and system for blister copper. The blister copper ingot random sampling system and the blister copper ingot random drilling sampling system are utilized to realize unmanned selection of blister copper ingot sampling and blister copper ingot drilling sampling points, which can effectively reduce the human influence in sampling, ensure the legality and compliance of the sampling process, and prevent sampling cheating.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of metal production quality control, and in particular to a crude copper random sampling method and system. Background Art

[0002] Currently, many copper companies need to manually drill samples of incoming crude copper ingots every day, using radial drilling machines to obtain crude copper ingots or anode plate cuttings as samples, and the sampling method is random selection. With the increasing demand for crude copper, the workload of drilling samples has increased significantly. In order to ensure the legality and compliance of the sampling process and prevent sampling fraud, it is urgent to realize unmanned and automated operation of crude copper sampling. Summary of the invention

[0003] In view of the deficiencies in the prior art, the present invention aims to provide a random sampling method and system for crude copper.

[0004] In order to achieve the above object, the present invention adopts the following technical solution:

[0005] A random sampling method for crude copper, the specific process is:

[0006] A parking space is provided for parking a vehicle loaded with blister copper ingots; the vehicle loaded with blister copper ingots is provided with a carriage with an open top structure;

[0007] A sampling and collection industrial camera and a sampling laser indicator with a pan-tilt are provided above the parking space, and the sampling and collection industrial camera and the sampling laser indicator with a pan-tilt are both communicatively connected to a sampling control system;

[0008] Arrange the crude copper ingots on the carriage of the vehicle, then park the vehicle loaded with the crude copper ingots at a preset parking space, and then manually issue a random sampling instruction to the sampling control system;

[0009] The sampling control system drives the sampling and collection industrial camera to take a bird's-eye view photo of the vehicle, and then the sampling control system uses AI visual recognition technology to identify the number and position of the crude copper ingots in the bird's-eye view photo, and displays the result image of the AI ​​visual recognition on the sampling display screen in real time; in the result image of the AI ​​visual recognition, the crude copper ingots are circled and marked with a wire frame of a set color;

[0010] The sampling control system calculates the plane coordinates of each crude copper ingot according to the identification result, and numbers each crude copper ingot in a preset order, and then corresponds the number of the crude copper ingot to the corresponding plane coordinates one by one; the plane coordinates of each crude copper ingot include the coordinates of the four vertices of the wire frame that circles and identifies the crude copper ingot;

[0011] The sampling control system randomly samples the numbered crude copper ingots, and the sampling quantity is a set percentage of the total quantity of the crude copper ingots. The selected crude copper ingots are then circled and marked with a wire frame of another set color and displayed on the sampling display screen;

[0012] The sampling control system sends action instructions to the pan-tilt of the sampling laser indicator according to the order of the serial numbers of the selected crude copper ingots, drives the pan-tilt to drive the sampling laser indicator to rotate, so that the sampling laser indicator will hit the indicated light spot on the selected crude copper ingots one by one; according to the indicated light spot of the sampling laser indicator, the crude copper ingot hit by the indicated light spot is forked to the open space by a forklift;

[0013] After the sampling control system drives the sampling laser pointer to hit the indicating light spot on the crude copper ingot that needs to be forked away, the sampling and acquisition industrial camera is used to obtain a bird's-eye view of the vehicle and AI visual recognition is performed again, and the result image of AI visual recognition is dynamically displayed on the display screen. When the sampling control system finds that the crude copper ingot that has been forked away is inconsistent with the crude copper ingot that needs to be forked away, or the crude copper ingot that needs to be forked away is not forked away within the specified time, an abnormal alarm message is issued, and the sampling error is manually handled according to the abnormal alarm message;

[0014] After all the selected crude copper ingots are forked away, a random sampling end instruction is manually issued to the sampling control system. The sampling control system turns off the sampling laser indicator and the sampling collection industrial camera, and controls the pan / tilt to return to its initial position.

[0015] Furthermore, the method also includes a step of randomly drilling samples of crude copper ingots, and the specific process is as follows:

[0016] A drilling sample collection industrial camera and a drilling sample laser indicator with a pan-tilt head are arranged above the drilling table of the radial drilling machine, and both the drilling sample collection industrial camera and the drilling sample laser indicator with a pan-tilt head are communicatively connected to the drilling sample control system;

[0017] After the forklift transports the selected crude copper ingot to the drilling table of the radial drilling machine, it is manually confirmed whether the crude copper ingot is in place. After confirmation, the drilling control system is manually issued with a start drilling instruction;

[0018] The drilling control system drives the drilling acquisition industrial camera to take images of the crude copper ingot, and uses AI visual recognition technology to identify the upper surface of the crude copper ingot and the position of the steel bars. It then generates a coordinate system of the upper surface of the crude copper ingot and calculates the coordinate positions of the four corners of the upper surface of the crude copper ingot. The recognition result image is then displayed on the drilling display screen, and the upper surface of the crude copper ingot is circled in the form of a frame line in the recognition result image.

[0019] The drilling control system evenly divides the upper surface of the crude copper ingot into a plurality of sampling grids, randomly selects drilling points based on the sampling grids and calculates the coordinates of each drilling point, and avoids the steel bar position of the crude copper ingot when randomly selecting the drilling points. The result image of the randomly selected drilling points is displayed on the drilling display screen;

[0020] The drilling control system controls the drilling laser indicator with a pan / tilt according to the result of randomly selecting the drilling points, and hits the laser on the selected drilling points, and then manually controls the radial drilling machine to drill the rough copper ingot according to the drilling points, and the debris of the drilling is the sample;

[0021] After the drilling of all the sampling points is completed, a drilling end instruction is manually issued to the drilling control system, and the drilling control system drives the drilling acquisition industrial camera to take the image of the crude copper ingot again to confirm whether drilling is performed on the drilling points. If it is found that any of the selected drilling points has not been drilled, an abnormal alarm message is generated. Otherwise, the photo of the crude copper ingot before drilling, the result image of the randomly selected drilling point, and the image of the crude copper ingot after the drilling are stored for review.

[0022] Furthermore, after the drilling control system acquires the image of the crude copper ingot, it first corrects the image of the crude copper ingot and reconstructs the trapezoidal image into a normal image; then, an image segmentation algorithm is used to acquire the edge coordinates of the upper surface of the crude copper ingot and the coordinate information of the steel bar position, and then the rotation angle of the image of the crude copper ingot is corrected to a non-rotation angle, and then the upper surface of the crude copper ingot is evenly divided into a plurality of sampling grids, and drilling points are randomly selected while avoiding the steel bar position, and the coordinates of the selected drilling points are calculated; then, the drilling control system sends the coordinate information of the drilling points to a drilling laser indicator with a pan / tilt, and the drilling laser indicator with a pan / tilt highlights the drilling points on the crude copper ingot. position; manually control the radial drilling machine, and drill the marked drilling points according to the position indicated by the drilling laser pointer; after sampling of all the drilling points is completed, the on-site operator manually issues the command to end the drilling, and then the on-site operator moves the drill arm of the drilling machine away again, and the drilling industrial camera collects the image of the crude copper ingot after the drilling is completed, and performs image correction, image segmentation, and rotation angle correction; then reads the coordinate information of the selected drilling points, and intercepts the corresponding areas of the crude copper ingot image after the drilling is completed based on these coordinate information to determine whether these areas have holes; if these areas have holes, the drilling is terminated, otherwise an abnormal alarm message is issued, and the undrilled areas are marked in red.

[0023] Furthermore, the drilling laser pointer with a pan / tilt head indicates each drilling point in a set order, and the indication on each drilling point stays for a set time to facilitate on-site operators to mark the drilling points with chalk.

[0024] The present invention also provides a system for implementing the above method, including a crude copper ingot random sampling system; the crude copper ingot random sampling system includes a sampling and acquisition industrial camera, a sampling laser indicator with a pan-tilt head, and a sampling control system; the sampling and acquisition industrial camera and the sampling laser indicator with a pan-tilt head are both communicatively connected to the sampling control system;

[0025] The sampling control system is divided into a sampling interface layer, a sampling analysis layer and a sampling UI layer;

[0026] The sampling interface layer includes a sampling and acquisition industrial camera driving interface, a sampling and acquisition industrial camera data receiving interface, and a sampling laser pointer driving interface; the sampling and acquisition industrial camera driving interface is used to trigger the sampling and acquisition industrial camera to take photos and samples, and is linked with the sampling trigger operation of the sampling UI layer to realize the sampling and acquisition industrial camera taking photos and sampling based on user operations; the sampling and acquisition industrial camera data receiving interface is used to adapt to the file transfer interface mode of the sampling and acquisition industrial camera, and receive the image data collected by the sampling and acquisition industrial camera in real time; the sampling laser pointer driving interface is used to drive the sampling laser pointer to point to the corresponding crude copper ingot according to the position of the selected crude copper ingot;

[0027] The sampling and analysis layer includes a target detection module, a position measurement and positioning module, a sampling and position sorting module, and a selection and transportation result analysis module; the target detection module is used to perform AI visual recognition on the images collected by the sampling and acquisition industrial camera, identify the crude copper ingots and mark them, and display the result images of AI visual recognition to the sampling UI layer in real time, and save them to the sampling database for storage; the position measurement and positioning module is used to calculate the plane coordinates of each crude copper ingot based on the detection results of the target detection module, and number each crude copper ingot in the set order according to the plane coordinates of each crude copper ingot; the sampling and position sorting module is used to calculate the plane coordinates of each crude copper ingot based on the measurement ... The calculation result of the positioning module is used to randomly sample according to the set percentage of the total number of crude copper ingots, and then the selected crude copper ingots are sorted according to their numbers; the selection and transportation result judgment module is used to judge whether the crude copper ingot currently indicated by the sampling laser pointer has been forked away. If it has been forked away, the result is fed back to the sampling laser pointer driving interface. The sampling laser pointer driving interface will drive the sampling laser pointer to point to the next selected crude copper ingot according to the sorting result of the sampling and position sorting module. When it is judged that the forked crude copper ingot does not correspond to the crude copper ingot currently indicated by the sampling laser pointer, the alarm mechanism is triggered, and an abnormal alarm is issued at the sampling UI layer;

[0028] The sampling UI layer adopts a B / S architecture, including a sampling data display module, a sampling trigger module, a sampling abnormality alarm module, a sampling user login module, a sampling history information query module and a sampling system configuration module; the sampling data display module is used to display the AI ​​visual recognition result image and the random sampling result image using a UI interface; the sampling trigger module is used to provide a human-computer interface, through which the random sampling operation can be manually triggered and ended; the sampling abnormality alarm module is used to display the abnormal alarm information of the sampling; the sampling user login module is used for users to perform login operations; the sampling history information query module is used to provide sampling historical data query operations and displays, and the queryable historical data includes the AI ​​visual recognition result image of a certain sampling, the random sampling result image, and the result image when the random sampling is ended; the sampling system configuration module is used for users to query and modify system parameters.

[0029] Furthermore, the sampling database includes a sampling history sample database, a sampling system configuration database and a sampling user authority database; the sampling history sample database is used to save the historical data of each random sampling; the sampling system configuration database is used to store the configuration data information of each module in the sampling interface layer and the sampling analysis layer; the sampling user authority database is used to store the user's login data and authority information.

[0030] Furthermore, the system also includes a crude copper ingot random drilling system, which includes a drilling control system, an industrial camera for drilling sample collection, and a drilling laser indicator with a pan-tilt; the industrial camera for drilling sample collection and the drilling laser indicator with a pan-tilt are both communicatively connected to the drilling control system;

[0031] The drilling sample control system includes a drilling sample UI layer, a drilling sample analysis layer and a drilling sample interface layer;

[0032] The drilling sample interface layer includes a drilling sample collection industrial camera driving interface, a drilling sample collection industrial camera data receiving interface, and a drilling sample laser pointer driving interface; the drilling sample collection industrial camera driving interface is used to trigger the drilling sample collection industrial camera to take photos and samples, and is linked with the sampling trigger operation of the UI layer to realize the drilling sample collection industrial camera photo sampling based on user operations; the drilling sample collection industrial camera data receiving interface is used to adapt to the file transfer interface mode of the drilling sample collection industrial camera, and receive the image data collected by the drilling sample collection industrial camera in real time; the drilling sample laser pointer driving interface is used to drive the drilling sample laser pointer to point to the corresponding drilling sample point position according to the coordinate information of the selected drilling sample point;

[0033] The drilling sample analysis layer includes an image correction module, an image segmentation module, a rotation angle correction module, a drilling sample point random selection module and a drilling sample point area detection module; the image correction module is used to correct the image of the crude copper ingot acquired by the drilling sample acquisition industrial camera, and reconstruct the trapezoidal image into a normal image; the image segmentation module is used to use an image segmentation algorithm to obtain the edge coordinates of the upper surface of the crude copper ingot and the coordinate information of the steel bar position; the rotation angle correction module is used to correct the image rotation angle of the crude copper ingot to a non-rotation angle; the drilling sample point random selection module is used to divide the upper surface of the crude copper ingot into uniform Multiple sampling grids, under the premise of avoiding the position of steel bars, randomly select drilling points and calculate the coordinates of the selected drilling points; the drilling point area detection module is used to read the coordinate information of the selected drilling points after receiving the manual end drilling instruction, and intercept the corresponding areas on the image of the crude copper ingot after the drilling is completed after being processed by the image correction module, the image segmentation module, and the rotation angle correction module according to these coordinate information, and determine whether these areas have drilling holes. If these areas have drilling holes, the drilling is terminated, otherwise an abnormal alarm message is issued, and the undrilled area is marked in red;

[0034] The drilling sample UI layer adopts a B / S architecture, including a drilling sample data display module, a drilling sample trigger module, a drilling sample abnormality alarm module, a drilling sample user login module, a drilling sample historical information query module and a drilling sample system configuration module; the drilling sample data display module is used to use the UI interface to display the AI ​​visual recognition result image of the drilling sample and the result image of the randomly selected drilling hole; the drilling sample trigger module is used to provide a human-machine interface, through which the drilling operation can be manually triggered and ended; the drilling sample abnormality alarm module is used to display the abnormal alarm information of the drilling sample; the drilling sample user login module is used for users to log in; the drilling sample historical information query module is used to provide historical data query operations and displays of the drilling sample, and the queryable historical data includes the AI ​​visual recognition result image of a certain drilling sample, the result image of the randomly selected drilling sample point, and the image of the rough copper ingot when the drilling sample is completed; the drilling sample system configuration module is used for users to query and modify system parameters.

[0035] Furthermore, the random drilling sample system for crude copper ingots also includes a drilling sample database, which includes a drilling sample history sample database, a drilling sample system configuration database and a drilling sample user authority database; the drilling sample history sample database is used to save the historical data of each drilling sample; the drilling sample system configuration database is used to store the configuration data information of each module in the drilling sample interface layer and the drilling sample analysis layer; the drilling sample user authority database is used to store the user's login data and authority information.

[0036] The beneficial effects of the present invention are as follows: the random sampling of crude copper ingots and the random selection of drilling sampling points of crude copper ingots are performed by utilizing the present invention, thereby effectively reducing the human influence in sampling, ensuring the legality and compliance of the sampling process, and preventing sampling cheating. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a schematic flow chart of a method for random sampling of crude copper ingots in Example 1 of the present invention;

[0038] Figure 2 This is a schematic diagram of the arrangement of the random sampling system for crude copper ingots in Example 1 of the present invention;

[0039] Figure 3 This is a schematic diagram of the process of selecting the drilling sample points of the rough copper ingot in Example 1 of the present invention;

[0040] Figure 4 This is a schematic diagram of the selection results of the drill sampling points of the rough copper ingot in Example 1 of the present invention;

[0041] Figure 5 This is a schematic diagram of the control system architecture of the crude copper ingot random sampling system in Example 2 of the present invention;

[0042] Figure 6 This is a schematic diagram of the drilling control system architecture of the random drilling system for crude copper ingots in Example 2 of the present invention. DETAILED DESCRIPTION

[0043] The present invention will be further described below in conjunction with the accompanying drawings. It should be noted that this embodiment is based on the technical solution and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to this embodiment.

[0044] Example 1

[0045] This embodiment provides a random sampling method for crude copper. Figure 1 As shown, the specific process is:

[0046] A parking space is provided for parking a vehicle 100 loaded with blister copper ingots; the vehicle 100 loaded with blister copper ingots is provided with a compartment 101 with an open top structure; in this embodiment, a rain shelter 105 is provided on the top of the parking space;

[0047] like Figure 2 As shown, a sampling and collecting industrial camera 102 and a sampling laser pointer 103 with a pan-tilt are provided above the parking space, and the sampling and collecting industrial camera 102 and the sampling laser pointer 103 with a pan-tilt are both communicatively connected to the sampling control system; in this embodiment, the sampling and collecting industrial camera 102 and the sampling laser pointer 103 with a pan-tilt are both arranged on the inner top of the rain shelter 105;

[0048] Arrange and place the blister copper ingots 104 on the carriage 101 of the vehicle 100, then park the vehicle 100 loaded with the blister copper ingots at a preset parking space, and then manually issue a random sampling instruction to the sampling control system;

[0049] The sampling control system drives the sampling and collection industrial camera 102 to take a bird's-eye view photo of the vehicle 100, and then the sampling control system uses AI visual recognition technology to identify the number and position of the crude copper ingots 104 in the bird's-eye view photo, and displays the result image of the AI ​​visual recognition on the sampling display screen in real time; in the result image of the AI ​​visual recognition, the crude copper ingots are circled and marked with a wire frame of a set color;

[0050] The sampling control system calculates the plane coordinates of each crude copper ingot according to the identification result, and numbers each crude copper ingot in a preset order (for example, from top to bottom and from left to right), and then corresponds the numbers of the crude copper ingots to the corresponding plane coordinates one by one; the plane coordinates of each crude copper ingot include the coordinates of the four vertices of the wire frame that circles and identifies the crude copper ingot;

[0051] The sampling control system randomly samples the numbered crude copper ingots, and the sampling quantity is 15% of the total number of crude copper ingots. The selected crude copper ingots are then circled and marked with a wire frame of another set color and displayed on the sampling display screen.

[0052] The sampling control system calculates the plane center coordinates (or lateral center coordinates) of each selected crude copper ingot, and then sends action instructions to the pan-tilt of the sampling laser indicator in the order of the serial numbers of the selected crude copper ingots, driving the pan-tilt to drive the sampling laser indicator to rotate, so that the sampling laser indicator will hit the indicated light spot on the selected crude copper ingots one by one; according to the indicated light spot of the sampling laser indicator, the crude copper ingot hit by the indicated light spot is forked to the open space by forklift.

[0053] After the sampling control system drives the sampling laser pointer to hit the indicating light spot on the crude copper ingot that needs to be forked, the sampling and acquisition industrial camera is used to obtain a bird's-eye view of the vehicle and AI visual recognition is performed again, and the result image of AI visual recognition is dynamically displayed on the display screen. When the sampling control system finds that the crude copper ingot that has been forked is inconsistent with the crude copper ingot that needs to be forked (wrong fork) or the crude copper ingot that needs to be forked is not forked within the specified time (missed fork), an abnormal alarm message is issued, and the sampling error is manually handled according to the abnormal alarm message;

[0054] After all the selected crude copper ingots are forked away, a random sampling end instruction is manually issued to the sampling control system. The sampling control system turns off the sampling laser indicator and the sampling collection industrial camera, and controls the pan / tilt to return to its initial position.

[0055] In this embodiment, the method further comprises a step of randomly drilling a sample of the crude copper ingot, such as Figure 3 As shown, the specific process is:

[0056] A drilling sample collection industrial camera and a drilling sample laser indicator with a pan-tilt head are arranged above the drilling table of the radial drilling machine, and both the drilling sample collection industrial camera and the drilling sample laser indicator with a pan-tilt head are communicatively connected to the drilling sample control system;

[0057] After the forklift transports the selected crude copper ingot to the drilling table of the radial drilling machine, it is manually confirmed whether the crude copper ingot is in place. After confirmation, the drilling control system is manually issued a command to start drilling.

[0058] The drilling control system drives the drilling acquisition industrial camera to take images of the crude copper ingot, and uses AI visual recognition technology to identify the upper surface of the crude copper ingot and the position of the steel bars. It then generates a coordinate system of the upper surface of the crude copper ingot and calculates the coordinate positions of the four corners of the upper surface of the crude copper ingot. The recognition result image is then displayed on the drilling display screen, and the upper surface of the crude copper ingot is circled in the form of a frame line in the recognition result image.

[0059] The drilling control system evenly divides the upper surface of the crude copper ingot into a plurality of sampling grids (81 in this embodiment), randomly selects drilling points based on the sampling grids and calculates the coordinates of each drilling point. When randomly selecting drilling points, it is necessary to avoid the steel bar position of the crude copper ingot. The result image of the randomly selected drilling points is displayed on the drilling display screen, such as Figure 4 In this embodiment, when randomly selecting the drilling points, two drilling points are randomly selected on the grid located at the center and one drilling point is randomly selected on the grid located at the edge, for a total of three drilling points.

[0060] The drilling control system controls the drilling laser indicator with a pan / tilt according to the result of randomly selecting the drilling points, and hits the laser on the selected drilling points, and then manually controls the radial drilling machine to drill the rough copper ingot according to the drilling points, and the debris of the drilling is the sample;

[0061] After the drilling of all the sampling points is completed, a drilling end instruction is manually issued to the drilling control system, and the drilling control system drives the drilling acquisition industrial camera to take the image of the crude copper ingot again to confirm whether drilling is performed on the drilling points. If it is found that any of the selected drilling points has not been drilled, an abnormal alarm message is generated. Otherwise, the photo of the crude copper ingot before drilling, the result image of the randomly selected drilling point, and the image of the crude copper ingot after the drilling are stored for review.

[0062] It should be noted that the drilling sample collection industrial camera adopts a 2K surveillance-level camera and is deployed directly above the radial drilling machine. At the same time, the corresponding drilling sample laser indicator with a pan / tilt is also deployed on one side of the drilling sample collection industrial camera to indicate the drilling point. The deployment location of the drilling sample collection industrial camera needs to meet the following conditions:

[0063] a) Take a clear picture of the entire surface of the crude copper ingot, while trying not to include too much background image;

[0064] b) The lens tilt angle is moderate to avoid excessive trapezoidal deformation of the image of the rough copper ingot;

[0065] c) Try to deploy it in a stable place with no vibration and low chance of collision with people to ensure stability.

[0066] It should be noted that the drilling sample control system is deployed on the wall behind the radial drilling machine to display the locations where random drilling and sampling of copper ingots are required, making it convenient for on-site operators to view information.

[0067] It should be noted that after the crude copper ingot is in place, the drilling machine operator will first move the drill arm of the drilling machine away so that the drilling sample collection industrial camera can fully capture the crude copper ingot.

[0068] It should be noted that after the drilling control system obtains the image of the crude copper ingot, it first corrects the image of the crude copper ingot and reconstructs the trapezoidal image into a normal image; then the image segmentation algorithm is used to obtain the edge coordinates of the upper surface of the crude copper ingot and the coordinate information of the steel bar position, and then the rotation angle of the image of the crude copper ingot is corrected to a non-rotation angle, and then the upper surface of the crude copper ingot is evenly divided into multiple sampling grids, and the drilling points are randomly selected and the coordinates of the selected drilling points are calculated under the premise of avoiding the steel bar position. Then the drilling control system sends the coordinate information of the drilling points to the drilling laser indicator with a pan-tilt, and the drilling laser indicator with a pan-tilt highlights the position of the drilling points on the crude copper ingot through the bright spot of the "cross laser flower". In this embodiment, the indication of the drilling laser indicator with a pan-tilt is performed in a set order (for example, from left to right, from front to back), and each indication stays for 5 seconds (this time can be adjusted) to facilitate the on-site operator to mark with chalk. The radial drilling machine is manually controlled to drill the marked drilling points according to the position indicated by the drilling laser pointer. After all the drilling points are sampled, the on-site operator will manually issue the command to end the drilling. The drilling industrial camera will collect the image of the crude copper ingot after the drilling is completed, and perform the same image correction (trapezoidal-rectangular), image segmentation, and rotation angle correction as mentioned above. Then read the coordinate information of the selected drilling points, and intercept the corresponding areas of the crude copper ingot image after the drilling is completed based on these coordinate information to determine whether these areas have holes. If there are holes in these areas, the drilling is terminated. Otherwise, an abnormal alarm message will be issued and the undrilled areas will be marked in red.

[0069] Example 2

[0070] This embodiment provides a system for implementing the method described in Embodiment 1, including a crude copper ingot random sampling system; the crude copper ingot random sampling system includes a sampling and acquisition industrial camera, a sampling laser pointer with a pan-tilt head, and a sampling control system; the sampling and acquisition industrial camera and the sampling laser pointer with a pan-tilt head are both communicatively connected to the sampling control system;

[0071] like Figure 5 As shown, the sampling control system is divided into a sampling interface layer, a sampling analysis layer and a sampling UI layer;

[0072] The sampling interface layer includes a sampling and acquisition industrial camera driving interface, a sampling and acquisition industrial camera data receiving interface, and a sampling laser pointer driving interface; the sampling and acquisition industrial camera driving interface is used to trigger the sampling and acquisition industrial camera to take photos and samples, and is linked with the sampling trigger operation of the sampling UI layer to realize the sampling and acquisition industrial camera taking photos and sampling based on user operations; the sampling and acquisition industrial camera data receiving interface is used to adapt to the file transfer interface mode of the sampling and acquisition industrial camera, and receive the image data collected by the sampling and acquisition industrial camera in real time; the sampling laser pointer driving interface is used to drive the sampling laser pointer to point to the corresponding crude copper ingot according to the position of the selected crude copper ingot;

[0073] The sampling and analysis layer includes a target detection module, a position measurement and positioning module, a sampling and position sorting module, and a selection and transportation result analysis module; the target detection module is used to perform AI visual recognition on the images collected by the sampling and collection industrial camera, identify the crude copper ingots and mark them, and display the result images of AI visual recognition to the sampling UI layer in real time, and save them to the sampling database for storage; the position measurement and positioning module is used to calculate the plane coordinates of each crude copper ingot based on the detection results of the target detection module, and number each crude copper ingot in a set order (for example, from front to back, from left to right) according to the plane coordinates of each crude copper ingot; the sampling and position sorting module is used to calculate the plane coordinates of each crude copper ingot based on the detection results of the target detection module The calculation result of the block is randomly sampled according to 15% of the total number of crude copper ingots, and then the selected crude copper ingots are sorted according to their numbers to ensure a reasonable order and avoid random indications from left to right, which makes the forklift work time-consuming and laborious; the selection and transportation result judgment module is used to judge whether the crude copper ingot currently indicated by the sampling laser indicator has been forked away. If it has been forked away, the result is fed back to the sampling laser indicator driving interface. The sampling laser indicator driving interface will drive the sampling laser indicator to point to the next selected crude copper ingot according to the sorting result of the sampling and position sorting module. When it is judged that the forked crude copper ingot does not correspond to the crude copper ingot currently indicated by the sampling laser indicator, the alarm mechanism is triggered and an abnormal alarm is issued at the UI layer. It should be noted that the frequency of selection and transportation result judgment (how many seconds to detect once) is set as a configurable option, and the default is once every 10 seconds.

[0074] The sampling UI layer adopts a mature B / S architecture to facilitate development and operation and maintenance. It includes a sampling data display module, a sampling trigger module, a sampling abnormality alarm module, a sampling user login module, a sampling history information query module and a sampling system configuration module; the sampling data display module is used to display the AI ​​visual recognition result image and the random sampling result image using the UI interface; the sampling trigger module is used to provide a human-machine interface, through which the random sampling operation can be manually triggered and ended; the sampling abnormality alarm module is used to display the abnormal alarm information of the sampling; the sampling user login module is used for users to perform login operations to avoid misoperation and malicious operations without authentication; the sampling history information query module is used to provide sampling historical data query operations and displays, and the query results are displayed in graphic form. The queryable historical data includes the AI ​​visual recognition result image of a certain sampling, the random sampling result image, and the result image when the random sampling is ended; the sampling system configuration module is used for users to query and modify system parameters (such as detection frequency, image scale, random sampling method) and other operations. This function is linked to user permissions, and only users above the administrator level can make modifications;

[0075] The sampling database includes a sampling history sample database, a sampling system configuration database and a sampling user authority database; the sampling history sample database is used to save the historical data of each random sampling; the sampling system configuration database is used to store the configuration data information of each module in the sampling interface layer and the sampling analysis layer; the sampling user authority database is used to store the user's login data and authority information.

[0076] In this embodiment, the system further includes a random drilling sample system for crude copper ingots, and the random drilling sample system for crude copper ingots includes a drilling sample control system, an industrial camera for drilling sample collection, and a drilling sample laser indicator with a pan-tilt head; the industrial camera for drilling sample collection and the drilling sample laser indicator with a pan-tilt head are both communicatively connected to the drilling sample control system;

[0077] The structure of the drilling sample control system is similar to that of the sampling control system described above, including a drilling sample UI layer, a drilling sample analysis layer and a drilling sample interface layer. Figure 6 shown.

[0078] The drilling sample interface layer includes a drilling sample collection industrial camera driving interface, a drilling sample collection industrial camera data receiving interface, and a drilling sample laser pointer driving interface; the drilling sample collection industrial camera driving interface is used to trigger the drilling sample collection industrial camera to take photos and samples, and is linked with the sampling trigger operation of the UI layer to realize the drilling sample collection industrial camera photo sampling based on user operations; the drilling sample collection industrial camera data receiving interface is used to adapt to the file transfer interface mode of the drilling sample collection industrial camera, and receive the image data collected by the drilling sample collection industrial camera in real time; the drilling sample laser pointer driving interface is used to drive the drilling sample laser pointer to point to the corresponding drilling sample point position according to the coordinate information of the selected drilling sample point;

[0079] The drilling sample analysis layer includes an image correction module, an image segmentation module, a rotation angle correction module, a drilling sample point random selection module, and a drilling sample point area detection module; the image correction module is used to correct the image of the crude copper ingot acquired by the drilling sample acquisition industrial camera, and reconstruct the trapezoidal image into a normal image; the image segmentation module is used to use an image segmentation algorithm to obtain the edge coordinates of the upper surface of the crude copper ingot and the coordinate information of the steel bar position; the rotation angle correction module is used to correct the image rotation angle of the crude copper ingot to a non-rotation angle; the drilling sample point random selection module is used to divide the upper surface of the crude copper ingot into uniform Multiple sampling grids, under the premise of avoiding the position of steel bars, randomly select drilling points and calculate the coordinates of the selected drilling points; the drilling point area detection module is used to read the coordinate information of the selected drilling points after receiving the manual end drilling instruction, and intercept the corresponding areas on the image of the crude copper ingot after the drilling is completed after being processed by the image correction module, the image segmentation module, and the rotation angle correction module according to these coordinate information, to determine whether these areas have drill holes, if these areas have drill holes, then end the drilling, otherwise issue an abnormal alarm message, and mark the undrilled areas in red.

[0080] The drilling sample UI layer also adopts a mature B / S architecture to facilitate development and operation and maintenance. It includes a drilling sample data display module, a drilling sample trigger module, a drilling sample abnormality alarm module, a drilling sample user login module, a drilling sample historical information query module and a drilling sample system configuration module; the drilling sample data display module is used to use the UI interface to display the AI ​​visual recognition result image of the drilling sample and the result image of the randomly selected drilling sample hole; the drilling sample trigger module is used to provide a human-machine interface, through which the drilling sample operation can be manually triggered and ended; the drilling sample abnormality alarm module is used to display the abnormal alarm information of the drilling sample; the drilling sample user login module is used for users to log in to avoid misoperation and malicious operation without authentication; the drilling sample historical information query module is used to provide historical data query operations and display of drilling samples, and the query results are displayed in graphic form. The queryable historical data includes the AI ​​visual recognition result image of a certain drilling sample, the result image of the randomly selected drilling sample point, and the image of the crude copper ingot when the drilling sample is completed; the drilling sample system configuration module is used for users to query and modify system parameters. This function is linked to user permissions, and only users above the administrator level can make modifications;

[0081] The drilling sample database includes a drilling sample history sample database, a drilling sample system configuration database and a drilling sample user authority database; the drilling sample history sample database is used to save the historical data of each drilling sample; the drilling sample system configuration database is used to store the configuration data information of each module in the drilling sample interface layer and the drilling sample analysis layer; the drilling sample user authority database is used to store the user's login data and authority information.

[0082] For those skilled in the art, various corresponding changes and modifications can be made according to the above technical solutions and concepts, and all of these changes and modifications should be included in the protection scope of the claims of the present invention.

Claims

1. A random sampling method for crude copper, characterized in that: The specific process is: A parking space is provided for parking a vehicle loaded with blister copper ingots; the vehicle loaded with blister copper ingots is provided with a carriage with an open top structure; A sampling and collection industrial camera and a sampling laser indicator with a pan-tilt are provided above the parking space, and the sampling and collection industrial camera and the sampling laser indicator with a pan-tilt are both communicatively connected to a sampling control system; Arrange the crude copper ingots on the carriage of the vehicle, then park the vehicle loaded with the crude copper ingots at a preset parking space, and then manually issue a random sampling instruction to the sampling control system; The sampling control system drives the sampling and collection industrial camera to take a bird's-eye view photo of the vehicle, and then the sampling control system uses AI visual recognition technology to identify the number and position of the crude copper ingots in the bird's-eye view photo, and displays the result image of the AI ​​visual recognition on the sampling display screen in real time; in the result image of the AI ​​visual recognition, the crude copper ingots are circled and marked with a wire frame of a set color; The sampling control system calculates the plane coordinates of each crude copper ingot according to the identification result, and numbers each crude copper ingot in a preset order, and then corresponds the number of the crude copper ingot to the corresponding plane coordinates one by one; the plane coordinates of each crude copper ingot include the coordinates of the four vertices of the wire frame that circles and identifies the crude copper ingot; The sampling control system randomly samples the numbered crude copper ingots, and the sampling quantity is a set percentage of the total quantity of the crude copper ingots. The selected crude copper ingots are then circled and marked with a wire frame of another set color and displayed on the sampling display screen; The sampling control system sends action instructions to the pan-tilt of the sampling laser indicator according to the order of the serial numbers of the selected crude copper ingots, drives the pan-tilt to drive the sampling laser indicator to rotate, so that the sampling laser indicator will hit the indicated light spot on the selected crude copper ingots one by one; according to the indicated light spot of the sampling laser indicator, the crude copper ingot hit by the indicated light spot is forked to the open space by a forklift; After the sampling control system drives the sampling laser pointer to hit the indicating light spot on the crude copper ingot that needs to be forked away, the sampling and acquisition industrial camera is used to obtain a bird's-eye view of the vehicle and AI visual recognition is performed again, and the result image of AI visual recognition is dynamically displayed on the display screen. When the sampling control system finds that the crude copper ingot that has been forked away is inconsistent with the crude copper ingot that needs to be forked away, or the crude copper ingot that needs to be forked away is not forked away within the specified time, an abnormal alarm message is issued, and the sampling error is manually handled according to the abnormal alarm message; After all the selected crude copper ingots are forked away, a random sampling end instruction is manually issued to the sampling control system, and the sampling control system turns off the sampling laser indicator and the sampling collection industrial camera, and controls the pan / tilt to restore the initial position; The method also includes a step of randomly drilling samples of crude copper ingots, and the specific process is as follows: A drilling sample collection industrial camera and a drilling sample laser indicator with a pan-tilt head are arranged above the drilling table of the radial drilling machine, and both the drilling sample collection industrial camera and the drilling sample laser indicator with a pan-tilt head are communicatively connected to the drilling sample control system; After the forklift transports the selected crude copper ingot to the drilling table of the radial drilling machine, it is manually confirmed whether the crude copper ingot is in place. After confirmation, the drilling control system is manually issued with a start drilling instruction; The drilling control system drives the drilling acquisition industrial camera to take images of the crude copper ingot, and uses AI visual recognition technology to identify the upper surface of the crude copper ingot and the position of the steel bars. It then generates a coordinate system of the upper surface of the crude copper ingot and calculates the coordinate positions of the four corners of the upper surface of the crude copper ingot. The recognition result image is then displayed on the drilling display screen, and the upper surface of the crude copper ingot is circled in the form of a frame line in the recognition result image. The drilling control system evenly divides the upper surface of the crude copper ingot into a plurality of sampling grids, randomly selects drilling points based on the sampling grids and calculates the coordinates of each drilling point, and avoids the steel bar position of the crude copper ingot when randomly selecting the drilling points. The result image of the randomly selected drilling points is displayed on the drilling display screen; The drilling control system controls the drilling laser indicator with a pan / tilt according to the result of randomly selecting the drilling points, and hits the laser on the selected drilling points, and then manually controls the radial drilling machine to drill the rough copper ingot according to the drilling points, and the debris of the drilling is the sample; After the drilling of all the sampling points is completed, a drilling end instruction is manually issued to the drilling control system, and the drilling control system drives the drilling acquisition industrial camera to take the image of the crude copper ingot again to confirm whether drilling is performed on the drilling points. If it is found that any of the selected drilling points has not been drilled, an abnormal alarm message is generated. Otherwise, the photo of the crude copper ingot before drilling, the result image of the randomly selected drilling point, and the image of the crude copper ingot after the drilling are stored for review.

2. The method according to claim 1, characterized in that After the drilling control system acquires the image of the crude copper ingot, it first corrects the image of the crude copper ingot and reconstructs the trapezoidal image into a normal image; then, an image segmentation algorithm is used to obtain the edge coordinates of the upper surface of the crude copper ingot and the coordinate information of the steel bar position, and then the rotation angle of the image of the crude copper ingot is corrected to a non-rotation angle, and then the upper surface of the crude copper ingot is evenly divided into a plurality of sampling grids, and on the premise of avoiding the steel bar position, drilling points are randomly selected and the coordinates of the selected drilling points are calculated; then, the drilling control system sends the coordinate information of the drilling points to the drilling laser indicator with a pan / tilt, and the drilling laser indicator with a pan / tilt highlights the position of the drilling points on the crude copper ingot; The radial drilling machine is manually controlled to drill the marked drilling points according to the position indicated by the drilling laser pointer; after sampling of all drilling points is completed, the on-site operator manually issues the command to end drilling, and then the drill arm of the drilling machine is moved away again, and the drilling industrial camera collects the image of the crude copper ingot after drilling, and performs image correction, image segmentation, and rotation angle correction; then the coordinate information of the selected drilling points is read, and the corresponding areas of the crude copper ingot image after drilling are intercepted based on these coordinate information to determine whether these areas have drill holes; if these areas have drill holes, the drilling is terminated, otherwise an abnormal alarm message is issued, and the undrilled areas are marked in red.

3. The method according to claim 2, characterized in that The drilling laser pointer with a pan / tilt head indicates each drilling point in a set order, and the indication on each drilling point stays for a set time to facilitate on-site operators to mark the drilling points with chalk.

4. A system for implementing the method according to any one of claims 1 to 3, characterized in that: It includes a random sampling system for crude copper ingots; the random sampling system for crude copper ingots includes a sampling and collection industrial camera, a sampling laser indicator with a pan-tilt head, and a sampling control system; the sampling and collection industrial camera and the sampling laser indicator with a pan-tilt head are both communicatively connected with the sampling control system; The sampling control system is divided into a sampling interface layer, a sampling analysis layer and a sampling UI layer; The sampling interface layer includes a sampling and acquisition industrial camera driving interface, a sampling and acquisition industrial camera data receiving interface, and a sampling laser pointer driving interface; the sampling and acquisition industrial camera driving interface is used to trigger the sampling and acquisition industrial camera to take photos and samples, and is linked with the sampling trigger operation of the sampling UI layer to realize the sampling and acquisition industrial camera taking photos and sampling based on user operations; the sampling and acquisition industrial camera data receiving interface is used to adapt to the file transfer interface mode of the sampling and acquisition industrial camera, and receive the image data collected by the sampling and acquisition industrial camera in real time; the sampling laser pointer driving interface is used to drive the sampling laser pointer to point to the corresponding crude copper ingot according to the position of the selected crude copper ingot; The sampling and analysis layer includes a target detection module, a position measurement and positioning module, a sampling and position sorting module, and a selection and transportation result analysis module; the target detection module is used to perform AI visual recognition on the images collected by the sampling and collection industrial camera, identify the crude copper ingots and mark them, and display the result images of AI visual recognition to the sampling UI layer in real time, and save them to the sampling database for storage; the position measurement and positioning module is used to calculate the plane coordinates of each crude copper ingot based on the detection results of the target detection module, and number each crude copper ingot according to the plane coordinates of each crude copper ingot in the set order; The sampling and position sorting module is used to randomly sample according to the set percentage of the total number of crude copper ingots based on the calculation results of the measurement and positioning module, and then sort the selected crude copper ingots according to their numbers; the selection and transportation result judgment module is used to judge whether the crude copper ingot currently indicated by the sampling laser pointer has been forked away. If it has been forked away, the result is fed back to the sampling laser pointer driving interface. The sampling laser pointer driving interface will drive the sampling laser pointer to point to the next selected crude copper ingot according to the sorting results of the sampling and position sorting module. When it is determined that the forked crude copper ingot does not correspond to the crude copper ingot currently indicated by the sampling laser pointer, the alarm mechanism is triggered, and an abnormal alarm is issued at the sampling UI layer; The sampling UI layer adopts a B / S architecture, including a sampling data display module, a sampling trigger module, a sampling abnormality alarm module, a sampling user login module, a sampling history information query module and a sampling system configuration module; the sampling data display module is used to display the AI ​​visual recognition result image and the random sampling result image using a UI interface; the sampling trigger module is used to provide a human-computer interface, through which the random sampling operation can be manually triggered and ended; the sampling abnormality alarm module is used to display the abnormal alarm information of the sampling; the sampling user login module is used for users to perform login operations; the sampling history information query module is used to provide sampling historical data query operations and displays, and the queryable historical data includes the AI ​​visual recognition result image of a certain sampling, the random sampling result image and the result image when the sampling is ended; the sampling system configuration module is used for users to query and modify system parameters.

5. The system according to claim 4, characterized in that The sampling database includes a sampling history sample database, a sampling system configuration database and a sampling user authority database; the sampling history sample database is used to save the historical data of each random sampling; the sampling system configuration database is used to store the configuration data information of each module in the sampling interface layer and the sampling analysis layer; the sampling user authority database is used to store the user's login data and authority information.

6. The system according to claim 4, characterized in that It also includes a random drilling sample system for crude copper ingots, which includes a drilling sample control system, an industrial camera for drilling sample collection, and a drilling sample laser indicator with a pan-tilt head; the industrial camera for drilling sample collection and the drilling sample laser indicator with a pan-tilt head are both communicatively connected to the drilling sample control system; The drilling sample control system includes a drilling sample UI layer, a drilling sample analysis layer and a drilling sample interface layer; The drilling sample interface layer includes a drilling sample collection industrial camera driving interface, a drilling sample collection industrial camera data receiving interface, and a drilling sample laser indicator driving interface; the drilling sample collection industrial camera driving interface is used to trigger the drilling sample collection industrial camera to take photos and samples, and is linked with the sampling trigger operation of the UI layer to realize the drilling sample collection industrial camera taking photos and sampling based on user operations; The drilling sample collection industrial camera data receiving interface is used to adapt to the file transmission interface mode of the drilling sample collection industrial camera and receive the image data collected by the drilling sample collection industrial camera in real time; The drilling sample laser pointer driving interface is used to drive the drilling sample laser pointer to point to the corresponding drilling sample point position according to the coordinate information of the selected drilling sample point; The drilling sample analysis layer includes an image correction module, an image segmentation module, a rotation angle correction module, a drilling sample point random selection module and a drilling sample point area detection module; the image correction module is used to correct the image of the crude copper ingot acquired by the drilling sample acquisition industrial camera, and reconstruct the trapezoidal image into a normal image; the image segmentation module is used to use an image segmentation algorithm to obtain the edge coordinates of the upper surface of the crude copper ingot and the coordinate information of the steel bar position; the rotation angle correction module is used to correct the image rotation angle of the crude copper ingot to a non-rotation angle; the drilling sample point random selection module is used to divide the upper surface of the crude copper ingot into uniform Multiple sampling grids, under the premise of avoiding the position of steel bars, randomly select drilling points and calculate the coordinates of the selected drilling points; the drilling point area detection module is used to read the coordinate information of the selected drilling points after receiving the manual end drilling instruction, and intercept the corresponding areas on the image of the crude copper ingot after the drilling is completed after being processed by the image correction module, the image segmentation module, and the rotation angle correction module according to these coordinate information, and determine whether these areas have drilling holes. If these areas have drilling holes, the drilling is terminated, otherwise an abnormal alarm message is issued, and the undrilled area is marked in red; The drilling sample UI layer adopts a B / S architecture, including a drilling sample data display module, a drilling sample trigger module, a drilling sample abnormality alarm module, a drilling sample user login module, a drilling sample historical information query module and a drilling sample system configuration module; the drilling sample data display module is used to use the UI interface to display the AI ​​visual recognition result image of the drilling sample and the result image of the randomly selected drilling hole; the drilling sample trigger module is used to provide a human-machine interface, through which the drilling operation can be manually triggered and ended; the drilling sample abnormality alarm module is used to display the abnormal alarm information of the drilling sample; the drilling sample user login module is used for users to log in; the drilling sample historical information query module is used to provide historical data query operations and displays of the drilling sample, and the queryable historical data includes the AI ​​visual recognition result image of a certain drilling sample, the result image of the randomly selected drilling sample point, and the image of the rough copper ingot when the drilling sample is completed; the drilling sample system configuration module is used for users to query and modify system parameters.

7. The system according to claim 6, characterized in that The random drilling sample system for crude copper ingots also includes a drilling sample database, which includes a drilling sample history sample database, a drilling sample system configuration database and a drilling sample user authority database; the drilling sample history sample database is used to save the historical data of each drilling sample; the drilling sample system configuration database is used to store the configuration data information of each module in the drilling sample interface layer and the drilling sample analysis layer; the drilling sample user authority database is used to store the user's login data and authority information.