A quality detection method for Chinese herbal medicine slices

Through vibration plate and image processing technology, the morphological characteristics and parameters of traditional Chinese medicine pieces are extracted, which solves the problem of unreliable manual judgment and improves the efficiency and accuracy of quality inspection of traditional Chinese medicine pieces.

CN118470023BActive Publication Date: 2024-09-20SICHUAN HONGYI TRADITIONAL CHINESE MEDICINE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410932805.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-09-20
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

The existing quality inspection of traditional Chinese medicine pieces mainly relies on manual judgment, which is unreliable and inefficient. Especially when the specifications are small, it is difficult to accurately judge the size and shape of traditional Chinese medicine pieces.

Method used

Use a vibrating plate to tile the traditional Chinese medicine pieces into a single layer, extract morphological features through video shooting and image processing, calculate equivalent area and shape parameters, and combine Gaussian filter, principal component analysis, bimorphic filter and CANNY algorithm to determine Whether the specifications and shapes of traditional Chinese medicine pieces meet quality requirements.

Benefits of technology

The objectivity and accuracy of quality inspection of traditional Chinese medicine pieces have been improved, the detection speed is faster, and it is more reliable than manual methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470023B
    Figure CN118470023B
Patent Text Reader

Abstract

The invention discloses a quality detection method for Chinese herbal medicine slices, which belongs to the technical field of quality detection of Chinese herbal medicines, and includes introducing Chinese herbal medicine slices into a vibration plate; laying a single layer of Chinese herbal medicine slices on the vibration plate; shooting video information of Chinese herbal medicine slices on the vibration plate, and decomposing the video information into a plurality of frames of images; extracting the morphological features of Chinese herbal medicine slices in the image; calculating the equivalent area and shape parameters of Chinese herbal medicine slices; judging whether the specifications of Chinese herbal medicine slices meet the quality requirements according to the equivalent area of ​​the Chinese herbal medicine slices, and outputting the judgment result; judging whether the shape of Chinese herbal medicine slices meets the quality requirements according to the shape parameters of the Chinese herbal medicine slices, and outputting the judgment result. The invention converts video information into image information for processing through a vector matrix, and cooperates with image processing to quickly estimate the size and shape of Chinese herbal medicine slices. Compared with manual inspection, the inspection of the invention is more objective, has a higher accuracy rate, and has a faster detection rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of quality detection of Chinese herbal medicine pieces, and particularly relates to a quality detection method for Chinese herbal medicine pieces. Background Art

[0002] Chinese herbal medicines are processed and cut into thin slices, thick slices, oblique slices, filaments or broken into segments, blocks and other certain specifications according to the properties of the herbs and medical needs. Among them, thin slices are the most common.

[0003] In response to different market demands, Chinese herbal medicines need to be screened according to their quality. The screening factors include the location of the pieces in the medicinal materials, the uniformity of the pieces, the specifications, etc. The existing screening mainly pre-differentiates the pieces by weight, and then the screened Chinese herbal medicines are quality inspected, including size and specification inspection and shape inspection. However, the existing inspection of the size and shape of Chinese herbal medicines is still mainly manual inspection, which mainly relies on manual experience judgment, and has great instability, unreliability and inefficiency. In addition, the specifications of Chinese herbal medicines are small, and manual judgment has great limitations, and cannot accurately judge the size and shape of Chinese herbal medicines. Summary of the invention

[0004] The purpose of the present invention is to provide a quality inspection method for Chinese herbal medicine slices in view of the above-mentioned deficiencies in the prior art, so as to solve the problem that the quality inspection of Chinese herbal medicine slices is mainly based on manual judgment, and the inspection results are unreliable and inefficient.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] A method for quality testing of Chinese medicinal pieces, comprising the following steps:

[0007] S1, introducing the Chinese herbal medicine pieces after cutting, processing and drying onto a vibration plate;

[0008] S2, start the vibration plate to vibrate the Chinese herbal medicine slices until the Chinese herbal medicine slices are laid flat on the vibration plate in a single layer;

[0009] S3, shooting the video information of the Chinese herbal medicine pieces on the vibration plate, and decomposing the video information into several frames of images;

[0010] S4, processing a plurality of frames of images to extract morphological features of Chinese herbal medicine pieces in the images;

[0011] S5, constructing a two-dimensional rectangular coordinate system, gridding the two-dimensional rectangular coordinate system, and placing the processed image in the gridded two-dimensional rectangular coordinate system;

