Sampling process visualization processing method and device, equipment and storage medium
Patent Information
- Application Number
- CN202611045993.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-14
- Publication Date
- 2026-10-16
AI Technical Summary
取样过程不可视:操作人员无法实时观察取样器内部流体的状态,尤其是分界面(如油水界面、气液界面)的位置
[0010] This application provides a sampling process visualization processing method, apparatus, device, and storage medium. During the sampling of a mixed medium, a data acquisition device installed at the front end of the sampler acquires fluid video images of the sampling inlet area. Based on an image recognition algorithm, the fluid video images are identified to generate the actual location of the interface in the mixed medium. If the actual location of the interface meets preset sampling completion conditions, an alarm is triggered. This solution achieves real-time and accurate monitoring and early warning of the interface location through visualization and image recognition, thereby controlling the sampler to complete sampling at the optimal time (i.e., when the target single-phase medium is obtained and no other media are mixed in), ensuring the purity and representativeness of the sample, and greatly improving the purity of stratified fluid sampling.
Smart Images

Figure CN122921689A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of sampling technology, and more specifically, to a sampling process visualization processing method, apparatus, device, and storage medium. Background Technology
[0002] Currently, in the sampling processes of petroleum, chemical, and pharmaceutical industries, manual or automated samplers are commonly used to sample fluids (such as gas-liquid or liquid-liquid mixtures). However, existing technologies have the following problems: The sampling process is not visible: operators cannot observe the state of the fluid inside the sampler in real time, especially the location of interfaces (such as oil-water interface, gas-liquid interface).
[0003] Judging whether sampling is complete relies on experience: It usually depends on preset time or experience to judge whether sampling is completed, which can easily lead to sampling failure, inaccurate sampling amount or failure to obtain the target medium.
[0004] Therefore, when sampling layered fluids (such as oil-water two-phase fluids), existing technologies cannot observe the internal state of the sampler in real time, making it difficult to accurately determine whether the interface is about to enter or has already entered the sampler. This may result in the sample being a mixed medium, losing its representativeness, or missing the target layer, leading to sampling failure. Summary of the Invention
[0005] The purpose of this application is to provide a sampling process visualization processing method, apparatus, device and storage medium to solve the above-mentioned problems existing in the prior art and improve the purity of stratified fluid sampling.
[0006] Firstly, a method for visualizing the sampling process is provided, which may include: During the sampling process of the mixed medium, a video image of the fluid inlet area of the sampler is acquired by a data acquisition device installed at the front end of the sampler. The fluid video image is identified based on an image recognition algorithm to generate the actual location of the interface in the mixed medium; If the actual location of the interface is determined to meet the preset sampling completion conditions, an alarm is triggered.
[0007] Secondly, a sampling process visualization processing device is provided, which may include: The acquisition module is used to acquire fluid video images of the sampling inlet area of the sampler during the sampling process of mixed media by means of an acquisition device installed at the front end of the sampler. The identification module is used to identify the fluid video image based on the image recognition algorithm and generate the actual location of the interface in the mixed medium; An alarm module is used to trigger an alarm if the actual position of the interface is determined to meet the preset sampling completion conditions.
[0008] Thirdly, an electronic device is provided, which includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in memory, it implements any of the steps described in the first aspect above.
[0009] Fourthly, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when executed by a processor, the computer program implements the steps of any of the methods described in the first aspect above.
[0010] This application provides a sampling process visualization processing method, apparatus, device, and storage medium. During the sampling of a mixed medium, a data acquisition device installed at the front end of the sampler acquires fluid video images of the sampling inlet area. Based on an image recognition algorithm, the fluid video images are identified to generate the actual location of the interface in the mixed medium. If the actual location of the interface meets preset sampling completion conditions, an alarm is triggered. This solution achieves real-time and accurate monitoring and early warning of the interface location through visualization and image recognition, thereby controlling the sampler to complete sampling at the optimal time (i.e., when the target single-phase medium is obtained and no other media are mixed in), ensuring the purity and representativeness of the sample, and greatly improving the purity of stratified fluid sampling. Attached Figure Description
[0011] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 A flowchart illustrating a sampling process visualization method provided in an embodiment of this application; Figure 2 A flowchart illustrating a sampling process visualization method provided in an embodiment of this application; Figure 3 A schematic diagram of a sampling process visualization processing device provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0013] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Unless otherwise defined, the technical or scientific terms used in this application should have the ordinary meaning understood by those skilled in the art. The words "first," "second," and similar terms used in this application do not indicate any order, quantity, or importance, but are only used to distinguish different components. The words "comprising" or "including," etc., mean that the element or object preceding the word covers the element or object listed after the word and its equivalents, but do not exclude other elements or objects. The words "connected," "coupled," or "connected," etc., are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up," "down," "left," "right," etc., are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0014] Currently, in the sampling processes of petroleum, chemical, and pharmaceutical industries, manual or automated samplers are commonly used to sample fluids (such as gas-liquid or liquid-liquid mixtures). However, existing technologies have the following problems: The sampling process is not visible: operators cannot observe the state of the fluid inside the sampler in real time, especially the location of interfaces (such as oil-water interface, gas-liquid interface).
[0015] Judging whether sampling is complete relies on experience: It usually depends on preset time or experience to judge whether sampling is completed, which can easily lead to sampling failure, inaccurate sampling amount or failure to obtain the target medium.
[0016] Therefore, when sampling layered fluids (such as oil-water two-phase fluids), existing technologies cannot observe the internal state of the sampler in real time, making it difficult to accurately determine whether the interface is about to enter or has already entered the sampler. This may result in the sample being a mixed medium, losing its representativeness, or missing the target layer, leading to sampling failure.
[0017] In one example, existing technologies lack process documentation and traceability: there are no videos or data records of the sampling process, making it impossible to trace the cause when sampling anomalies occur, and making it difficult to conduct quality analysis and determine responsibility.
[0018] In one example, existing technology signal transmission is susceptible to interference: under complex working conditions such as high pressure, strong corrosion, and strong electromagnetic interference, the signal of traditional wireless transmission methods is unstable, affecting the reliability of monitoring.
[0019] The sampling process visualization processing method provided in this application embodiment can be applied to electronic devices, terminal devices, sampling process visualization processing devices or equipment, or other devices or equipment capable of executing this embodiment, without limitation. This embodiment describes the execution subject as an electronic device. It is applicable to sampling processes of gas-liquid or liquid-liquid two-phase flow media in fields such as petroleum, chemical, and pharmaceutical industries.
[0020] The terminal can be a user equipment (UE) such as a mobile phone, smartphone, laptop computer, digital broadcast receiver, personal digital assistant (PDA), or tablet computer (PAD), handheld device, in-vehicle device, wearable device, computing device, or other processing device connected to a wireless modem, mobile station (MS), or mobile terminal. This terminal has the ability to communicate with one or more core networks via a radio access network (RAN).
[0021] The preferred embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit this application. Furthermore, the embodiments and features in the embodiments of this application can be combined with each other without conflict.
[0022] Figure 1 This is a flowchart illustrating a sampling process visualization method provided in an embodiment of this application. Figure 1 As shown, the method may include: Step S101: During the sampling process of the mixed medium, a fluid video image of the sampling inlet area of the sampler is acquired by a data acquisition device installed at the front end of the sampler.
[0023] For example, a pressure-resistant and waterproof data acquisition device can be detachably installed at the front end of the sampler. This device could be a camera, coaxially arranged with the sampler's axis, and the camera lens facing the sampler's inlet. The sampler housing is made of corrosion-resistant and pressure-resistant material, suitable for pressure environments of 0-50 MPa. The lens is equipped with an anti-fog coating to prevent interference from adhering media. The camera is connected to the electronic equipment via optical fiber. The optical fiber has anti-electromagnetic interference and tensile strength properties; for example, it can be armored optical fiber, enabling real-time high-definition video stream transmission without delay and avoiding signal attenuation problems in complex working conditions associated with wireless transmission.
[0024] The sampler is suitable for sampling mixed media with gas-liquid interfaces (such as natural gas and condensate) or liquid-liquid interfaces (such as crude oil and water) in high-pressure pipelines, reaction vessels, and other equipment, to obtain mixed fluid samples. Specifically, common sampling targets include: Liquid-liquid mixtures: such as oil-water mixtures in the petroleum industry, or two immiscible liquids in the chemical industry, samples are taken from one side of the interface. Gas-liquid mixtures: such as natural gas and condensate in pipelines (gas-liquid two-phase flow), or gas and liquid mixtures in reactors, samples are taken from one side of the interface. This can be extended to other immiscible fluids: such as interfaces between high-viscosity and low-viscosity fluids, or fluid layers of different densities or compositions. Furthermore, samples can be taken from intermediate interface layers (special requirements): in the rare cases where analysis of interfacial emulsion layers is required, sampling can be precisely controlled at the interface, rather than unintentionally introducing the mixture.
[0025] In this step, during the sampling of the mixed medium, a camera installed at the front end of the sampler captures fluid video images of the sampling inlet area of the sampler.
[0026] Therefore, by identifying the location of the interface, electronic devices can accurately determine whether the target layer of medium has been sampled, thereby ensuring the representativeness and success rate of the sampling.
[0027] Step S102: Based on the image recognition algorithm, identify the fluid video image to generate the actual location of the interface in the mixed medium.
[0028] For example, for a fluid sample taken from one side of the interface, an image recognition algorithm is used to identify the fluid video image to generate the actual location of the interface in the mixed medium. Alternatively, for a fluid sample taken from the interface, an image recognition algorithm is used to identify the fluid video image to generate the actual location of the interface in the mixed medium.
[0029] The image recognition algorithm can be "pre-set," "loaded online," or "cloud-based," and can also be an AI system with self-learning, adaptive, or online update capabilities (e.g., a system that can optimize the recognition model based on new data), without any limitations. For example, the image recognition algorithm is a pre-set fluid interface recognition algorithm that identifies the interface by extracting the grayscale value differences and edge contour features of the fluid in the video frame.
[0030] Step S103: If the actual position of the interface is determined to meet the preset sampling completion conditions, an alarm is triggered.
[0031] For example, in the first method of determining the actual position of the interface, if the actual position of the interface meets the preset sampling completion condition, an alarm is triggered. Alternatively, in the second method of determining the actual position of the interface, a parameter representing the real-time position of the interface can be compared with a preset sampling completion threshold; if the parameter reaches the preset sampling completion threshold, an alarm is triggered.
[0032] Optionally, based on the recognition model, a "probability value," "feature intensity value," or other intermediate parameters related to the interface location can be output, and this parameter can be compared with a preset sampling completion threshold to determine whether an alarm should be triggered. This threshold can represent various conditions such as location, time, concentration, or probability, and is not limited thereto.
[0033] Therefore, by identifying the interface, it is possible to accurately "avoid the interface" and take only a pure and representative single sample from one side of the interface, or only take the sample at the boundary.
[0034] The method provided in this application, during the sampling process of a mixed medium, acquires fluid video images of the sampling inlet area of the sampler through a data acquisition device installed at the front end of the sampler. Based on an image recognition algorithm, the fluid video images are identified to generate the actual location of the interface in the mixed medium. If the actual location of the interface meets the preset sampling completion conditions, an alarm is triggered. This solution, through visualization and image recognition, achieves real-time and accurate monitoring and early warning of the interface location, thereby controlling the sampler to complete sampling at the optimal time (i.e., when the target single-phase medium is obtained and no other media have been mixed in), ensuring the purity and representativeness of the sample, and greatly improving the purity of stratified fluid sampling.
[0035] Figure 2 A flowchart illustrating a sampling process visualization method provided in this application is shown below. Figure 2 As shown, in this embodiment... Figure 1 Based on the embodiments, the method is described in detail below, and the method includes: Step S201: During the sampling process of the mixed medium, a fluid video image of the sampling inlet area of the sampler is acquired by a data acquisition device installed at the front end of the sampler.
[0036] In one example, the acquisition device includes a camera; the camera lens is oriented toward the sampling inlet of the sampler and is coaxial with the sampler axis; the lens surface of the camera is provided with an anti-fog coating.
[0037] For example, this step is described in step S101, and will not be repeated here.
[0038] Step S202: Based on the image recognition algorithm, identify the fluid video image to generate the actual location of the interface in the mixed medium.
[0039] In one example, S202 includes: extracting multiple video frames from a fluid video image based on an image recognition algorithm; identifying the grayscale differences and edge contour features of the fluid in each video frame; and locating the actual position of the interface based on the grayscale differences and edge contour features.
[0040] For example, based on image recognition algorithms, multiple video frames are extracted from fluid video images, and the differences in grayscale values and edge contour features of the fluid in each video frame are identified to automatically locate the actual position of the gas-liquid interface, or the actual position of the liquid-liquid interface.
[0041] Step S203: If the actual position of the interface is determined to meet the preset sampling completion conditions, an alarm is triggered.
[0042] In one example, the preset sampling completion conditions include the coordinates of the warning location and the distance between the warning location and the sampler's inlet is a preset safe distance; S203 includes: if it is determined that the coordinates of the actual location are less than or equal to the coordinates of the warning location, then an alarm is triggered.
[0043] In one example, S203 includes: if it is determined that the actual position of the interface meets the preset sampling completion conditions, then an audible and visual alarm signal is issued, and the sampling time point that triggered the alarm is recorded.
[0044] For example, to allow for a safety margin, the preset sampling completion conditions include the coordinates of the warning position, and the distance between the warning position and the sampler inlet is a preset safety distance. For instance, the warning position could be a specific point upstream of the sampling inlet. The preset sampling completion threshold corresponds to a warning position of the interface in the image. This warning position is set according to the sampling task and is typically located at a predetermined safety distance upstream of the sampling inlet. It is used to ensure that a warning is issued before the interface actually enters the sampler, thereby obtaining a pure, single sample. The preset sampling completion threshold is a value preset in the system software, which corresponds to the spatial coordinates of the "warning position" (e.g., in the image coordinate system, the pixel ordinate value is Y_threshold). The "warning position" is a spatial embodiment of the "sampling completion threshold."
[0045] In this step, it is assumed that the sampling tube inlet is at position 0. The warning position may be set 10 mm upstream of the inlet. The image recognition algorithm outputs the coordinates (Y_current) of the current actual position of the interface in real time and continuously compares Y_current with Y_threshold. Once Y_current <= Y_threshold (i.e., the interface has reached or exceeded the "warning line" in the image), it is determined that "the preset sampling completion threshold has been reached," and an alarm is immediately triggered. This means that when the AI detects that the oil-water interface has moved down to 10 mm from the inlet, it considers that "the warning position has been reached," issues an audible and visual alarm signal, and records the sampling time point that triggered the alarm.
[0046] Therefore, in order to leave a safety margin, an early warning can be issued before the interface reaches the inlet, giving the operator or automatic valve time to react and stop sampling.
[0047] Step S204: Based on the trigger operation of the preset stop button, stop the sampling operation of the sampler; or, in response to the trigger alarm, call the stop sampling program, and control the automatic valve to stop the sampling operation of the sampler according to the stop sampling program.
[0048] For example, the sampling operation of the sampler can be manually stopped based on the user's triggering of a preset stop button. Alternatively, the sampling stop procedure can be automatically invoked based on an alarm trigger, and the automatic valve can be controlled to automatically stop the sampling operation of the sampler according to the sampling stop procedure.
[0049] Step S205: Synchronously store fluid video images and corresponding interface position data; retrospectively display fluid video images and interface position changes from historical sampling processes.
[0050] For example, the electronic device has a built-in storage module that simultaneously saves real-time video streams and interface location data, supports historical record retrieval and export, and facilitates the tracing of the sampling process.
[0051] The method provided in this application, during the sampling process of a mixed medium, acquires fluid video images of the sampling inlet area of the sampler through a data acquisition device installed at the front end of the sampler. Based on an image recognition algorithm, the fluid video images are identified to generate the actual position of the interface in the mixed medium. If the actual position of the interface meets the preset sampling completion conditions, an alarm is triggered. Based on the triggering operation of a preset stop button, the sampling operation of the sampler is stopped; or, in response to the alarm trigger, a stop sampling procedure is invoked, and according to the stop sampling procedure, an automatic valve is controlled to stop the sampling operation of the sampler. The fluid video images and corresponding interface position data are stored synchronously; historical sampling process fluid video images and interface position changes are reviewed and displayed. In this solution, through visualization and image recognition, real-time and accurate real-time monitoring and early warning of the interface position are achieved, thereby controlling the sampler to complete sampling at the optimal time (i.e., when the target single-phase medium is obtained and no other media are mixed in), ensuring the purity and representativeness of the sample, and greatly improving the purity of stratified fluid sampling.
[0052] Corresponding to the above method, embodiments of this application also provide a sampling process visualization processing device, such as... Figure 3 As shown, the device includes: The acquisition module 41 is used to acquire fluid video images of the sampling inlet area of the sampler through an acquisition device installed at the front end of the sampler during the sampling process of the mixed medium. The identification module 42 is used to identify the fluid video image based on the image recognition algorithm and generate the actual position of the interface in the mixed medium; The alarm module 43 is used to trigger an alarm if it is determined that the actual position of the interface meets the preset sampling completion conditions.
[0053] The functions of each functional unit of the sampling process visualization processing device provided in the above embodiments of this application can be implemented through the above method steps. Therefore, the specific working process and beneficial effects of each unit in the sampling process visualization processing device provided in the embodiments of this application will not be repeated here.
[0054] This application also provides an electronic device, such as... Figure 4 As shown, it includes a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540.
[0055] Memory 530 is used to store computer programs; The processor 510 performs the above steps when executing the program stored in the memory 530.
[0056] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0057] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0058] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0059] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0060] The implementation methods and beneficial effects of the various components of the electronic device in the above embodiments for solving the problem can be found in [reference needed]. Figure 1 The steps in the illustrated embodiments are used to implement the electronic device. Therefore, the specific working process and beneficial effects of the electronic device provided in this application will not be repeated here.
[0061] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores instructions that, when executed on a computer, cause the computer to perform any of the sampling process visualization processing methods described in the above embodiments.
[0062] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the sampling process visualization processing methods described in the above embodiments.
[0063] Those skilled in the art will understand that the embodiments in this application can be provided as methods, systems, or computer program products. Therefore, the embodiments in this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the embodiments in this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0064] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0065] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0066] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0067] Although preferred embodiments have been described in this application, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of this application.
[0068] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of the embodiments of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims in this application and their equivalents, then this application also intends to include these modifications and variations.
Claims
1. A method for visualizing the sampling process, characterized in that, The method includes: During the sampling process of the mixed medium, a video image of the fluid inlet area of the sampler is acquired by a data acquisition device installed at the front end of the sampler. The fluid video image is identified based on an image recognition algorithm to generate the actual location of the interface in the mixed medium; If the actual location of the interface is determined to meet the preset sampling completion conditions, an alarm is triggered.
2. The method as described in claim 1, characterized in that, The acquisition device includes a camera; the lens of the camera faces the sampling inlet of the sampler and is coaxial with the axis of the sampler; the lens surface of the camera is provided with an anti-fog coating.
3. The method as described in claim 1, characterized in that, Based on image recognition algorithms, the fluid video images are identified to generate the actual locations of the interfaces in the mixed medium, including: Based on image recognition algorithms, multiple video frames are extracted from the fluid video image; For each video frame, identify the grayscale differences and edge contour features of the fluid in the video frame; Based on the grayscale value differences and edge contour features, the actual location of the interface is determined.
4. The method as described in claim 1, characterized in that, The preset sampling completion conditions include the coordinates of the warning location, and the distance between the warning location and the inlet of the sampler is a preset safety distance; If the actual location of the interface is determined to meet the preset sampling completion conditions, an alarm is triggered, including: If the coordinates of the actual location are determined to be less than or equal to the coordinates of the warning location, an alarm is triggered.
5. The method as described in claim 1, characterized in that, If the actual location of the interface is determined to meet the preset sampling completion conditions, an alarm is triggered, including: If the actual position of the interface is determined to meet the preset sampling completion conditions, an audible and visual alarm signal is issued, and the sampling time point that triggered the alarm is recorded.
6. The method according to any one of claims 1-5, characterized in that, After the alarm step is triggered if the actual location of the interface is determined to meet the preset sampling completion conditions, the method further includes: The sampling operation of the sampler is stopped based on the trigger operation of the preset stop button; Alternatively, in response to an alarm, a stop sampling procedure is invoked, and according to the stop sampling procedure, a preset automatic valve is controlled to stop the sampling operation of the sampler.
7. The method according to any one of claims 1-5, characterized in that, The method further includes: The fluid video images and the corresponding interface position data are stored synchronously. It traces back and displays fluid video images and interface position changes during the historical sampling process.
8. A sampling process visualization processing device, characterized in that, The device includes: The acquisition module is used to acquire fluid video images of the sampling inlet area of the sampler during the sampling process of mixed media by means of an acquisition device installed at the front end of the sampler. The identification module is used to identify the fluid video image based on the image recognition algorithm and generate the actual location of the interface in the mixed medium; An alarm module is used to trigger an alarm if the actual position of the interface is determined to meet the preset sampling completion conditions.
9. An electronic device, characterized in that, The electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-7.