CN106973228B - Shooting method and electronic equipment - Google Patents

Shooting method and electronic equipment Download PDF

Info

Publication number
CN106973228B
CN106973228B CN201710210474.2A CN201710210474A CN106973228B CN 106973228 B CN106973228 B CN 106973228B CN 201710210474 A CN201710210474 A CN 201710210474A CN 106973228 B CN106973228 B CN 106973228B
Authority
CN
China
Prior art keywords
image
multimedia file
frame
electronic equipment
screen state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710210474.2A
Other languages
Chinese (zh)
Other versions
CN106973228A (en
Inventor
张亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710210474.2A priority Critical patent/CN106973228B/en
Publication of CN106973228A publication Critical patent/CN106973228A/en
Application granted granted Critical
Publication of CN106973228B publication Critical patent/CN106973228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Abstract

The application discloses a shooting method and electronic equipment, wherein after a shooting instruction for indicating to shoot at least one frame of image is obtained, a multimedia file is generated in response to the instruction, and a browsing object of the multimedia file is displayed based on a horizontal screen or vertical screen state of the electronic equipment, wherein the browsing object is a partial image of one frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular. In the scheme of the application, for the multimedia file obtained by responding to the shooting instruction, no matter the electronic equipment is in the horizontal screen state or the vertical screen state, the whole object of the browsed object of the multimedia file can be completely filled in the display screen of the electronic equipment, so that a user does not need to adjust the screen state of the electronic equipment in order to obtain a better display effect, and convenience is provided for the user.

Description

Shooting method and electronic equipment
Technical Field
The invention belongs to the technical field of shooting processing, and particularly relates to a shooting method and electronic equipment.
Background
The direction of an image obtained by shooting based on a shooting function of an existing electronic device such as a mobile phone and a tablet personal computer is limited by a screen state of the electronic device, wherein in a vertical screen state, the electronic device can only shoot a vertical image, as shown in fig. 1(a), and in a horizontal screen state, the electronic device can only shoot a horizontal image, as shown in fig. 1 (b).
Correspondingly, when browsing an image, the electronic device can better display the image only by keeping the horizontal/vertical direction of the screen of the electronic device consistent with the image direction, for example, for the horizontal image shown in fig. 1(b), the horizontal image can be completely filled in the display screen of the electronic device only when the electronic device keeps the horizontal screen, and when the electronic device is the vertical screen, the display effect shown in fig. 1(c) can be presented, and the displayed image is small, so that the whole image cannot be completely filled in the display screen of the electronic device.
Therefore, when people take pictures or browse images, the screen state of the electronic equipment is often required to be adjusted based on actual requirements, so that inconvenience is brought to people to take pictures or browse images.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a shooting method and an electronic device, which are used for solving the problem of inconvenience in use due to the need of adjusting the state of the electronic device by a user in the prior art.
Therefore, the invention discloses the following technical scheme:
a method of photographing, the method comprising:
obtaining a shooting instruction, wherein the shooting instruction is used for instructing to shoot at least one frame of image;
responding to the shooting instruction to generate a multimedia file;
displaying a browsing object of the multimedia file based on a horizontal screen or vertical screen state of the electronic equipment, wherein the browsing object is a partial image of a frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular.
Preferably, in the method, the displaying a browsing object of the multimedia file based on a landscape screen or a portrait screen of the electronic device, where the browsing object is a partial image of a frame of image in the multimedia file includes:
if the electronic equipment is in a vertical screen state, the browsing object takes the image content of a first partial area of a frame of image in the multimedia file as display content;
if the electronic equipment is in a horizontal screen state, the browsing object takes the image content of the second partial area of the frame image in the multimedia file as display content;
the first portion and the second portion have the same content and also have different content.
Preferably, in the method, the displaying a browsing object of the multimedia file based on a landscape screen or a portrait screen of the electronic device, where the browsing object is a partial image of a frame of image in the multimedia file includes:
if the electronic equipment is in a vertical screen state, the browsing object takes the image content of all areas of one frame of image in the multimedia file as display content;
and if the electronic equipment is in a landscape state, the browsing object takes the image content of the whole area of another frame image in the multimedia file as the display content, wherein the another frame image is an image shot by a photosensitive unit of the electronic equipment rotating by 90 degrees after the image of the one frame is shot.
The above method, preferably, further comprises:
obtaining induction parameters through a sensor of the electronic equipment;
and controlling the display direction of the browsing object based on the sensing parameters, so that no matter the electronic equipment is in a horizontal screen state or a vertical screen state, the display direction of the whole browsing object when the display screen of the electronic equipment is completely filled is consistent with the positive direction of the display screen for the user to learn.
Preferably, the multimedia file is a continuous multi-frame image, and the method further includes:
obtaining a playing instruction;
and responding to the playing instruction, and continuously outputting the partial image of the partial area of each frame of image in the multimedia file based on the state that the electronic equipment is in the landscape screen or the portrait screen, wherein the partial area of each frame of image corresponds to the partial area of each frame of image.
An electronic device, the electronic device comprising:
a camera including a light sensing unit;
a display screen;
a processor configured to perform:
obtaining a shooting instruction, wherein the shooting instruction is used for instructing to shoot at least one frame of image;
responding to the shooting instruction to generate a multimedia file;
controlling the display screen to display a browsing object of the multimedia file based on the horizontal screen or vertical screen state of the electronic equipment, wherein the browsing object is a partial image of a frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular.
Preferably, in the electronic device, the photosensitive unit is cross-shaped or square, the processor controls the display screen to display a browsing object of the multimedia file based on a horizontal screen state or a vertical screen state of the electronic device, where the browsing object is a partial image of a frame of image in the multimedia file, and the method further includes:
the processor obtains that the electronic equipment is in a vertical screen state, and the browsing object takes the image content of a first partial area of one frame of image in the multimedia file as display content;
the processor obtains that the electronic equipment is in a horizontal screen state, and the browsing object takes the image content of a second partial area of the frame of image in the multimedia file as display content;
the first portion and the second portion have the same content and also have different content.
Preferably, in the electronic device, the processor controls the display screen to display a browsing object of the multimedia file based on a landscape screen state or a portrait screen state of the electronic device, where the browsing object is a partial image of a frame of image in the multimedia file, and the method includes:
the processor obtains that the electronic equipment is in a vertical screen state, and the browsing object takes the image content of all areas of one frame of image in the multimedia file as display content;
and the processor obtains the image content of the whole area of another frame image in the multimedia file as the display content when the electronic equipment is in the landscape state, wherein the another frame image is an image shot by a photosensitive unit of the electronic equipment rotating by 90 degrees after the image of the one frame is shot.
The electronic device is preferably, the processor is further configured to:
obtaining induction parameters through a sensor of the electronic equipment;
and controlling the display direction of the browsing object based on the sensing parameters, so that the display direction of the browsing object when the whole object of the browsing object completely fills the display screen of the electronic equipment is consistent with the positive direction of the display screen perceived by the user no matter the electronic equipment is in a horizontal screen state or a vertical screen state.
Preferably, in the electronic device, the multimedia file is a continuous multi-frame image, and the processor is further configured to:
obtaining a playing instruction;
and responding to the playing instruction, and controlling the display screen to continuously output the partial image of the partial area of each frame of image in the multimedia file based on the state that the electronic equipment is in the landscape screen or the portrait screen, wherein the partial area of each frame of image corresponds to the partial area of each frame of image.
According to the scheme, after the shooting instruction for indicating to shoot at least one frame of image is obtained, the multimedia file is generated in response to the shooting instruction, and the browsing object of the multimedia file is displayed based on the horizontal screen or vertical screen state of the electronic equipment, wherein the browsing object is a partial image of one frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular. In the scheme of the application, for the multimedia file obtained by responding to the shooting instruction, no matter the electronic equipment is in the horizontal screen state or the vertical screen state, the whole object of the browsed object of the multimedia file can be completely filled in the display screen of the electronic equipment, so that a user does not need to adjust the screen state of the electronic equipment in order to obtain a better display effect, and convenience is provided for the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1(a) is a schematic diagram of an electronic device capturing a portrait image in a portrait screen state;
FIG. 1(b) is a schematic diagram of an electronic device capturing a landscape image in a landscape screen state;
FIG. 1(c) is a schematic diagram of an electronic device displaying a landscape image in a portrait screen state;
fig. 2 is a flowchart of a first embodiment of a shooting method provided in the present application;
fig. 3 is a flowchart of a second embodiment of a shooting method provided in the present application;
FIG. 4 is a schematic diagram of a cross-shaped photosensitive element provided in the second embodiment of the present application;
FIG. 5 is a schematic diagram of a square photosensitive element provided in the second embodiment of the present application;
FIG. 6 is a schematic view of a plurality of cross-shaped photosensitive elements engaged with each other in a photosensitive material provided in the second embodiment of the present application;
fig. 7 is a flowchart of a third embodiment of a shooting method provided in the present application;
fig. 8 is a flowchart of a fourth embodiment of a shooting method provided in the present application;
fig. 9 is a schematic diagram illustrating that, when the electronic device is upright and the top of the screen faces the ground, the top of the display content is aligned with the bottom of the screen according to the fourth embodiment of the present application;
fig. 10 is a flowchart of a fifth embodiment of a shooting method provided in the present application;
fig. 11 is a schematic structural diagram of a sixth embodiment of an electronic device provided in the present application;
fig. 12 is a schematic structural diagram of an eighth embodiment of an electronic device provided in the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment nine provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The first embodiment of the present application provides a shooting method, which may be applied to, but not limited to, an electronic device such as a smartphone and a tablet computer, and with reference to a flowchart of a first embodiment of the shooting method shown in fig. 2, the shooting method may include the following steps:
step 201, obtaining a shooting instruction, where the shooting instruction is used to instruct to shoot at least one frame of image.
The shooting instruction may be an instruction triggered by a user performing a corresponding operation on the electronic device, for example, the shooting instruction may be an instruction triggered by the user operating a virtual shutter button on a screen of the electronic device or operating a physical shutter button on the side of the electronic device. The shooting instruction is used for instructing the electronic device to shoot at least one frame of image, for example, the electronic device can be instructed to shoot one picture, continuously shoot a plurality of pictures, shoot live photo, or shoot video.
Step 202, responding to the shooting instruction, and generating a multimedia file.
And after the electronic equipment obtains the shooting instruction, shooting in response to the shooting instruction, and generating a multimedia file. Based on the specific shooting type indicated by the shooting instruction, such as whether to instruct to take one picture or multiple pictures, or whether to instruct to take live photo, video, etc., the multimedia file may be a picture or multiple pictures, a live photo, or video, etc. accordingly.
Step 203, displaying a browsing object of the multimedia file based on a horizontal screen or vertical screen state of the electronic device, wherein the browsing object is a partial image of a frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular.
After responding to the shooting instruction and generating the multimedia file corresponding to the shooting instruction, the step displays the browsing object of the multimedia file based on the screen state of the electronic equipment, such as the state of a horizontal screen or a vertical screen.
If the multimedia file comprises a frame of image, if the multimedia file is a photo, the browsing object can be a partial image of the photo; if the multimedia file includes multiple frames of images, such as multiple photos, live photo, or video, the browsing object may be a partial image of a frame of image selected from the multiple frames of images according to a certain image selection policy, and for example, the browsing object may be a partial image of an earliest-imaging frame of image selected from the multiple photos, live photo, or video, or a partial image of a best-imaging frame of image.
Moreover, when the browsing object of the multimedia file is displayed based on the horizontal screen state or the vertical screen state of the electronic device, the whole browsing object can completely fill the display screen of the electronic device no matter the electronic device is in the horizontal screen state or the vertical screen state, so that the browsing object of the multimedia file can not only display a smaller image in a certain screen state. And furthermore, the user does not need to adjust the screen state for obtaining better display effect. Compared with the prior art, when the electronic equipment such as a mobile phone displays the image of the multimedia file, the display screen can be completely filled only in a certain screen state, and the display screen cannot be completely filled in another screen state, so that the displayed image is small.
Here, the shape of the display screen of the electronic device is rectangular. In addition, in the present application, the browsing object may be a partial image of one frame of image in the multimedia file, and the browsing object may be a partial image or an entire image of one frame of image in the multimedia file.
According to the scheme, after the shooting instruction for indicating to shoot at least one frame of image is obtained, the multimedia file is generated in response to the shooting instruction, and the browsing object of the multimedia file is displayed based on the horizontal screen or vertical screen state of the electronic equipment, wherein the browsing object is a partial image of one frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular. In the scheme of the application, for the multimedia file obtained by responding to the shooting instruction, no matter the electronic equipment is in the horizontal screen state or the vertical screen state, the whole object of the browsed object of the multimedia file can be completely filled in the display screen of the electronic equipment, so that a user does not need to adjust the screen state of the electronic equipment in order to obtain a better display effect, and convenience is provided for the user.
Example two
Referring to the flowchart of the second embodiment of the shooting method shown in fig. 3, in this embodiment, in step 203, a browsing object of the multimedia file is displayed based on a landscape screen state or a portrait screen state of an electronic device, where the browsing object is a partial image of a frame of image in the multimedia file, and the following processing procedures may be implemented:
step 2031, if the electronic device is in a vertical screen state, the browsing object takes the image content of the first partial area of one frame of image in the multimedia file as the display content;
step 2032, if the electronic device is in the landscape state, the browsing object takes the image content of the second partial area of the frame image in the multimedia file as the display content; the first portion and the second portion have the same content and also have different content.
The screen state of the electronic device, such as whether the electronic device is in a landscape screen state or a portrait screen state, may be obtained through detection of a corresponding sensor, for example, specifically, angular velocities of the electronic device with respect to three coordinate axes in a spatial coordinate system may be collected through a gyroscope, and angles of the electronic device with respect to the three coordinate axes, that is, attitude angles, may be obtained based on the angular velocities, and then the screen state may be determined according to the attitude angles of the electronic device in the spatial coordinate system.
The sensor such as the gyroscope may be integrated in the electronic device in advance.
In this embodiment, the browsing object of the multimedia file is a partial image of a frame of image in the multimedia file.
And if the electronic equipment is in the vertical screen state, the browsing object takes the image content of the first partial area of one frame of image in the multimedia file as the display content. That is, the image of the first partial area of the frame of image in the multimedia file can completely fill the display screen of the electronic device in the portrait state, and then it can be understood that the image of the first partial area of the frame of image in the multimedia file is accordingly a portrait image.
On the contrary, if the electronic equipment is in the horizontal screen state, the browsing object takes the image content of the second partial area of one frame of image in the multimedia file as the display content. That is, the image of the second partial area of the frame image in the multimedia file can completely fill the display screen of the electronic device in the landscape state, and it can be understood that the image of the second partial area of the frame image in the multimedia file is accordingly a landscape image.
In this embodiment, the image in the multimedia file, for example, the frame of image or other image corresponding to the browsing object in the multimedia file, includes a vertical image portion and a horizontal image portion, where the vertical image portion and the horizontal image portion have the same content and different contents, so that when the image in the multimedia file is displayed, no matter the electronic device is in a vertical screen state or a horizontal screen state, the corresponding vertical image portion (for example, the image in the first partial area) or the horizontal image portion (for example, the image in the second partial area) can be extracted from the image in the multimedia file, and the display screen in the vertical screen state or the horizontal screen state is completely filled.
In practical implementation, the image capturing device may employ a photosensitive element including both a vertical portion and a horizontal portion in an electronic device to capture an image including both a vertical image portion and a horizontal image portion, and specifically, for example, a cross-shaped photosensitive element as shown in fig. 4 or a square (specifically, an inscribed square of a circle in fig. 5) photosensitive element as shown in fig. 5 may be used to capture an image.
When the cross-shaped photosensitive element shown in fig. 4 is used, if the length-width ratio of the two linear photosensitive portions in the cross-shaped photosensitive element is the same as the length-width ratio of the display screen of the electronic device, the two linear images correspondingly acquired by the two linear photosensitive portions in the cross-shaped photosensitive element may be directly used as the vertical image portion and the horizontal image portion, respectively, and if the length-width ratio of the two linear photosensitive portions in the cross-shaped photosensitive element is not the same as the length-width ratio of the display screen of the electronic device, preferably, two maximum linear extractable portions may be extracted from the two linear images according to the length-width ratio of the display screen of the electronic device, and used as the vertical image portion and the horizontal image portion, respectively.
When the square photosensitive element shown in fig. 5 is used, preferably, two maximum straight-line-shaped extractable parts, namely, a vertical part and a horizontal part, are extracted from the square image acquired by the square photosensitive element according to the length-width ratio of the display screen of the electronic device, and are respectively used as the vertical image part and the horizontal image part.
The photosensitive element may be a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) imaging sensor.
Here, it should be noted that the cross shape or the square shape is only a preferred shape of the photosensitive element provided in this embodiment, and with the cross shape or the square shape, when the photosensitive element is cut by using the original photosensitive material, the cut photosensitive elements can be engaged with each other (as shown in fig. 6) or aligned with each other, and there is no waste of the photosensitive material due to cutting. In practical applications, the shape of the photosensitive element is not limited to the cross shape or the square shape provided in this embodiment, and any other shape that can simultaneously have the horizontal light sensing portion and the vertical light sensing portion is within the protection scope of this embodiment, for example, the photosensitive element may be a circle in addition to the cross shape or the square shape, which is not limited in this embodiment.
Here, it should be further noted that after the multimedia file is generated, the multimedia file needs to be stored, and based on the above description, the multimedia file may be a shape, such as a cross-shaped or square photo, or multiple photos, or live photo, or video, wherein the shapes of the multiple photos or live photo or each frame image included in the video are consistent. Based on this, when the multimedia file is stored, the data of the one or more frames of images in the certain shape can be directly stored, and then when the browsing object of the multimedia file is displayed subsequently, the corresponding horizontal part or vertical part can be extracted from the image in the certain shape for displaying based on the screen state of the electronic device, such as the horizontal screen state or the vertical screen state. In addition, before storage, the one or more frames of images in a certain shape may be subjected to image processing to obtain a horizontal image portion and a vertical image portion of each frame of image, and the horizontal image portion and the vertical image portion may be independently stored, for example, in the case where the multimedia file is a photograph, the horizontal image portion and the vertical image portion of the photograph may be independently stored, in the case where the multimedia file includes multiple frames of images (multiple photographs, live photo, video), a group of horizontal images and a group of vertical images may be stored at the same time, and the two groups of images may be independently stored. When the method is implemented, a technician can determine the time node for processing the image by himself, which is not limited in this embodiment.
Based on the characteristics of the photosensitive element in this embodiment, no matter the electronic device is in the horizontal screen state or the vertical screen state, the photographed image can include both the horizontal image portion and the vertical image portion, so that when the image is displayed based on the horizontal screen state or the vertical screen state of the electronic device subsequently, the corresponding horizontal image portion or the vertical image portion can be extracted from the image, for example, from a frame of cross-shaped image or a frame of square image, and displayed, and thus, the display content of the image can completely fill the display screen of the electronic device no matter the electronic device is in the horizontal screen state or the vertical screen state. When a user shoots or browses images by using the electronic equipment, the screen state of the electronic equipment does not need to be adjusted based on actual requirements, and convenience is provided for the user to use the electronic equipment.
EXAMPLE III
Referring to the flowchart of a third embodiment of the shooting method shown in fig. 7, in this embodiment, in step 303, a browsing object of the multimedia file is displayed based on a landscape screen state or a portrait screen state of an electronic device, where the browsing object is a partial image of a frame of image in the multimedia file, and the following processing procedures may be implemented:
step 2033, if the electronic device is in a vertical screen state, the browsing object takes the image content of all areas of one frame of image in the multimedia file as the display content;
step 2034, if the browsing object is in the landscape state, the browsing object uses the image content of the whole area of another frame image in the multimedia file as the display content, where the another frame image is an image captured by the light sensing unit of the electronic device rotating 90 ° after capturing the one frame image.
The screen state of the electronic device, such as whether the electronic device is in a landscape screen state or a portrait screen state, may be obtained through detection of a corresponding sensor, for example, specifically, angular velocities of the electronic device with respect to three coordinate axes in a spatial coordinate system may be collected through a gyroscope, and angles of the electronic device with respect to the three coordinate axes, that is, attitude angles, may be obtained based on the angular velocities, and then the screen state may be determined according to the attitude angles of the electronic device in the spatial coordinate system.
The sensor such as the gyroscope may be integrated in the electronic device in advance.
In this embodiment, the browsing objects of the multimedia file are all of one frame of image in the multimedia file.
And if the electronic equipment is in the vertical screen state, the browsing object takes the image content of the whole area of one frame of image in the multimedia file as the display content. That is, the image of the whole area of the frame of image in the multimedia file can completely fill the display screen of the electronic device in the portrait state, and then it can be understood that the image of the whole area of the frame of image is accordingly a portrait image.
On the contrary, if the electronic equipment is in the horizontal screen state, the browsing object takes the image content of the whole area of another frame image in the multimedia file as the display content. That is, the image of the entire area of the other frame image in the multimedia file can completely fill the display screen of the electronic device in the landscape state, and then it can be understood that the image of the entire area of the other frame image in the multimedia file is accordingly a landscape image.
In this embodiment, the images in the multimedia file include both vertical images and horizontal images, so that when the images in the multimedia file are displayed, no matter the electronic device is in a portrait screen state or a landscape screen state, a corresponding vertical image (for example, the one frame of image) or a corresponding horizontal image (for example, the other frame of image) can be selected from the images in the multimedia file, and the display screen in the portrait screen state or the landscape screen state is completely filled.
The embodiment does not change the shape of the photosensitive element in the prior art, namely, the rectangular photosensitive element is specifically adopted, such as a rectangular CMOS or CCD imaging sensor.
In order to enable the electronic equipment to acquire a horizontal image and a vertical image no matter the electronic equipment is in a horizontal screen state or a vertical screen state when a shooting instruction is obtained, in this embodiment, a chassis device and an electric device are integrated in the electronic equipment in advance, the chassis device and the electric device are connected with each other, the photosensitive element is installed on the chassis device, the electric device is used for driving the chassis device to rotate, and when the electric device drives the chassis device to rotate, the photosensitive element and the chassis device synchronously rotate.
On the basis, when the electronic equipment obtains a shooting instruction, for example, a shooting instruction for instructing to take one picture or continuously take a plurality of pictures or live photo or take a video is obtained, the electronic equipment responds to the instruction, firstly, a horizontal/vertical image is shot according to the current horizontal/vertical direction of the photosensitive element, after shooting is finished, the photosensitive element is controlled to rotate by 90 degrees based on the electric device and the chassis device, and a vertical/horizontal image is continuously shot, so that the horizontal image and the vertical image are obtained, and for the shooting requirement of multi-frame images, the photosensitive element is controlled to repeatedly rotate for a plurality of times, so that two groups of horizontal and vertical images can be obtained, and each group of images comprises multi-frame images with the same direction. Therefore, the multimedia file generated in response to the shooting instruction can simultaneously comprise images in the horizontal direction and the vertical direction.
Based on the characteristic that the photosensitive element can be controlled to rotate in the embodiment, no matter the electronic equipment is in the horizontal screen state or the vertical screen state, the shot multimedia file can include both the horizontal image and the vertical image, so that when the shot multimedia file image is displayed based on the horizontal screen state or the vertical screen state of the electronic equipment in the following process, the corresponding horizontal image or the vertical image can be selected from the multimedia file to be displayed, and therefore, the displayed image content can completely fill the display screen of the electronic equipment no matter the electronic equipment is in the horizontal screen state or the vertical screen state. When a user shoots or browses images by using the electronic equipment, the screen state of the electronic equipment does not need to be adjusted based on actual requirements, and convenience is provided for the user to use the electronic equipment.
Example four
Referring to the flowchart of a fourth embodiment of the shooting method shown in fig. 8, in this embodiment, the shooting method may further include the following steps:
and step 204, obtaining the induction parameters through a sensor of the electronic equipment.
The sensing parameter may be a sensing parameter for determining that the electronic device has screen rotation in a horizontal direction and a vertical direction, and may specifically be, for example, an angular velocity of the electronic device with respect to three coordinate axes in a spatial coordinate system, which is detected by a gyroscope, and subsequently, an attitude angle of the electronic device in the spatial coordinate system (that is, an angle of the electronic device with respect to the three coordinate axes in space) may be obtained based on the angular velocity, so that a rotation condition of a screen of the electronic device and a display direction of the display screen may be known based on a change of the attitude angle of the electronic device.
In addition, the sensing parameter may be position information and/or direction information of the electronic device held by the human hand, which is detected by the touch sensor, or face information shot by a camera, or a combination of information obtained in any two or more ways. This embodiment is not limited to this.
And 205, controlling the display direction of the browsing object based on the sensing parameters, so that the display direction of the browsing object when the whole object of the browsing object completely fills the display screen of the electronic equipment no matter the electronic equipment is in the horizontal screen state or the vertical screen state is consistent with the positive direction of the display screen which is recognized by a user.
The positive direction of the display screen perceived by the user is the direction in which the user can normally watch the displayed content when the user uses the electronic device in the corresponding screen state. For example, referring to fig. 1(a), when a user views screen content in a state where the screen is erected and the bottom of the screen faces the ground, the top direction of the screen content (such as an image shown in fig. 1 (a)) needs to be consistent with the top direction of the electronic device, so that the user can view the screen content normally, in this case, the top direction of the display screen when the electronic device is erected can be used as the positive direction of the user recognizing the display screen; when the user watches the screen content in the state that the screen is erected and the top of the screen faces the ground as shown in fig. 9, the top direction of the screen content needs to be consistent with the bottom direction of the electronic device, so that the user can watch the screen normally, and at the moment, the bottom direction of the display screen when the electronic device is erected can be used as the positive direction of the display screen for the user to know.
Based on this, when displaying the browsing object of the multimedia file, the sensing parameters can be firstly utilized to analyze the positive direction of the display screen perceived by the user in the current screen state of the device, and then the display direction of the browsing object of the multimedia object can be controlled, so that the display direction of the whole browsing object when the display screen of the electronic device is completely filled by the browsing object is consistent with the positive direction perceived by the user no matter the electronic device is in the horizontal screen state or the vertical screen state, and the problem that the browsing object presents an inverted state relative to the user is avoided.
Specifically, for example, the angular velocity of the electronic device collected by the gyroscope may be used to analyze a posture angle of the electronic device in a spatial coordinate system, and further, based on the posture angle of the electronic device, a rotation condition of a screen of the electronic device, a current screen state, and the like are analyzed, and on this basis, a positive direction of a display screen of the electronic device recognized by the user is determined, and then, the display direction of the browsing object of the multimedia file may be controlled based on the positive direction.
Wherein, for example, it is assumed that the display direction of the browsing object of the multimedia file is controlled to be a first direction when the electronic device corresponding to the first attitude angle is obtained according to the detection data of the gyroscope, the first direction is consistent with the positive direction of the device display screen perceived by the user when the electronic device is at the first attitude angle, and subsequently when the electronic device is detected to correspond to a second attitude angle in the spatial coordinate system, the rotation condition of the electronic device can be determined according to the variation condition of the second attitude angle and the first attitude angle, such as determining that the electronic device rotates by 90 ° or 180 ° clockwise/counterclockwise, and so on, and further, the display direction of the browsing object can be synchronously rotated by the same angle, so that the display direction of the whole browsing object when the display screen of the electronic equipment is completely filled with the browsing object is kept consistent with the positive direction of the display screen perceived by the user.
According to the scheme of the embodiment, no matter the electronic equipment is in the horizontal screen state or the vertical screen state, the display direction of the whole browsing object when the display screen of the electronic equipment is completely filled is consistent with the positive direction of the display screen, so that the situation that the whole browsing object when the display screen of the electronic equipment is completely filled is in an inverted state relative to the user can be avoided.
EXAMPLE five
Referring to the flowchart of a fifth embodiment of the shooting method shown in fig. 10, in this embodiment, the shooting method may further include the following steps:
step 206, obtaining a playing instruction.
The embodiment aims to play the continuous multi-frame images of the multimedia file under the condition that the multimedia file comprises the continuous multi-frame images, such as the multimedia file is particularly live photo, or video.
The playing instruction may be a playing instruction triggered by a user performing a corresponding operation on a browsing object of the multimedia file, for example, a playing instruction for the video file may be triggered by operating a playing button displayed on the browsing object of the video file.
And step 207, responding to the playing instruction, and continuously outputting the partial image of the partial area of each frame of image in the multimedia file based on the state that the electronic equipment is in the landscape screen or the portrait screen, wherein the partial area of each frame of image corresponds to the partial area of each frame of image.
In this embodiment, the outputting of the partial image of the partial area of each frame image in the multimedia file may be outputting the partial image corresponding to the partial area of each frame image in the multimedia file, or outputting all the images corresponding to all the areas of each frame image in the multimedia file. The partial area of each frame image corresponds to each other, which means that the display content of each frame image is consistent in the area where the frame image is located when the frame image is played.
Specifically, if each frame of image in the multimedia file includes a horizontal image portion and a vertical image portion (such as a cross-shaped image or a square image), when responding to the play instruction, if the electronic device is in a horizontal screen state, the image of the horizontal portion of each frame of image in the multimedia file is extracted for display and play, and if the electronic device is in a vertical screen state, the image of the vertical portion of each frame of image in the multimedia file is extracted for display and play, so that the display content of each frame of image in the play process can completely fill the display screen of the electronic device.
If the multimedia file comprises a group of independently stored transverse images and a group of independently stored vertical images, when the playing instruction is responded, if the electronic equipment is in a transverse screen state, the group of transverse images are selected, the images of all areas of each frame of image in the group of transverse images are played, if the electronic equipment is in a vertical screen state, the group of vertical images are selected, the images of all areas of each frame of image in the group of vertical images are played, and therefore the display screen of the electronic equipment can be completely filled with the display content of each frame of image in the playing process.
According to the scheme of the embodiment, when a playing instruction is responded, partial images of partial areas of each frame of image in the multimedia file are continuously output based on the state that the electronic equipment is in the horizontal screen or the vertical screen, and the partial areas of each frame of image correspond to each other, so that the content of each frame of image played can completely fill the display screen of the electronic equipment no matter the electronic equipment is in the horizontal screen state or the vertical screen state, and therefore a user does not need to adjust the screen state of the electronic equipment in order to obtain a good playing effect (the played content can completely fill the display screen).
EXAMPLE six
An embodiment sixth of the present application provides an electronic device, where the electronic device may be, but is not limited to, a smart phone, a tablet computer, and the like, and with reference to a schematic structural diagram of an embodiment sixth of the electronic device shown in fig. 11, the electronic device may include:
a camera 1 including a photosensitive unit 101;
a display screen 2;
a processor 3, the processor 3 being configured to perform:
obtaining a shooting instruction, wherein the shooting instruction is used for instructing to shoot at least one frame of image;
responding to the shooting instruction to generate a multimedia file;
controlling the display screen 2 to display a browsing object of the multimedia file based on the horizontal screen or vertical screen state of the electronic equipment, wherein the browsing object is a partial image of a frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular.
The shooting instruction may be an instruction triggered by a user performing a corresponding operation on the electronic device, for example, the shooting instruction may be an instruction triggered by the user operating a virtual shutter button on a screen of the electronic device or operating a physical shutter button on the side of the electronic device. The shooting instruction is used for instructing the electronic device to shoot at least one frame of image, for example, the electronic device can be instructed to shoot one picture, continuously shoot a plurality of pictures, shoot live photo, or shoot video.
And after the electronic equipment obtains the shooting instruction, shooting in response to the shooting instruction, and generating a multimedia file. Based on the specific shooting type indicated by the shooting instruction, such as whether to instruct to take one picture or multiple pictures, or whether to instruct to take live photo, video, etc., the multimedia file may be a picture or multiple pictures, a live photo, or video, etc. accordingly.
And after responding to the shooting instruction and generating a multimedia file corresponding to the shooting instruction, displaying a browsing object of the multimedia file based on the screen state of the electronic equipment, such as the state of a horizontal screen or a vertical screen.
If the multimedia file comprises a frame of image, if the multimedia file is a photo, the browsing object can be a partial image of the photo; if the multimedia file includes multiple frames of images, such as multiple photos, live photo, or video, the browsing object may be a partial image of a frame of image selected from the multiple frames of images according to a certain image selection policy, and for example, the browsing object may be a partial image of an earliest-imaging frame of image selected from the multiple photos, live photo, or video, or a partial image of a best-imaging frame of image.
Moreover, when the browsing object of the multimedia file is displayed based on the horizontal screen state or the vertical screen state of the electronic device, the whole browsing object can completely fill the display screen of the electronic device no matter the electronic device is in the horizontal screen state or the vertical screen state, so that the browsing object of the multimedia file can not only display a smaller image in a certain screen state. And furthermore, the user does not need to adjust the screen state for obtaining better display effect. Compared with the prior art, when the electronic equipment such as a mobile phone displays the image of the multimedia file, the display screen can be completely filled only in a certain screen state, and the display screen cannot be completely filled in another screen state, so that the displayed image is small.
Here, the shape of the display screen of the electronic device is rectangular. In addition, in the present application, the browsing object may be a partial image of one frame of image in the multimedia file, and the browsing object may be a partial image or an entire image of one frame of image in the multimedia file.
According to the scheme, after the shooting instruction for indicating to shoot at least one frame of image is obtained, the multimedia file is generated in response to the shooting instruction, and the browsing object of the multimedia file is displayed based on the horizontal screen or vertical screen state of the electronic equipment, wherein the browsing object is a partial image of one frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular. In the scheme of the application, for the multimedia file obtained by responding to the shooting instruction, no matter the electronic equipment is in the horizontal screen state or the vertical screen state, the whole object of the browsed object of the multimedia file can be completely filled in the display screen of the electronic equipment, so that a user does not need to adjust the screen state of the electronic equipment in order to obtain a better display effect, and convenience is provided for the user.
EXAMPLE seven
In this embodiment, the processor controls the display screen to display a browsing object of the multimedia file based on a horizontal screen state or a vertical screen state of the electronic device, where the browsing object is a partial image of a frame of image in the multimedia file, and may be implemented through the following processing procedures:
the processor obtains that the electronic equipment is in a vertical screen state, and the browsing object takes the image content of a first partial area of one frame of image in the multimedia file as display content; the processor obtains that the electronic equipment is in a horizontal screen state, and the browsing object takes the image content of a second partial area of the frame of image in the multimedia file as display content; the first portion and the second portion have the same content and also have different content.
The screen state of the electronic device, such as whether the electronic device is in a landscape screen state or a portrait screen state, may be obtained through detection of a corresponding sensor, for example, specifically, angular velocities of the electronic device with respect to three coordinate axes in a spatial coordinate system may be collected through a gyroscope, and angles of the electronic device with respect to the three coordinate axes, that is, attitude angles, may be obtained based on the angular velocities, and then the screen state may be determined according to the attitude angles of the electronic device in the spatial coordinate system.
The sensor such as the gyroscope may be integrated in the electronic device in advance.
In this embodiment, the browsing object of the multimedia file is a partial image of a frame of image in the multimedia file.
And if the electronic equipment is in the vertical screen state, the browsing object takes the image content of the first partial area of one frame of image in the multimedia file as the display content. That is, the image of the first partial area of the frame of image in the multimedia file can completely fill the display screen of the electronic device in the portrait state, and then it can be understood that the image of the first partial area of the frame of image in the multimedia file is accordingly a portrait image.
On the contrary, if the electronic equipment is in the horizontal screen state, the browsing object takes the image content of the second partial area of one frame of image in the multimedia file as the display content. That is, the image of the second partial area of the frame image in the multimedia file can completely fill the display screen of the electronic device in the landscape state, and it can be understood that the image of the second partial area of the frame image in the multimedia file is accordingly a landscape image.
In this embodiment, the image in the multimedia file, for example, the frame of image or other image corresponding to the browsing object in the multimedia file, includes a vertical image portion and a horizontal image portion, where the vertical image portion and the horizontal image portion have the same content and different contents, so that when the image in the multimedia file is displayed, no matter the electronic device is in a vertical screen state or a horizontal screen state, the corresponding vertical image portion (for example, the image in the first partial area) or the horizontal image portion (for example, the image in the second partial area) can be extracted from the image in the multimedia file, and the display screen in the vertical screen state or the horizontal screen state is completely filled.
In practical implementation, the image capturing device may employ a photosensitive element including both a vertical portion and a horizontal portion in an electronic device to capture an image including both a vertical image portion and a horizontal image portion, and specifically, for example, a cross-shaped photosensitive element as shown in fig. 4 or a square (specifically, an inscribed square of a circle in fig. 5) photosensitive element as shown in fig. 5 may be used to capture an image.
When the cross-shaped photosensitive element shown in fig. 4 is used, if the length-width ratio of the two linear photosensitive portions in the cross-shaped photosensitive element is the same as the length-width ratio of the display screen of the electronic device, the two linear images correspondingly acquired by the two linear photosensitive portions in the cross-shaped photosensitive element may be directly used as the vertical image portion and the horizontal image portion, respectively, and if the length-width ratio of the two linear photosensitive portions in the cross-shaped photosensitive element is not the same as the length-width ratio of the display screen of the electronic device, preferably, two maximum linear extractable portions may be extracted from the two linear images according to the length-width ratio of the display screen of the electronic device, and used as the vertical image portion and the horizontal image portion, respectively.
When the square photosensitive element shown in fig. 5 is used, preferably, two maximum straight-line-shaped extractable parts, namely, a vertical part and a horizontal part, are extracted from the square image acquired by the square photosensitive element according to the length-width ratio of the display screen of the electronic device, and are respectively used as the vertical image part and the horizontal image part.
The photosensitive element may be a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) imaging sensor.
Here, it should be noted that the cross shape or the square shape is only a preferred shape of the photosensitive element provided in this embodiment, and with the cross shape or the square shape, when the photosensitive element is cut by using the original photosensitive material, the cut photosensitive elements can be engaged with each other (as shown in fig. 7) or aligned with each other, and there is no waste of the photosensitive material due to cutting. In practical applications, the shape of the photosensitive element is not limited to the cross shape or the square shape provided in this embodiment, and any other shape that can simultaneously have the horizontal light sensing portion and the vertical light sensing portion is within the protection scope of this embodiment, for example, the photosensitive element may be a circle in addition to the cross shape or the square shape, which is not limited in this embodiment.
Here, it should be further noted that after the multimedia file is generated, the multimedia file needs to be stored, and based on the above description, the multimedia file may be a shape, such as a cross-shaped or square photo, or multiple photos, or live photo, or video, wherein the shapes of the multiple photos or live photo or each frame image included in the video are consistent. Based on this, when the multimedia file is stored, the data of the one or more frames of images in the certain shape can be directly stored, and then when the browsing object of the multimedia file is displayed subsequently, the corresponding horizontal part or vertical part can be extracted from the image in the certain shape for displaying based on the screen state of the electronic device, such as the horizontal screen state or the vertical screen state. In addition, before storage, the one or more frames of images in a certain shape may be subjected to image processing to obtain a horizontal image portion and a vertical image portion of each frame of image, and the horizontal image portion and the vertical image portion may be independently stored, for example, in the case where the multimedia file is a photograph, the horizontal image portion and the vertical image portion of the photograph may be independently stored, in the case where the multimedia file includes multiple frames of images (multiple photographs, live photo, video), a group of horizontal images and a group of vertical images may be stored at the same time, and the two groups of images may be independently stored. When the method is implemented, a technician can determine the time node for processing the image by himself, which is not limited in this embodiment.
Based on the characteristics of the photosensitive element in this embodiment, no matter the electronic device is in the horizontal screen state or the vertical screen state, the photographed image can include both the horizontal image portion and the vertical image portion, so that when the image is displayed based on the horizontal screen state or the vertical screen state of the electronic device subsequently, the corresponding horizontal image portion or the vertical image portion can be extracted from the image, for example, from a frame of cross-shaped image or a frame of square image, and displayed, and thus, the display content of the image can completely fill the display screen of the electronic device no matter the electronic device is in the horizontal screen state or the vertical screen state. When a user shoots or browses images by using the electronic equipment, the screen state of the electronic equipment does not need to be adjusted based on actual requirements, and convenience is provided for the user to use the electronic equipment.
Example eight
In this embodiment, referring to fig. 12, a schematic structural diagram of an eighth embodiment of an electronic device is shown, where the electronic device further includes a chassis device 4 and an electric device 5 that are connected to each other. The processor controls a display screen to display a browsing object of the multimedia file based on a horizontal screen state or a vertical screen state of the electronic device, wherein the browsing object is a partial image of a frame of image in the multimedia file, and the browsing object can be realized by the following processing procedures:
the processor obtains that the electronic equipment is in a vertical screen state, and the browsing object takes the image content of all areas of one frame of image in the multimedia file as display content; and the processor obtains the image content of the whole area of another frame image in the multimedia file as the display content when the electronic equipment is in the landscape state, wherein the another frame image is an image shot by a photosensitive unit of the electronic equipment rotating by 90 degrees after the image of the one frame is shot.
The screen state of the electronic device, such as whether the electronic device is in a landscape screen state or a portrait screen state, may be obtained through detection of a corresponding sensor, for example, specifically, angular velocities of the electronic device with respect to three coordinate axes in a spatial coordinate system may be collected through a gyroscope, and angles of the electronic device with respect to the three coordinate axes, that is, attitude angles, may be obtained based on the angular velocities, and then the screen state may be determined according to the attitude angles of the electronic device in the spatial coordinate system.
The sensor such as the gyroscope may be integrated in the electronic device in advance.
In this embodiment, the browsing objects of the multimedia file are all of one frame of image in the multimedia file.
And if the electronic equipment is in the vertical screen state, the browsing object takes the image content of the whole area of one frame of image in the multimedia file as the display content. That is, the image of the whole area of the frame of image in the multimedia file can completely fill the display screen of the electronic device in the portrait state, and then it can be understood that the image of the whole area of the frame of image is accordingly a portrait image.
On the contrary, if the electronic equipment is in the horizontal screen state, the browsing object takes the image content of the whole area of another frame image in the multimedia file as the display content. That is, the image of the entire area of the other frame image in the multimedia file can completely fill the display screen of the electronic device in the landscape state, and then it can be understood that the image of the entire area of the other frame image in the multimedia file is accordingly a landscape image.
In this embodiment, the images in the multimedia file include both vertical images and horizontal images, so that when the images in the multimedia file are displayed, no matter the electronic device is in a portrait screen state or a landscape screen state, a corresponding vertical image (for example, the one frame of image) or a corresponding horizontal image (for example, the other frame of image) can be selected from the images in the multimedia file, and the display screen in the portrait screen state or the landscape screen state is completely filled.
The embodiment does not change the shape of the photosensitive element in the prior art, namely, the rectangular photosensitive element is specifically adopted, such as a rectangular CMOS or CCD imaging sensor.
In order to enable the electronic equipment to acquire a horizontal image and a vertical image no matter the electronic equipment is in a horizontal screen state or a vertical screen state when a shooting instruction is obtained, in this embodiment, a chassis device and an electric device are integrated in the electronic equipment in advance, the chassis device and the electric device are connected with each other, the photosensitive element is installed on the chassis device, the electric device is used for driving the chassis device to rotate, and when the electric device drives the chassis device to rotate, the photosensitive element and the chassis device synchronously rotate.
On the basis, when the electronic equipment obtains a shooting instruction, for example, a shooting instruction for instructing to take one picture or continuously take a plurality of pictures or live photo or take a video is obtained, the electronic equipment responds to the instruction, firstly, a horizontal/vertical image is shot according to the current horizontal/vertical direction of the photosensitive element, after shooting is finished, the photosensitive element is controlled to rotate by 90 degrees based on the electric device and the chassis device, and a vertical/horizontal image is continuously shot, so that the horizontal image and the vertical image are obtained, and for the shooting requirement of multi-frame images, the photosensitive element is controlled to repeatedly rotate for a plurality of times, so that two groups of horizontal and vertical images can be obtained, and each group of images comprises multi-frame images with the same direction. Therefore, the multimedia file generated in response to the shooting instruction can simultaneously comprise images in the horizontal direction and the vertical direction.
Based on the characteristic that the photosensitive element can be controlled to rotate in the embodiment, no matter the electronic equipment is in the horizontal screen state or the vertical screen state, the shot multimedia file can include both the horizontal image and the vertical image, so that when the shot multimedia file image is displayed based on the horizontal screen state or the vertical screen state of the electronic equipment in the following process, the corresponding horizontal image or the vertical image can be selected from the multimedia file to be displayed, and therefore, the displayed image content can completely fill the display screen of the electronic equipment no matter the electronic equipment is in the horizontal screen state or the vertical screen state. When a user shoots or browses images by using the electronic equipment, the screen state of the electronic equipment does not need to be adjusted based on actual requirements, and convenience is provided for the user to use the electronic equipment.
Example nine
In this embodiment, referring to a schematic structural diagram of an embodiment ninth of an electronic device shown in fig. 13, the electronic device further includes a sensor 6, and the processor is further configured to:
and obtaining the induction parameters through a sensor of the electronic equipment. And controlling the display direction of the browsing object based on the sensing parameters, so that the display direction of the browsing object when the whole object of the browsing object completely fills the display screen of the electronic equipment is consistent with the positive direction of the display screen perceived by the user no matter the electronic equipment is in a horizontal screen state or a vertical screen state.
The sensing parameter may be a sensing parameter for determining that the electronic device has screen rotation in a horizontal direction and a vertical direction, and may specifically be, for example, an angular velocity of the electronic device with respect to three coordinate axes in a spatial coordinate system, which is detected by a gyroscope, and subsequently, an attitude angle of the electronic device in the spatial coordinate system (that is, an angle of the electronic device with respect to the three coordinate axes in space) may be obtained based on the angular velocity, so that a rotation condition of a screen of the electronic device and a display direction of the display screen may be known based on a change of the attitude angle of the electronic device.
In addition, the sensing parameter may be position information and/or direction information of the electronic device held by the human hand, which is detected by the touch sensor, or face information shot by a camera, or a combination of information obtained in any two or more ways. This embodiment is not limited to this.
The positive direction of the display screen perceived by the user is the direction in which the user can normally watch the displayed content when the user uses the electronic device in the corresponding screen state. For example, referring to fig. 1(a), when a user views screen content in a state where the screen is erected and the bottom of the screen faces the ground, the top direction of the screen content (such as an image shown in fig. 1 (a)) needs to be consistent with the top direction of the electronic device, so that the user can view the screen content normally, in this case, the top direction of the display screen when the electronic device is erected can be used as the positive direction of the user recognizing the display screen; when the user watches the screen content in the state that the screen is erected and the top of the screen faces the ground as shown in fig. 9, the top direction of the screen content needs to be consistent with the bottom direction of the electronic device, so that the user can watch the screen normally, and at the moment, the bottom direction of the display screen when the electronic device is erected can be used as the positive direction of the display screen for the user to know.
Based on this, when displaying the browsing object of the multimedia file, the sensing parameters can be firstly utilized to analyze the positive direction of the display screen perceived by the user in the current screen state of the device, and then the display direction of the browsing object of the multimedia object can be controlled, so that the display direction of the whole browsing object when the display screen of the electronic device is completely filled by the browsing object is consistent with the positive direction perceived by the user no matter the electronic device is in the horizontal screen state or the vertical screen state, and the problem that the browsing object presents an inverted state relative to the user is avoided.
Specifically, for example, the angular velocity of the electronic device collected by the gyroscope may be used to analyze a posture angle of the electronic device in a spatial coordinate system, and further, based on the posture angle of the electronic device, a rotation condition of a screen of the electronic device, a current screen state, and the like are analyzed, and on this basis, a positive direction of a display screen of the electronic device recognized by the user is determined, and then, the display direction of the browsing object of the multimedia file may be controlled based on the positive direction.
Wherein, for example, it is assumed that the display direction of the browsing object of the multimedia file is controlled to be a first direction when the electronic device corresponding to the first attitude angle is obtained according to the detection data of the gyroscope, the first direction is consistent with the positive direction of the device display screen perceived by the user when the electronic device is at the first attitude angle, and subsequently when the electronic device is detected to correspond to a second attitude angle in the spatial coordinate system, the rotation condition of the electronic device can be determined according to the variation condition of the second attitude angle and the first attitude angle, such as determining that the electronic device rotates by 90 ° or 180 ° clockwise/counterclockwise, and so on, and further, the display direction of the browsing object can be synchronously rotated by the same angle, so that the display direction of the whole browsing object when the display screen of the electronic equipment is completely filled with the browsing object is kept consistent with the positive direction of the display screen perceived by the user.
According to the scheme of the embodiment, no matter the electronic equipment is in the horizontal screen state or the vertical screen state, the display direction of the whole browsing object when the display screen of the electronic equipment is completely filled is consistent with the positive direction of the display screen, so that the situation that the whole browsing object when the display screen of the electronic equipment is completely filled is in an inverted state relative to the user can be avoided.
Example ten
In this embodiment, the processor may be further configured to:
obtaining a playing instruction; and responding to the playing instruction, and continuously outputting the partial image of the partial area of each frame of image in the multimedia file based on the state that the electronic equipment is in the landscape screen or the portrait screen, wherein the partial area of each frame of image corresponds to the partial area of each frame of image.
The embodiment aims to play the continuous multi-frame images of the multimedia file under the condition that the multimedia file comprises the continuous multi-frame images, such as the multimedia file is particularly live photo, or video.
The playing instruction may be a playing instruction triggered by a user performing a corresponding operation on a browsing object of the multimedia file, for example, a playing instruction for the video file may be triggered by operating a playing button displayed on the browsing object of the video file.
In this embodiment, the outputting of the partial image of the partial area of each frame image in the multimedia file may be outputting the partial image corresponding to the partial area of each frame image in the multimedia file, or outputting all the images corresponding to all the areas of each frame image in the multimedia file. The partial area of each frame image corresponds to each other, which means that the display content of each frame image is consistent in the area where the frame image is located when the frame image is played.
Specifically, if each frame of image in the multimedia file includes a horizontal image portion and a vertical image portion (such as a cross-shaped image or a square image), when responding to the play instruction, if the electronic device is in a horizontal screen state, the image of the horizontal portion of each frame of image in the multimedia file is extracted for display and play, and if the electronic device is in a vertical screen state, the image of the vertical portion of each frame of image in the multimedia file is extracted for display and play, so that the display content of each frame of image in the play process can completely fill the display screen of the electronic device.
If the multimedia file comprises a group of independently stored transverse images and a group of independently stored vertical images, when the playing instruction is responded, if the electronic equipment is in a transverse screen state, the group of transverse images are selected, the images of all areas of each frame of image in the group of transverse images are played, if the electronic equipment is in a vertical screen state, the group of vertical images are selected, the images of all areas of each frame of image in the group of vertical images are played, and therefore the display screen of the electronic equipment can be completely filled with the display content of each frame of image in the playing process.
According to the scheme of the embodiment, when a playing instruction is responded, partial images of partial areas of each frame of image in the multimedia file are continuously output based on the state that the electronic equipment is in the horizontal screen or the vertical screen, and the partial areas of each frame of image correspond to each other, so that the content of each frame of image played can completely fill the display screen of the electronic equipment no matter the electronic equipment is in the horizontal screen state or the vertical screen state, and therefore a user does not need to adjust the screen state of the electronic equipment in order to obtain a good playing effect (the played content can completely fill the display screen).
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
For convenience of description, the above system or apparatus is described as being divided into various modules or units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it is further noted that, herein, relational terms such as first, second, third, fourth, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A photographing method, characterized in that the method comprises:
obtaining a shooting instruction, wherein the shooting instruction is used for instructing to shoot at least one frame of image;
responding to the shooting instruction to generate a multimedia file; wherein the generating a multimedia file in response to the photographing instruction comprises: the method comprises the steps that a photosensitive unit of the electronic equipment is used for shooting images in the current direction of the photosensitive unit, after shooting is finished, an electric device of the electronic equipment is used for driving a chassis device of the electronic equipment to rotate so as to control the photosensitive unit arranged on the chassis device to rotate relative to the electronic equipment, and the images are shot again based on the rotated direction so as to obtain a horizontal image and a vertical image; when the electric device drives the chassis device to rotate, the photosensitive unit and the chassis device rotate synchronously;
displaying a browsing object of the multimedia file based on a horizontal screen or vertical screen state of the electronic equipment, wherein the browsing object is a partial image of a frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular.
2. The method according to claim 1, wherein displaying a browsing object of the multimedia file based on a landscape or portrait state of the electronic device, the browsing object being a partial image of a frame of image in the multimedia file, comprises:
if the electronic equipment is in a vertical screen state, the browsing object takes the image content of a first partial area of a frame of image in the multimedia file as display content;
if the electronic equipment is in a horizontal screen state, the browsing object takes the image content of the second partial area of the frame image in the multimedia file as display content;
the first portion and the second portion have the same content and also have different content.
3. The method according to claim 1, wherein displaying a browsing object of the multimedia file based on a landscape or portrait state of the electronic device, the browsing object being a partial image of a frame of image in the multimedia file, comprises:
if the electronic equipment is in a vertical screen state, the browsing object takes the image content of all areas of one frame of image in the multimedia file as display content;
if the electronic equipment is in a landscape state, the browsing object takes the image content of the whole area of another frame of image in the multimedia file as the display content, wherein the another frame of image is an image shot by a photosensitive unit of the electronic equipment rotating by 90 degrees after the image of the one frame is shot; the one frame image is the vertical image, and the other frame image is the horizontal image.
4. The method of claim 2 or 3, further comprising:
obtaining induction parameters through a sensor of the electronic equipment;
and controlling the display direction of the browsing object based on the sensing parameters, so that no matter the electronic equipment is in a horizontal screen state or a vertical screen state, the display direction of the whole browsing object when the display screen of the electronic equipment is completely filled is consistent with the positive direction of the display screen for the user to learn.
5. The method of claim 1, wherein the multimedia file is a continuous multi-frame image, the method further comprising:
obtaining a playing instruction;
and responding to the playing instruction, and continuously outputting the partial image of the partial area of each frame of image in the multimedia file based on the state that the electronic equipment is in the landscape screen or the portrait screen, wherein the partial area of each frame of image corresponds to the partial area of each frame of image.
6. An electronic device, characterized in that the electronic device comprises:
an electric device;
a chassis device;
a camera including a light sensing unit mounted on the chassis device;
a display screen;
a processor configured to perform:
obtaining a shooting instruction, wherein the shooting instruction is used for instructing to shoot at least one frame of image;
responding to the shooting instruction to generate a multimedia file; wherein the generating a multimedia file in response to the photographing instruction comprises: the method comprises the steps that a photosensitive unit of the electronic equipment is used for shooting images in the current direction of the photosensitive unit, after shooting is finished, the electric device is used for driving the chassis device to rotate so as to control the photosensitive unit to rotate relative to the electronic equipment, and the images are shot again based on the rotated direction so as to obtain a transverse image and a vertical image; when the electric device drives the chassis device to rotate, the photosensitive unit and the chassis device rotate synchronously;
controlling the display screen to display a browsing object of the multimedia file based on the horizontal screen or vertical screen state of the electronic equipment, wherein the browsing object is a partial image of a frame of image in the multimedia file; and whether the electronic equipment is in a horizontal screen state or a vertical screen state, the whole object of the browsing object completely fills the display screen of the electronic equipment, and the display screen is rectangular.
7. The electronic device of claim 6, wherein the light sensing unit is cross-shaped or square-shaped, and the processor controls the display screen to display a browsing object of the multimedia file based on a landscape screen state or a portrait screen state of the electronic device, wherein the browsing object is a partial image of a frame of image in the multimedia file, further comprising:
the processor obtains that the electronic equipment is in a vertical screen state, and the browsing object takes the image content of a first partial area of one frame of image in the multimedia file as display content;
the processor obtains that the electronic equipment is in a horizontal screen state, and the browsing object takes the image content of a second partial area of the frame of image in the multimedia file as display content;
the first portion and the second portion have the same content and also have different content.
8. The electronic device of claim 6, wherein the processor controls the display screen to display a browsing object of the multimedia file based on a landscape screen state or a portrait screen state of the electronic device, and the browsing object is a partial image of a frame of image in the multimedia file, and comprises:
the processor obtains that the electronic equipment is in a vertical screen state, and the browsing object takes the image content of all areas of one frame of image in the multimedia file as display content;
the processor obtains the image content of the whole area of another frame image in the multimedia file as the display content when the electronic equipment is in the horizontal screen state, wherein the another frame image is an image shot by a photosensitive unit of the electronic equipment rotating by 90 degrees after the image of the one frame is shot; the one frame image is the vertical image, and the other frame image is the horizontal image.
9. The electronic device of claim 7 or 8, wherein the processor is further configured to:
obtaining induction parameters through a sensor of the electronic equipment;
and controlling the display direction of the browsing object based on the sensing parameters, so that the display direction of the browsing object when the whole object of the browsing object completely fills the display screen of the electronic equipment is consistent with the positive direction of the display screen perceived by the user no matter the electronic equipment is in a horizontal screen state or a vertical screen state.
10. The electronic device of claim 6, wherein the multimedia file is a continuous multi-frame image, and wherein the processor is further configured to:
obtaining a playing instruction;
and responding to the playing instruction, and controlling the display screen to continuously output the partial image of the partial area of each frame of image in the multimedia file based on the state that the electronic equipment is in the landscape screen or the portrait screen, wherein the partial area of each frame of image corresponds to the partial area of each frame of image.
CN201710210474.2A 2017-03-31 2017-03-31 Shooting method and electronic equipment Active CN106973228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710210474.2A CN106973228B (en) 2017-03-31 2017-03-31 Shooting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710210474.2A CN106973228B (en) 2017-03-31 2017-03-31 Shooting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106973228A CN106973228A (en) 2017-07-21
CN106973228B true CN106973228B (en) 2020-02-21

