A visual detection method of a visible foreign body in a large infusion medicine
A technology for visual inspection and large infusion, applied in image analysis, image enhancement, instruments, etc., can solve problems such as processing errors, and achieve the effect of reducing the impact of weak foreign objects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] The purpose of this embodiment 1 is to provide a visual detection method for visible foreign matter in large infusion medicines, such as figure 1 As shown, the method includes the following steps:
[0068] Step 1: Image acquisition.
[0069] Continuously collect N frames of large infusion bottle sequence images, such as figure 2 shown.
[0070] Step 2: Histogram equalization, enhance image contrast, such as image 3 shown.
[0071] After collecting N frames of large infusion bottle sequence images, formula (1) is used to perform histogram equalization processing on each frame image to enhance image contrast.
[0072] The histogram equalization formula is:
[0073]
[0074] In the formula, m k is the gray value of the processed image, n k is the gray value of the input image, p(n i ), i=1,2,..., L represents the gray value n in the input image i The frequency of occurrence, i=1,2,...,k, k=1,2,...,L, L is the gray level of the image, r i is the gray value n ...
Embodiment 2
[0117] The purpose of Embodiment 2 is to provide a computer-readable storage medium.
[0118] In order to achieve the above object, the present invention adopts the following technical scheme:
[0119] A computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor of a terminal device and performing the following processing:
[0120] Image Acquisition;
[0121] Histogram equalization to enhance image contrast;
[0122] Threshold segmentation, select the appropriate threshold to segment each frame of image, used to identify the area of interest and non-target area;
[0123] Sequentially process each frame of the segmented image to obtain the region of interest of each frame of image;
[0124] Perform Gaussian filtering on the region of interest of each frame image;
[0125] Calculate the rotation angle and horizontal translation of the large infusion bottle for image registration;
[...
Embodiment 3
[0129] The purpose of Embodiment 3 is to provide a terminal device.
[0130] In order to achieve the above object, the present invention adopts the following technical scheme:
[0131] A terminal device, including a processor and a computer-readable storage medium, the processor is used to implement instructions; the computer-readable storage medium is used to store multiple instructions, and the instructions are suitable for being loaded by the processor and performing the following processing:
[0132] Image Acquisition;
[0133] Histogram equalization to enhance image contrast;
[0134] Threshold segmentation, select the appropriate threshold to segment each frame of image, used to identify the area of interest and non-target area;
[0135] Sequentially process each frame of the segmented image to obtain the region of interest of each frame of image;
[0136] Perform Gaussian filtering on the region of interest of each frame image;
[0137] Calculate the rotation angl...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com