CN104375797B - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN104375797B
CN104375797B CN201410654768.0A CN201410654768A CN104375797B CN 104375797 B CN104375797 B CN 104375797B CN 201410654768 A CN201410654768 A CN 201410654768A CN 104375797 B CN104375797 B CN 104375797B
Authority
CN
China
Prior art keywords
image area
image
basic
value
pixel points
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.)
Active
Application number
CN201410654768.0A
Other languages
Chinese (zh)
Other versions
CN104375797A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410654768.0A priority Critical patent/CN104375797B/en
Publication of CN104375797A publication Critical patent/CN104375797A/en
Application granted granted Critical
Publication of CN104375797B publication Critical patent/CN104375797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/04842Selection of displayed objects or displayed text elements
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or 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)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides an information processing method, which is applied to an electronic device, wherein the electronic device is provided with a display unit, and the method comprises the following steps: when a first background image is displayed on the display unit, determining an important image area and a non-important image area on the first background image; performing image processing on the key image area and the non-key image area to obtain a processed second background image; displaying the second background image on the display unit.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to an information processing method and an electronic device.
Background
With the continuous development of electronic technology, more and more electronic devices are present in people's work and life, for example: smart phones, tablet computers, notebook computers, and the like. It is also becoming more common to provide wallpaper on these electronic devices. Users often select their favorite images as background images for mobile phones, tablet computers, and the like.
Typically, a user will also install multiple applications on these electronic devices, and icons for the applications will be displayed on the wallpaper. When the user wants to open an application, the user can click on the icon of the application on the wallpaper, and then the electronic device runs the application.
In the process of implementing the technical scheme in the embodiment of the present application, the inventor of the present application finds that the following technical problems exist in the prior art:
in the prior art, the wallpaper as the background image is similar to the icon of the application program, and the wallpaper interferes the user in finding the icon of the application program.
Disclosure of Invention
Embodiments of the present invention provide an information processing method and an electronic device, which are used to solve the technical problem in the prior art that a wallpaper as a background image is similar to an icon of an application program, and the wallpaper interferes with a user finding the icon of the application program.
In one aspect, an embodiment of the present invention provides an information processing method applied in an electronic device, where the electronic device has a display unit, and the method includes:
when a first background image is displayed on the display unit, determining an important image area and a non-important image area on the first background image;
performing image processing on the key image area and the non-key image area to obtain a processed second background image;
displaying the second background image on the display unit.
Optionally, the determining the emphasized image region and the non-emphasized image region on the first background image specifically includes:
receiving a predetermined operation of a user for a first display area of the display unit;
determining a first image area corresponding to the first display area in the first background image;
and determining the key image area and the non-key image area according to the first image area.
Optionally, the determining the emphasized image region and the non-emphasized image region according to the first image region specifically includes:
obtaining basic characteristic values of basic pixel points in the first image area;
with the basic pixel point as the center, judging whether pixel points around the basic pixel point are matched with the basic characteristic value;
and collecting the pixel points matched with the basic characteristic values to form the key image area, and collecting the pixel points not matched with the basic characteristic values to form the non-key image area.
Optionally, after obtaining the basic feature values of the basic pixel points in the first image region, the method further includes:
judging whether a basic gray value in the basic characteristic values is larger than a preset gray value, wherein the preset gray value is used for distinguishing a foreground from a background of the first background image;
if the basic gray value is larger than the preset gray value, executing the following steps: and with the basic pixel point as the center, judging whether the pixel points around the basic pixel point are matched with the basic characteristic value.
Optionally, the image processing on the non-key image area specifically includes:
taking the pixel points in the non-key image area as target pixel points, and determining the average value of the characteristic values of the pixel points around the target pixel points;
and setting the average value as the fuzzy characteristic value of the target pixel point.
Optionally, the image processing on the non-key image area specifically includes:
taking the color value with the largest occurrence frequency in the color values of the pixel points in the first background image or the non-key image area as a key color value;
and setting the color value of the pixel point in the non-key image area as a target color value, wherein the difference value between the target color value and the key color value is greater than a preset value.
Optionally, the image processing on the key image area and the non-key image area specifically includes:
taking pixel points of an edge area between the key image area and the non-key image area as target edge pixel points;
determining an average value of characteristic values of pixel points around the target edge pixel point;
and setting the average value as the edge fuzzy characteristic value of the target edge pixel point.
In another aspect, an embodiment of the present invention provides an electronic device, where the electronic device has a display unit, and the electronic device further includes:
a determination unit configured to determine an emphasized image region and a non-emphasized image region on a first background image when the first background image is displayed on the display unit;
the image processing unit is used for carrying out image processing on the key image area and the non-key image area to obtain a processed second background image;
the display unit is used for: displaying the second background image on the display unit.
Optionally, the determining unit specifically includes:
the receiving subunit is used for receiving a predetermined operation of a user on a first display area of the display unit;
a first determining subunit, configured to determine, in the first background image, a first image area corresponding to the first display area;
a second determining subunit, configured to determine the emphasized image region and the non-emphasized image region according to the first image region.
Optionally, the second determining subunit is specifically configured to:
obtaining basic characteristic values of basic pixel points in the first image area;
with the basic pixel point as the center, judging whether pixel points around the basic pixel point are matched with the basic characteristic value;
and collecting the pixel points matched with the basic characteristic values to form the key image area, and collecting the pixel points not matched with the basic characteristic values to form the non-key image area.
Optionally, the electronic device further includes:
a determining unit, configured to determine whether a basic gray value in the basic feature values is greater than a predetermined gray value after the basic feature values of the basic pixel points in the first image region are obtained, where the predetermined gray value is used to distinguish a foreground from a background of the first background image;
if the basic gray value is larger than the preset gray value, executing the following steps: and with the basic pixel point as the center, judging whether the pixel points around the basic pixel point are matched with the basic characteristic value.
Optionally, the image processing unit is specifically configured to:
taking the pixel points in the non-key image area as target pixel points, and determining the average value of the characteristic values of the pixel points around the target pixel points;
and setting the average value as the fuzzy characteristic value of the target pixel point.
Optionally, the image processing unit is specifically configured to:
taking the color value with the largest occurrence frequency in the color values of the pixel points in the first background image or the non-key image area as a key color value;
and setting the color value of the pixel point in the non-key image area as a target color value, wherein the difference value between the target color value and the key color value is greater than a preset value.
Optionally, the image processing unit is specifically configured to:
taking pixel points of an edge area between the key image area and the non-key image area as target edge pixel points;
determining an average value of characteristic values of pixel points around the target edge pixel point;
and setting the average value as the edge fuzzy characteristic value of the target edge pixel point.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
1. in the embodiment of the invention, when a first background image is displayed on a display unit of an electronic device, a key image area and a non-key image area on the first background image are determined, then the key image area and the non-key image area are subjected to image processing to obtain a processed second background image, and finally the second background image is displayed on the display unit.
The method for displaying the wallpaper is characterized in that a key image area and a non-key image area of the wallpaper are processed, a processed background image is used as the wallpaper, the key image area of the wallpaper can be highlighted, and meanwhile interference of the wallpaper on an icon of an application program is reduced as much as possible.
2. In the embodiment of the invention, a predetermined operation of a user on a first display area of a display unit of electronic equipment is received, then a first image area corresponding to the first display area is determined in a first background image, and finally a key image area and a non-key image area are determined according to the first image area. Therefore, the user performs the booking operation in different display areas on the display unit, the determined key image area and the determined non-key image area are different, and the processed images are different. The wallpaper display mode provided by the embodiment of the invention can generate great freshness and interest for users, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a first background image according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a second background image corresponding to the first background image shown in FIG. 2 according to an embodiment of the present invention;
FIG. 4 is another diagram of a first background image according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a second background image corresponding to the first background image shown in FIG. 4 according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention provide an information processing method and an electronic device, which are used to solve the technical problem in the prior art that a wallpaper as a background image is similar to an icon of an application program, and the wallpaper interferes with a user finding the icon of the application program.
In the embodiment of the invention, when a first background image is displayed on a display unit of an electronic device, a key image area and a non-key image area on the first background image are determined, then the key image area and the non-key image area are subjected to image processing to obtain a processed second background image, and finally the second background image is displayed on the display unit.
The method for displaying the wallpaper is characterized in that a key image area and a non-key image area of the wallpaper are processed, a processed background image is used as the wallpaper, the key image area of the wallpaper can be highlighted, and meanwhile interference of the wallpaper on an icon of an application program is reduced as much as possible.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The embodiment provides an information processing method, which is applied to an electronic device, wherein the electronic device is provided with a display unit. The electronic equipment can be a smart phone, a tablet computer, a notebook computer and the like, and the display unit can be a touch display screen, a liquid crystal display screen, an LED display screen and the like.
A first background image is displayed on a display unit of the electronic device. The first background image may be a wallpaper set by the electronic device from a factory or a wallpaper customized by a user of the first electronic device. Icons of application programs installed on the electronic device or icons of factory settings of the electronic device are also generally displayed on the wallpaper. If the wallpaper is similar to the icon of the application, the wallpaper may interfere with the user's finding the icon of the application. In order to reduce the interference of the wallpaper on the icon of the application program found by the user as much as possible, the embodiment of the invention provides a wallpaper display mode, wherein the key image area and the non-key image area of the wallpaper are determined, the key image area and the non-key image area are subjected to image processing, the processed background image is used as the wallpaper to be displayed on a display unit, and the interference of the wallpaper on the icon of the application program is reduced as much as possible while the key image area of the wallpaper is highlighted.
Referring to fig. 1, fig. 1 is a flowchart of an information processing method according to an embodiment of the present invention. The method comprises the following steps:
step 11: when a first background image is displayed on the display unit, determining an important image area and a non-important image area on the first background image;
step 12: performing image processing on the key image area and the non-key image area to obtain a processed second background image;
step 13: displaying the second background image on the display unit.
There are various methods for determining the emphasized image region and the non-emphasized image region of the first background image in step 11. One possible approach is face recognition. If the wallpaper is an image with people and scenery, the image area with people can be determined to be a key image area by face recognition, and the scenery is a non-key image area. Another possible method is image matching. The method comprises the steps that some images are customized as key images by the electronic equipment factory settings or the user of the electronic equipment, the wallpaper is matched with the key images, the area matched with the key images in the wallpaper is a key image area, and other areas of the wallpaper are non-key image areas. For example: the user of the electronic equipment defines the cat as a key image, if the wallpaper has the cat, the cat is used as a key image area, and other areas in the wallpaper are used as non-key image areas.
Still another possible method is to determine the emphasized image region and the non-emphasized image region of the first background image according to the user's operation with respect to the display unit. Assuming that the display unit is a touch display unit, a user performs a sliding operation on the touch display unit, and a sliding track is a circle, the background image inside the circle can be determined as a key image area, and the background image outside the circle is determined as a non-key image area; or if the sliding track is a line segment, the background image with a smaller area in the two image areas divided by the line segment is used as a key image area, and the background image with a larger area is used as a non-key image area. If the sliding track is a touch area formed by one touch point generated by a stylus on the touch display unit or a plurality of touch points generated by fingers on the touch display unit, and the key image area and the non-key image area cannot be determined according to the operation of the user, the following method may be adopted:
receiving a predetermined operation of a user for a first display area of the display unit;
determining a first image area corresponding to the first display area in the first background image;
and determining the key image area and the non-key image area according to the first image area.
Determining the key image area and the non-key image area according to the first image area, specifically:
obtaining basic characteristic values of basic pixel points in the first image area;
with the basic pixel point as the center, judging whether pixel points around the basic pixel point are matched with the basic characteristic value;
and collecting the pixel points matched with the basic characteristic values to form the key image area, and collecting the pixel points not matched with the basic characteristic values to form the non-key image area.
Specifically, a first background image is displayed on a display unit of the electronic device, a display area of the display unit is composed of a plurality of touch points, each touch point has unique coordinates, and each touch point corresponds to one pixel point of the first background image. When a user touches the touch unit by using the touch pen to generate a touch point, the electronic device can acquire the coordinates of the touch point, and then can determine the pixel point corresponding to the touch point. And taking the pixel points corresponding to the touch points as basic pixel points, and obtaining the gray value, the brightness value, the color value and the like of the basic pixel points. And then comparing the gray value, the brightness value, the color value and the like of the pixel points around the basic pixel points with the gray value, the brightness value, the color value and the like of the basic pixel points, and if the gray value, the brightness value, the color value and the like of the basic pixel points are similar to the gray value, the brightness value, the color value and the like of the basic pixel points, dividing the surrounding. That is to say, the pixel points corresponding to the touch points are used as seed regions, and the pixel expansion of the image is performed by using a region growing method, so that a complete connected domain can be formed, the expanded region is an important image region, and the other regions are non-important image regions. When a user touches the touch unit with a finger to generate a touch area, all the pixels in the touch area can be used as basic pixels, and the key image area can be determined according to the same method. Except the area of the image of the focus point, the first background image is the area of the non-focus image.
Therefore, in the embodiment of the present invention, the emphasized image region and the non-emphasized image region of the first background image are determined according to the operation of the user on the display unit, and the position of the operation of the user on the display unit is different, so that the determined emphasized image region and the determined non-emphasized image region are different.
In particular, the first background image may be a 3D image. Because the 3D image is obtained by shooting through the double cameras, the 3D image has a depth image, the larger the gray value in the depth image is, the closer the shot object is to the photographer, and the 3D image has a gray threshold value which can distinguish the foreground from the background.
In this embodiment of the present invention, after obtaining the basic feature value of the basic pixel point in the first image region, the method further includes:
judging whether a basic gray value in the basic characteristic values is larger than a preset gray value, wherein the preset gray value is used for distinguishing a foreground from a background of the first background image;
if the basic gray value is larger than the preset gray value, executing the following steps: and with the basic pixel point as the center, judging whether the pixel points around the basic pixel point are matched with the basic characteristic value.
Specifically, if the first background image is a 3D image, after obtaining the gray value, the luminance value, the color value, and the like of the basic pixel point, the gray value of the basic pixel point is first compared with a predetermined gray value, which is the gray value used for distinguishing the foreground and the background of the first background image in the 3D image, if the gray value of the basic pixel point is greater than the predetermined gray value, it is indicated that the image area corresponding to the display area touched by the user is the foreground of the first background image, and then the gray value, the luminance value, the color value, and the like of the pixel points around the basic pixel point are compared with the gray value, the luminance value, the color value, and the like of the basic pixel point, so as to determine the key image.
If the gray value of the basic pixel point is less than or equal to the preset gray value, it is indicated that the image area corresponding to the display area touched by the user is the background of the first background image, and the background of the first background image is divided into two parts: an image composed of pixels having a gray value smaller than that of the basic pixels is a first part, and an image composed of pixels having a gray value between that of the basic pixels and a predetermined gray value is a second part. Blurring the first part, and adding special effects such as light spots and snowing on the second part.
After step 11 is performed, step 12 may be performed, in which the highlight image area and the non-highlight image area are subjected to image processing to highlight the highlight image area of the first background image. There are various methods for performing image processing, and in the embodiment of the present application, there are, but not limited to, the following methods for performing image processing on an emphasized image region and a non-emphasized image region:
the first method comprises the following steps: taking the pixel points in the non-key image area as target pixel points, and determining the average value of the characteristic values of the pixel points around the target pixel points; and setting the average value as the fuzzy characteristic value of the target pixel point.
Specifically, in order to highlight the emphasized image region, image processing may be performed on the non-emphasized image region. Taking the pixel points in the non-key image area as target pixel points, averaging the gray value, the brightness value, the color value and the like of the pixel points around the target pixel points, and setting the average value as the gray value, the brightness value, the color value and the like of the target pixel points. Because the gray value, the brightness value, the color value and the like of the target pixel point are the average values of the gray value, the brightness value, the color value and the like of the surrounding pixel points, the gray value, the brightness value, the color value and the like of the pixel points in the non-key image area after the processing are similar, and a fuzzy effect is formed. Besides blurring the non-key image area, the non-key image area can be blurred, so that the interference of the processed non-key image area on the icon of the application program is greatly reduced.
For example: fig. 2 is a schematic diagram of a first background image according to an embodiment of the invention. Fig. 3 is a schematic diagram of an image obtained by image processing the non-emphasized image region in fig. 2. As can be seen from fig. 3, the emphasized image regions are highlighted, while the non-emphasized image regions are blurred.
In addition, in order to highlight the emphasized image region, the image processing may be performed on the emphasized image region simultaneously with or after the image processing is performed on the non-emphasized image region. And (3) carrying out general image processing methods such as sharpening, edge enhancement and the like on the key image area, and if the key image area is identified as a human face, carrying out special effects such as beautifying, face thinning, whitening and the like.
The second method comprises the following steps: taking the color value with the largest occurrence frequency in the color values of the pixel points in the first background image or the non-key image area as a key color value; and setting the color value of the pixel point in the non-key image area as a target color value, wherein the difference value between the target color value and the key color value is greater than a preset value.
Specifically, the times of occurrence of color values of pixel points on the first background image or the non-emphasized image area are counted, and the color value with the largest occurrence time is used as an emphasized color value. And then, changing the color value of the pixel point in the non-key image area into a target color value with the difference with the key color value larger than a preset value. That is to say, adopt and press black, color filter, select the colour opposite with key colour value as target colour value, the difference of target colour value and key colour value is bigger, and the effect of salient key image area is more obvious. For example: the emphasis color value is yellow, and the color value of the non-emphasis image area can be changed to gray or black.
In order to make the visual effect of the processed image natural and unobtrusive, in the embodiment of the present invention, a third method is further provided:
taking pixel points of an edge area between the key image area and the non-key image area as target edge pixel points; determining an average value of characteristic values of pixel points around the target edge pixel point; and setting the average value as the edge fuzzy characteristic value of the target edge pixel point.
Specifically, smoothing is performed on pixel points at the boundary between the highlight image area and the non-highlight image area. And taking the pixel points at the junction as target pixel points, then averaging the gray values, the brightness values, the color values and the like of the pixel points around the target pixel points, and setting the average value as the gray values, the brightness values, the color values and the like of the target pixel points. Because the gray value, the brightness value, the color value and the like of the target pixel point are the average values of the gray value, the brightness value, the color value and the like of the pixel point at the boundary of the key image area and the non-key image area around the target pixel point, the gray value, the brightness value, the color value and the like of the pixel point in the processed key image area and the non-key image area are similar to form a transition, and the boundary of the non-key image area and the key image area does not appear to be too sharp and unnatural any more.
After step 12 is performed, step 13 may be performed to display the processed image as a second background image on the display unit.
One possible application scenario is: when the display unit of the electronic device is in the screen locking state, the screen locking wallpaper on the display unit is the first background image, as shown in fig. 4. Then, the user performs an unlocking operation with respect to the display unit, and generates a touch area on the display unit, where the touch area corresponds to the image area of the person jacket in fig. 4. And taking the image area of the coat of the person as the center, and performing pixel expansion of the image by using a region growing method, so that a complete connected domain can be formed, wherein the expanded area is the person, the person is determined as an important image area, and the other areas are non-important image areas. And (3) performing line blurring, blackening, color filtering and other processing on the non-key image area, and performing smoothing processing on the edge of the key image area and the non-key image area to obtain a processed image as a second background image, as shown in fig. 5. And after the display unit of the electronic equipment is unlocked, taking the second background image as the unlocked desktop wallpaper. As can be seen from fig. 5, the key image area is highlighted in the second background image, reducing the interference of the background image to the application icon.
In the possible application scenes, when the display unit of the electronic equipment is in a locked state, the display unit displays a first background image as the screen locking wallpaper, when the electronic equipment is unlocked after receiving an unlocking operation of a user, the display unit displays a scene cut animation, the first background image is transited to a second background image, and the second background image is used as the desktop wallpaper after unlocking, so that the wallpaper display effect is excessively natural.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, please refer to fig. 6, where the electronic device has a display unit 61, and the electronic device further includes:
a determining unit 62 configured to determine an emphasized image region and a non-emphasized image region on a first background image when the first background image is displayed on the display unit;
an image processing unit 63, configured to perform image processing on the key image area and the non-key image area to obtain a processed second background image;
the display unit 61 is configured to: displaying the second background image on the display unit.
Optionally, the determining unit 62 specifically includes:
the receiving subunit is used for receiving a predetermined operation of a user on a first display area of the display unit;
a first determining subunit, configured to determine, in the first background image, a first image area corresponding to the first display area;
a second determining subunit, configured to determine the emphasized image region and the non-emphasized image region according to the first image region.
Optionally, the second determining subunit is specifically configured to:
obtaining basic characteristic values of basic pixel points in the first image area;
with the basic pixel point as the center, judging whether pixel points around the basic pixel point are matched with the basic characteristic value;
and collecting the pixel points matched with the basic characteristic values to form the key image area, and collecting the pixel points not matched with the basic characteristic values to form the non-key image area.
Optionally, the electronic device further includes:
a determining unit, configured to determine whether a basic gray value in the basic feature values is greater than a predetermined gray value after the basic feature values of the basic pixel points in the first image region are obtained, where the predetermined gray value is used to distinguish a foreground from a background of the first background image;
if the basic gray value is larger than the preset gray value, executing the following steps: and with the basic pixel point as the center, judging whether the pixel points around the basic pixel point are matched with the basic characteristic value.
Optionally, the image processing unit 63 is specifically configured to:
taking the pixel points in the non-key image area as target pixel points, and determining the average value of the characteristic values of the pixel points around the target pixel points;
and setting the average value as the fuzzy characteristic value of the target pixel point.
Optionally, the image processing unit 63 is specifically configured to:
taking the color value with the largest occurrence frequency in the color values of the pixel points in the first background image or the non-key image area as a key color value;
and setting the color value of the pixel point in the non-key image area as a target color value, wherein the difference value between the target color value and the key color value is greater than a preset value.
Optionally, the image processing unit 63 is specifically configured to:
taking pixel points of an edge area between the key image area and the non-key image area as target edge pixel points;
determining an average value of characteristic values of pixel points around the target edge pixel point;
and setting the average value as the edge fuzzy characteristic value of the target edge pixel point.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
1. in the embodiment of the invention, when a first background image is displayed on a display unit of an electronic device, a key image area and a non-key image area on the first background image are determined, then the key image area and the non-key image area are subjected to image processing to obtain a processed second background image, and finally the second background image is displayed on the display unit.
The method for displaying the wallpaper is characterized in that a key image area and a non-key image area of the wallpaper are processed, a processed background image is used as the wallpaper, the key image area of the wallpaper can be highlighted, and meanwhile interference of the wallpaper on an icon of an application program is reduced as much as possible.
2. In the embodiment of the invention, a predetermined operation of a user on a first display area of a display unit of electronic equipment is received, then a first image area corresponding to the first display area is determined in a first background image, and finally a key image area and a non-key image area are determined according to the first image area. Therefore, the user performs the booking operation in different display areas on the display unit, the determined key image area and the determined non-key image area are different, and the processed images are different. The wallpaper display mode provided by the embodiment of the invention can generate great freshness and interest for users, and the user experience is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Specifically, the computer program instructions corresponding to an information processing method in the embodiments of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the information processing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
when a first background image is displayed on the display unit, determining an important image area and a non-important image area on the first background image;
performing image processing on the key image area and the non-key image area to obtain a processed second background image;
displaying the second background image on the display unit.
Optionally, the step of storing in the storage medium: determining an emphasized image region and a non-emphasized image region on the first background image, wherein the corresponding computer instructions, in a specific executed process, specifically include:
receiving a predetermined operation of a user for a first display area of the display unit;
determining a first image area corresponding to the first display area in the first background image;
and determining the key image area and the non-key image area according to the first image area.
Optionally, the step of storing in the storage medium: determining the emphasized image region and the non-emphasized image region according to the first image region, wherein the corresponding computer instructions, in a specific executed process, specifically include:
obtaining basic characteristic values of basic pixel points in the first image area;
with the basic pixel point as the center, judging whether pixel points around the basic pixel point are matched with the basic characteristic value;
and collecting the pixel points matched with the basic characteristic values to form the key image area, and collecting the pixel points not matched with the basic characteristic values to form the non-key image area.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: obtaining a basic characteristic value of a basic pixel point in the first image region, wherein the corresponding computer instruction is executed after being executed, and the method comprises the following steps:
judging whether a basic gray value in the basic characteristic values is larger than a preset gray value, wherein the preset gray value is used for distinguishing a foreground from a background of the first background image;
if the basic gray value is larger than the preset gray value, executing the following steps: and with the basic pixel point as the center, judging whether the pixel points around the basic pixel point are matched with the basic characteristic value.
Optionally, the step of storing in the storage medium: performing image processing on the non-key image area, wherein in a specific executed process, a corresponding computer instruction specifically comprises:
taking the pixel points in the non-key image area as target pixel points, and determining the average value of the characteristic values of the pixel points around the target pixel points;
and setting the average value as the fuzzy characteristic value of the target pixel point.
Optionally, the step of storing in the storage medium: performing image processing on the non-key image area, wherein in a specific executed process, a corresponding computer instruction specifically comprises:
taking the color value with the largest occurrence frequency in the color values of the pixel points in the first background image or the non-key image area as a key color value;
and setting the color value of the pixel point in the non-key image area as a target color value, wherein the difference value between the target color value and the key color value is greater than a preset value.
Optionally, the step of storing in the storage medium: performing image processing on the non-key image area, wherein in a specific executed process, a corresponding computer instruction specifically comprises:
taking pixel points of an edge area between the key image area and the non-key image area as target edge pixel points;
determining an average value of characteristic values of pixel points around the target edge pixel point;
and setting the average value as the edge fuzzy characteristic value of the target edge pixel point.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. An information processing method is applied to an electronic device, the electronic device is provided with a display unit, and the method comprises the following steps:
when a first background image is displayed on the display unit, determining an important image area and a non-important image area on the first background image;
performing image processing on the key image area and the non-key image area to obtain a processed second background image;
displaying the second background image on the display unit; wherein the content of the first and second substances,
the determining of the key image area and the non-key image area on the first background image specifically includes:
receiving a predetermined operation of a user for a first display area of the display unit;
determining a first image area corresponding to the first display area in the first background image;
determining the key image area and the non-key image area according to the first image area; wherein the content of the first and second substances,
the determining the key image area and the non-key image area according to the first image area specifically includes: obtaining basic characteristic values of basic pixel points in the first image area; with the basic pixel point as the center, judging whether pixel points around the basic pixel point are matched with the basic characteristic value; collecting the pixel points matched with the basic characteristic values to form the key image area, and collecting the pixel points not matched with the basic characteristic values to form the non-key image area; wherein the content of the first and second substances,
after the obtaining of the basic feature values of the basic pixel points in the first image region, the method further includes: judging whether a basic gray value in the basic characteristic values is larger than a preset gray value, wherein the preset gray value is used for distinguishing a foreground from a background of the first background image; if the basic gray value is larger than the preset gray value, executing the following steps: and with the basic pixel point as the center, judging whether the pixel points around the basic pixel point are matched with the basic characteristic value.
2. The method according to claim 1, wherein the image processing is performed on the non-emphasized image region, specifically:
taking the pixel points in the non-key image area as target pixel points, and determining the average value of the characteristic values of the pixel points around the target pixel points;
and setting the average value as the fuzzy characteristic value of the target pixel point.
3. The method according to claim 1, wherein the image processing is performed on the non-emphasized image region, specifically:
taking the color value with the largest occurrence frequency in the color values of the pixel points in the first background image or the non-key image area as a key color value;
and setting the color value of the pixel point in the non-key image area as a target color value, wherein the difference value between the target color value and the key color value is greater than a preset value.
4. The method according to claim 1, wherein the image processing of the emphasized image region and the non-emphasized image region is specifically:
taking pixel points of an edge area between the key image area and the non-key image area as target edge pixel points;
determining an average value of characteristic values of pixel points around the target edge pixel point;
and setting the average value as the edge fuzzy characteristic value of the target edge pixel point.
5. An electronic device having a display unit, the electronic device further comprising:
a determination unit configured to determine an emphasized image region and a non-emphasized image region on a first background image when the first background image is displayed on the display unit;
the image processing unit is used for carrying out image processing on the key image area and the non-key image area to obtain a processed second background image;
the display unit is used for: displaying the second background image on the display unit; wherein the content of the first and second substances,
the determining unit specifically includes:
the receiving subunit is used for receiving a predetermined operation of a user on a first display area of the display unit;
a first determining subunit, configured to determine, in the first background image, a first image area corresponding to the first display area;
a second determining subunit, configured to determine the emphasized image region and the non-emphasized image region according to the first image region; wherein the content of the first and second substances,
the second determining subunit is specifically configured to: obtaining basic characteristic values of basic pixel points in the first image area; with the basic pixel point as the center, judging whether pixel points around the basic pixel point are matched with the basic characteristic value; collecting the pixel points matched with the basic characteristic values to form the key image area, and collecting the pixel points not matched with the basic characteristic values to form the non-key image area; wherein the content of the first and second substances,
the electronic device further includes: a determining unit, configured to determine whether a basic gray value in the basic feature values is greater than a predetermined gray value after the basic feature values of the basic pixel points in the first image region are obtained, where the predetermined gray value is used to distinguish a foreground from a background of the first background image; if the basic gray value is larger than the preset gray value, executing the following steps: and with the basic pixel point as the center, judging whether the pixel points around the basic pixel point are matched with the basic characteristic value.
6. The electronic device of claim 5, wherein the image processing unit is specifically configured to:
taking the pixel points in the non-key image area as target pixel points, and determining the average value of the characteristic values of the pixel points around the target pixel points;
and setting the average value as the fuzzy characteristic value of the target pixel point.
7. The electronic device of claim 5, wherein the image processing unit is specifically configured to:
taking the color value with the largest occurrence frequency in the color values of the pixel points in the first background image or the non-key image area as a key color value;
and setting the color value of the pixel point in the non-key image area as a target color value, wherein the difference value between the target color value and the key color value is greater than a preset value.
8. The electronic device of claim 5, wherein the image processing unit is specifically configured to:
taking pixel points of an edge area between the key image area and the non-key image area as target edge pixel points;
determining an average value of characteristic values of pixel points around the target edge pixel point;
and setting the average value as the edge fuzzy characteristic value of the target edge pixel point.
CN201410654768.0A 2014-11-17 2014-11-17 Information processing method and electronic equipment Active CN104375797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410654768.0A CN104375797B (en) 2014-11-17 2014-11-17 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410654768.0A CN104375797B (en) 2014-11-17 2014-11-17 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104375797A CN104375797A (en) 2015-02-25
CN104375797B true CN104375797B (en) 2020-02-21