Family

ID=59336183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710210474.2A Active CN106973228B (en) 2017-03-31 2017-03-31 Shooting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106973228B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682637A (en) * 2017-10-20 2018-02-09 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107566709A (en) * 2017-10-20 2018-01-09 维沃移动通信有限公司 A kind of imaging sensor, image pickup method and mobile terminal
CN108200318A (en) * 2018-01-02 2018-06-22 联想(北京)有限公司 Electronic equipment and the method for obtaining image
CN109995992A (en) * 2018-01-02 2019-07-09 上海银晨智能识别科技有限公司 Image-pickup method and device, computer readable storage medium
CN111800589B (en) * 2019-04-08 2022-04-19 清华大学 Image processing method, device and system and robot
CN111050071A (en) * 2019-12-23 2020-04-21 维沃移动通信有限公司 Photographing method and electronic equipment
CN111277752B (en) * 2020-01-22 2021-08-31 Oppo广东移动通信有限公司 Prompting method and device, storage medium and electronic equipment
CN111414204A (en) * 2020-03-19 2020-07-14 京东方科技集团股份有限公司 Startup display method and device and electronic equipment
CN113438550B (en) * 2020-03-23 2023-03-24 阿里巴巴集团控股有限公司 Video playing method, video conference method, live broadcasting method and related devices
CN112019686A (en) * 2020-09-15 2020-12-01 维沃移动通信(杭州)有限公司 Display method and device and electronic equipment
CN116782023A (en) * 2020-09-30 2023-09-19 华为技术有限公司 Shooting method and electronic equipment
CN116325762A (en) * 2020-11-27 2023-06-23 海信视像科技股份有限公司 Display device and display method
CN116546333B (en) * 2023-04-03 2023-10-31 华光影像科技合肥有限公司 Method, system and camera for simultaneously outputting video pictures of different shooting modes

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534589A (en) * 2003-02-07 2004-10-06 �ձ�������ʽ���� Portable electronic apparatus, display direction converting method and recording medium
CN101222570A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Image browser using for mobile terminal and image regulation method
CN101841603A (en) * 2010-05-12 2010-09-22 中兴通讯股份有限公司 Method for implementing automatic adjustment of photo direction and mobile terminal
CN102915188A (en) * 2011-08-01 2013-02-06 中国移动通信集团公司 Method and device for controlling display status of terminal screen
CN104020928A (en) * 2014-06-09 2014-09-03 联想(北京)有限公司 Image display method and device
CN104159020A (en) * 2013-04-26 2014-11-19 全视技术有限公司 Imaging systems and methods using square image sensor for flexible image orientation
CN104461335A (en) * 2013-09-25 2015-03-25 联想(北京)有限公司 Data processing method and electronic instrument
CN104469119A (en) * 2013-09-12 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN105282441A (en) * 2015-09-29 2016-01-27 小米科技有限责任公司 Photographing method and device
CN106101553A (en) * 2016-07-27 2016-11-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054552B2 (en) * 2004-06-25 2006-05-30 Nokia Corporation Vertical and horizontal pictures taken without camera rotation
CN202261490U (en) * 2011-08-30 2012-05-30 深圳万利达移动通信有限公司 Camera handset

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534589A (en) * 2003-02-07 2004-10-06 �ձ�������ʽ���� Portable electronic apparatus, display direction converting method and recording medium
CN101222570A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Image browser using for mobile terminal and image regulation method
CN101841603A (en) * 2010-05-12 2010-09-22 中兴通讯股份有限公司 Method for implementing automatic adjustment of photo direction and mobile terminal
CN102915188A (en) * 2011-08-01 2013-02-06 中国移动通信集团公司 Method and device for controlling display status of terminal screen
CN104159020A (en) * 2013-04-26 2014-11-19 全视技术有限公司 Imaging systems and methods using square image sensor for flexible image orientation
CN104469119A (en) * 2013-09-12 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN104461335A (en) * 2013-09-25 2015-03-25 联想(北京)有限公司 Data processing method and electronic instrument
CN104020928A (en) * 2014-06-09 2014-09-03 联想(北京)有限公司 Image display method and device
CN105282441A (en) * 2015-09-29 2016-01-27 小米科技有限责任公司 Photographing method and device
CN106101553A (en) * 2016-07-27 2016-11-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal

Also Published As

Publication number Publication date
CN106973228A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
CN106973228B (en) Shooting method and electronic equipment
US9313400B2 (en) Linking-up photographing system and control method for linked-up cameras thereof
CN103905792B (en) A kind of 3D localization methods and device based on PTZ CCTV cameras
JP5769813B2 (en) Image generating apparatus and image generating method
CN106797459A (en) The transmission of 3 D video
CN110874818B (en) Image processing and virtual space construction method, device, system and storage medium
JP6723512B2 (en) Image processing apparatus, image processing method and program
CN101867720A (en) Generate in the camera of the synthetic panoramic picture of high-quality
CN103795892A (en) Method and apparatus for processing collected image data
CN104205825B (en) Image processing apparatus and method and camera head
JP5477777B2 (en) Image acquisition device
CN111083371A (en) Shooting method and electronic equipment
US11062422B2 (en) Image processing apparatus, image communication system, image processing method, and recording medium
KR20150091064A (en) Method and system for capturing a 3d image using single camera
US20130113952A1 (en) Information processing apparatus, information processing method, and program
CN106131421A (en) The method of adjustment of a kind of video image and electronic equipment
CN103139457A (en) Method for obtaining and controlling images and electronic device
WO2021168804A1 (en) Image processing method, image processing apparatus and image processing system
WO2017024954A1 (en) Method and device for image display
WO2017219442A1 (en) Image preview method and apparatus
US20150022559A1 (en) Method and apparatus for displaying images in portable terminal
TWI502271B (en) Controlling method and electronic apparatus
US9609211B2 (en) Method of image conversion operation for panorama dynamic IP camera
WO2017071560A1 (en) Picture processing method and device
US10013736B1 (en) Image perspective transformation system

Legal Events

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