[0012] S6. Using the circumscribed ellipse equivalent to the shape of the Chinese herbal medicine slices, and based on the gridded two-dimensional rectangular coordinate system, calculating the equivalent area and shape parameters of the Chinese herbal medicine slices;

[0013] S7. According to the equivalent area of ​​the Chinese herbal medicine slices, determine whether the specifications of the Chinese herbal medicine slices meet the quality requirements, and output the judgment result;

[0014] S8. According to the shape parameters of the Chinese herbal medicine slices, determine whether the shape of the Chinese herbal medicine slices meets the quality requirements, and output the judgment result.

[0015] Furthermore, step S4 specifically includes the following steps:

[0016] S4.1, using a Gaussian filter to perform smoothing filtering on several frames of images;

[0017] S4.2, pulling the plurality of frame images into corresponding plurality of column vectors respectively, and combining the plurality of column vectors into a vector matrix D, wherein the vector matrix D includes a foreground vector matrix A and a background vector matrix E;

[0018] S4.3, taking the minimum error between the foreground vector matrix A and the background vector matrix E as the constraint target;

[0019] S4.4, optimizing the constraint target by using a principal component analysis method to distinguish a foreground portion and a background portion in each frame of the image, wherein the foreground portion is the area where the Chinese herbal medicine pieces are located;

[0020] S4.5, filtering the foreground image with a dual homomorphic filter, and fusing the images filtered by the dual homomorphic filter;

[0021] S4.6. Use the CANNY algorithm to perform edge detection on the fused image to obtain the morphological features of the Chinese herbal medicine pieces in the image.

[0022] Furthermore, step S4.1 uses a Gaussian filter to perform smoothing filtering on a plurality of frames of images, including:

[0023] ;

[0024] in, H ij For size i * j The convolution kernel of i , j is the size parameter of the convolution kernel; 2k+1 is the window width; k is a natural number; s is the variance.

[0025] Furthermore, S4.3 takes the minimum error between the foreground vector matrix A and the background vector matrix E as the constraint target, specifically:

[0026] ;

[0027] ;

[0028] in, is the Frobenius norm; is the constraint target, that is, the minimum error between the foreground vector matrix A and the background vector matrix E; the rank of the foreground vector matrix A is less than or equal to the value of the target dimension.

[0029] Furthermore, S4.4 uses a principal component analysis method to optimize the constraint target, specifically:

[0030] ;

[0031] in, is the nuclear norm of the matrix, l is a positive weight parameter, is the sum of the absolute values ​​of the matrix elements.

[0032] Furthermore, S4.5 specifically includes:

[0033] The dual homomorphic filter comprises a first homomorphic filter and a second homomorphic filter;

[0034] Among them, the first homomorphic filter filtering extraction area is greater than S min The Chinese herbal medicine pieces are filtered, S min It is the preset lower limit of the area of ​​Chinese herbal medicine pieces;

[0035] The second homomorphic filter extracts an area smaller than S max The Chinese herbal medicine pieces are filtered, S max It is the preset upper limit of the area of ​​Chinese herbal medicine slices;

[0036] The Chinese herbal medicine pieces extracted by the first homomorphic filter and the second homomorphic filter are fused to obtain the filtered overall image of the Chinese herbal medicine pieces.

[0037] Furthermore, S4.6 specifically includes:

[0038] The CANNY algorithm is used to perform edge detection on the overall image of the Chinese herbal medicine pieces after being processed by the first homomorphic filter and the second homomorphic filter to obtain the morphological characteristics of the Chinese herbal medicine pieces in the image.

[0039] Further, step S6 specifically includes:

[0040] Calculate the long side r of the circumscribed ellipse 1 and the short side r 2 , and according to the long side r1 and the short side r 2 Calculate the equivalent area of ​​Chinese herbal medicine pieces x ;

[0041] The long side r 1 and the short side r 2 Perform normalization to obtain the normalized long side r 13 and the normalized short side r 23 , and calculate the shape parameters of Chinese herbal medicine pieces:

[0042] ;

[0043] in, is the shape parameter.

[0044] Further, step S7 is specifically as follows:

[0045] If the equivalent area of ​​Chinese herbal medicine pieces x Greater than or equal to the maximum area threshold, or the equivalent area of ​​Chinese herbal medicine pieces x If the area is less than or equal to the minimum area threshold, it is judged that the specifications of the Chinese herbal medicine pieces do not meet the quality requirements, and the judgment result is output;

