CN111435282A - Image processing method and device and electronic equipment - Google Patents

Image processing method and device and electronic equipment Download PDF

Info

Publication number
CN111435282A
CN111435282A CN201910033555.9A CN201910033555A CN111435282A CN 111435282 A CN111435282 A CN 111435282A CN 201910033555 A CN201910033555 A CN 201910033555A CN 111435282 A CN111435282 A CN 111435282A
Authority
CN
China
Prior art keywords
image
color
designated area
matting
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910033555.9A
Other languages
Chinese (zh)
Inventor
童飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910033555.9A priority Critical patent/CN111435282A/en
Publication of CN111435282A publication Critical patent/CN111435282A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides an image processing method, an image processing device and electronic equipment, wherein the method comprises the following steps: determining a designated area of the image; carrying out color analysis on the image of the designated area, and displaying the analyzed color category in an operation interface; in response to the selection operation of the parsed at least one color, a matting operation is performed on the image of the designated area based on the selected color. According to the scheme of the embodiment of the invention, the color can be automatically extracted based on the color analysis of the picture, and the user can conveniently and directly select the color of the image to be scratched to finish the scratching operation.

Description

Image processing method and device and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an image processing method and apparatus, and an electronic device.
Background
Matting is one of the most common operations in image processing, and refers to accurately extracting a desired portion of an image from a picture. The method is relatively troublesome in the process of realizing the cutout operation similar to a PC end at a mobile end, because when an image region is selected by touch control, due to the fact that the contact area of a finger and a screen is large, the fine selection of a certain region of a picture at the mobile end is inconvenient, and therefore the fine cutout operation cannot be realized.
Disclosure of Invention
The invention provides an image processing method, an image processing device and electronic equipment, which can automatically extract colors based on color analysis of a picture, and facilitate that a user can directly select the colors of images to be scratched to finish the scratching operation.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an image processing method is provided, including:
determining a designated area of the image;
carrying out color analysis on the image of the designated area, and displaying the analyzed color category in an operation interface;
in response to the selection operation of the parsed at least one color, a matting operation is performed on the image of the designated area based on the selected color.
In a second aspect, a matting processing method is provided, including:
providing a selection operation item for determining a designated area in an image for a user in an image operation interface;
based on a specified area determined in an image by a user, carrying out color analysis on the image of the specified area, and displaying the analyzed color category in an operation interface;
responding to the operation of selecting colors on the image color analyzing operation component by the user, and determining the colors selected by the user in the designated area;
and carrying out a matting operation on the image of the designated area based on the color selected by the user.
In a third aspect, an image processing apparatus is provided, including:
the area determining module is used for determining a designated area of the image;
the color analysis module is used for carrying out color analysis on the image of the designated area and displaying the analyzed color type in an operation interface;
and the matting operation module is used for responding to the selection operation of the analyzed at least one color and carrying out the matting operation on the image of the designated area based on the selected color.
In a fourth aspect, a matting processing apparatus is provided, including:
the interface display processing module is used for providing a selection operation item for determining a designated area in the image for a user in the image operation interface;
the color analysis processing module is used for carrying out color analysis on the image of the specified area based on the specified area determined by the user in the image and displaying the analyzed color type in an operation interface;
the color selection determining module is used for responding to the operation of selecting colors on the image color analyzing operation component by the user and determining the colors selected by the user in the designated area;
and the matting operation processing module is used for carrying out matting operation on the image of the designated area based on the color selected by the user.
In a fifth aspect, an electronic device is provided, comprising:
a memory for storing a program;
and the processor is coupled to the memory and used for executing the program, and the program executes the image processing method provided by the invention when running.
In a sixth aspect, another electronic device is provided, including:
a memory for storing a program;
and the processor is coupled to the memory and used for executing the program, and the program executes the matting processing method provided by the invention when running.
The invention provides an image processing method, an image processing device and electronic equipment, wherein after a specified area of an image is determined, the color of the image in the specified area is analyzed, and the analyzed color category is displayed in an operation interface; and responding to the selection operation of the analyzed at least one color, and performing the matting operation on the image of the designated area based on the selected color, so that the user can conveniently and directly select the color of the image to be scratched to finish the matting operation.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic diagram of an image processing logic according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first image processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an image processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart of a third image processing method according to an embodiment of the present invention;
FIG. 5 is a first block diagram of an image processing apparatus according to an embodiment of the present invention;
FIG. 6 is a flowchart of a matting processing method according to an embodiment of the present invention;
FIG. 7 is a block diagram of a matting processing apparatus according to an embodiment of the invention;
FIG. 8 is a first schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention improves the defect that in the prior art, when the matting operation is realized on a mobile terminal such as a mobile phone, a tablet personal computer and the like through a touch screen, the matting operation cannot be refined due to the fact that the contact area of a finger and the screen is large and the refining of a certain area of a picture is inconvenient to click, and has the core idea that the color of the image of the specified area is analyzed by determining the specified area of the image needing the matting operation, and the analyzed color category is displayed in an operation interface; and responding to the selection operation of the analyzed at least one color, and performing the matting operation on the image of the designated area based on the selected color, so that the user can conveniently and directly select the color of the image to be scratched to finish the matting operation.
As shown in fig. 1, the image processing scheme shown in the present scheme can be applied to an image processing platform, which can be a business platform dedicated to image processing or a software client. The image processing platform integrates a plurality of image processing function operations, wherein the image processing method can realize the matting function and mainly comprises two image processing links. Firstly, carrying out color analysis on a designated area containing an image part to be scratched and determining the color type contained in the designated area; secondly, based on the analyzed color selected by the user, performing a matting operation on the image in the designated area, for example, only reserving the image part corresponding to the color selected by the user in the image in the designated area; or, the image part corresponding to the color selected by the user in the image of the designated area is scratched out.
Further, after the colors of the designated area are analyzed, the analyzed colors can be sorted, and the color with the highest possibility of the background color is ranked first. For example, the analyzed colors are sorted according to the area ratio of the analyzed colors in the designated area, the color with the high ratio is generally the background color, and can be arranged at the first position, so that the user can conveniently click.
The technical solution of the present application is further illustrated by the following examples.
Example one
Based on the above image processing concept, fig. 2 is a flowchart of a first image processing method according to an embodiment of the present invention, which can be applied to the image processing platform shown in fig. 1. As shown in fig. 2, the image processing method includes the steps of:
s210, determining a designated area of the image.
The designated area of the image comprises an image part needing to be scratched out, and the area of the determined designated area is as small as possible.
S220, color analysis is carried out on the image of the designated area, and the analyzed color category is displayed in the operation interface.
After the appointed area of the image is determined, analyzing the color contained in the appointed area in the image to obtain a color category, and displaying the obtained color category in an operation interface in a mode of characters, images and the like so as to facilitate selection of a user. Wherein, the appointed area comprises the image part which needs to be finally scratched.
For example, when performing color analysis on the designated area, RGB color value analysis may be performed on the pixel points in the designated area to obtain the color type included in the image in the designated area.
The method of color analysis employed in this embodiment is not limited to RGB color value analysis, and other color analysis methods may be employed, and the color type included in the designated area may be obtained by analysis using these color analysis methods.
And S230, responding to the selection operation of the analyzed at least one color, and performing a matting operation on the image of the designated area based on the selected color.
The user can select one or more color types included in the designated area obtained by the color analysis, and can select one or more types as the operation object. And carrying out the matting operation on the image in the designated area based on the clicked colors (the colors have corresponding relations with the pixel points contained in the designated area).
Wherein, the execution logic of the above-mentioned matting operation may be to reserve only the image portion corresponding to the selected color in the image of the designated area. For example, the user may click the color option corresponding to the partial area by holding which partial image in the designated area; after the operation is finished, only the image parts corresponding to the selected colors are reserved in the designated area, and the image parts corresponding to the rest colors are deleted.
In addition, the execution logic of the above-mentioned matting operation may also be to scrub out an image portion corresponding to the selected color in the image of the designated area. For example, the user may click the color option corresponding to a specific region by clicking which part of the image in the specific region is desired to be removed. After the operation is finished, the image parts corresponding to the selected colors in the designated area are deducted, and the image parts corresponding to the other colors are reserved.
The image processing method provided by the invention comprises the steps of carrying out color analysis on the image of the designated area after the designated area of the image is determined, and displaying the analyzed color type in an operation interface; and responding to the selection operation of the analyzed at least one color, and performing the matting operation on the image of the designated area based on the selected color, so that the user can conveniently and directly select the color of the image to be scratched to finish the matting operation.
Example two
As shown in fig. 3, a flowchart of an image processing method according to an embodiment of the present invention is shown as a second flowchart, and the present embodiment is supplemented with the method shown in the first embodiment. As shown in fig. 3, the image processing method includes the steps of:
s310, in response to the selection operation for the image, a designated area is determined.
For example, in an operation interface of the image processing APP, a user may select one region from a designated image as an operation region, that is, the designated region, so as to perform a matting operation on an image of the designated region. In practice, the designated area may include an image portion that the user wants to subtract, and the area of the designated area may be as small as possible, or the color of the image portion operated in the designated area may be distinguishable from the colors of other areas in the designated area.
For example, when the user executes the image processing method on a mobile terminal such as a mobile phone or a tablet computer, the designated area can be selected through a touch screen. Because the appointed region in this scheme is not the image part corresponding region that needs to be scratched or need remain that direct through touch-control point selection is definite, consequently, even the area of contact of finger and screen is big, can not realize clicking some region of image that refines, also can not influence the effect of later stage scratch operation.
S320, color analysis is performed on the image of the designated area.
S330, sorting the analyzed colors according to the area ratio of the analyzed colors in the designated area, and displaying the sorted color types in an operation interface.
After the colors of the designated area are analyzed, the analyzed colors may be further sorted, such as the color with the highest possibility of the background color is ranked first. For example, the analyzed colors are sorted according to the area ratio of the analyzed colors in the designated area, the color with the high ratio is generally the background color, and can be arranged at the first position, so that the user can conveniently click. When the analyzed colors are displayed in the operation interface, the colors which are sequenced in the front by a fixed number can be displayed, so that the area of a display area of the screen interface is saved.
And S340, responding to the selection operation of the analyzed at least one color, and performing a matting operation on the image of the designated area based on the selected color.
The embodiment is based on the embodiment shown in fig. 2, and further facilitates the user to flexibly select the designated area needing the matting processing by determining the designated area in response to the selection operation for the image.
Furthermore, after the color of the designated area of the image is analyzed, the analyzed colors are sorted according to the area ratio of the analyzed colors in the designated area, and the sorted color categories are displayed in an operation interface, so that the user can conveniently click the colors.
EXAMPLE III
The steps of the method of the present embodiment describe the execution process of the image processing method in the above embodiment based on the image processing processes shown in fig. 2 and 3 from the viewpoint of the actual operation flow of image processing. As shown in fig. 4, a flowchart of an image processing method provided by the embodiment of the present invention includes the following processing steps:
step 1: a user selects a designated area of a picture in an image processing APP and clicks a 'scratch' button;
step 2: entering a matting interface, and analyzing the RGB color values of all pixel points in the picture by the system;
and 3, step 3: the system arranges the analyzed colors according to the color area;
and 4, step 4: the user selects a certain color (such as the first color), the system removes the color in the designated area, and the user clicks 'done';
and 5, step 5: and displaying the image effect after scratching.
Example four
As shown in fig. 5, a first structural diagram of an image processing apparatus according to an embodiment of the present invention is a first structural diagram of an image processing apparatus, the image processing apparatus being capable of controlling and executing the method steps shown in fig. 2 and fig. 3, and the method including:
a region determining module 510 for determining a designated region of the image;
the color analysis module 520 is configured to perform color analysis on the image in the designated area, and display the analyzed color category in the operation interface;
a matting operation module 530, configured to, in response to a selection operation on the parsed at least one color, perform a matting operation on the image of the designated area based on the selected color.
Further, the color analysis module 520 may be specifically configured to perform RGB color value analysis on the pixel points in the designated area to obtain the color category included in the image in the designated area.
Further, the color analysis module 520 may be further specifically configured to sort the analyzed colors according to area ratios of the analyzed colors in the designated area, and display the sorted color categories in the operation interface.
Further, the above-mentioned matting operation module 530 can be specifically configured to reserve only the image portion corresponding to the selected color in the image of the designated area.
Alternatively, the above-mentioned matting operation module 530 can be specifically used for matting out the image portion corresponding to the selected color in the image of the designated area.
Further, the region determining module 510 may be configured to determine the designated region in response to a selection operation for the image.
The image processing device provided by the invention analyzes the color of the image in the designated area after the designated area of the image is determined, and displays the analyzed color category in the operation interface; and responding to the selection operation of the analyzed at least one color, and performing the matting operation on the image of the designated area based on the selected color, so that the user can conveniently and directly select the color of the image to be scratched to finish the matting operation.
Further, by determining the designated area in response to the selection operation for the image, the user is facilitated to flexibly select the designated area requiring the matting processing.
Furthermore, after the color of the designated area of the image is analyzed, the analyzed colors are sorted according to the area ratio of the analyzed colors in the designated area, and the sorted color categories are displayed in an operation interface, so that the user can conveniently click the colors.
EXAMPLE five
Based on the above image processing concept, fig. 6 is a flowchart of a matting processing method provided by an embodiment of the present invention, and the method can be applied to the image processing platform shown in fig. 1. As shown in fig. 6, the matting processing method includes the following steps:
s610, providing a selection operation item for determining the designated area in the image for the user in the image operation interface.
For example, an operation item for the user to perform partial selection on the image area may be provided in the image operation interface, and after the user clicks the operation item, a designated area to be processed may be arbitrarily selected on the target image.
S620, based on the specified area determined by the user in the image, color analysis is carried out on the image of the specified area, and the analyzed color category is displayed in the operation interface.
S630, responding to the operation of selecting color on the image color analyzing operation component by the user, determining the color selected by the user in the designated area.
And S640, performing a matting operation on the image of the designated area based on the color selected by the user.
The specific implementation process in this embodiment may refer to the method steps shown in fig. 2 to fig. 4, which are not described herein again.
EXAMPLE six
As shown in fig. 7, a block diagram of a matting processing device according to an embodiment of the present invention is a matting processing device, which can control to execute the method steps shown in fig. 6, and includes:
the interface display processing module 710 is configured to provide a selection operation item for determining a designated area in an image for a user in an image operation interface;
the color analysis processing module 720 is configured to perform color analysis on the image in the designated area based on the designated area determined by the user in the image, and display the analyzed color category in the operation interface;
a color selection determination module 730, configured to determine a color selected by the user in the designated area in response to an operation of the user selecting a color on the analyze image color operation component;
and a matting operation processing module 740, configured to perform a matting operation on the image of the specified area based on the color selected by the user.
EXAMPLE seven
The foregoing embodiment describes an overall architecture of an image processing apparatus, and functions of the apparatus can be implemented by an electronic device, as shown in fig. 8, which is a schematic structural diagram of the electronic device according to the embodiment of the present invention, and specifically includes: a memory 810 and a processor 820.
A memory 810 for storing a program.
In addition to the programs described above, the memory 810 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 810 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 820, coupled to the memory 810, for executing a program in the memory 810, the program executing the image processing method as shown in fig. 2 to 4.
The above specific processing operations have been described in detail in the foregoing embodiments, and are not described again here.
Further, as shown in fig. 8, the electronic device may further include: communication components 830, power components 840, audio components 850, a display 860, and the like. Only some of the components are schematically shown in fig. 8, and the electronic device is not meant to include only the components shown in fig. 8.
The communication component 830 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 830 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 830 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
A power supply assembly 840 to provide power to the various components of the electronic device. The power components 840 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for an electronic device.
Audio component 850 is configured to output and/or input audio signals. For example, the audio component 850 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 810 or transmitted via the communication component 830. In some embodiments, audio component 850 also includes a speaker for outputting audio signals.
The display 860 includes a screen, which may include a liquid crystal display (L CD) and a Touch Panel (TP). if the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
Example eight
The foregoing embodiment describes an overall architecture of a matting processing apparatus, and functions of the apparatus can be implemented by an electronic device, as shown in fig. 9, which is a schematic structural diagram of the electronic device according to an embodiment of the present invention, and specifically includes: a memory 910 and a processor 920.
A memory 910 for storing programs.
In addition to the programs described above, the memory 910 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 910 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 920, coupled to the memory 910, for executing a program in the memory 910, the program when running executing the matting processing method as shown in fig. 6.
The above specific processing operations have been described in detail in the foregoing embodiments, and are not described again here.
Further, as shown in fig. 9, the electronic device may further include: communication components 930, power components 940, audio components 950, display 960, and the like. Only some of the components are schematically shown in fig. 9, and the electronic device is not meant to include only the components shown in fig. 9.
The communication component 930 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 930 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 930 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
A power supply component 940 provides power to the various components of the electronic device. The power components 940 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for an electronic device.
The audio component 950 is configured to output and/or input audio signals. For example, the audio component 950 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 910 or transmitted via the communication component 930. In some embodiments, audio component 950 also includes a speaker for outputting audio signals.
The display 960 includes a screen, which may include a liquid crystal display (L CD) and a Touch Panel (TP). if the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (16)

1. An image processing method comprising:
determining a designated area of the image;
carrying out color analysis on the image of the designated area, and displaying the analyzed color category in an operation interface;
in response to the selection operation of the parsed at least one color, a matting operation is performed on the image of the designated area based on the selected color.
2. The method of claim 1, wherein color resolving the image of the designated area comprises:
and analyzing the RGB color values of the pixel points of the designated area to obtain the color types contained in the image of the designated area.
3. The method of claim 1, wherein the presenting the parsed color class in an operator interface comprises:
and sequencing the analyzed colors according to the area ratio of the analyzed colors in the designated area, and displaying the sequenced color types in the operation interface.
4. The method of claim 1, wherein the matting the image of the designated region based on the selected color comprises:
and only reserving the image part corresponding to the selected color in the image of the designated area.
5. The method of claim 1, wherein the matting the image of the designated region based on the selected color comprises:
and scratching out the image part corresponding to the selected color in the image of the designated area.
6. The method of claim 1, wherein the determining a designated area of an image comprises:
determining the designated area in response to a selection operation for the image.
7. A matting processing method comprising:
providing a selection operation item for determining a designated area in an image for a user in an image operation interface;
based on a specified area determined in an image by a user, carrying out color analysis on the image of the specified area, and displaying the analyzed color category in an operation interface;
responding to the operation of selecting colors on the image color analyzing operation component by the user, and determining the colors selected by the user in the designated area;
and carrying out a matting operation on the image of the designated area based on the color selected by the user.
8. An image processing apparatus comprising:
the area determining module is used for determining a designated area of the image;
the color analysis module is used for carrying out color analysis on the image of the designated area and displaying the analyzed color type in an operation interface;
and the matting operation module is used for responding to the selection operation of the analyzed at least one color and carrying out the matting operation on the image of the designated area based on the selected color.
9. The apparatus of claim 8, wherein the color parsing module is specifically to,
and analyzing the RGB color values of the pixel points of the designated area to obtain the color types contained in the image of the designated area.
10. The apparatus of claim 8, wherein the color parsing module is further to,
and sequencing the analyzed colors according to the area ratio of the analyzed colors in the designated area, and displaying the sequenced color types in the operation interface.
11. The device of claim 8, wherein the matting operation module is specifically configured to,
and only reserving the image part corresponding to the selected color in the image of the designated area.
12. The device of claim 8, wherein the matting operation module is specifically configured to,
and scratching out the image part corresponding to the selected color in the image of the designated area.
13. The apparatus of claim 8, wherein the region determination module is to,
determining the designated area in response to a selection operation for the image.
14. A matting processing apparatus comprising:
the interface display processing module is used for providing a selection operation item for determining a designated area in the image for a user in the image operation interface;
the color analysis processing module is used for carrying out color analysis on the image of the specified area based on the specified area determined by the user in the image and displaying the analyzed color type in an operation interface;
the color selection determining module is used for responding to the operation of selecting colors on the image color analyzing operation component by the user and determining the colors selected by the user in the designated area;
and the matting operation processing module is used for carrying out matting operation on the image of the designated area based on the color selected by the user.
15. An electronic device, comprising:
a memory for storing a program;
a processor coupled to the memory for executing the program, the program when executed performing the image processing method of any one of claims 1 to 6.
16. An electronic device, comprising:
a memory for storing a program;
a processor coupled to the memory for executing the program, the program when executed performing the matting processing method of claim 7.
CN201910033555.9A 2019-01-14 2019-01-14 Image processing method and device and electronic equipment Pending CN111435282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910033555.9A CN111435282A (en) 2019-01-14 2019-01-14 Image processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910033555.9A CN111435282A (en) 2019-01-14 2019-01-14 Image processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111435282A true CN111435282A (en) 2020-07-21

Family

ID=71579969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910033555.9A Pending CN111435282A (en) 2019-01-14 2019-01-14 Image processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111435282A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090214110A1 (en) * 2008-02-26 2009-08-27 Samsung Electronics Co., Ltd. Method and apparatus for generating mosaic image
CN103268320A (en) * 2013-04-18 2013-08-28 天脉聚源(北京)传媒科技有限公司 Method and device for storing image
CN104850432A (en) * 2015-04-29 2015-08-19 小米科技有限责任公司 Method and device for adjusting color
CN105590312A (en) * 2014-11-12 2016-05-18 株式会社理光 Foreground image segmentation method and apparatus
CN105654420A (en) * 2015-12-21 2016-06-08 小米科技有限责任公司 Face image processing method and device
CN106056606A (en) * 2016-05-30 2016-10-26 乐视控股(北京)有限公司 Image processing method and device
CN106204423A (en) * 2016-06-28 2016-12-07 广东欧珀移动通信有限公司 A kind of picture-adjusting method based on augmented reality, device and terminal
CN106775374A (en) * 2016-11-17 2017-05-31 广州视源电子科技股份有限公司 Color obtaining method and device based on touch screen
CN107452010A (en) * 2017-07-31 2017-12-08 中国科学院长春光学精密机械与物理研究所 A kind of automatically stingy nomography and device
CN107516319A (en) * 2017-09-05 2017-12-26 中北大学 A kind of high accuracy simple interactive stingy drawing method, storage device and terminal
CN108846792A (en) * 2018-05-23 2018-11-20 腾讯科技(深圳)有限公司 Image processing method, device, electronic equipment and computer-readable medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090214110A1 (en) * 2008-02-26 2009-08-27 Samsung Electronics Co., Ltd. Method and apparatus for generating mosaic image
CN103268320A (en) * 2013-04-18 2013-08-28 天脉聚源(北京)传媒科技有限公司 Method and device for storing image
CN105590312A (en) * 2014-11-12 2016-05-18 株式会社理光 Foreground image segmentation method and apparatus
CN104850432A (en) * 2015-04-29 2015-08-19 小米科技有限责任公司 Method and device for adjusting color
CN105654420A (en) * 2015-12-21 2016-06-08 小米科技有限责任公司 Face image processing method and device
CN106056606A (en) * 2016-05-30 2016-10-26 乐视控股(北京)有限公司 Image processing method and device
WO2017206400A1 (en) * 2016-05-30 2017-12-07 乐视控股(北京)有限公司 Image processing method, apparatus, and electronic device
CN106204423A (en) * 2016-06-28 2016-12-07 广东欧珀移动通信有限公司 A kind of picture-adjusting method based on augmented reality, device and terminal
CN106775374A (en) * 2016-11-17 2017-05-31 广州视源电子科技股份有限公司 Color obtaining method and device based on touch screen
CN107452010A (en) * 2017-07-31 2017-12-08 中国科学院长春光学精密机械与物理研究所 A kind of automatically stingy nomography and device
CN107516319A (en) * 2017-09-05 2017-12-26 中北大学 A kind of high accuracy simple interactive stingy drawing method, storage device and terminal
CN108846792A (en) * 2018-05-23 2018-11-20 腾讯科技(深圳)有限公司 Image processing method, device, electronic equipment and computer-readable medium

Similar Documents

Publication Publication Date Title
CN109961747B (en) Electronic ink screen display method and device and electronic equipment
CN111988659B (en) Multi-information-source dynamic window previewing method and device, intelligent display equipment and storage medium
CN105929980B (en) Method and apparatus for information input
CN111432263B (en) Barrage information display, processing and release method, electronic equipment and medium
CN107870999B (en) Multimedia playing method, device, storage medium and electronic equipment
US20240147050A1 (en) Prop processing method and apparatus, and device and medium
KR20140089847A (en) electronic apparatus and control method thereof
CN113010698B (en) Multimedia interaction method, information interaction method, device, equipment and medium
CN105335198A (en) Font addition method and device
CN112416205B (en) Method and device for determining login account
CN112306601A (en) Application interaction method and device, electronic equipment and storage medium
EP4124025A1 (en) Interaction information processing method and apparatus, electronic device and storage medium
CN111435276A (en) Image processing method and device and electronic equipment
CN112860921A (en) Information searching method and device
CN111209195B (en) Method and device for generating test case
CN107729439A (en) Obtain the methods, devices and systems of multi-medium data
CN109871465B (en) Time axis calculation method and device, electronic equipment and storage medium
CN111435282A (en) Image processing method and device and electronic equipment
CN110650364A (en) Video attitude tag extraction method and video-based interaction method
CN116166355A (en) Page display method, device, equipment, computer readable storage medium and product
CN113794930B (en) Video generation method, device, equipment and storage medium
CN111240927B (en) Method, device and storage medium for detecting time consumption of method in program
CN114245193A (en) Display control method and device and electronic equipment
CN108449625B (en) Video screenshot method, device and terminal
CN113360738A (en) Content evaluation method, system, and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination