Bottled wine impurity detection method and device, computer equipment and storage medium
By using a camera and a rotating device to capture rotated wine images in the bottled wine detection system, and using a deep learning model to identify impurities, the problems of low accuracy and low efficiency in impurity detection in the existing technology are solved, and an efficient Automated impurity identification.
Patent Information
- Application Number
- CN202410709495.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the accuracy and efficiency of impurity detection in bottled wine are low, and it is difficult to directly implement automated detection through image detection technology.
Using a camera and a rotating device combined with a deep learning model, multiple images of the wine are taken by rotating the wine bottle. The pre-trained impurity recognition model is used to identify impurities and determine whether the movement trajectory of the impurities conforms to the laws of liquid movement, thereby determining the category of impurities.
It improves the identification efficiency and accuracy of impurities in wine, realizes automated impurity detection, and reduces manual intervention.
Smart Images

Figure CN118655995A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of detection technology, and in particular to a method, device, computer equipment and storage medium for detecting impurities in bottled wine. Background Art
[0002] Currently, all industries are promoting automated production lines to improve production efficiency. For the liquor industry, the difficulty of automation lies in the detection of impurities after filling. Currently, most impurity detection requires manual observation of each bottle, which has low detection efficiency and is difficult to guarantee accuracy.
[0003] However, the existing image detection technology is difficult to be directly used for impurity detection. Therefore, a solution that can accurately detect impurities in wine is urgently needed. Summary of the invention
[0004] In view of this, the present invention provides a method, device, computer equipment and storage medium for detecting impurities in bottled wine to solve the problems of low accuracy and low detection efficiency of impurity detection in the prior art.
[0005] In a first aspect, an embodiment of the present invention provides a method for detecting impurities in bottled wine, which is applicable to impurity detection equipment on a filling line, wherein the impurity detection equipment comprises a camera and a rotating device, wherein the camera is used to capture an image of a wine bottle after being filled with wine, and the rotating device is used to drive the wine bottle to rotate, and the method comprises: controlling the rotating device to drive the wine bottle to rotate for a preset time; acquiring multiple images of the bottled wine captured by the camera, wherein the multiple images captured are images of the wine in motion after the bottled wine is rotated; and inputting the multiple images into a pre-trained impurity recognition model for impurity recognition, thereby obtaining multiple result images corresponding one-to-one to the multiple images, wherein each of the result images carries an impurity mark.
[0006] Optionally, the impurity recognition model is trained by the following steps:
[0007] A training sample set is collected, wherein the training sample set includes multiple groups of sample image groups, each group of sample images is obtained by collecting images of the wine in motion after the bottle of wine is rotated, and the collection order of the sample images in each sample image group is disrupted; the neural network model is trained using the training sample set to obtain the impurity recognition model.
[0008] Optionally, the training sample set further includes negative samples, and the negative samples include: images containing bubble marks and images containing bottle stain marks.
[0009] Optionally include:
[0010] Controlling the rotating device to drive the sample wine bottle with impurities to rotate for the preset time;
[0011] Continuously capture a sequence of images of the sample wine bottle by the camera;
[0012] The order of the image sequence is disrupted, and the disrupted image sequence is randomly grouped to obtain the multiple groups of sample image groups.
[0013] Optionally, it also includes:
[0014] Obtaining the positions of impurity marks and shooting timestamps on the multiple result images;
[0015] Calculate the motion trajectory of the impurity mark according to the impurity mark position and the shooting timestamp;
[0016] Determining whether the motion trajectory conforms to the motion law of impurities in the liquid;
[0017] If it conforms to the movement law, it is determined that the impurity mark is indeed an impurity in the wine.
[0018] Optionally, different impurity categories correspond to different movement laws, wherein the step of judging whether the movement trajectory conforms to the movement law of impurities in liquid includes:
[0019] Matching the motion trajectory with the motion law corresponding to each impurity category one by one;
[0020] If the corresponding motion law is matched, it is determined that the motion trajectory conforms to the motion law, and the corresponding impurity category is determined.
[0021] Optionally, the impurity categories include plastic chips, glass slag, and rust slag.
[0022] In a second aspect, the present invention provides an impurity detection device for bottled wine, which is suitable for impurity detection equipment on a filling line, wherein the impurity detection equipment comprises a camera and a rotating device, wherein the camera is used to capture an image of a wine bottle after being filled with wine, and the rotating device is used to drive the wine bottle to rotate, and the bottled wine impurity detection device comprises: a control module, used to control the rotating device to drive the wine bottle to rotate for a preset time; a shooting module, used to obtain multiple images of the bottled wine captured by the camera, wherein the multiple images captured are images of the wine in motion after the bottled wine is rotated; and a recognition module, used to input the multiple images into a pre-trained impurity recognition model for impurity recognition, and obtain multiple result images corresponding one-to-one to the multiple images, wherein each of the result images carries an impurity mark.
[0023] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for detecting impurities in bottled wine according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0024] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for detecting impurities in bottled wine according to the first aspect or any corresponding embodiment thereof.
[0025] According to an embodiment of the present invention, after the wine bottle is rotated, the wine follows the rotation movement. If there are impurities in the wine, no matter what kind of impurities there are, they will rotate with the wine. When the wine bottle stops rotating, the wine is still in a rotating motion state due to inertia. The wine in motion is photographed by a camera to obtain multiple images, and then the impurities in the multiple images are identified using a pre-trained impurity recognition model to obtain multiple result images. After the wine containing impurities is rotated by rotating the wine bottle, the impurities in the wine are identified using the pre-trained impurity recognition model through deep learning, thereby improving the efficiency and accuracy of impurity recognition in the wine. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 is a schematic flow chart of a method for detecting impurities in bottled wine according to an embodiment of the present invention;
[0028] Figure 2 is a structural block diagram of a device for detecting impurities in bottled wine according to an embodiment of the present invention;
[0029] Figure 3 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other implementations obtained by those skilled in the art without creative work are included.
[0031] The embodiment of the present invention provides a method for detecting impurities in bottled wine, which is applicable to an impurity detection device on a filling line. The impurity detection device can be a link in the filling line, and detects impurities in the bottled wine after the wine is filled and dried, and before it is boxed. The impurity detection device includes a camera and a rotating device, and can also include a processor for executing the above detection method. The camera is used to capture an image of the wine bottle after the wine is filled, and the rotating device is used to drive the wine bottle to rotate.
[0032] In the embodiment of the present invention, the structure and type of the camera are not limited, and the structure of the rotating device is not specifically limited, as long as the wine bottle can be rotated. The camera and the optional device can select corresponding structures in the prior art.
[0033] According to an embodiment of the present invention, an embodiment of a method for detecting impurities in bottled wine is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] In this embodiment, a method for detecting impurities in bottled wine is provided. Figure 1 As shown, the method for detecting impurities in bottled wine according to an embodiment of the present invention includes:
[0035] Step S101, controlling the rotating device to drive the wine bottle to rotate for a preset time.
[0036] The wine bottle described in the embodiment of the present invention may refer to a wine bottle after being filled with wine. The shape and style of the wine bottle are not specifically limited. The bottle body may be cylindrical or square, etc. The preset time for controlling the rotation of the wine bottle may be set as needed, for example, 3 seconds or 5 seconds.
[0037] The purpose of controlling the rotation of the wine bottle in the embodiment of the present invention is to make the wine in the wine bottle rotate, so that impurities in the wine can also float in the wine, avoiding the impurities from sinking to the bottom, resulting in the inability to capture images containing impurities.
[0038] Step S102, obtaining multiple images of the bottled wine captured by a camera, wherein the multiple images captured are images of the bottled wine in motion after the bottled wine is rotated.
[0039] After the wine bottle stops rotating, while the wine in the bottle is still rotating, a camera is used to capture multiple images of the bottled wine. In this embodiment, the multiple images may be multiple images from the same viewing angle, or may be images captured from multiple viewing angles by multiple cameras.
[0040] Step S103, inputting the multiple images into a pre-trained impurity identification model to perform impurity identification, and obtaining a plurality of result images corresponding to the multiple images one by one, wherein each result image carries an impurity mark.
[0041] The impurity identification model can be a model pre-trained using deep learning technology, which takes the photographed wine image as input and outputs an image marked with impurities. The difference between the multiple output result images and the multiple input images is that each result image is marked with an impurity, and the position of the mark is also the position of the impurity on the input image identified by the model.
[0042] According to an embodiment of the present invention, after the wine bottle is rotated, the wine follows the rotation movement. If there are impurities in the wine, no matter what kind of impurities there are, they will rotate with the wine. When the wine bottle stops rotating, the wine is still in a rotating motion state due to inertia. The wine in motion is photographed by a camera to obtain multiple images, and then the impurities in the multiple images are identified using a pre-trained impurity recognition model to obtain multiple result images. After the wine containing impurities is rotated by rotating the wine bottle, the impurities in the wine are identified using the pre-trained impurity recognition model through deep learning, thereby improving the efficiency and accuracy of impurity recognition in the wine.
[0043] As an optional implementation, in an embodiment of the present invention, the impurity recognition model is trained by the following steps: collecting a training sample set, the training sample set includes multiple groups of sample image groups, each group of sample images is obtained by collecting images of the wine in motion after the bottle of wine is rotated, and the order of collecting sample images in each sample image group is disrupted; using the training sample set to train a neural network model to obtain an impurity recognition model.
[0044] The training samples may include positive samples and negative samples, wherein the positive samples may be images containing impurities; and the negative samples may be images containing bubble marks or images containing stain marks outside the bottle.
[0045] The training sample set may include multiple groups of training samples, that is, multiple groups of sample image groups. In the embodiment of the present invention, the number of images in each group is not limited, for example, 4 images.
[0046] When collecting training samples, we can collect multiple image sequences of the wine after the bottled wine is rotated, that is, collect multiple images at a time, shuffle them, randomly select multiple images as a group, shuffle the collection order, mark the impurity positions, and then use them as training sample groups for model training. In this way, the impact of sample time sequence on the detection results can be reduced and recognition accuracy can be improved.
[0047] Specifically, in an embodiment of the present invention, collecting a training sample set may include: controlling a rotating device to drive a sample wine bottle with impurities to rotate for a preset time; continuously photographing an image sequence of the sample wine bottle through a camera; disrupting the order of the image sequence, and randomly grouping the disrupted image sequence to obtain multiple groups of sample image groups.
[0048] In the embodiment of the present invention, the sample wine bottle can be bottled wine with sample impurities. After the sample wine bottle is rotated by the rotating device, the camera continuously captures a sequence of images of the bottled wine with impurities, and then randomly selects and groups the images. After the impurities on the images are marked, multiple groups of sample image groups are obtained, and the multiple groups of sample images are positive samples. In the embodiment of the present invention, the same method as above can also be used to generate negative samples, the main difference being the sample wine bottle, for example, a sample wine bottle that is easy to generate bubbles is selected for rotation, or a sample wine bottle with stains on the outside of the bottle is selected.
[0049] As an optional implementation manner of the embodiment of the present invention, the method for detecting impurities in bottled wine in the embodiment of the present invention also includes: obtaining the positions of impurity marks and shooting timestamps on multiple result images; calculating the motion trajectory of the impurity mark based on the impurity mark positions and shooting timestamps; judging whether the motion trajectory conforms to the movement law of impurities in liquid; if it conforms to the movement law, determining that the impurity mark is indeed an impurity in the wine.
[0050] In the embodiment of the present invention, since the multiple images input to the impurity recognition model are acquired in time sequence, after the multiple result images are recognized by the impurity recognition model, the multiple result images are also multiple images that change in time sequence. In this case, the shooting timestamps and impurity mark positions on the multiple result images are obtained, and the movement trajectory of the impurity mark is determined by the movement of the impurity mark position over time; then the movement trajectory is used to determine whether it conforms to the movement law of impurities. If it conforms, it is determined that there are indeed impurities in the wine; otherwise, it may need to be determined manually.
[0051] Of course, in the embodiment of the present invention, the impurities identified by the impurity detection model can be determined as impurities; and in this embodiment, the accuracy of impurity identification is further improved by using motion trajectory judgment.
[0052] It should be noted that the motion law described in the embodiments of the present invention may refer to a specific motion trajectory, or a motion formula. For example, whether the motion trajectory obtained by detection matches the motion trajectory of the impurity calculated in advance is used to determine whether it complies with the motion law; or whether the motion trajectory obtained by detection satisfies a predetermined motion formula is used to determine whether it complies with the motion law.
[0053] Furthermore, as an optional implementation of the embodiment of the present invention, different impurity categories correspond to different motion laws, and the impurity categories include plastic chips, glass slag, and rust slag. Among them, the motion laws of different types of impurities such as plastic chips, glass slag, and rust slag in the wine are different. Therefore, judging whether the motion trajectory conforms to the motion law of impurities in the liquid includes: matching the motion trajectory with the motion law corresponding to each impurity category one by one; if the corresponding motion law is matched, it is determined that the motion trajectory conforms to the motion law, and the corresponding impurity category is determined.
[0054] In the embodiment of the present invention, after calculating the motion trajectory of the impurity mark, the motion trajectory is matched with the motion law corresponding to each impurity category. If they match, it can be determined that impurities exist in accordance with the motion law, and the impurity category can also be determined.
[0055] In this embodiment, a device for detecting impurities in bottled wine is also provided, which is used to implement the above embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0056] The impurity detection device for bottled wine according to the embodiment of the present invention is applicable to the impurity detection equipment on the filling production line. The impurity detection equipment includes a camera and a rotating device. The camera is used to take an image of the wine bottle after being filled with wine, and the rotating device is used to drive the wine bottle to rotate. Figure 2 As shown, the bottled wine impurity detection device includes:
[0057] The control module 301 is used to control the rotating device to drive the wine bottle to rotate for a preset time.
[0058] The wine bottle described in the embodiment of the present invention may refer to a wine bottle after being filled with wine. The shape and style of the wine bottle are not specifically limited. The bottle body may be cylindrical or square, etc. The preset time for controlling the rotation of the wine bottle may be set as needed, for example, 3 seconds or 5 seconds.
[0059] The purpose of controlling the rotation of the wine bottle in the embodiment of the present invention is to make the wine in the wine bottle rotate, so that impurities in the wine can also float in the wine, avoiding the impurities from sinking to the bottom, resulting in the inability to capture images containing impurities.
[0060] The shooting module 302 is used to obtain multiple images of bottled wine captured by a camera, wherein the multiple images captured are images of the bottled wine in motion after the bottled wine is rotated.
[0061] After the wine bottle stops rotating, while the wine in the bottle is still rotating, a camera is used to capture multiple images of the bottled wine. In this embodiment, the multiple images may be multiple images from the same viewing angle, or may be images captured from multiple viewing angles by multiple cameras.
[0062] The recognition module 303 is used to input multiple images into a pre-trained impurity recognition model to perform impurity recognition, and obtain multiple result images corresponding to the multiple images one by one, wherein each result image carries an impurity mark.
[0063] The impurity identification model can be a model pre-trained using deep learning technology, which takes the photographed wine image as input and outputs an image marked with impurities. The difference between the multiple output result images and the multiple input images is that each result image is marked with an impurity, and the position of the mark is also the position of the impurity on the input image identified by the model.
[0064] According to an embodiment of the present invention, after the wine bottle is rotated, the wine follows the rotation movement. If there are impurities in the wine, no matter what kind of impurities there are, they will rotate with the wine. When the wine bottle stops rotating, the wine is still in a rotating motion state due to inertia. The wine in motion is photographed by a camera to obtain multiple images, and then the impurities in the multiple images are identified using a pre-trained impurity recognition model to obtain multiple result images. After the wine containing impurities is rotated by rotating the wine bottle, the impurities in the wine are identified using the pre-trained impurity recognition model through deep learning, thereby improving the efficiency and accuracy of impurity recognition in the wine.
[0065] Optionally, the bottled wine impurity detection device further comprises:
[0066] An acquisition module is used to acquire a training sample set, the training sample set includes multiple groups of sample image groups, each group of sample images is obtained by acquiring images of the wine liquid in the bottle after the wine liquid is rotated, and the acquisition order of the sample images in each sample image group is disrupted;
[0067] The training module is used to train the neural network model using the training sample set to obtain the impurity recognition model.
[0068] Optionally, the training sample set also includes negative samples, and the negative samples include: images containing bubble marks and images containing bottle stain marks.
[0069] Optionally, the acquisition module includes: a control unit, used to control the rotating device to drive the sample wine bottle with impurities to rotate for a preset time; a shooting unit, used to continuously shoot an image sequence of the sample wine bottle through a camera; and a grouping unit, used to disrupt the order of the image sequence and randomly group the disrupted image sequence to obtain multiple groups of sample image groups.
[0070] Optionally, the bottled wine impurity detection device also includes: an acquisition module, used to obtain the impurity mark position and shooting timestamp on multiple result images; a calculation module, used to calculate the motion trajectory of the impurity mark according to the impurity mark position and the shooting timestamp; a judgment module, used to judge whether the motion trajectory conforms to the movement law of impurities in liquid; and a determination module, used to determine that the impurity mark is indeed an impurity in the wine if it conforms to the movement law.
[0071] Optionally, different impurity categories correspond to different movement rules, wherein the judgment module includes:
[0072] A matching unit, used to match the motion trajectory with the motion law corresponding to each impurity category one by one;
[0073] The determination unit is used to determine that the motion trajectory conforms to the motion law if the corresponding motion law is matched, and determine the corresponding impurity category. The impurity category includes plastic chips, glass slag, and rust slag.
[0074] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0075] The bottled wine impurity detection device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0076] The embodiment of the present invention also provides a computer device having the above Figure 3 The device for detecting impurities in bottled wine is shown.
[0077] See also Figure 3 , Figure 3 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 3As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 10 is taken as an example.
[0078] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0079] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0080] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0081] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0082] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0083] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0084] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for detecting impurities in bottled wine, characterized in that: An impurity detection device applicable to a filling line, the impurity detection device comprises a camera and a rotating device, the camera is used to capture an image of a wine bottle after being filled with wine, the rotating device is used to drive the wine bottle to rotate, and the method comprises: Controlling the rotating device to drive the wine bottle to rotate for a preset time; Acquire multiple images of the bottled wine captured by the camera, wherein the multiple images captured are images of the bottled wine in motion after the bottled wine is rotated; The multiple images are input into a pre-trained impurity identification model for impurity identification, and multiple result images corresponding to the multiple images are obtained, wherein each of the result images carries an impurity mark.
2. The method according to claim 1, characterized in that The impurity recognition model is trained by the following steps: Collecting a training sample set, wherein the training sample set includes a plurality of sample image groups, each of which is obtained by collecting images of the wine in the bottle under motion after the wine is rotated, and the collection order of the sample images in each sample image group is disrupted; The training sample set is used to train a neural network model to obtain the impurity recognition model.
3. The method according to claim 2, characterized in that The training sample set also includes negative samples, and the negative samples include: images containing bubble marks and images containing bottle stain marks.
4. The method according to claim 2, characterized in that: The collecting of training sample sets includes: Controlling the rotating device to drive the sample wine bottle with impurities to rotate for the preset time; Continuously capture a sequence of images of the sample wine bottle by the camera; The order of the image sequence is disrupted, and the disrupted image sequence is randomly grouped to obtain the multiple groups of sample image groups.
5. The method according to claim 1, characterized in that Also includes: Obtaining the positions of impurity marks and shooting timestamps on the multiple result images; Calculate the motion trajectory of the impurity mark according to the impurity mark position and the shooting timestamp; Determining whether the motion trajectory conforms to the motion law of impurities in the liquid; If it conforms to the movement law, it is determined that the impurity mark is indeed an impurity in the wine.
6. The method according to claim 5, characterized in that Different impurity categories correspond to different movement laws, wherein the step of judging whether the movement trajectory conforms to the movement law of impurities in liquid includes: Matching the motion trajectory with the motion law corresponding to each impurity category one by one; If the corresponding motion law is matched, it is determined that the motion trajectory conforms to the motion law, and the corresponding impurity category is determined.
7. The method according to claim 6, characterized in that The impurity categories include plastic chips, glass slag, and rust slag.
8. A device for detecting impurities in bottled wine, characterized in that: The impurity detection device is applicable to the filling line, and the impurity detection device includes a camera and a rotating device. The camera is used to take an image of the wine bottle after the wine is filled, and the rotating device is used to drive the wine bottle to rotate. The bottled wine impurity detection device includes: A control module, used to control the rotating device to drive the wine bottle to rotate for a preset time; A shooting module, used to obtain multiple images of the bottled wine taken by the camera, wherein the multiple images taken are images of the bottled wine in motion after the bottled wine is rotated; The recognition module is used to input the multiple images into a pre-trained impurity recognition model to perform impurity recognition, and obtain multiple result images corresponding to the multiple images one by one, wherein each of the result images carries an impurity mark.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the bottled wine impurity detection method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the bottled wine impurity detection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Impurity detecting device and method of bottled transparent liquid
CN109709108A
Bottled white spirit detection method and device based on track cascade algorithm
CN111950466A
Mould identification method and system based on cervical cell sap-based slide
CN113901865A
Impurity detection method and system based on lamp inspection machine
CN117571731A