[0046] If the equivalent area of ​​Chinese herbal medicine pieces x If the area is greater than the minimum area threshold and less than the maximum area threshold, the specifications of the Chinese herbal medicine are judged to meet the quality requirements and the judgment result is output.

[0047] Further, step S8 is specifically as follows:

[0048] If the shape parameters of Chinese herbal medicine pieces If the shape parameter is less than or equal to the shape parameter threshold, the shape of the Chinese herbal medicine slice is judged to be uneven, and the judgment result is output;

[0049] If the shape parameters of Chinese herbal medicine pieces If it is greater than the shape parameter threshold, the shape of the Chinese herbal medicine is judged to be uniform, and the judgment result is output.

[0050] The quality detection method of Chinese herbal medicine slices provided by the present invention has the following beneficial effects:

[0051] The present invention spreads the Chinese herbal medicine slices in a single layer on a vibration plate through vibration, thereby preventing the Chinese herbal medicine slices from being adhered and stacked, so as to facilitate later video shooting and processing of videos and images.

[0052] The present invention splits video information into a number of continuous frame images, and vectorizes the number of frame images, divides the image into a foreground part and a background part in the form of a vector matrix, and uses a principal component analysis method for optimization and solution to distinguish the foreground part and the background part, so as to obtain the area where the Chinese herbal medicine slices are located.

[0053] The present invention adopts the cooperation of dual homomorphic filter and CANNY algorithm to enhance and identify the image to obtain the morphological characteristics of Chinese herbal medicine slices, and calculates the equivalent area and shape parameters of the Chinese herbal medicine slices according to the gridded two-dimensional rectangular coordinate system, and then judges whether the size, specification and shape of the Chinese herbal medicine slices meet the quality requirements.

[0054] The present invention converts video information into image information through a vector matrix for processing, and cooperates with image processing to quickly estimate the judgment results of the size and shape of Chinese herbal medicine pieces. Compared with manual quality inspection, the inspection of the present invention is more objective, more accurate, and has a faster inspection rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 The present invention is a flow chart of the quality testing method of Chinese herbal medicine slices. DETAILED DESCRIPTION

[0056] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0057] Example 1

[0058] This embodiment discloses a quality inspection method for Chinese herbal medicine pieces. This embodiment can quickly estimate the equivalent area and shape parameters of Chinese herbal medicine pieces by acquiring video information, and then quickly determine the size and shape of Chinese herbal medicine pieces. Figure 1 , which specifically includes the following steps:

[0059] Step S1, introducing the Chinese herbal medicine pieces after cutting, processing and drying onto a vibration plate;

[0060] The vibration plate of this embodiment directly adopts the existing technology. As a preferred embodiment of this embodiment, a vibration motor is arranged under the vibration plate, and the vibration motor is frequency-adjustable, that is, the power of the vibration plate can be adjusted by adjusting the frequency to achieve the vibration power required by the Chinese herbal medicine slices.

[0061] Step S2, starting the vibration plate to vibrate the Chinese herbal medicine slices until the Chinese herbal medicine slices are laid flat on the vibration plate in a single layer;

[0062] In this embodiment, the Chinese herbal medicines are spread out in a single layer on a vibration plate by vibration, so as to avoid adhesion and stacking of the Chinese herbal medicines, facilitate subsequent video shooting and processing of videos and images, and improve the accuracy of subsequent image recognition.

[0063] Step S3, shooting the video information of the Chinese herbal medicine pieces on the vibration plate, and decomposing the video information into a plurality of frame images;

[0064] It should be noted that the object photographed in this embodiment is Chinese herbal medicine pieces, which are relatively small in size. Therefore, when shooting its video information, a high-definition industrial camera is required. For high-definition industrial cameras, this embodiment directly adopts the existing technology and will not be introduced in detail here.

[0065] Step S4, processing a plurality of frames of images to extract the morphological features of the Chinese herbal medicine pieces in the images, specifically comprising the following steps:

[0066] Step S4.1, using a Gaussian filter to perform smoothing filtering on a plurality of frames of images to eliminate Gaussian noise in the images;

[0067] Specifically, the Gaussian filter performs smoothing filtering on several frames of images, including:

[0068] ;

[0069] in, H ij For size i * j The convolution kernel of i , j is the size parameter of the convolution kernel; 2k+1 is the window width; k is a natural number; s is the variance.

[0070] Step S4.2, pulling a plurality of frame images into corresponding column vectors respectively, and combining the plurality of column vectors into a vector matrix D, wherein the vector matrix D includes a foreground vector matrix A and a background vector matrix E;

[0071] Step S4.3, assuming that the vector matrix D is a matrix D∈Rm×n with a large number of columns, where m and n are the number of rows and columns of the matrix R, respectively, to estimate a low-dimensional subspace, namely the foreground vector matrix A, it is necessary to find a low-rank matrix such that the error between A and E is minimized, that is, it is transformed into the following constrained optimization problem, with the minimum error between the foreground vector matrix A and the background vector matrix E as the constraint target:

[0072] ;

[0073] ;

[0074] in, is the Frobenius norm; is the constraint target, that is, the minimum error between the foreground vector matrix A and the background vector matrix E; the rank of the foreground vector matrix A is less than or equal to the value of the target dimension.

[0075] Step S4.4, using the principal component analysis method to optimize the constraint target, as long as the background vector matrix E is sparse enough, the foreground vector matrix A can be recovered from the vector matrix D, based on which the foreground part and the background part in each frame image can be distinguished, wherein the foreground part is the area where the Chinese herbal medicine pieces are located;

[0076] Specifically, the optimization solution is transformed into an optimization problem:

[0077] ;

[0078] in, is the nuclear norm of the matrix, l is a positive weight parameter, is the sum of the absolute values ​​of the matrix elements.

[0079] For solving the optimization problem in this step, the solving process is conventional optimization solving, and the existing technology can be directly used for solving. In this embodiment, it is preferably solved by an interior point solver. The interior point solver is a mature solver, so its detailed process is not repeated.

[0080] Step S4.5, using a dual homomorphic filter to filter the foreground image, and fusing the images filtered by the dual homomorphic filter;

[0081] The dual homomorphic filter of this embodiment includes a first homomorphic filter and a second homomorphic filter;

[0082] Among them, the first homomorphic filter filtering extraction area is greater than S min The Chinese herbal medicine pieces are filtered;

[0083] The second homomorphic filter extracts an area smaller than S max The Chinese herbal medicine pieces are filtered;

[0084] The Chinese herbal medicine pieces extracted by the first homomorphic filter and the second homomorphic filter are fused to obtain the filtered overall image of the Chinese herbal medicine pieces.

[0085] This embodiment uses a morphological filter (bi-homomorphic filter) to process the image, which has a good effect on the contour recognition of Chinese herbal medicine pieces in the image, and can also effectively solve the problem of identifying pseudo-shadows and adhesions of Chinese herbal medicine pieces.

[0086] The parameters of the homomorphic filter of this embodiment are shown in Table 1:

[0087] Table 1 Homomorphic filter parameters

[0088]

[0089] Step S4.6, using the CANNY algorithm to perform edge detection on the fused image to obtain the morphological features of the Chinese herbal medicine pieces in the image;

[0090] This embodiment uses the CANNY algorithm to perform edge detection on the overall image of the Chinese herbal medicine slices processed by the first homomorphic filter and the second homomorphic filter to obtain the morphological features of the Chinese herbal medicine slices in the image.

[0091] Step S5, constructing a two-dimensional rectangular coordinate system, gridding the two-dimensional rectangular coordinate system, and placing the processed image in the gridded two-dimensional rectangular coordinate system;

[0092] Step S6, using the circumscribed ellipse equivalent to the shape of the Chinese herbal medicine slices, and based on the gridded two-dimensional rectangular coordinate system, calculating the equivalent area and shape parameters of the Chinese herbal medicine slices, which specifically includes:

[0093] Calculate the long side r of the circumscribed ellipse 1 and the short side r 2 , and according to the long side r 1 and the short side r 2 Calculate the equivalent area of ​​Chinese herbal medicine pieces x ;

[0094] The long side r 1 and the short side r 2 Perform normalization to obtain the normalized long side r 13 and the normalized short side r 23 , and calculate the shape parameters of Chinese herbal medicine pieces:

[0095] ;

[0096] in, is the shape parameter;

[0097] Step S7: judging whether the size of the Chinese herbal medicine slices meets the quality requirements according to the equivalent area of ​​the Chinese herbal medicine slices, and outputting the judgment result;

