Method and device for replacing background target
A target and background technology, applied in character and pattern recognition, image analysis, instruments, etc., can solve problems such as inability to replace background targets with high quality
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] figure 1 It is a preferred flow chart of a background object replacement method according to an embodiment of the present invention, including the following steps:
[0039] S102, performing binarization processing on the original image to obtain a binarized image;
[0040] S104, performing edge detection on the binarized image;
[0041] S106. Calculate and obtain a target template according to the edge contour map obtained by the edge detection and the binarized image;
[0042] S108, comparing the target template with the original image, and extracting the foreground target and replacing the background target according to the comparison result.
[0043] In this preferred embodiment, the scheme of edge detection on the binarized image is adopted, which solves the problem that the prior art is sensitive to illumination changes and depends on the shape and number of moving objects, and cannot extract foreground objects well, so as to realize background The problem of ta...
Embodiment 2
[0052] figure 2 It is a preferred structural block diagram of a background target replacement device according to an embodiment of the present invention, including: a processing unit 202, which is used to perform binarization processing on an original image to obtain a binarized image; an edge detection unit 204, which is used to process the binary image The valued image is subjected to edge detection; the calculation unit 206 is used to calculate the target template according to the edge contour map obtained by the edge detection and the binarized image; the comparison unit 208 is used to compare the target template with the original The images are compared, and the foreground target is extracted and the background target is replaced according to the comparison result.
[0053] In this preferred embodiment, the scheme of edge detection on the binarized image is adopted, which solves the problem that the prior art is sensitive to illumination changes and depends on the shape ...
Embodiment 3
[0062] image 3 It is another structural block diagram of an apparatus for replacing background objects according to an embodiment of the present invention, including the following parts: a preprocessing module 302 , a processing module 304 and an output module 306 .
[0063] The preprocessing module 302 includes: a module for restoring input data to a picture 3021 and a denoising processing module 3022, wherein the denoising processing module 3022 performs processing with an image expansion function and an image erosion function respectively.
[0064] The processing module 304 includes: a grayscale conversion module 3041 for color pictures, an edge detection module 3042 for grayscale images based on the Canny operator, a binarization module 3043 for grayscale images, a target template creation module 3044 and a color filling module 3045.
[0065] Among them, the binarization processing module 3043 and the edge detection module 3042 of the grayscale image both need to set the ...
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