Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The image display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a schematic flow chart of an image display method according to an embodiment of the present application, including:
step 101: displaying a first preview image on a first screen;
step 102: determining a target straight line in the first preview image;
wherein the target straight line is a line of the image content itself in the preview image. For example, when shooting a sea, the target straight line in the preview image may be a horizontal plane. For another example, when a house is photographed, the target straight line in the preview image may be a straight line extending in the height direction at one corner of the house. The corresponding line of the target straight line in the physical world can be a vertical straight line or a horizontal straight line.
Step 103: displaying a second preview image on the first screen; wherein the target straight line in the second preview image is parallel or perpendicular to the first boundary line of the second preview image.
In this embodiment, it may be specifically that the target straight line in the second preview image is parallel to or perpendicular to the first boundary line through internal processing, and the target straight line in the second preview image is not parallel to or perpendicular to the first boundary line through rotation of the first screen by the user.
The second preview image is a preview image displayed after the first preview image. Specifically, the second preview image is a preview image displayed by an original image acquired by the camera after acquiring the original image of the first preview image.
The preview image may be a rectangle, and the first boundary line may be one or two of two parallel boundary lines of the second preview image. That is, the target straight line in the second preview image is parallel to two parallel boundary lines in the second preview image and perpendicular to the other two parallel boundary lines in the second preview image.
In addition, the preview image may be an irregular shape in which at least one boundary line (i.e., the first boundary line) is a straight line. For example, the boundary lines of the preview image may be curved lines other than the first boundary line, or the included angle between adjacent boundary lines may not be a right angle. For example, when the user selects a special photographing template, the boundary line of the preview image may be changed so that the preview image is not a regular rectangle.
After the camera captures the original image of the first preview image, the first screen may remain stationary or may be deflected or moved. Under the condition that the first screen deflects or moves after the camera collects the first preview image, the target straight line still exists in the original image of the collected second preview image.
In the embodiment of the application, the target straight line in the preview image is parallel to or perpendicular to a boundary line of the preview image through processing, so that a user can be helped to adjust the composition of the preview image, and the attractiveness of a picture obtained by shooting based on the preview image can be improved. The method and the device can be suitable for shooting the scene of the composition of the user due to the fact that the placement (placing or holding) position of the electronic equipment is not appropriate when the preview is shot.
The above-described image display method is exemplified below.
Referring to fig. 2, when a user uses an electronic device (e.g., a mobile phone) to take a picture of a landscape, the electronic device is not horizontally placed, so that the taken picture is inclined, and therefore, thehorizontal plane 201 in the picture is also inclined.
Optionally, the displaying the second preview image on the first screen specifically includes:
acquiring a first original image through a camera;
cutting the first original image to obtain a second preview image;
displaying the second preview image on the first screen.
The original image is not displayed, and after the original image is processed, a preview image is displayed based on the processed original image.
In the embodiment of the present application, when a camera is turned on to perform shooting preview, please refer to fig. 3, a straight line where ahorizontal plane 201 in a first preview image is located may be determined as a targetstraight line 301. Then, an original image of a subsequent preview image (including a second preview image) is processed based on the targetstraight line 301, so that the targetstraight line 301 in the subsequent preview image is parallel to or perpendicular to the first boundary line of the preview image, and a display diagram of the subsequent preview image is shown in fig. 4. Wherein the processing may include a cropping process. That is, the original image of the subsequent preview image may be subjected to a cropping process to obtain a processed original image, and the processed original image may be displayed as a preview image. Specifically, two sides of the original image of the subsequent preview image may be cut according to a line horizontal to the targetstraight line 301, and the other two sides of the original image of the preview image may be cut according to a line perpendicular to the targetstraight line 301, where the preview image displayed after cutting is rectangular. For example, if the targetstraight line 301 is a horizontal line, the top and bottom sides of the original image of the preview image are clipped according to a line horizontal to the targetstraight line 301, and the left and right sides of the original image of the preview image are clipped according to a line perpendicular to the targetstraight line 301. In the case where the original image is rectangular, the preview image displayed after the cropping processing may be rectangular, and the aspect ratio of the preview image after the cropping and the aspect ratio of the original image before the cropping may be kept the same. Further, the aspect ratio of the second preview image displayed after the original image is cropped may be kept consistent with the aspect ratio of the first preview image. The display size of the second preview image may be the same as the display size of the first preview image.
Further optionally, the first borderline is parallel to a second borderline of the first screen.
Specifically, in this embodiment of the application, an original image of a second preview image displayed after the first preview image may be clipped based on the target straight line, and then a display angle may be adjusted so that a first boundary line of the second preview image displayed finally is parallel to a second boundary line of the first screen. That is, the target straight line in the second preview image is not only parallel or perpendicular to the first boundary line of the second preview image, but also parallel to one of the boundary lines of the display screen.
Wherein the processing includes clipping processing and display angle adjustment processing. And adjusting the display angle, namely rotating the clipped original image.
Specifically, the preview image is generally rectangular, and the display angle is adjusted so that the target straight line in the second preview image is parallel to two parallel sides of the display screen and the other two parallel sides of the display screen are perpendicular to each other.
For example, referring to fig. 5 and 6 for the second preview image shown in fig. 4, the display angle may be adjusted such that the target straight line in the second preview image is parallel or perpendicular to two parallel sides of the display screen.
If an included angle exists between the target straight line in the original image of the second preview image and the boundary line of the preview image, the target straight line in the second preview image needs to be cut so as to be parallel to two parallel edges of the second preview image and to be perpendicular to the other two parallel edges of the second preview image. If the display angle of the clipped original image is not adjusted, as shown in fig. 4, an included angle exists between the boundary line of the displayed second preview image and the boundary line of the display screen, which affects the viewing of the user.
In the embodiment of the application, the target straight line in the second preview image can be parallel or perpendicular to two parallel edges of the display screen (namely, the first screen) by adjusting the display angle, so that the upper edge and the lower edge of the second preview image are parallel to the upper edge and the lower edge of the display screen, and the left edge and the right edge of the second preview image are parallel to the left edge and the right edge of the display screen, thereby conforming to the preview habit of a user, and facilitating the user to watch the preview image to better complete composition.
In some optional specific embodiments, the determining a target straight line in the first preview image specifically includes:
identifying a first straight line in the first preview image;
determining whether to take the first straight line as the target straight line according to a first photographic object associated with the first straight line.
In this embodiment of the application, a straight line in the first preview image (i.e., a first straight line) may be obtained through an image processing technique. Specifically, the straight line in the first preview image may be identified by at least one of RGB (R: red; G: green, green; B: blue) values, gray values, contrast, and the like of the pixel points in the first preview image. For example, when a straight line in the preview image is identified by using RGB values of pixels in the preview image, the RGB values on the straight line are substantially the same or close to each other, and the difference between the RGB values of the pixel points on at least one side of the straight line and the RGB values of the pixel points on the straight line is large.
In the embodiment of the present application, please refer to fig. 3, first, a straight line (i.e., a first straight line) in the first preview image is obtained, then scene recognition is performed, and whether the obtained straight line can be used as the target straight line is determined. Specifically, an Artificial Intelligence (AI) may be used to identify a photographic subject in the preview image. A photographic subject in a certain area around the straight line in the preview image may be taken as a photographic subject associated with the straight line. For example, a frame line in a certain area around the straight line may be recognized, and then the photographic subject may be recognized according to the recognized frame line.
The following illustrates that, after a photographic subject associated with the straight line is identified in the first preview image, whether the straight line is used as the target straight line is determined according to the photographic subject. In example 1, it is recognized that the shooting object in the preview image is a sea, and the straight line is a line connecting the sea and the sky and/or the mountain, the straight line can be used as a target straight line, so that the line connecting the sea and the sky and/or the mountain in the subsequent preview image is parallel to two parallel sides of the preview image, but not parallel to or perpendicular to each side of the preview image, that is, the preview image is positive rather than oblique. Example 2, if it is recognized that the photographic subject in the preview image is a road, and the straight line is one side of the road, the straight line may be used as the target straight line, so that the side of the road in the subsequent preview image may be parallel to two parallel sides of the preview image, but not parallel to or perpendicular to each side of the preview image, that is, the preview image is positive, but not oblique. Example 3, it is recognized that the photographic subject in the preview image is a house, and the straight line is a side extending in a height direction of a corner of the house, and the straight line can be used as a target straight line, so that a side extending in the height direction of the house in a subsequent preview image can be parallel to two parallel sides of the preview image, but not parallel to or perpendicular to each side of the preview image, that is, the preview image is positive, but not oblique.
In the embodiment of the application, the target straight line is screened out from the straight lines in the first preview image according to the shooting object, so that the processing of the original image of the subsequent preview image is more consistent with the current shooting scene, the user is helped to shoot the composition, and the attractiveness of the photo shot based on the processed preview image is improved.
Further, it may be determined whether the straight line is an actual horizontal line or a vertical line according to the photographic subject, that is, it is determined whether the straight line in the preview image corresponds to the straight line in the physical world and is a horizontal line or a vertical line according to the photographic subject, and if the straight line is the actual horizontal line or the vertical line, the straight line may be used as the target straight line, so that it may be ensured that the photographic subject in the preview image is positive and not inclined.
Further optionally, the determining, according to the first photographic object associated with the first straight line, whether to use the first straight line as the target straight line specifically includes:
determining whether the first straight line is a selectable straight line or not according to a first shooting object associated with the first straight line;
displaying prompt information under the condition that the straight line is the optional straight line; the prompt information is used for prompting a user whether to use the straight line as the target straight line;
receiving a first input of the prompt message from a user;
in response to the first input, the first line is taken as the target line.
For example, after acquiring the straight line in the preview image and identifying the shooting object associated with the straight line in the preview image, the electronic device further determines whether the straight line can be used as the target straight line according to the shooting object. If it is determined that the straight line can be used as the target straight line, please refer to fig. 3, mark the straight line with a bold black line, and display alock button 302 as a prompt message to prompt the user whether to use the straight line as the target straight line. After the user clicks thelock button 302, the straight line is locked, specifically, the image content corresponding to the straight line is locked. Subsequently, if the preview image changes due to rotation and rotation of the electronic device, the image content corresponding to the linear line is identified and tracked, so that the original image acquired by the camera is processed in real time based on the image content corresponding to the linear line, please refer to fig. 4, and thus the displayed preview image keeps two parallel edges parallel to the image corresponding to the linear line. In addition, referring to fig. 5 and 6, after the user clicks thelock button 302 to lock the straight line, the electronic device automatically performs a cropping process on the original image of the subsequent preview image based on the target straight line and adjusts the display angle, so that the target straight line in the finally displayed preview image is parallel to or perpendicular to two parallel edges of the display screen. Similarly, even if the electronic device rotates and rotates, the target straight line of the finally displayed preview image is always parallel to two parallel edges of the display screen.
In the embodiment of the application, when the identified straight line is determined to be the target straight line according to the shooting object, the straight line is marked, prompt information is displayed, and finally the target straight line is determined manually by a user, so that the user can select the target straight line according to the personalized requirements of the user.
Of course, there are many other ways of marking the straight line, besides the way of displaying a bold black line at the position of the straight line, such as displaying a bold red line at the position of the straight line, which is not detailed here. Similarly, the prompt message may be in other forms besides the form of thelock button 302, such as a prompt box, and an option of whether to use the straight line as the target straight line is displayed in the prompt box.
In another optional specific embodiment, when it is determined that the straight line can be taken as the target straight line according to the photographic subject, the straight line is automatically determined to be the target straight line.
Therefore, two options of automatically locking the target straight line and manually locking the target straight line can be provided for a user to set so as to meet different shooting requirements of the user.
In other optional embodiments, after the straight line in the preview image is identified, it may not be necessary to identify a shot object associated with the straight line in the preview image, and determine whether the straight line is an optional straight line of the target straight line according to the shot object, but directly mark the straight line, and display prompt information, where the prompt information is used to prompt a user whether to use the straight line as the target straight line;
receiving a first input of the prompt message from a user;
in response to the first input, the straight line is taken as the target straight line.
In other optional specific embodiments, the determining a target straight line in the first preview image specifically includes:
and determining the target straight line according to the line input by the user in the first preview image.
Specifically, the determining the target straight line according to the line input by the user in the first preview image includes:
receiving a line input by a user on a display screen (namely a first screen), determining a corresponding straight line in the first preview image of the line input by the user, and taking the corresponding straight line in the first preview image as the target straight line. Of course, the straight line corresponding to the line input by the user in the first preview image may be the straight line of the photographic subject in the first preview image, or may not be the straight line of the photographic subject in the first preview image. For the case that the straight line corresponding to the line input by the user in the first preview image is not the straight line of the shooting object in the first preview image, the pixel points covered by the line input by the user in the first preview image can be obtained, certainly, the pixel points in a certain area near the line input by the user can also be obtained at the same time, and the straight line formed by the pixel points is used as the target straight line. If the content of the preview image moves due to the shaking and rotation of the electronic equipment, the characteristic values of the pixel points need to be tracked, and the linear line formed by the tracked pixel points is used as the target linear line.
In addition, if the line input by the user in the first preview image is not a straight line but a line having a certain undulation, it is necessary to identify a straight line near the line input by the user in the first preview image, and to take a straight line having a position and/or a direction closest to the line input by the user among the identified straight lines as the target straight line.
In the embodiment of the application, when the electronic equipment cannot recognize the straight line or a user wants to manually set the target straight line, the user can determine the target straight line by manually inputting the line in the preview image, and then the electronic equipment automatically processes the original image of the subsequent preview image according to the determined target straight line, so that the subsequent preview image has two parallel edges parallel to the target straight line, thereby displaying the preview image according to the needs of the user and helping the user to compose the picture.
The image display method provided by the embodiment of the application can be suitable for not only shooting scenes of scenery, but also shooting regular geometric objects such as cubes and the like, and the preview image is processed based on the target linear line by identifying the lines of the geometric objects and then determining the target linear line, so that the shot picture of the geometric objects is positive.
Referring to fig. 7, the following illustrates a photo taking process based on the above image display method:
step 701: and starting a camera application program, entering a photographing mode, and displaying a preview image.
Step 702: the straight lines of the preview image are identified.
Step 703: and determining the identified straight line as a horizontal line in the physical world.
Step 704: horizontal lines are marked and a lock button is displayed.
Step 705: and receiving click input of a user to the locking button, and completing the locking of the horizontal line, namely confirming that the horizontal line is a target straight line.
Step 706: after the horizontal line is locked, the original image of the subsequent preview image is subjected to a cropping process based on a line parallel to the horizontal line and a vertical line, and the upper and lower sides of the preview image on which the original image has been cropped are parallel to the horizontal line, that is, the preview image (the upper and lower sides thereof) is kept horizontal (specifically, horizontal to the horizontal line in the physical world).
Step 707: the user rotates the electronic device and the subsequent preview images are also kept horizontal all the time.
Step 708: receiving a photographing input of a user, such as clicking a photographing button;
step 709: in response to a user's photographing input, photographing of a picture is completed, and a photographing object within the photographed picture is positive.
When a user takes a picture, the electronic equipment tilts, the shot picture can tilt, the horizontal line in the preview image is locked, so that when the electronic equipment tilts or rotates, the original image of the camera preview image is cut, the bottom edge of the preview image is parallel to the horizontal line, the shot picture is more attractive, the shooting level and the attractiveness of the picture of the user are improved, and the operation difficulty of the user is reduced.
Referring to fig. 8, the following describes an example of a photo taking process based on the image display method:
step 801: and starting a camera application program, entering a photographing mode, and displaying a preview image.
Step 802: the straight lines of the preview image are identified.
Step 803: and determining the identified straight line as a horizontal line in the physical world.
Step 804: horizontal lines are marked and a lock button is displayed.
Step 805: and receiving click input of a user to the locking button, and completing the locking of the horizontal line, namely confirming that the horizontal line is a target straight line.
Step 806: after the horizontal line is locked, the original image of the subsequent preview image is subjected to a cropping process based on a line parallel to the horizontal line and a line perpendicular to the horizontal line, the upper and lower sides of the preview image on which the cropping has been performed on the original image are parallel to the horizontal line in the preview image, that is, the preview image (the upper and lower sides thereof) is kept horizontal, and the display angle of the cropped original image is adjusted so that the upper and lower sides of the subsequently displayed preview image are parallel to the horizontal line in the preview image and to the upper and lower sides of the display screen.
Step 807: when the user rotates the electronic equipment, the upper side and the lower side of the preview image are always kept parallel to the horizontal line in the preview image and are also kept horizontal to the upper side and the lower side of the display screen.
Step 808: receiving a photographing input of a user, such as clicking a photographing button;
step 809: in response to a user's photographing input, photographing of a picture is completed, and a photographing object within the photographed picture is positive.
When a user takes a picture, the electronic equipment tilts, and the taken picture can tilt, and according to the embodiment of the application, the horizontal line in the preview image is locked, so that when the electronic equipment tilts or rotates, the original image of the camera preview image is cut and rotated (namely, the display angle is adjusted), and the bottom edge of the displayed preview image is ensured to be parallel to the horizontal line in the preview image and to be parallel to the bottom edge of the display screen of the electronic equipment, so that the taken picture is more attractive, the shooting level and the attractiveness of the picture of the user are improved, and the operation difficulty of the user is reduced.
It should be noted that, in the image display method provided in the embodiment of the present application, the execution subject may be an image display apparatus, or a control module in the image display apparatus for executing the image display method. The embodiment of the present application describes an image display device provided in the embodiment of the present application, by taking an example in which the image display device executes an image display method.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an image display device according to an embodiment of the present application, where theimage display device 900 includes:
afirst display module 901, configured to display a first preview image on a first screen;
a determiningmodule 902, configured to determine a target straight line in the first preview image;
asecond display module 903, configured to display a second preview image on the first screen; wherein the target straight line in the second preview image is parallel or perpendicular to the first boundary line of the second preview image.
Optionally, the first boundary line is parallel to a second boundary line of the first screen.
Optionally, thesecond display module 903 includes:
the acquisition unit is used for acquiring a first original image through the camera;
the cutting unit is used for cutting the first original image to obtain the second preview image;
a display unit configured to display the second preview image on the first screen.
Optionally, the determiningmodule 902 includes:
the identification unit is used for identifying a first straight line in the first preview image;
a first determination unit configured to determine whether to take the first straight line as the target straight line, based on a first photographic subject associated with the first straight line.
Optionally, the first determining unit includes:
a first determining subunit, configured to determine, according to a first photographic subject associated with the first straight line, whether the first straight line is a selectable straight line;
the prompting subunit is used for displaying prompting information under the condition that the straight line is a selectable straight line;
the receiving subunit is used for receiving a first input of the prompt message from a user;
a second determining subunit, configured to, in response to the first input, take the first straight line as the target straight line.
Optionally, the determiningmodule 902 includes:
and the second determining unit is used for determining the target straight line according to the line input by the user in the first preview image.
In the embodiment of the application, the target straight line in the preview image is parallel to or perpendicular to a boundary line of the preview image through processing, so that a user can be helped to adjust the composition of the preview image, and the attractiveness of a picture obtained by shooting based on the preview image can be improved. The method and the device can be suitable for shooting the scene of the composition of the user due to the fact that the placement (placing or holding) position of the electronic equipment is not appropriate when the preview is shot.
The image display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.
The image display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The image display device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 8, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 10, anelectronic device 1000 is further provided in this embodiment of the present application, and includes aprocessor 1001, amemory 1002, and a program or an instruction stored in thememory 1002 and executable on theprocessor 1001, where the program or the instruction is executed by the processor M01 to implement each process of the above-mentioned embodiment of the image display method, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Theelectronic device 1100 includes, but is not limited to: aradio frequency unit 1101, anetwork module 1102, anaudio output unit 1103, aninput unit 1104, asensor 1105, adisplay unit 1106, a user input unit 1107, aninterface unit 1108, amemory 1109, aprocessor 1110, and the like.
Those skilled in the art will appreciate that theelectronic device 1100 may further include a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to theprocessor 1110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
Thedisplay unit 1106 is configured to display a first preview image on a first screen;
aprocessor 1110 for determining a target straight line in the first preview image;
adisplay unit 1106, configured to display a second preview image on the first screen; wherein the target straight line in the second preview image is parallel or perpendicular to the first boundary line of the second preview image.
In the embodiment of the application, the target straight line in the preview image is parallel to or perpendicular to a boundary line of the preview image through processing, so that a user can be helped to adjust the composition of the preview image, and the attractiveness of a picture obtained by shooting based on the preview image can be improved. The method and the device can be suitable for shooting the scene of the composition of the user due to the fact that the placement (placing or holding) position of the electronic equipment is not appropriate when the preview is shot.
Optionally, the first boundary line is parallel to a second boundary line of the first screen.
In the embodiment of the application, the target straight line in the second preview image can be parallel or perpendicular to the two parallel edges of the display screen by adjusting the display angle, so that the upper edge and the lower edge of the second preview image are parallel to the upper edge and the lower edge of the display screen, and the left edge and the right edge of the second preview image are parallel to the left edge and the right edge of the display screen, thereby conforming to the preview habit of a user and facilitating the user to watch the preview image to better complete composition.
Optionally, theinput unit 1104, which is a camera in this embodiment of the present application, is configured to obtain a first original image;
aprocessor 1110, configured to crop the first original image to obtain the second preview image;
adisplay unit 1106 configured to display the second preview image on the first screen.
Optionally, theprocessor 1110 is further configured to identify a first straight line in the first preview image; determining whether to take the first straight line as the target straight line according to a first photographic object associated with the first straight line.
In the embodiment of the application, the target straight line is screened out from the straight lines in the first preview image according to the shooting object, so that the processing of the original image of the subsequent preview image is more consistent with the current shooting scene, the user is helped to shoot the composition, and the attractiveness of the photo shot based on the processed preview image is improved.
Optionally, theprocessor 1110 is further configured to determine whether the first straight line is an optional straight line according to a first photographic object associated with the first straight line;
adisplay unit 1106, configured to display a prompt message when the straight line is a selectable straight line;
a user input unit 1107, configured to receive a first input of the prompt information by a user;
processor 1110 is further configured to treat the first line as the target line in response to the first input.
In the embodiment of the application, when the identified straight line is determined to be the target straight line according to the shooting object, prompt information is displayed, and finally the user manually determines the target straight line, so that the user can select the target straight line according to the personalized requirements of the user.
Optionally, theprocessor 1110 is further configured to determine the target straight line according to a line input by a user in the first preview image.
In the embodiment of the application, when the electronic equipment cannot recognize the straight line or a user wants to manually set the target straight line, the user can determine the target straight line by manually inputting the line in the preview image, and then the electronic equipment automatically processes the original image of the subsequent preview image according to the determined target straight line, so that the subsequent preview image has two parallel edges parallel to the target straight line, thereby displaying the preview image according to the needs of the user and helping the user to compose the picture.
It should be understood that in the embodiment of the present application, theinput Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and amicrophone 11042, and thegraphics processing Unit 11041 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. Thedisplay unit 1106 may include adisplay panel 11061, and thedisplay panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes atouch panel 11071 andother input devices 11072. Atouch panel 11071, also called a touch screen. Thetouch panel 11071 may include two portions of a touch detection device and a touch controller.Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Thememory 1109 may be used for storing software programs and various data including, but not limited to, application programs and an operating system.Processor 1110 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated intoprocessor 1110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned embodiment of the image display method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above image display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.