Image processing method, device, electronic device and computer readable storage medium

By analyzing image parameter information and displaying images with folding effects, the problem of single and limited image display mode is solved, and the diversity of display modes and the flexibility of user interaction is realized.

CN114417036BActive Publication Date: 2025-02-25LENOVO (BEIJING) LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111564333.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-20
Publication Date
2025-02-25
Estimated Expiration
2041-12-20

AI Technical Summary

Technical Problem

In the prior art, the image display mode is single and limited, and cannot effectively respond to the parameter information of the image, resulting in a lack of diversity and flexibility in the display method.

Method used

By analyzing the parameter information of the image to be browsed, the image is displayed with a folding effect in the image browsing mode, increasing the diversity of the display mode, and responding to user input through interactive controls to change the display effect.

Benefits of technology

It realizes the richness and flexibility of the image display mode, improves the display effect of the image, and solves the problem of single and limited display methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114417036B_ABST
    Figure CN114417036B_ABST
Patent Text Reader

Abstract

The present application discloses an image processing method, device, electronic device and computer-readable storage medium, wherein the image processing method comprises: if in an image browsing mode, obtaining an image to be browsed; parsing the image to be browsed to obtain parameter information contained in the image to be browsed; and displaying the image to be browsed in a folded effect in the image browsing mode based on the parameter information. The image to be browsed can be displayed in a folded effect, thereby improving the display method of the image to be browsed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and relates to but is not limited to an image processing method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the continuous development of science and technology, the clarity of images obtained through electronic devices is getting higher and higher. Since images can carry more information such as colors, graphics, characters, etc., their applications are becoming more and more extensive. For example, pictures can be used in education, publicity, speech, communication and other occasions.

[0003] In the related art, when browsing an image, it is usually possible to zoom in, zoom out, rotate the entire image, crop the image, etc., but these operations are merely relatively simple deformation processing of the displayed content in the image. The display mode of the image before and after the operation does not change, and the image after the operation is still displayed in the original display mode, resulting in a relatively single and limited display mode of the image. Summary of the invention

[0004] In view of this, embodiments of the present application provide an image processing method, device, electronic device, and computer-readable storage medium.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides an image processing method, including:

[0007] If in image browsing mode, obtain the image to be browsed;

[0008] Parse the image to be browsed to obtain parameter information contained in the image to be browsed

[0009] The image to be browsed is displayed in a folding effect in the image browsing mode based on the parameter information.

[0010] In some embodiments, the method further comprises:

[0011] switching from a first presentation mode to a second presentation mode based on the parameter information, the second presentation mode being responsive to the parameter information;

[0012] The displaying of the to-be-browsed image in the image browsing mode with a folding effect based on the parameter information includes:

[0013] The image to be browsed is displayed with a folding effect based on the second display mode and the parameter information.

[0014] In some embodiments, displaying the to-be-browsed image in a folded effect in the image browsing mode based on the parameter information includes:

[0015] Determine at least one interactive control based on the parameter information; the at least one interactive control is used to generate a control instruction for controlling a change in a display effect of the image to be browsed;

[0016] Displaying the image to be browsed and the at least one interactive control in the first display effect in the second display mode;

[0017] If an input operation is obtained for the at least one interactive control, the image to be browsed is displayed with a second display effect in the second display mode, and the second display effect is a folding effect of the image to be browsed.

[0018] In some embodiments, the image to be browsed is at least one image associated with an album application; and the browsing mode is a display mode in which the album application displays each of the at least one associated image.

[0019] In some embodiments, the parameter information contained in the image to be browsed includes at least one of the following:

[0020] Parameter information of folding method;

[0021] Parameter information of folding angle;

[0022] Watermark information for characterizing a photographing device added to the photographed image when the image is photographed;

[0023] Device identification information that is added to the screenshot image file when taking a screenshot and is used to identify the screenshot device.

[0024] In some embodiments, the second display mode corresponds to a foldable virtual model, and the displaying of the image to be browsed in the image browsing mode with a folding effect based on the parameter information includes:

[0025] The foldable virtual model automatically adapts to a standard model based on the parameter information;

[0026] Perform image processing based on the standard model and the image to be browsed to obtain an output image, wherein the output image is a folding effect;

