Picture beautifying method
A picture and target picture technology, applied in the field of picture beautification, can solve the problems of limited display screen size, inconvenient picture beautification, and difficulty for users to accurately select elements, so as to achieve the effect of improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] A method for beautifying a picture, comprising the following steps:
[0031] S101. Import the target picture that needs to be beautified;
[0032] S201. Use the Canny edge detection algorithm to scan the target picture and identify the boundary of the image object in the picture;
[0033] S301. Set all identified boundaries to be available for selection, the user can click on the identified boundaries through the touch screen, and the clicked boundaries are highlighted;
[0034] S401. After the user clicks multiple image object boundaries, the area formed or enclosed by the multiple clicked image object boundaries is also highlighted, and the highlighted area is a local area that needs to be beautified;
[0035] S501. Add various target textures according to the beautification effect that the user wants to achieve in the determined local area, so that the image display in the local area conforms to the beautification effect expected by the user;
[0036] S601 , export...
Embodiment 2
[0040] Embodiment 2 is an improvement on the basis of Embodiment 1. It is mainly aimed at selecting boundaries more accurately when the user recognizes more image object boundaries in the target picture, including the following steps:
[0041] S111. Import the target picture that needs to be beautified;
[0042] S211, using the Roberts edge detection algorithm to scan the target picture and identify the boundary of the image object in the picture;
[0043] S311. Set all identified boundaries to be selectable, and detect the distance between all image object boundaries at the same time. When there is a minimum gap between any image object boundary and its adjacent boundary less than 20 pixels, according to the distance between all image object boundaries The ratio between the number and the size of the target picture generates a suitable number of vertical and horizontal lines on the target picture, and the vertical and horizontal lines intersect and divide the target picture i...
Embodiment 3
[0051] Embodiment 3 is an improvement on the basis of Embodiment 2. It is mainly aimed at when there are multiple local areas that need to be beautified, and different textures can be superimposed according to the user's requirements for the beautification effect of different areas, including the following steps:
[0052]S121, importing the target picture that needs to be beautified;
[0053] S221. Use the Roberts edge detection algorithm to scan the target picture and identify the boundary of the image object in the picture;
[0054] S321. Set all identified boundaries to a state that can be selected, and detect the distance between all image object boundaries at the same time. When there is a minimum gap between any image object boundary and its adjacent boundary less than 20 pixels, according to the distance between all image object boundaries The ratio between the number and the size of the target picture generates a suitable number of vertical and horizontal lines on the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