Family

ID=52554750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410654768.0A Active CN104375797B (en) 2014-11-17 2014-11-17 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104375797B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10049435B2 (en) 2014-07-31 2018-08-14 Adobe Systems Incorporated Controlling smoothness of a transmission between images
CN104754221B (en) * 2015-03-11 2018-11-16 广东欧珀移动通信有限公司 A kind of photographic method and mobile terminal
CN104808908B (en) * 2015-05-21 2019-05-24 北京字节跳动网络技术有限公司 A kind of display interface processing method and processing device
CN106293569A (en) * 2015-06-08 2017-01-04 联想(北京)有限公司 Information processing method and electronic equipment
CN106251287B (en) * 2015-06-14 2020-04-10 奥多比公司 Controlling smoothness of transitions between images
CN104933674B (en) * 2015-06-29 2019-03-12 网易传媒科技(北京)有限公司 A kind of image processing method and device
CN105430295B (en) * 2015-10-30 2019-07-12 努比亚技术有限公司 Image processing apparatus and method
CN106776682A (en) * 2016-10-28 2017-05-31 努比亚技术有限公司 A kind of picture match device, method and mobile terminal
CN106681608A (en) * 2016-12-07 2017-05-17 上海传英信息技术有限公司 Method and device for setting wallpaper and electronic equipment
CN107194963A (en) * 2017-04-28 2017-09-22 努比亚技术有限公司 A kind of dual camera image processing method and terminal
CN107102863B (en) * 2017-05-08 2020-09-18 广州视源电子科技股份有限公司 Method and system for automatically determining background color of carousel region according to carousel picture
CN107730465B (en) * 2017-10-09 2020-09-04 武汉斗鱼网络科技有限公司 Face beautifying method and device in image
CN108174091B (en) * 2017-12-28 2021-04-13 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN108564541B (en) * 2018-03-28 2022-04-15 麒麟合盛网络技术股份有限公司 Image processing method and device
CN110047122A (en) * 2019-04-04 2019-07-23 北京字节跳动网络技术有限公司 Render method, apparatus, electronic equipment and the computer readable storage medium of image
CN111913771A (en) * 2020-07-17 2020-11-10 维沃移动通信有限公司 Wallpaper display method, device and equipment
CN111857511B (en) * 2020-07-17 2022-05-17 维沃移动通信有限公司 Wallpaper display control method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237510A (en) * 2007-01-29 2008-08-06 索尼株式会社 Image forming device and image editing method
CN102917158A (en) * 2012-09-07 2013-02-06 中兴通讯股份有限公司 Dynamic color replacing device and method as well as cellphone

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100504487C (en) * 2003-09-29 2009-06-24 联想(北京)有限公司 Method for selecting focusing domain for digital camera
US8259208B2 (en) * 2008-04-15 2012-09-04 Sony Corporation Method and apparatus for performing touch-based adjustments within imaging devices
CN101587586B (en) * 2008-05-20 2013-07-24 株式会社理光 Device and method for processing images
US9041727B2 (en) * 2012-03-06 2015-05-26 Apple Inc. User interface tools for selectively applying effects to image
CN103927086B (en) * 2014-04-21 2018-11-16 努比亚技术有限公司 A kind of wallpaper treatment method, system and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237510A (en) * 2007-01-29 2008-08-06 索尼株式会社 Image forming device and image editing method
CN102917158A (en) * 2012-09-07 2013-02-06 中兴通讯股份有限公司 Dynamic color replacing device and method as well as cellphone