[0027] The output image is displayed.

[0028] In some embodiments, the method further comprises:

[0029] If the parameter information contained in the image to be browsed is not obtained by parsing the image to be browsed, the first display mode is maintained so that the image to be browsed is displayed with the first display effect.

[0030] An embodiment of the present application provides an electronic device, the electronic device at least comprising:

[0031] A display screen, the display screen is used to display output;

[0032] a memory for storing a computer program executable on the processor;

[0033] A processor, wherein the processor is used to implement the above-mentioned image processing method when executing the executable instructions stored in the memory.

[0034] The present application provides an image processing device, including:

[0035] An acquisition module, used for acquiring an image to be browsed if in image browsing mode;

[0036] The parsing module is used to parse the image to be browsed to obtain parameter information contained in the image to be browsed. The display module displays the image to be browsed with a folding effect in the image browsing mode based on the parameter information.

[0037] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are configured to execute the above-mentioned image processing method.

[0038] The embodiment of the present application provides an image processing method, device, electronic device and computer-readable storage medium. The image processing method includes: the image processing method is applied to an electronic device with a display screen, and when the electronic device detects that it is in an image browsing mode, the image to be browsed is obtained; then, the image to be browsed is analyzed to obtain parameter information carried in the image to be browsed; finally, in the image browsing mode, the image to be browsed is displayed with folding effects such as bending and folding based on the parameter information, thereby increasing the display mode of the image to be browsed, improving the display effect of the image to be browsed, and enriching the functions of the electronic device. At the same time, it also solves the problem of single and limited display methods when displaying the image to be browsed. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views.The drawings generally illustrate, by way of example and not limitation, various embodiments discussed herein.

[0040] Figure 1 A schematic diagram of an implementation flow of the image processing method provided in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of another implementation flow of the image processing method provided in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of another implementation flow of the image processing method provided in the embodiment of the present application;

[0043] Figure 4 A schematic diagram of an implementation flow of a method for displaying images to be browsed provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of a display block diagram of generating a screenshot in the related technology;

[0045] Figure 6 A schematic diagram of a display block diagram of generating a screenshot provided in an embodiment of the present application;

[0046] Fig. 7A A schematic diagram of a display block diagram of generating a screenshot provided in an embodiment of the present application;

[0047] Figure 7B A schematic diagram of a display block diagram of a rotated screenshot provided in an embodiment of the present application;

[0048] Figure 7C A schematic diagram of a display block diagram of a screenshot after the angle is reduced provided in an embodiment of the present application;

[0049] Fig.7D A schematic diagram of a display block diagram of a screenshot with an increased angle provided in an embodiment of the present application;

[0050] Figure 8 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;

[0051] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0053] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0054] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0056] Based on the problems existing in the related art, the embodiment of the present application provides an image processing method, which can be applied to electronic devices. The method provided by this embodiment can be implemented by a computer program, and when the computer program is executed, each step of the image processing method provided by this embodiment is completed. In some embodiments, the computer program can control the processor in the electronic device to execute. Figure 1 A schematic diagram of an implementation flow of the image processing method provided in the embodiment of the present application is shown as follows: Figure 1 As shown, the image processing method includes:

[0057] Step S101: if in image browsing mode, obtain an image to be browsed.

[0058] Here, before step S101, the current mode of the electronic device can be determined by the mode reading instruction, and it can be determined whether the current mode is the image browsing mode. If it is determined that the current mode is the image browsing mode, step S101 is entered; if it is determined that the current mode is not the image preview mode, the current mode of the electronic device is obtained. The image browsing mode is a display mode for displaying images. For example, after entering the album application of the electronic device, thumbnails of multiple images are displayed. At this time, the electronic device is in the image preview mode; after clicking on a certain image, the electronic device enters the image browsing mode and displays the clicked image.

[0059] In the embodiment of the present application, if it is determined that the electronic device is in the image browsing mode, the current display content information of the electronic device display screen can be obtained, and the image to be browsed in the electronic device display screen can be obtained through the current display content information. In actual implementation, the image to be browsed can be at least one image associated with the photo album application, that is, the image to be browsed can be an image stored in the electronic device photo album; in addition, the image to be browsed can also be an image cached in the chat application in the electronic device, and can also be a server-side image that can be accessed in the browser application.

