Method and device for detecting object in image
A target detection and image technology, applied in the field of image processing, can solve the problems of high chip application cost, complex high-frequency detection scheme, detection of image text, details or edge interference, etc., to achieve accurate acquisition, low application cost, and processing algorithm simple effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] For the detection of the target in the image, different detection algorithms correspond to specific color spaces. In the embodiment of the present invention, the technical solutions provided are implemented based on the RGB color space. see figure 1 , which is a flowchart of a method for detecting an object in an image provided by an embodiment of the present invention, the method specifically includes:
[0048] S01. Extract grayscale information of pixels in an image, where the pixels include pixels to be detected and pixels adjacent to the pixels to be detected;
[0049] Each digital image is composed of pixels. In the RGB color space, a pixel is represented by three color channels of red, green, and blue (RGB). Each color channel constitutes a sub-pixel, and the pixels behind each sub-pixel Light sources can all exhibit different brightness levels. The gray scale represents the level of different brightness from the darkest to the brightest. The color change of each ...
Embodiment 2
[0069] In the embodiment of the present invention, such as image 3 As shown, based on the foregoing embodiments, according to the obtained gray scale difference, when the first gray scale difference is smaller than the first preset threshold, the method further includes:
[0070] S04. Perform secondary detection on the pixel to be detected;
[0071] Due to the fact that there is not much difference between the grayscale of the pixel of the text in the image and the grayscale of the background pixel, the first grayscale difference is smaller than the first preset threshold, so it is necessary to further perform a secondary detection and judgment on the detected pixel to confirm that the pixel to be detected Whether the pixel is the target pixel to achieve fine detection.
[0072] The specific process of the secondary detection is carried out according to the following scheme, refer to Figure 4 :
[0073] S041. Select pixels other than the pixels to be detected in the image...
Embodiment 3
[0106] The embodiment of the present invention also provides a target detection device in an image, including an information acquisition unit 01, a gray scale difference acquisition unit 02, and a judgment unit 03, such as Figure 9 shown, where:
[0107] The information acquiring unit 01 is used for extracting gray scale information of pixels in an image, the pixels include a pixel to be detected and pixels adjacent to the pixel to be detected.
[0108] Specifically, the information acquiring unit 01 needs to acquire the gray scale information of the RGB sub-pixel of the pixel to be detected, and the gray scale information of the RGB sub-pixel of the pixel directly adjacent to the pixel to be detected.
[0109] The gray scale difference acquisition unit 02 is configured to acquire a first gray scale difference, where the first gray scale difference is the maximum value of the gray scale differences between the pixel to be detected and the adjacent pixel.
[0110] Optionally,...
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