[0098] Specifically, if the equivalent area of ​​the Chinese herbal medicine slices x Greater than or equal to the maximum area threshold, or the equivalent area of ​​Chinese herbal medicine pieces x If the area is less than or equal to the minimum area threshold, it is judged that the specifications of the Chinese herbal medicine pieces do not meet the quality requirements, and the judgment result is output;

[0099] If the equivalent area of ​​Chinese herbal medicine pieces x If the area is greater than the minimum area threshold and less than the maximum area threshold, the specifications of the Chinese herbal medicine are judged to meet the quality requirements and the judgment result is output.

[0100] The maximum area threshold and the minimum area threshold of this embodiment may be determined according to actual products and are not specifically limited here.

[0101] Step S8, judging whether the shape of the Chinese herbal medicine slices meets the quality requirements according to the shape parameters of the Chinese herbal medicine slices, and outputting the judgment result;

[0102] Specific shape parameters of Chinese herbal medicine pieces The larger the value, the more regular its shape is and the closer it is to a circle. For actual products, they are qualified Chinese herbal medicine products. Based on this, the minimum shape parameter value is set as its critical value, that is, the shape parameter threshold. If the shape parameter of the Chinese herbal medicine is If the shape parameter is less than or equal to the shape parameter threshold, the shape of the Chinese herbal medicine slice is judged to be uneven, and the judgment result is output;

[0103] If the shape parameters of Chinese herbal medicine pieces If it is greater than the shape parameter threshold, the shape of the Chinese herbal medicine is judged to be uniform, and the judgment result is output.

[0104] The present invention splits the video information into several continuous frames of images, and vectorizes the several frames of images, divides the image into a foreground part and a background part in the form of a vector matrix, and uses the principal component analysis method to optimize and solve, so as to distinguish the foreground part and the background part, so as to obtain the area where the Chinese herbal medicine pieces are located; then the image is enhanced and recognized by using the cooperation of the dual homomorphic filter and the CANNY algorithm, so as to obtain the morphological characteristics of the Chinese herbal medicine pieces, and the equivalent area and shape parameters of the Chinese herbal medicine pieces are calculated according to the two-dimensional rectangular coordinate system after gridding, so as to judge whether the size, specification and shape of the Chinese herbal medicine pieces meet the quality requirements. The present invention converts the video information into image information for processing through a vector matrix, and cooperates with image processing to quickly estimate the judgment results of the size and shape of the Chinese herbal medicine pieces. Compared with manual quality inspection, the inspection of the present invention is more objective, more accurate, and has a faster detection rate.

[0105] Although the specific implementation of the invention is described in detail in conjunction with the drawings, it should not be understood as limiting the scope of protection of this patent. Within the scope described in the claims, various modifications and variations that can be made by those skilled in the art without creative work still fall within the scope of protection of this patent.

Claims