[0060] In some embodiments, the image to be browsed may be an image captured by an electronic device or other device different from the electronic device (hereinafter collectively referred to as a shooting device); the image to be browsed may also be an image obtained by a screenshot operation received by an electronic device or other device different from the electronic device (hereinafter collectively referred to as a screenshot device); the image to be browsed may also be an initial image first captured by the shooting device and sent to the screenshot device for display, and then the image may be finally obtained through the screenshot operation of the screenshot device.

[0061] For example, when the electronic device receives a signal that a certain image in the photo album application is clicked, it indicates that the electronic device is about to display the image, and thus the image is determined as the image to be browsed.

[0062] Step S102: parsing the image to be browsed to obtain parameter information contained in the image to be browsed.

[0063] Here, the parameter information is information formed when the image to be browsed is generated, wherein the parameter information of the image to be browsed can be parameter information of the folding mode of the image to be browsed, and the parameter information is used to characterize the folding mode of the image to be browsed, such as bending, bending, horizontal folding, vertical folding, etc., wherein horizontal folding means that the image to be browsed is folded along a fold parallel or approximately parallel to the horizontal plane, and vertical folding means that the image to be browsed is folded along a fold vertical or approximately vertical to the horizontal plane. The parameter information can also be parameter information of a folding angle, and the parameter information is used to characterize the folding angle of the image to be browsed, such as 60 degrees, 90 degrees, 270 degrees, etc., and the value range of the folding angle can be 0 degrees to 360 degrees. When the image to be browsed is an image collected by an image collection device of a shooting device, watermark information can be added to the captured image, then the parameter information can also be watermark information characterizing the shooting device, and the watermark information can be identification information of the shooting device, and the identification information can be an international mobile identity code, a unique device identification code, a device type, a universal unique identification code, etc. of the shooting device. When the image to be browsed is a screenshot image obtained by a screenshot operation received by a screenshot device, the device identification information of the screenshot device can also be added to the screenshot image. Then, the parameter information can also be the device identification information of the screenshot device. Similarly, the identification information can be the international mobile identity code, unique device identification code, device type, universal unique identification code, etc. of the screenshot device.

[0064] In some embodiments, the parameter information may also be a combination of the above-mentioned four types of information, that is, the parameter information may include 15 ways of combining information. In addition to the above-mentioned four cases, the parameter information may include a folding method and a folding angle; the parameter information may also include a folding method, a folding angle, and watermark information of a shooting device; the parameter information may also include a folding method, a folding angle, watermark information of a shooting device, and device identification information of a screenshot device; the embodiments of the present application are merely illustrative and do not fully list the 15 ways of combining parameter information.

[0065] In actual implementation, the image to be browsed may include parameter information, content information, grayscale information, etc. Different information may be represented by different encoding methods. Based on this, the parameter information in the image to be browsed may be identified by the encoding method of the parameter information. In addition, different information may also include different identification information. The parameter information in the image to be browsed may be identified based on the parameter information identification.

[0066] Step S103: displaying the image to be browsed with a folding effect in the image browsing mode based on the parameter information.

[0067] Here, when the parameter information is a folding mode of horizontal folding at the center position, the image to be browsed is displayed in the folding mode, that is, the image to be browsed is displayed with a folding effect of horizontal folding at the center position. When the parameter information is parameter information of a folding angle of 90 degrees, the image to be browsed is displayed with a folding angle of 90 degrees. When the parameter information is watermark information of a shooting device, the folding mode and / or folding angle corresponding to the shooting device is determined based on the watermark information, and the image to be browsed is displayed based on the folding mode and / or folding angle corresponding to the shooting device. For example, the folding mode and folding angle corresponding to the shooting device can be a vertical fold of 120 degrees, then the image to be browsed is displayed with a folding effect of a vertical fold of 120 degrees. When the parameter information is the device identification information of a screen capture device, the folding mode and / or folding angle corresponding to the screen capture device is determined based on the device identification information, and the image to be browsed is displayed based on the folding mode and / or folding angle corresponding to the screen capture device. For example, the folding mode corresponding to the screen capture device is a surrounding bend connected at both ends, then the image to be browsed is displayed with a surrounding bend connected at both ends.

[0068] Similarly, when the parameter information includes a folding method and a folding angle, the image to be browsed is displayed with the included folding method and folding angle. When the parameter information includes a folding method, a folding angle and watermark information of a shooting device, the folding method and folding angle included in the parameter information are in an inclusive relationship with the folding method and folding angle corresponding to the shooting device, and the image to be browsed is displayed with the folding method and folding angle included in the parameter information, or the image to be browsed is displayed with the folding method and folding angle corresponding to the shooting device. The above are only 6 examples of parameter information. Similar to step S102, there are 15 types of parameter information, which will not be listed here one by one.

[0069] In the embodiment of the present application, the image processing method is applied to an electronic device with a display screen. When the electronic device detects that it is in an image browsing mode, it obtains an image to be browsed; then, the image to be browsed is analyzed to obtain parameter information carried in the image to be browsed; finally, in the image browsing mode, the image to be browsed is displayed with folding effects such as bending and folding based on the parameter information, thereby increasing the display mode of the image to be browsed, improving the display effect of the image to be browsed, and enriching the functions of the electronic device. At the same time, it also solves the problem of single and limited display methods for the image to be browsed.

[0070] In some embodiments, an electronic device for displaying an image to be browsed may have two display modes, namely a first display mode and a second display mode, wherein the first display mode refers to displaying the image to be browsed in an unfolded effect, while the second display mode can respond to parameter information, and responds to the parameter information by a folding effect for the image to be browsed, and reflects the parameter information through the folding effect. That is, in the second display mode, the image to be browsed can be displayed in a folding effect based on the parameter information. In order to adapt to the display of any image to be browsed and save the power consumption of the electronic device, the electronic device defaults to displaying the image to be browsed in the first display mode. Based on this, reference Figure 2 After step S101, the following steps S102' to S106' may be performed:

[0071] Step S102', parsing the image to be browsed.

[0072] When implementing this step, the image to be browsed can be decoded based on the decoding method corresponding to the target encoding method to obtain a first parsing result, wherein the target encoding method is the encoding method corresponding to the parameter information. For example, the target encoding method can be a Chinese character encoding character set (Chinese Internal Code Specification, GBK), Big5, etc.; it is also possible to use data mining algorithms such as neural network method, decision tree method, legacy algorithm, etc. to identify whether the data of the image to be browsed contains parameter information identification to obtain a second parsing result.

[0073] Step S103', determining whether parameter information contained in the image to be browsed is parsed.

[0074] Here, if the first parsing result includes successfully decoded data, it is determined that the parameter information contained in the image to be browsed is parsed, and the decoded data is parameter information, then the process proceeds to step S104'; and if the first parsing result does not include decoded data, it is determined that the parameter information contained in the image to be browsed is not obtained, which also indicates that the image to be browsed does not contain parameter information, then the process proceeds to step S106'.

[0075] Similarly, if the second parsing result indicates that the parameter information identifier is identified, it is determined that the parameter information contained in the image to be browsed is parsed, and the process proceeds to step S104 ′; otherwise, the process proceeds to step S106 ′.

[0076] Step S104': switching from the first display mode to the second display mode based on the parameter information.

[0077] At this time, the parameter information contained in the image to be browsed can be obtained through analysis, indicating that the image to be browsed is not an ordinary image, but an image containing parameter information. In order to be able to fully reflect the parameter information of the image to be browsed when displaying the image to be browsed, the display mode of the electronic device will be automatically switched from the first display mode to the second display mode.

[0078] Step S105 ′: displaying the image to be browsed with a folding effect based on the second display mode and the parameter information.

[0079] Here, in the second display mode, when displaying the image to be browsed, the parameter information will be displayed together in a folded manner.

[0080] For example, when the parameter information is folded vertically 270 degrees, the image to be browsed is displayed with a folding effect of folding vertically 270 degrees.

[0081] Step S106 ′, maintaining the first display mode, so that the image to be browsed is displayed with the first display effect.

[0082] At this time, the parameter information contained in the image to be browsed can not be obtained through analysis, indicating that the image to be browsed is an ordinary image that is not folded. The image to be browsed does not contain parameter information, so there is no need to reflect the parameter information by switching the display mode. Therefore, the first display mode is maintained and the image to be browsed is continuously displayed through the first display mode. In the embodiment of the present application, the display effect that does not need to reflect the parameter information is recorded as the first display effect, that is, the first display effect refers to the unfolded display effect.

[0083] In the embodiment of the present application, through the above steps S102' to S106', when the parameter information contained in the image to be browsed is obtained by parsing the image to be browsed, the display mode of the electronic device is switched from the first display mode to the second display mode, wherein the second display mode can respond to the parameter information; then, in the second display mode, the image to be browsed is displayed with a folding effect based on the parameter information, thereby increasing the display mode of the image to be browsed and improving the display effect of the image to be browsed. When the parameter information contained in the image to be browsed cannot be obtained by parsing the image to be browsed, it is characterized that the image to be browsed does not contain the parameter information, and the first display mode is maintained, and the image to be browsed is displayed through the unfolded first display effect.

[0084] In some embodiments, when the image to be browsed includes parameter information, an interactive control may be determined based on the parameter information, and the image to be browsed may be displayed based on an input operation of the control. Figure 3 After step S104', the following steps S105" to S109" may also be performed:

[0085] Step S105 ”: determine at least one interactive control based on the parameter information.

[0086] Here, at least one interactive control is used to generate a control instruction for controlling a change in the display effect of the image to be browsed.

[0087] In an embodiment of the present application, the interactive control can be a button control, a selection control, an input control, etc., and at least one of the controls matches the parameter information. Taking the interactive control as a button control as an example, when the parameter information includes horizontal folding and vertical folding folding methods, the interactive control includes a horizontal folding button and a vertical folding button; when the parameter information includes a folding angle of 90 degrees, a folding angle of 120 degrees, and a folding angle of 270 degrees, the interactive control includes a 90-degree folding angle button, a 120-degree folding angle button, and a 270-degree folding angle button; when the parameter information includes a horizontal folding method, a vertical folding method, a 90-degree folding angle, a 120-degree folding angle, and a 270-degree folding angle, the interactive control includes a horizontal folding button, a vertical folding button, a 90-degree folding angle button, a 120-degree folding angle button, and a 270-degree folding angle button, wherein the buttons between the folding methods are radio buttons, the buttons between the folding angles are also radio buttons, and the buttons between the folding methods and the folding angles can be check boxes.

[0088] In some embodiments, still taking the interactive control as a button control as an example, when the parameter information is the watermark information of the shooting device, the folding method and the folding angle corresponding to the shooting device are determined, and then the folding method and the folding angle corresponding to the shooting device are determined as a button control. In actual implementation, the folding method corresponding to the shooting device can be one or more; similarly, the folding angle corresponding to the shooting device can also be one or more.

[0089] Step S106 , in the second display mode, the image to be browsed and at least one interactive control are displayed with the first display effect.

[0090] Here, the image to be browsed and at least one interactive control are displayed on the display screen of the electronic device, and at this time, the image to be browsed is displayed in an unfolded effect. That is, when the display mode of the electronic device is switched from the first display mode to the second display mode, the image to be browsed is still displayed in the unfolded first display effect, but at least one interactive control is additionally displayed on the display screen.

[0091] Step S107 ”, determining whether an input operation for at least one interactive control is obtained.

[0092] Here, a detection sensor can be used to determine whether the electronic device obtains an input operation for at least one interactive control, wherein the detection sensor is capable of capturing operations such as pressing and typing. If it is determined that an input operation for at least one interactive control is obtained, indicating that the display effect of the image to be browsed needs to be changed, then the process goes to step S108"; and if no input operation for at least one interactive control is obtained, indicating that the display effect of the image to be browsed does not need to be changed, then the process goes to step S109", i.e., the image to be browsed continues to be displayed with the first display effect.

[0093] Step S108 , displaying the image to be browsed in the second display effect in the second display mode.

[0094] At this time, an input operation for at least one interactive control is obtained, indicating that the display effect of the image to be browsed needs to be changed. In response to the input operation, the display effect matching the input operation is determined as the second display effect, and the second display effect is the folding effect of the image to be browsed; then, the image to be browsed is displayed with the second display effect, that is, the image to be browsed is displayed with a folded effect.

[0095] Continuing with the above example, if the input operation is to select the horizontal fold button and the 90-degree fold corner button, the image to be browsed will be displayed with a horizontal fold of 90 degrees.

[0096] In some embodiments, the display effect of the image to be browsed is switched from the first display effect to the second display effect. In some embodiments, when the display effect is switched from the first display effect to the second display effect, it can be changed through a dynamic change process, thereby presenting a dynamic process of change to enhance the observability of the display effect change. Following the above example, the folding angle can be dynamically changed from 0 degrees to 90 degrees. Of course, the above dynamic change process may not be reflected to shorten the change time.

[0097] Step S109 ”, continue to display the image to be browsed and at least one interactive control in the first display effect.

[0098] At this time, no input operation is obtained for at least one interactive control, indicating that there is no need to change the display effect of the image to be browsed, so the image to be browsed continues to be displayed with the first display effect without folding. At the same time, at least one control continues to be displayed on the display screen to provide a prerequisite for subsequent input operations.

[0099] In some embodiments, the at least one control may not be displayed on the display screen in real time, that is, the at least one control may be in a hidden state, and when it is determined that the at least one control needs to be presented, the at least one control may be displayed on the display screen by triggering. In actual implementation, the at least one control may be triggered to be displayed on the display screen by voice, by touching the touch screen of the electronic device, or by pressing a physical button of the electronic device.

[0100] In an embodiment of the present application, through the above-mentioned steps S105" to S109", after obtaining the parameter information, at least one interactive control corresponding to the parameter information is also determined, wherein the at least one interactive control can generate a control instruction for controlling the change of the display effect of the image to be browsed; when the electronic device switches from the first display mode to the second display mode, the image to be browsed is still displayed with the unfolded first display effect; only after obtaining the input operation for at least one control, the image to be browsed is displayed with the folded second display effect, that is, the image to be browsed is not automatically displayed with a folded effect, but is displayed with a folded effect when the interactive control is triggered, thereby improving the flexibility of the display effect.

[0101] Based on the above embodiment, in actual implementation, the second display mode corresponds to a foldable virtual model. Figure 4 As shown, the above step S103 "displaying the image to be browsed with a folding effect in the image browsing mode based on the parameter information" can be implemented by the following steps S1031 to S1033:

[0102] Step S1031: the foldable virtual model is automatically adapted to a standard model based on parameter information.

[0103] Here, the foldable virtual model is a basic virtual model, and the foldable virtual model can simulate any foldable device.

[0104] In an embodiment of the present application, the parameter information may include the length, width, thickness, folding method, folding angle, etc. of the folding device, wherein the folding device refers to a device that generates an image to be browsed containing parameter information. The folding device may be an electronic device, or may be other electronic devices such as a shooting device and a screenshot device. Based on this, the foldable virtual model can simulate a standard model that matches the folding device based on the parameter information. For example, when the parameter information is the device identification information of the screenshot device, if the device identification information is mobile phone A, wherein mobile phone A is a mobile phone that can be folded horizontally, the length, width and thickness of mobile phone A are 14 cm, 7 cm and 0.7 cm respectively, and the angle of mobile phone A when taking a screenshot is 90 degrees, then the standard model that matches mobile phone A is two identical cuboids, each of which has a length, width and height of 7 cm, 7 cm and 0.7 cm respectively. The two cuboids are placed up and down and connected, and the angle between the two cuboids is 90 degrees. That is, a model is established for mobile phone A to obtain a standard model.

[0105] Step S1032, performing image processing based on the standard model and the image to be browsed to obtain an output image.

[0106] Here, the image to be browsed can be cut, mapped and rendered in sequence according to the standard model to obtain an output image, which is a folding effect. Continuing with the above example, the folding angle of the output image is 90 degrees.

[0107] Step S1033, display the output image.

[0108] Here, the output image of the folding effect is output through the display screen of the electronic device.

[0109] In an embodiment of the present application, through the above-mentioned steps S1031 to S1033, the second display mode corresponds to a foldable virtual model, and the foldable model can be automatically adapted to a standard model that matches the parameter information based on the parameter information; then, based on the standard model, the image to be browsed is subjected to image processing such as cutting, mapping, rendering, etc., so as to obtain an output image with a folding effect, and the output image is displayed, thereby realizing the display of the image to be browsed with a folding effect.

[0110] Based on the above embodiments, the present application also provides an image processing method, which is applied to a folding screen device. In the related art, when the folding device is in a folded state, such as Figure 5 As shown in FIG. 1 , when the screenshot command is executed, the screen is still a standard rectangular screen size, which is completely the same as that of a non-foldable device. This makes it impossible to intuitively perceive the actual screen state of the foldable device at a given moment from the screenshot file. Figure 6 As shown, when the folding screen device is in a folded state and a screenshot is taken, the folding angle of the folding device is recorded at the same time, and the information related to the folding angle is synthesized in the screenshot file, so that the folding state at that time can be restored directly from the screenshot file.

[0111] refer to Figure 6 , the folding angles of the upper and lower screens of the generated screenshots are completely equivalent to the folding angles of the actual screens.

[0112] Through the image processing method in the embodiment of the present application, the screenshot file can completely restore the folding state of the folding device at that time, and can be clearly distinguished from the screenshot files of ordinary non-folding devices, thereby showing a more realistic screenshot effect.

[0113] In some embodiments, Figures 7A to 7D As shown, based on the image processing method provided in the embodiment of the present application, it is also possible to trigger the rotation of the screenshot through a trigger operation, and even to virtually change the folding angle of the screenshot. Fig. 7A A screenshot is generated based on the folding state of a foldable device. Fig. 7A On the basis of Figure 7Bis the rotated screenshot obtained by the rotation operation; Fig. 7A On the basis of Figure 7C This is a screenshot after the angle is reduced through the angle reduction operation; Fig. 7A On the basis of Fig.7D This is a screenshot after the angle is increased through the angle increase operation.

[0114] Based on the image processing method provided in the embodiment of the present application, when a screenshot operation is performed through a folding device, the folding state of the folding device when the screenshot is taken can be identified, and when a screenshot file is generated, the folding information corresponding to the folding state is added to the screenshot file to enable the screenshot to be displayed in a folded manner, thereby improving the display effect.

[0115] Based on the foregoing embodiments, an embodiment of the present application provides an image processing device, wherein each module included in the device and each unit included in each module can be implemented by a processor in a computer device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a CPU, a microprocessor (Microprocessor Unit, MPU), a digital signal processor (Digital Signal Processing, DSP) or a field programmable gate array (FieldProgrammable Gate Array, FPGA), etc.

[0116] The present application further provides an image processing device, Figure 8 A schematic diagram of the structure of the image processing device provided in the embodiment of the present application is shown in FIG. Figure 8 As shown, the image processing device 800 includes:

[0117] The acquisition module 801 is used to acquire the image to be browsed if the mode is in image browsing mode;

[0118] The parsing module 802 is used to parse the image to be browsed to obtain parameter information contained in the image to be browsed.

[0119] The display module 803 displays the to-be-browsed image with a folding effect in the image browsing mode based on the parameter information.

[0120] In some embodiments, the image processing apparatus 800 further includes:

[0121] A switching module is used to switch from a first display mode to a second display mode based on the parameter information, and the second display mode can respond to the parameter information.

[0122] The display module 803 includes:

[0123] The first display submodule is used to display the image to be browsed with a folding effect based on the second display mode and the parameter information.

[0124] In some embodiments, the display module 803 further includes:

[0125] A determination submodule, configured to determine at least one interactive control based on the parameter information; the at least one interactive control is configured to generate a control instruction for controlling a change in a display effect of the image to be browsed;

[0126] A second display submodule, configured to display the image to be browsed and the at least one interactive control with a first display effect in the second display mode;

[0127] The third display submodule is used to display the image to be browsed with a second display effect in the second display mode if an input operation for the at least one interactive control is obtained, and the second display effect is a folding effect of the image to be browsed.

[0128] In some embodiments, the display module 803 further includes:

[0129] An adapting submodule, used for automatically adapting the foldable virtual model to a standard model based on the parameter information;

[0130] An image processing submodule, used for performing image processing based on the standard model and the image to be browsed to obtain an output image, wherein the output image is a folding effect;

[0131] The display submodule is used to display the output image.

[0132] In some embodiments, the display module 803 further includes:

[0133] The third display submodule is configured to maintain the first display mode if no parameter information contained in the image to be browsed is obtained by parsing the image to be browsed, so that the image to be browsed is displayed with a first display effect.

[0134] It should be noted that the description of the image processing device in the embodiment of the present application is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiment of the device, please refer to the description of the method embodiment of the present application for understanding.

[0135] It should be noted that in the embodiment of the present application, if the above-mentioned system upgrade method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0136] Accordingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the image processing method provided in the above embodiment is implemented.

[0137] An embodiment of the present application provides an electronic device, Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the electronic device 900 includes: a processor 901 , at least one communication bus 902 , a user interface 903 , at least one external communication interface 904 and a memory 905 .

[0138] The communication bus 902 is configured to realize the connection and communication between these components. The user interface 903 includes a display screen, and the external communication interface 904 may include a standard wired interface and a wireless interface. The processor 901 is configured to execute the program of the image processing method stored in the memory to realize the image processing method provided in the above embodiment.

[0139] The description of the above electronic device and storage medium embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the electronic device and storage medium embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.

[0140] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0141] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0142] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0143] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0144] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0145] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.

[0146] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for enabling an AC to execute all or part of the methods described in each embodiment of the present application.

[0147] The aforementioned storage media include: mobile storage devices, ROM, magnetic disks, optical disks, and other media that can store program codes.

[0148] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An image processing method, the method comprising: If in image browsing mode, obtain the image to be browsed; Parsing the image to be browsed to obtain parameter information contained in the image to be browsed; Switching from a first display mode to a second display mode based on the parameter information; the first display mode is to display the image to be browsed in an unfolded state, and the second display mode can respond to the parameter information; Determine at least one interactive control based on the parameter information, wherein the at least one interactive control is used to generate a control instruction for controlling a change in a display effect of the image to be browsed; If an input operation for the at least one interactive control is obtained, the image to be browsed is displayed with a folding effect.

2. According to the method described in claim 1, the image to be browsed is at least one image associated with an album application; and the browsing mode is a display mode in which the album application displays each of the at least one associated image.

3. According to the method described in claim 1, the parameter information contained in the image to be browsed includes at least one of the following: Parameter information of folding method; Parameter information of folding angle; Watermark information for characterizing a photographing device added to the photographed image when the image is photographed; Device identification information that is added to the screenshot image file when taking a screenshot and is used to identify the screenshot device.

4. According to the method of claim 1, the second display mode corresponds to a foldable virtual model, and the displaying the image to be browsed with a folding effect based on the second display mode and the parameter information comprises: The foldable virtual model automatically adapts to a standard model based on the parameter information; Perform image processing based on the standard model and the image to be browsed to obtain an output image, wherein the output image is a folding effect; The output image is displayed.

5. The method according to claim 1, further comprising: If no parameter information contained in the image to be browsed is obtained by parsing the image to be browsed, the first display mode is maintained so that the image to be browsed is displayed in a first display effect; the first display effect is an unfolded display effect.

6. An electronic device, comprising: A display screen, the display screen is used to display output; a memory for storing a computer program executable on the processor; A processor, wherein when the processor is used to execute the executable instructions stored in the memory, the image processing method according to any one of claims 1 to 5 is implemented.

7. An image processing device, comprising: An acquisition module, used for acquiring an image to be browsed if in image browsing mode; A parsing module, used for parsing the image to be browsed to obtain parameter information contained in the image to be browsed; A switching module, used to switch from a first display mode to a second display mode based on the parameter information; the first display mode is to display the image to be browsed in an unfolded state, and the second display mode can respond to the parameter information; A determination module, configured to determine at least one interactive control based on the parameter information, wherein the at least one interactive control is configured to generate a control instruction for controlling a change in a display effect of the image to be browsed; The display module displays the to-be-browsed image with a folding effect based on obtaining an input operation for the at least one interactive control.

8. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, wherein the computer-executable instructions are configured to execute the image processing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Screenshot image generation method, electronic equipment and computer readable storage medium

    CN110727489A