CN111787230A - Image display method and device and electronic equipment - Google Patents

Image display method and device and electronic equipment Download PDF

Info

Publication number
CN111787230A
CN111787230A CN202010759242.4A CN202010759242A CN111787230A CN 111787230 A CN111787230 A CN 111787230A CN 202010759242 A CN202010759242 A CN 202010759242A CN 111787230 A CN111787230 A CN 111787230A
Authority
CN
China
Prior art keywords
straight line
preview image
image
line
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010759242.4A
Other languages
Chinese (zh)
Inventor
邓啟安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202010759242.4A priority Critical patent/CN111787230A/en
Publication of CN111787230A publication Critical patent/CN111787230A/en
Priority to PCT/CN2021/109229 priority patent/WO2022022633A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an image display method and device and electronic equipment, and belongs to the technical field of image processing. The method comprises the following steps: displaying a first preview image on a first screen; determining a target straight line in the first preview image; 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. According to the embodiment of the application, the target straight line in the preview image is parallel or vertical 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.

Description

Image display method and device and electronic equipment
Technical Field
The application belongs to the technical field of image processing, and particularly relates to an image display method and device and electronic equipment.
Background
At present, various electronic devices (e.g., mobile phones) have increasingly powerful photographing functions, and not only can automatically adjust the colors of photos, but also can perform High-level operations such as optical zooming, anti-shaking, and High-Dynamic Range (HDR) rendering, so that users who do not know about photography well can take photos with good colors. However, in the process of implementing the present application, the inventors found that at least the following problems exist in the prior art: the electronic equipment is not placed well or the electronic equipment is difficult to be fixed in the process of shooting by the handheld electronic equipment, so that the shooting angle is not good and the attractiveness of the picture is influenced.
Disclosure of Invention
The embodiment of the application aims to provide an image display method and device and electronic equipment, and the problem that the arrangement (placing or holding) angle of the electronic equipment influences the composition of a picture by a user and further influences the attractiveness of the picture during picture taking can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an image display method, including:
displaying a first preview image on a first screen;
determining a target straight line in the first preview image;
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 a second aspect, an embodiment of the present application provides an image display apparatus, including:
the first display module is used for displaying a first preview image on a first screen;
the determining module is used for determining a target straight line in the first preview image;
the second display module is used for 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 a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
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.
Drawings
Fig. 1 is a schematic flowchart of an image display method in an embodiment of the present application;
FIG. 2 is a schematic diagram of a preview image in the embodiment of the present application;
FIG. 3 is a second exemplary illustration of a preview image in the embodiment of the present application;
FIG. 4 is a third schematic diagram of a preview image in the embodiment of the present application;
FIG. 5 is a fourth illustration of a preview image in the embodiment of the present application;
FIG. 6 is a fifth schematic diagram of a preview image in the embodiment of the present application;
fig. 7 is a schematic diagram of a photographing process in the embodiment of the present application;
FIG. 8 is a schematic view of another photographing process in the embodiment of the present application;
fig. 9 is a schematic structural view of an image display device in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device in an embodiment of the present application;
fig. 11 is a hardware structure diagram of an electronic device implementing an embodiment of the present application.
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, the horizontal 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 a horizontal plane 201 in a first preview image is located may be determined as a target straight line 301. Then, an original image of a subsequent preview image (including a second preview image) is processed based on the target straight line 301, so that the target straight 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 target straight 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 target straight line 301, where the preview image displayed after cutting is rectangular. For example, if the target straight 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 target straight 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 target straight 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 a lock 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 the lock 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 the lock 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 the lock 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 the image display device 900 includes:
a first display module 901, configured to display a first preview image on a first screen;
a determining module 902, configured to determine a target straight line in the first preview image;
a second 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, the second 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 determining module 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 determining module 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, an electronic device 1000 is further provided in this embodiment of the present application, and includes a processor 1001, a memory 1002, and a program or an instruction stored in the memory 1002 and executable on the processor 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.
The electronic device 1100 includes, but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, and the like.
Those skilled in the art will appreciate that the electronic 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 the processor 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.
The display unit 1106 is configured to display a first preview image on a first screen;
a processor 1110 for determining a target straight line in the first preview image;
a display 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, the input unit 1104, which is a camera in this embodiment of the present application, is configured to obtain a first original image;
a processor 1110, configured to crop the first original image to obtain the second preview image;
a display unit 1106 configured to display the second preview image on the first screen.
Optionally, the processor 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, the processor 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;
a display 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, the processor 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, the input Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042, and the graphics 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. The display unit 1106 may include a display panel 11061, and the display 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 a touch panel 11071 and other input devices 11072. A touch panel 11071, also called a touch screen. The touch 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. The memory 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 into processor 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.

Claims (14)