1. A method for quality inspection of Chinese herbal medicine slices, characterized in that: The following steps are involved: S1, introducing the Chinese herbal medicine pieces after cutting, processing and drying onto a vibration plate; S2, start the vibration plate to vibrate the Chinese herbal medicine slices until the Chinese herbal medicine slices are laid flat on the vibration plate in a single layer; S3, shooting the video information of the Chinese herbal medicine pieces on the vibration plate, and decomposing the video information into several frames of images; S4, processing a plurality of frames of images to extract morphological features of Chinese herbal medicine pieces in the images; S5, constructing a two-dimensional rectangular coordinate system, gridding the two-dimensional rectangular coordinate system, and placing the processed image in the gridded two-dimensional rectangular coordinate system; S6. Using the circumscribed ellipse equivalent to the shape of the Chinese herbal medicine slices, and based on the gridded two-dimensional rectangular coordinate system, calculating the equivalent area and shape parameters of the Chinese herbal medicine slices; S7. According to the equivalent area of ​​the Chinese herbal medicine slices, determine whether the specifications of the Chinese herbal medicine slices meet the quality requirements, and output the judgment result; S8. According to the shape parameters of the Chinese herbal medicine pieces, determine whether the shape of the Chinese herbal medicine pieces meets the quality requirements, and output the judgment result; The step S4 specifically comprises the following steps: S4.1, using a Gaussian filter to perform smoothing filtering on several frames of images; S4.2, pulling the plurality of frame images into corresponding plurality of column vectors respectively, and combining the plurality of column vectors into a vector matrix D, wherein the vector matrix D includes a foreground vector matrix A and a background vector matrix E; S4.3, taking the minimum error between the foreground vector matrix A and the background vector matrix E as the constraint target; S4.4, optimizing the constraint target by using a principal component analysis method to distinguish a foreground portion and a background portion in each frame of the image, wherein the foreground portion is the area where the Chinese herbal medicine pieces are located; S4.5, filtering the foreground image with a dual homomorphic filter, and fusing the images filtered by the dual homomorphic filter; S4.6, using the CANNY algorithm to perform edge detection on the fused image to obtain the morphological features of the Chinese herbal medicine pieces in the image; S4.3 takes the minimum error between the foreground vector matrix A and the background vector matrix E as the constraint target, specifically: D = A + E; Among them, ||·|| F is the Frobenius norm; is the constraint target, that is, the minimum error between the foreground vector matrix A and the background vector matrix E; the rank of the foreground vector matrix A is less than or equal to the value of the target dimension; S4.4 uses the principal component analysis method to optimize the constraint objectives, specifically: Among them, ||·|| * is the nuclear norm of the matrix, λ is the positive weight parameter, and ||·||1 is the sum of the absolute values ​​of the matrix elements; S4.5 specifically includes: The dual homomorphic filter comprises a first homomorphic filter and a second homomorphic filter; Among them, the first homomorphic filter filtering extraction area is greater than S min The Chinese herbal medicine pieces are filtered, S min It is the preset lower limit of the area of ​​Chinese herbal medicine pieces; The second homomorphic filter extracts an area smaller than S max The Chinese herbal medicine pieces are filtered, S max It is the preset upper limit of the area of ​​Chinese herbal medicine slices; The Chinese herbal medicine pieces extracted by the first homomorphic filter and the second homomorphic filter are fused to obtain a filtered overall image of the Chinese herbal medicine pieces; S4.6 specifically includes: The CANNY algorithm is used to perform edge detection on the overall image of the Chinese herbal medicine pieces after being processed by the first homomorphic filter and the second homomorphic filter to obtain the morphological characteristics of the Chinese herbal medicine pieces in the image.

2. The quality inspection method of Chinese herbal medicine slices according to claim 1, characterized in that: The step S4.1 uses a Gaussian filter to perform smoothing filtering on a plurality of frames of images, including: Among them, H ij is a convolution kernel of size i*j; i, j are the size parameters of the convolution kernel; 2k+1 is the window width; k is a natural number; σ is the variance.

3. The quality detection method of Chinese herbal medicine slices according to claim 1, characterized in that: The step S6 specifically includes: Calculate the long side r1 and the short side r2 of the circumscribed ellipse, and calculate the equivalent area ξ of the Chinese herbal medicine slice according to the long side r1 and the short side r2; Normalize the long side r1 and the short side r2 to get the normalized long side r 13 and the normalized short side r 23 , and calculate the shape parameters of Chinese herbal medicine pieces: Among them, α is the shape parameter.

4. The quality detection method of Chinese herbal medicine slices according to claim 3, characterized in that: The step S7 is specifically as follows: If the equivalent area ξ of the Chinese herbal medicine slice is greater than or equal to the maximum area threshold, or the equivalent area ξ of the Chinese herbal medicine slice is less than or equal to the minimum area threshold, it is judged that the specification of the Chinese herbal medicine slice does not meet the quality requirements, and the judgment result is output; If the equivalent area ξ of the Chinese herbal medicine slice is greater than the minimum area threshold and less than the maximum area threshold, it is judged that the specifications of the Chinese herbal medicine slice meet the quality requirements and the judgment result is output.

5. The quality inspection method of Chinese herbal medicine slices according to claim 3, characterized in that: The step S8 is specifically as follows: If the shape parameter α of the Chinese herbal medicine piece is less than or equal to the shape parameter threshold, it is judged that the shape of the Chinese herbal medicine piece is uneven, and the judgment result is output; If the shape parameter α of the Chinese herbal medicine slice is greater than the shape parameter threshold, the shape of the Chinese herbal medicine slice is judged to be uniform, and the judgment result is output.

Citation Information

Patent Citations

  • Traditional Chinese medicine decoction piece quality monitoring and analyzing system based on machine vision

    CN114841986A

  • Drug counting method and device, storage medium and computer program product

    CN116007728A

  • Online quality monitoring method for traditional Chinese medicine decoction pieces

    CN116630317A

  • Method and system for monitoring drug stability through image analysis

    CN118089546A

  • Novel method for chromatographic finger printing and standardization of single medicines and formulations

    US20060025932A1