Image processing method and device and electronic equipment
An image processing and image content technology, applied in the computer field, can solve the problems of inability to automatically generate poster content in large quantities, time-consuming and labor-intensive problems, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] Based on the idea of the above image processing scheme, such as figure 2 As shown, it is the flow chart of the image processing method shown in the embodiment of the present invention Figure 1 , the method is executed by an image processing application or an image processing plug-in set in the application. Such as figure 2 As shown, the image processing method includes the following steps:
[0044] S210. Acquire image content, and extract main colors in the image content.
[0045]Specifically, the image content can be obtained from the original picture, and the image content obtained from the original picture should be the main content to be displayed in the target image. Due to the different complexity of the original image, the acquisition methods of the image content are also different. When the original image only contains the image content to be obtained, the content of the original image can be directly used as the image content to be obtained; when the o...
Embodiment 2
[0053] Such as image 3 Shown, is the image processing method flow chart of the embodiment of the present invention Figure II . This example is in figure 2 On the basis of the method shown, the specific steps of the image processing method are further limited. Such as image 3 As shown, the image processing method includes the following steps:
[0054] S310, using a preset color quantization algorithm to calculate the image content, and extract the main color in the image content.
[0055] The content of step S310 can be used as a refinement based on the content of step S210.
[0056] Specifically, the color quantization algorithm includes but not limited to segmentation method and clustering method. After the calculation of the image content by the color quantization algorithm, the calculation result is the main color of the image content. It should be noted that the main color can be one or more colors.
[0057] S320. Form a background color based on the main color...
Embodiment 3
[0074] Such as Figure 7 Shown is the structure of the image processing device of the embodiment of the present invention Figure 1 , the image processing device can be used to perform as figure 2 Shown method step, it comprises:
[0075] An image acquisition module 710, configured to acquire image content, and extract the main color in the image content;
[0076] A background forming module 720, configured to form a background color based on the main color;
[0077] The image forming module 730 is configured to use the background color as a filling background to form a target image containing image content.
[0078] Further, the above-mentioned image acquisition module 710 can also be used for:
[0079] Use the preset color quantization algorithm to calculate the image content and extract the main color in the image content.
[0080] Further, the above-mentioned background forming module 720 can also be used for:
[0081] Use the main color as the background color; or,...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