1. An image display method, comprising:
displaying a first preview image on a first screen;
determining a target straight line in the first preview image;
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.
2. Method according to claim 1, characterized in that the first borderline is parallel to a second borderline of the first screen.
3. The method according to claim 1 or 2, wherein 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.
4. The method according to claim 1 or 2, wherein the determining a target straight line in the first preview image specifically comprises:
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.
5. The method according to claim 4, wherein the determining whether to use the first straight line as the target straight line according to the first photographic object associated with the first straight line comprises:
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;
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.
6. The method according to claim 1 or 2, wherein the determining a target straight line in the first preview image specifically comprises:
and determining the target straight line according to the line input by the user in the first preview image.
7. An image display apparatus, comprising:
the first display module is used for displaying a first preview image on a first screen;
the determining module is used for determining a target straight line in the first preview image;
the second display module is used for 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.
8. A device according to claim 7, characterised in that the first borderline is parallel to a second borderline of the first screen.
9. The apparatus of claim 7 or 8, wherein the second display module comprises:
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.
10. The apparatus of claim 7 or 8, wherein the determining module comprises:
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.
11. The apparatus of claim 10, wherein the first determining unit comprises:
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.
12. The apparatus of claim 7 or 8, wherein the determining module comprises:
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.
13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the image display method according to any one of claims 1-6.
14. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the image display method according to any one of claims 1 to 6.
CN202010759242.4A 2020-07-31 2020-07-31 Image display method and device and electronic equipment Pending CN111787230A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010759242.4A CN111787230A (en) 2020-07-31 2020-07-31 Image display method and device and electronic equipment
PCT/CN2021/109229 WO2022022633A1 (en) 2020-07-31 2021-07-29 Image display method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010759242.4A CN111787230A (en) 2020-07-31 2020-07-31 Image display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111787230A true CN111787230A (en) 2020-10-16

Family

ID=72766242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010759242.4A Pending CN111787230A (en) 2020-07-31 2020-07-31 Image display method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN111787230A (en)
WO (1) WO2022022633A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022022633A1 (en) * 2020-07-31 2022-02-03 维沃移动通信有限公司 Image display method and apparatus, and electronic device
CN115037879A (en) * 2022-06-29 2022-09-09 维沃移动通信有限公司 Shooting method and device thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118879A (en) * 2022-06-23 2022-09-27 维沃移动通信有限公司 Image shooting and displaying method and device, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008271056A (en) * 2007-04-18 2008-11-06 Nikon Corp Imaging apparatus
CN105812662A (en) * 2016-03-17 2016-07-27 合肥联宝信息技术有限公司 Image obtaining method
CN108289169A (en) * 2018-01-09 2018-07-17 北京小米移动软件有限公司 Image pickup method, device, electronic equipment and storage medium
CN108401115A (en) * 2018-04-28 2018-08-14 北京心领神绘科技有限公司 A kind of automatic amendment harvester and method of portable Image Acquisition terminal
CN108429880A (en) * 2017-02-14 2018-08-21 佳能株式会社 Picture pick-up device and its control method and storage medium
CN110876025A (en) * 2018-08-29 2020-03-10 阿尔派株式会社 Image display device and image display method
CN111432122A (en) * 2020-03-30 2020-07-17 维沃移动通信有限公司 Image processing method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4640470B2 (en) * 2008-08-18 2011-03-02 ソニー株式会社 Image processing apparatus, image processing method, program, and imaging apparatus
JP5570316B2 (en) * 2010-06-17 2014-08-13 キヤノン株式会社 Imaging apparatus, control method thereof, and program
US8860818B1 (en) * 2013-07-31 2014-10-14 Apple Inc. Method for dynamically calibrating rotation offset in a camera system
CN106341607A (en) * 2016-10-24 2017-01-18 深圳市金立通信设备有限公司 Method and terminal to remind user of adjusting their shooting angle
CN111787230A (en) * 2020-07-31 2020-10-16 维沃移动通信(杭州)有限公司 Image display method and device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008271056A (en) * 2007-04-18 2008-11-06 Nikon Corp Imaging apparatus
CN105812662A (en) * 2016-03-17 2016-07-27 合肥联宝信息技术有限公司 Image obtaining method
CN108429880A (en) * 2017-02-14 2018-08-21 佳能株式会社 Picture pick-up device and its control method and storage medium
CN108289169A (en) * 2018-01-09 2018-07-17 北京小米移动软件有限公司 Image pickup method, device, electronic equipment and storage medium
CN108401115A (en) * 2018-04-28 2018-08-14 北京心领神绘科技有限公司 A kind of automatic amendment harvester and method of portable Image Acquisition terminal
CN110876025A (en) * 2018-08-29 2020-03-10 阿尔派株式会社 Image display device and image display method
CN111432122A (en) * 2020-03-30 2020-07-17 维沃移动通信有限公司 Image processing method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022022633A1 (en) * 2020-07-31 2022-02-03 维沃移动通信有限公司 Image display method and apparatus, and electronic device
CN115037879A (en) * 2022-06-29 2022-09-09 维沃移动通信有限公司 Shooting method and device thereof

Also Published As

Publication number Publication date
WO2022022633A1 (en) 2022-02-03

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN111654635A (en) Shooting parameter adjusting method and device and electronic equipment
CN111787230A (en) Image display method and device and electronic equipment
CN109691080B (en) Image shooting method and device and terminal
US20230370720A1 (en) Focusing method and apparatus, electronic device, and medium
CN112637500B (en) Image processing method and device
CN112532881B (en) Image processing method and device and electronic equipment
CN113329172B (en) Shooting method and device and electronic equipment
CN111083371A (en) Shooting method and electronic equipment
US9445073B2 (en) Image processing methods and systems in accordance with depth information
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113194256B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112702531B (en) Shooting method and device and electronic equipment
CN112419218A (en) Image processing method and device and electronic equipment
CN112367465A (en) Image output method and device and electronic equipment
CN108810326A (en) A kind of photographic method, device and mobile terminal
CN111654623B (en) Photographing method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN112637497B (en) Shooting control method and device and electronic equipment
CN113794831A (en) Video shooting method and device, electronic equipment and medium
CN112637491A (en) Photographing method and photographing apparatus
CN112446848A (en) Image processing method and device and electronic equipment
CN112672057A (en) Shooting method and device
CN112399092A (en) Shooting method and device and electronic equipment
CN112312022B (en) Image processing method, image processing apparatus, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201016