IMAGE PROCESSING METHOD AND ELECTRONIC DEVICE

The invention discloses an image processing method applied to an electronic device having a changeable shape, the method includes: determining image information that is currently required to be processed; collecting shape change information of the electronic device; processing the image information in accordance with the shape change information; and displaying the processed image information on a display unit of the electronic device. In the image processing method disclosed by the present invention, the change of image information is achieved by change in shape of the electronic device, without the need to perform a menu operation of electronic device, and the problem in the prior art that the operation process for achieving the change of image contour by means of a menu operation is cumbersome and inconvenient to use is solved.

DETAILED DESCRIPTION OF THE INVENTION

The technical solution in the embodiments of the invention will be described clearly and completely hereinafter in conjunction with the drawings in the embodiments of the invention. Apparently, the embodiments described are only a part of embodiments of the invention, rather than all embodiments. All other embodiments obtained based on the embodiments in the invention by those skilled in the prior art without any creative works belong to the scope of protection of the invention.

An embodiment of the invention provides an image processing method and an electronic device, so as to solve the problem in the prior art that the operation process for achieving the change of image contour by means of a menu operation is cumbersome and inconvenient to use.

Specifically, the image processing method disclosed in the embodiment of the invention is applied to an electronic device having a changeable shape. As shown inFIG. 1, the image processing method includes the following steps:

step S101, determining image information that is currently required to be processed;

step S102, collecting shape change information of the electronic device;

step S103, processing the image information in accordance with the shape change information; and

step S104, displaying the processed image information on a display unit of the electronic device.

In the image processing method disclosed in the embodiment, the change of the image information is achieved by changing the shape of the electronic device, without the need of performing a menu operation of the electronic device anymore, which solves the problem in the prior art that the operation process during achieving the change of image contour by means of menu operations is cumbersome and inconvenient to use.

Specifically, the image information described in the embodiment refers to the information for determining the display contour of the image. By changing the image information, the change of the display contour of the image can be achieved. And the image information disclosed in the embodiment includes all information that can determine the display contour of the image, and those skilled in the art should know all the information that can determine the display contour of the image.

In the above embodiment, the step S101of determining image information that is currently required to be processed may include: collecting external image information. Specifically, when the electronic device is in a shooting mode, an image information collecting unit of the electronic device, which may be a camera, collects the external image information; then, the shape change information of the electronic device is collected after the user operates the electronic device manually to make the shape of the electronic device change, and then the image information is processed in accordance with the shape change information; and the processed image information is displayed on a display unit of the electronic device, and at this time, the user can view the change of display contour of the image by viewing the display unit of the electronic device.

When the external image collected by the electronic device is image information of a self-portrait of the user, by the image processing method disclosed by the embodiment, the user can view the change of display contour of the self-portrait by changing manually the shape of the electronic device, as if the user is viewing a magic minor.

Of course, the step S101of determining image information that is currently required to be processed may also include: acquiring pre-stored image information. In this case, the display contour of the image pre-stored can be changed using the image processing method disclosed in the embodiment.

The shape of the electronic device to which the image processing method disclosed in the above embodiment of the invention is applied is changeable. In general, the display screen of the electronic device adopts a flexible display screen, and the shell of the electronic device is made of materials that have high elasticity and can achieve shape changes.

According to different shape change information of the collecting electronic device, the invention discloses two embodiments, and one of the two embodiments discloses an image processing method, as shown inFIG. 2, which includes the following steps.

Step S201, determining image information that is currently required to be processed.

Specifically, for the specific implementation form of this step, one can refer to the contents disclosed in the embodiment above.

Step S202, detecting change in shape of a display screen of the electronic device.

Specifically, in this step, the change in shape of the display screen may be detected by a sensor, but without the limitation of being detected by the sensor.

Step S203, generating shape change information according to the change in shape of the display screen of the electronic device.

Step S204, processing the image information in accordance with the shape change information.

Step S205, displaying the processed image information on a display unit of the electronic device.

An image processing method disclosed by another embodiment of the invention, as shown inFIG. 3, includes the following steps.

Step S301, determining image information that is currently required to be processed.

For the specific implementation form of this step, one can refer to the contents described above, which will not be described in detail herein.

Step S302, detecting change in shape of a shell of the electronic device.

Specifically, in this step, the change of the shell of the electronic device is detected by a device such as a sensor.

Step S303, generating shape change information according to the change in shape of the shell of the electronic device.

Step S304, processing the image information in accordance with the shape change information.

Step S305, displaying the processed image information on a display unit of the electronic device.

Of course, when detecting the change in shape of the electronic device, the change in shape of the display screen of the electronic device and the change in shape of the shell of the electronic device can be simultaneously detected, and if it is detected that there is change in shape of the display screen and the shell of the electronic device, the shape change information can be generated according to the change in shape of the display screen and the shell of the electronic device.

In the image processing method disclosed in the embodiment of the invention described above, the processing the image information in accordance with the shape change information may include:

in the case that the electronic device protrudes outward, stretching the image information in a lateral direction and/or a longitudinal direction.

Specifically, when the display screen of the electronic device protrudes outward, the image information is stretched in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device protrudes outward, the image information is stretched in a lateral direction and/or a longitudinal direction; or, when the shell of the electronic device protrudes outward and the display screen of the electronic device also protrudes outward, the image information is stretched in a lateral direction and/or a longitudinal direction.

The processing the image information in accordance with the shape change information may also include: in the case where the electronic device recesses inward, shortening the image information in a lateral direction and/or a longitudinal direction.

Similarly, when the display screen of the electronic device recesses inward, the image information is shortened in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device recesses inward, the image information is shortened in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device recesses inward and the display screen of the electronic device also recesses inward, the image information is shortened in a lateral direction and/or a longitudinal direction.

The processing the image information in accordance with the shape change information may also include: in the case where the electronic device protrudes outward, shortening the image information in a lateral direction and/or a longitudinal direction.

Specifically, when the display screen of the electronic device protrudes outward, the image information is shortened in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device protrudes outward, the image information is shortened in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device protrudes outward and the display screen of the electronic device protrudes outward, the image information is shortened in a lateral direction and/or a longitudinal direction.

The processing the image information in accordance with the shape change information may also include: in the case where the electronic device recesses inward, stretching the image information in a lateral direction and/or a longitudinal direction.

Specifically, when the display screen of the electronic device recesses inward, the image information is stretched in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device recesses inward, the image information is stretched in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device recesses inward and the display screen of the electronic device also recesses inward, the image information is stretched in a lateral direction and/or a longitudinal direction.

The contents above are only some implementation forms of processing the image information in accordance with the shape change information. Of course, for different shape change information of the electronic device, different processing is made to the image information. It may be the following situations: the shape change information of the electronic device is the same as the image information processing method, specifically, when the shape of the electronic device changes, the image displayed after the image information processing is the same as the shape presented by the electronic device the shape of which has changed; or the shape change information of the electronic device is opposite to the image information processing method, specifically, when the shape of the electronic device changes, the image displayed after the image information processing is opposite to the shape presented by the electronic device the shape of which has changed.

Furthermore, the corresponding relationship between the shape change information and the image information processing method of the electronic device can be determined according to a setting of the user, and when the shape of the electronic device is changed, the image information is processed in accordance with the set corresponding relationship.

Another embodiment of the invention also discloses another electronic device. The electronic device disclosed by the invention may include a mobile phone and a tablet computer and the like that have been used by users nowadays, and the shapes of these electronic devices are changeable. As shown inFIG. 4, the electronic device described includes:

an image information determination unit101, adapted to determine image information that is currently required to be processed;

a collecting unit102, adapted to collect shape change information of the electronic device;

a processing unit103, adapted to process the image information in accordance with the shape change information; and

a display unit104, adapted to display the processed image information.

Specifically, the image information determination unit101determines the image information that is currently required to be processed; when the shape of the electronic device changes, the collecting unit102collects the shape change information of the electronic device; the processing unit103processes the image information in accordance with the shape change information; and finally the display unit104displays the processed image information.

In the electronic device disclosed in the embodiment, the change of the image information is achieved by changing the shape of the electronic device, without the need of performing a menu operation of the electronic device, which solves the problem in the prior art that the operation process during achieving the change of image contour by means of a menu operation is cumbersome and inconvenient to use.

Specifically, the image information determination unit101in the electronic device may be an image information collecting unit adapted to collect external image information. In general, the image information collecting unit is a camera disposed on the electronic device, and the camera directly collects the external image information and transmits the collected external image information to the processing unit103.

Or, the image information determination unit101is an image information acquiring unit adapted to acquire pre-stored image information. There are images stored in a storage device of the electronic device, and the image information in the storage device can be acquired by the image information acquiring unit and then is transmitted to the processing unit103.

Furthermore, the collecting unit102of the electronic device disclosed in the embodiment described above may include:

a first detection unit, adapted to detect change in shape of the display screen of the electronic device; and

a first generation unit, adapted to generate shape change information according to the change in shape of the display screen of the electronic device.

Specifically, the first detection unit may be a sensor disposed on the electronic device, which may detect the change in shape of the display screen of the electronic device, and transmit the change in shape of the display screen of the electronic device to the first generation unit, and the first generation unit can generate the shape change information according to the change in shape of the display screen of the electronic device.

Or, the collection unit102of the electronic device disclosed in the embodiment described above may also include:

a second detection unit, adapted to detect change in shape of the shell of the electronic device; and

a second generation unit, adapted to generate shape change information according to the change in shape of the shell of the electronic device.

Similarly, the second detection unit may be a sensor disposed on the electronic device, which may detect the change in shape of the shell of the electronic device, and transmit the change in shape of the display screen of the electronic device to the second generation unit, and the second generation unit can also generate shape change information according to the change in shape of the display screen of the electronic device.

The first detection unit and the second detection unit disclosed in the embodiment may be a same detection unit which can detect the change in shape of the shell of the electronic device or the change in shape of the display screen of the electronic device. Of course, the first detection unit and the second detection unit may also be separate detection units.

Similarly, the first generation unit and the second generation unit disclosed in the embodiment may be a same generation unit which can generate shape change information according to the change in shape of the display screen of the electronic device and can also generate shape change information according to the change in shape of the shell of the electronic device. Of course, the first generation unit and the second generation unit may also be separate generation units.

Specifically, the processing the image information by the processing unit103according to the shape change information that is disclosed in the embodiment described above may include:

in the case where the electronic device protrudes outward, stretching the image information in a lateral direction and/or a longitudinal direction.

Specifically, when the display screen of the electronic device protrudes outward, the image information is stretched in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device protrudes outward, the image information is stretched in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device shell protrudes outward and the display screen of the electronic device also protrudes outward, the image information is stretched in a lateral direction and/or a longitudinal direction.

The processing the image information by the processing unit103in accordance with the shape change information may also include: in the case where the electronic device recesses inward, shortening the image information in a lateral direction and/or a longitudinal direction.

Similarly, when the display screen of the electronic device recesses inward, the image information is shortened in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device recesses inward, the image information is shortened in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device recesses inward and the display screen of the electronic device recesses inward, the image information is shortened in a lateral direction and/or a longitudinal direction.

The processing the image information by the processing unit103in accordance with the shape change information may also include: in the case where the electronic device protrudes outward, shortening the image information in a lateral direction and/or a longitudinal direction.

Specifically, when the display screen of the electronic device protrudes outward, the image information is shortened in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device protrudes outward, the image information is shortened in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device protrudes outward and the display screen of the electronic device also protrudes outward, the image information is shortened in a lateral direction and/or a longitudinal direction.

The processing the image information by the processing unit103in accordance with the shape change information may also include: in the case where the electronic device recesses inward, stretching the image information in a lateral direction and/or a longitudinal direction.

Specifically, when the display screen of the electronic device recesses inward, the image information is stretched in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device recesses inward, the image information is stretched in a lateral direction and/or a longitudinal direction; or when the shell of the electronic device recesses inward and the display screen of the electronic device also recesses inward, the image information is stretched in a lateral direction and/or a longitudinal direction.

The specific working processes of the various units disclosed in the electronic device embodiments of the invention are the same as that in the method embodiments, and one can refer to the contents disclosed in the method embodiments, which will not be described in detail herein.

Finally, it should be noted that, relation terms herein, such as “a first” and “a second”, are used only to distinguish an entity or operation from another entity or operation, without necessarily requiring or implying that there is any actual relation or sequence between these entities or operations. Moreover, the terms “comprise”, “include” or any other variants thereof are intended to cover a non-exclusive inclusion, such that the process, method, article, or device including a series of elements includes not only these elements, but also other elements that are not explicitly listed, or also includes inherent elements of such process, method, article or device. In the case where there are no more limitations, an element which is defined by a statement “include a” does not exclude that in the process, method, article, or device including the element there is a same element other than the element.

The embodiments of the invention are described herein in a progressive manner, with the emphasis for illustration of each embodiment is placed on the difference between the embodiment and the other embodiments; hence, for the same or similar parts between the embodiments, one can refer to the other embodiments.

The description of the embodiments herein enables those skilled in the art to implement or use the invention. Numerous modifications to the embodiments will be apparent to those skilled in the art, and the general principle herein can be implemented in other embodiments without deviation from the spirit or scope of the invention. Therefore, the invention will not be limited to the embodiments described herein, but in accordance with the widest scope consistent with the principle and novel features disclosed herein.