Also Published As

Publication number Publication date
CN104375797A (en) 2015-02-25

Similar Documents

Publication Publication Date Title
CN104375797B (en) Information processing method and electronic equipment
US11729514B2 (en) Image processing method and apparatus
US9922681B2 (en) Techniques for adding interactive features to videos
US20130009989A1 (en) Methods and systems for image segmentation and related applications
CN107172354B (en) Video processing method and device, electronic equipment and storage medium
US10554803B2 (en) Method and apparatus for generating unlocking interface, and electronic device
CN107506637B (en) Information display method and device, terminal and readable storage medium
CN105243371A (en) Human face beauty degree detection method and system and shooting terminal
CN111066026B (en) Techniques for providing virtual light adjustment to image data
CN110119733B (en) Page identification method and device, terminal equipment and computer readable storage medium
CN107622504B (en) Method and device for processing pictures
US20150063785A1 (en) Method of overlappingly displaying visual object on video, storage medium, and electronic device
AU2014202574A1 (en) Positioning of projected augmented reality content
CN107209556B (en) System and method for processing depth images capturing interaction of an object relative to an interaction plane
CN110069125B (en) Virtual object control method and device
WO2016107229A1 (en) Icon displaying method and device, and computer storage medium
EP2898668A1 (en) System for photograph enhancement by user controlled local image enhancement
JP6241320B2 (en) Image processing apparatus, image processing method, image processing system, and program
EP2911115B1 (en) Electronic device and method for color extraction
CN105678696A (en) Image acquisition method and electronic equipment
CN105447846A (en) Image-processing method and electronic device
EP3652704B1 (en) Systems and methods for creating and displaying interactive 3d representations of real objects
AU2015271981A1 (en) Method, system and apparatus for modifying a perceptual attribute for at least a part of an image
US11176728B2 (en) Adaptive depth-guided non-photorealistic rendering method and device
CN113763233A (en) Image processing method, server and photographing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant