CN111614910B - File generation method and device, electronic equipment and storage medium - Google Patents

File generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111614910B
CN111614910B CN202010266949.1A CN202010266949A CN111614910B CN 111614910 B CN111614910 B CN 111614910B CN 202010266949 A CN202010266949 A CN 202010266949A CN 111614910 B CN111614910 B CN 111614910B
Authority
CN
China
Prior art keywords
image information
camera
screen image
vertical screen
horizontal
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
CN202010266949.1A
Other languages
Chinese (zh)
Other versions
CN111614910A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010266949.1A priority Critical patent/CN111614910B/en
Publication of CN111614910A publication Critical patent/CN111614910A/en
Application granted granted Critical
Publication of CN111614910B publication Critical patent/CN111614910B/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/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure relates to a file generation method, a file generation device, an electronic device and a storage medium, wherein the method comprises the following steps: detecting a shooting instruction input by a user, wherein the shooting instruction is an instruction for starting a first camera and a second camera on the mobile equipment to shoot simultaneously; according to the shooting instruction, simultaneously controlling a first camera to shoot transverse screen image information of the same scene and a second camera to shoot vertical screen image information of the same scene, wherein the picture centers of the transverse screen image information and the vertical screen image information are overlapped; displaying the image information of the horizontal screen and the vertical screen to a user at the same time; and when the shooting is detected to be finished, generating a horizontal screen file according to the displayed horizontal screen image file information, and generating a vertical screen file according to the vertical screen image information. In the method, the two cameras are controlled to shoot the transverse screen image and the vertical screen image of the same scene at the same time, namely, shooting is carried out once, and the transverse screen image information and the vertical screen image information of the scene are obtained at the same time. Not only improves the shooting efficiency, but also saves the shooting time of the user.

Description

File generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of imaging technologies, and in particular, to a file generation method and apparatus, an electronic device, and a storage medium.
Background
With the continuous development of mobile equipment (such as mobile phones and the like), the mobile equipment has become the main equipment for recording audios and videos for people, the requirements of people on the cameras of the mobile terminal are increased day by day, and from the initial single camera, the mobile equipment is developed to the later double camera, the later three cameras and even more cameras, and each camera has different focal sections or functions so as to meet the higher shooting requirements of people.
In the related art, the screen ratios of different mobile devices are different, for example, the ratio of the mobile phone screen to the computer screen is different, which causes the difference of the horizontal and vertical ratios of the videos displayed on different mobile devices, for example, the video on the mobile phone platform is generally vertical (the video length is greater than the width), such as short video platforms like fast-hand and trembling, while the video on the computer platform is generally horizontal (the width is greater than the length), such as Tencent video and Youke video. Therefore, due to different requirements for the mobile phone platform and the computer platform, two sections of horizontal and vertical materials need to be shot in the same scene, for example, two times of shooting are carried out through the horizontal screen and the vertical screen, or shooting is carried out horizontally and vertically by adopting different camera equipment, and the like, and the two sections of materials need to be cut in the later stage, so that time is wasted, the cost is increased, the shooting efficiency is reduced, and the consistency of the contents of the two sections of cut materials cannot be ensured.
Therefore, how to improve the shooting efficiency of the two sections of materials of the horizontal and vertical screens in the same scene and ensure the consistency of the contents of the two sections of materials on the basis of reducing the cost is a technical problem to be solved at present.
Disclosure of Invention
The disclosure provides a file generation method, a file generation device, electronic equipment and a storage medium, and aims to at least solve the technical problems that in the related art, horizontal screen shooting and vertical screen shooting are required to be performed twice on the same scene, or horizontal and vertical shooting is performed simultaneously through a plurality of mobile devices, so that the shooting efficiency is low, and the consistency of the contents of two sections of materials cannot be guaranteed. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a file generation method, including:
detecting a shooting instruction input by a user, wherein the shooting instruction is an instruction for starting a first camera and a second camera on the mobile equipment to shoot simultaneously;
according to the shooting instruction, the first camera is controlled to shoot transverse screen image information of the same scene, and the second camera is controlled to shoot vertical screen image information of the same scene, wherein the image centers of the transverse screen image information and the vertical screen image information are overlapped;
simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
when the shooting is detected to be finished, generating a horizontal screen file according to the displayed horizontal screen image file information, and generating a vertical screen file according to the vertical screen image information;
optionally, before being presented to the user, the method further includes:
judging whether the horizontal screen image information and the vertical screen image information both meet the horizontal screen proportion and the vertical screen proportion of a preset file;
if both the horizontal screen image information and the vertical screen image information are satisfied, the step of simultaneously displaying the horizontal screen image information and the vertical screen image information to the user is executed;
if the image information does not meet the requirements, the transverse screen image information and/or the vertical screen image information which are not met are/is cut;
and simultaneously displaying the cut horizontal screen image information and the cut vertical screen image information to the user.
Optionally, after the clipping, the method further includes:
judging whether the image centers of the cut transverse screen image information and the cut vertical screen image information are overlapped or not;
if the image center of the cut horizontal screen image information and/or vertical screen image information is not coincident, adjusting the image center of the cut horizontal screen image information and/or vertical screen image information to enable the image center of the cut horizontal screen image information and the image center of the cut vertical screen image information to be coincident; displaying the horizontal screen image information and the vertical screen image information after the image center is adjusted to the user;
and if the horizontal screen image information and the vertical screen image information are overlapped, displaying the cut horizontal screen image information and vertical screen image information to the user.
Optionally, after the horizontal screen image information and the vertical screen image information after the image center is adjusted are displayed to the user, the method further includes:
detecting an adjusting instruction input by the user, wherein the adjusting instruction is used for enlarging or reducing the displayed horizontal screen image information and/or vertical screen image information;
adjusting the focal length parameter of the first camera and/or the second camera according to the adjusting instruction;
utilizing the first camera after the focal length parameter is adjusted to shoot the horizontal screen image information of the same scene and/or utilizing the second camera to shoot the vertical screen image information of the same scene;
after the shooting is detected to be finished, generating a horizontal screen file according to the information of the horizontal screen image shot by the first camera after the focal length parameter is adjusted, and generating a vertical screen file according to the information of the vertical screen image shot by the second camera after the focal length parameter is adjusted.
Optionally, before the cutting, the method further includes:
acquiring preset values of horizontal screen proportion and vertical screen proportion of different social platforms to uploaded files;
and setting the horizontal screen proportion and the vertical screen proportion of the generated file according to the preset value.
Optionally, after the horizontal screen image information and the vertical screen image information are displayed to the user at the same time, before it is detected that the shooting is finished, the method further includes:
detecting a switching instruction input by a user;
switching the first camera to a third camera on the mobile equipment or switching the second camera to a fourth camera on the mobile equipment according to the switching instruction; or simultaneously switching the first camera to the third camera and switching the second camera to the fourth camera, wherein the third camera is a candidate camera with an original proportion of images shot by the first camera; the fourth camera is an alternative camera with the original proportion of the image shot by the second camera;
simultaneously controlling the switched third camera to shoot transverse screen image information of the same scene and/or the switched fourth camera to shoot vertical screen image information of the same scene;
simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
and after the shooting is detected to be finished, generating a horizontal screen file according to the displayed horizontal screen image file information, and generating a vertical screen file according to the vertical screen image information.
Optionally, the first camera and the second camera are a first main camera and a second main camera on the mobile device, respectively; or
The first camera is a first main camera on the mobile equipment, and the second camera is an alternative camera on the mobile equipment; or
The first camera is an alternative camera on the mobile equipment, and the second camera is a second main camera on the mobile equipment; or
The first camera is a standby camera on the mobile device, and the second camera is a standby camera on the mobile device.
Alternatively to this, the first and second parts may,
the first camera and the second camera are rear cameras on the mobile equipment; or
The first camera and the second camera are both front cameras on the mobile equipment.
According to a second aspect of the embodiments of the present disclosure, there is provided a file generating apparatus including:
the mobile device comprises a first detection module, a second detection module and a control module, wherein the first detection module is configured to execute a shooting instruction which is detected to be input by a user, and the shooting instruction is an instruction for starting a first camera and a second camera on the mobile device to shoot at the same time;
a first control module configured to execute simultaneous control of the first camera to shoot landscape screen image information of the same scene and the second camera to shoot portrait screen image information of the same scene according to the shooting instruction, wherein the landscape screen image information and the portrait screen image information have coincident picture centers;
a first presentation module configured to perform presentation of the landscape screen image information and the portrait screen image information to the user at the same time;
and the first generation module is configured to execute generating a horizontal screen file according to the displayed horizontal screen image file information and generating a vertical screen file according to the vertical screen image information when the shooting end is detected.
Optionally, the apparatus further comprises:
the first judgment module is configured to judge whether the horizontal screen image information and the vertical screen image information both meet the horizontal screen proportion and the vertical screen proportion of a preset file before being displayed by the display module;
the first display module is further configured to simultaneously display the horizontal screen image information and the vertical screen image information to the user when the first judgment module judges that the horizontal screen image information and the vertical screen image information are satisfied;
a cropping module configured to perform cropping on the horizontal screen image information and/or vertical screen image information that is not satisfied when the first determination module determines that the horizontal screen image information and/or vertical screen image information are not satisfied;
and the second display module is configured to simultaneously display the transverse screen image information and the vertical screen image information which are cut by the cutting module to the user.
Optionally, the apparatus further comprises:
the second judgment module is configured to judge whether the image centers of the horizontal screen image information and the vertical screen image information cut by the cutting module coincide or not;
a first adjusting module configured to perform adjustment on the image center of the cut horizontal screen image information and/or vertical screen image information so that the image center of the cut horizontal screen image information and the image center of the cut vertical screen image information coincide when the second judging module judges that the horizontal screen image information and the vertical screen image information do not coincide;
a third display module configured to perform display of the landscape screen image information and the portrait screen image information with the adjusted image centers to the user;
the second display module is further configured to display the cut horizontal screen image information and vertical screen image information to the user when the second determination module determines that the horizontal screen image information and the vertical screen image information coincide with each other.
Optionally, the apparatus further comprises:
a second detection module configured to detect an adjustment instruction input by the user after the third display module displays the horizontal screen image information and/or the vertical screen image information, wherein the adjustment instruction is an instruction for enlarging or reducing the displayed horizontal screen image information and/or vertical screen image information;
the second adjusting module is configured to adjust the focal length parameter of the first camera and/or the second camera according to the adjusting instruction;
the shooting module is configured to perform shooting by using the horizontal screen image information of the first camera after the focal length parameter is adjusted and/or shooting by the second camera and the vertical screen image information of the same scene;
and the second generation module is configured to execute the steps of generating a horizontal screen file according to the horizontal screen image information shot by the first camera after the focal length parameter is adjusted and generating a vertical screen file according to the vertical screen image information shot by the second camera after the focal length parameter is adjusted when the shooting end is detected.
Optionally, the apparatus further comprises:
the acquisition module is configured to acquire preset values of horizontal screen proportion and vertical screen proportion of the uploaded files of different social platforms before the first judgment module judges;
and the setting module is configured to set the horizontal screen proportion and the vertical screen proportion of the generated file according to the preset value.
Optionally, the apparatus further comprises:
the third detection module is configured to detect a switching instruction input by the user after the third detection module is displayed to the user and before the shooting is finished;
a switching module configured to execute switching the first camera to a third camera on the mobile device or switching the second camera to a fourth camera on the mobile device according to the switching instruction; or simultaneously switching the first camera to the third camera and switching the second camera to the fourth camera, wherein the third camera is a candidate camera with an original proportion of images shot by the first camera; the fourth camera is an alternative camera with the original proportion of the image shot by the second camera;
the second control module is configured to execute simultaneous control of the switched third camera to shoot horizontal screen image information of the same scene and/or the switched fourth camera to shoot vertical screen image information of the same scene;
a third presentation module configured to perform presentation of the landscape screen image information and the portrait screen image information to the user at the same time;
and the third generation module is configured to execute generating a horizontal screen file according to the displayed horizontal screen image file information and generating a vertical screen file according to the vertical screen image information after the shooting is detected to be finished.
Optionally, the first camera and the second camera controlled by the first control module are a first main camera and a second main camera of the mobile device, respectively; or
The first camera controlled by the first control module is a first main camera on the mobile equipment, and the second camera is an alternative camera on the mobile equipment; or
The first camera controlled by the first control module is an alternative camera on the mobile equipment, and the second camera is a second main camera on the mobile equipment; or
The first camera controlled by the first control module is the alternative camera on the mobile equipment, and the second camera is the alternative camera on the mobile equipment.
Optionally, the first camera and the second camera controlled by the first control module are both rear cameras on the mobile device; or
And the first camera and the second camera controlled by the first control module are front cameras on the mobile equipment.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the file generation method of any one of the above;
according to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions of the storage medium, when executed by a processor of a file generation apparatus or an electronic device, enable the file generation apparatus or the electronic device to perform the file generation method as described in any one of the above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform any of the above-mentioned file generation methods.
The technical scheme provided by the embodiment of the disclosure at least has the following beneficial effects:
according to the method and the device, when a shooting instruction that a first camera and a second camera on the mobile equipment shoot is started while user input is detected, the first camera is controlled to shoot transverse screen image information of the same scene, the second camera shoots vertical screen image information of the same scene, the transverse screen image information and the vertical screen image information are displayed for the user at the same time, when shooting is detected to be finished, a transverse screen file is generated according to the displayed transverse screen image file information, and a vertical screen file is generated according to the vertical screen image information. That is to say, in the present disclosure, by using the characteristics of the multiple cameras on the mobile device, two of the cameras can be controlled to simultaneously shoot the horizontal screen image and the vertical screen image of the same scene, that is, to shoot once, the horizontal screen image information and the vertical screen image information of the scene can be simultaneously obtained (i.e., image information with different proportions is obtained), so that not only is the shooting efficiency improved, but also the shooting time of the user is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a file generation method in accordance with an exemplary embodiment.
FIG. 2 is a diagram illustrating simultaneous display of portrait and landscape screen image areas on a screen according to an exemplary embodiment.
FIG. 3 is another flow diagram illustrating a file generation method in accordance with an exemplary embodiment.
FIG. 4A is a schematic diagram illustrating a scale of landscape image information before and after cropping, according to an exemplary embodiment.
FIG. 4B is a schematic diagram illustrating a scale of portrait screen image information before and after cropping, according to an exemplary embodiment.
FIG. 5 is yet another flow diagram illustrating a file generation method in accordance with an exemplary embodiment.
FIG. 6 is a schematic diagram illustrating image sensing elements of two rear facing cameras on a mobile device according to one exemplary embodiment.
Fig. 7 is a schematic diagram illustrating simultaneous presentation of landscape screen image information and portrait screen image information acquired by two cameras according to an exemplary embodiment.
Fig. 8 is a schematic diagram showing horizontal screen image information and vertical screen image information after adjusting the focal length of a vertical screen camera according to an exemplary embodiment.
FIG. 9 is a block diagram illustrating a file generation apparatus in accordance with an exemplary embodiment.
FIG. 10 is another block diagram illustrating a file generation apparatus in accordance with an exemplary embodiment.
FIG. 11 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a file generation method according to an exemplary embodiment, where the file generation method is used in a mobile device, as shown in fig. 1, and includes the following steps:
in step 101, a shooting instruction for shooting by a first camera and a second camera on the mobile device is started while the user input is detected.
In step 102, according to the shooting instruction, the first camera is simultaneously controlled to shoot horizontal screen image information of the same scene, and the second camera shoots vertical screen image information of the same scene, wherein the picture centers of the horizontal screen image information and the vertical screen image information are overlapped;
in step 103, simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
in step 104, after the end of shooting is detected, a horizontal screen file is generated according to the displayed horizontal screen image file information, and a vertical screen file is generated according to the vertical screen image information.
The file generation method disclosed by the disclosure can be applied to a terminal, a server and the like, and is not limited herein, and the terminal implementation device of the file generation method can be an electronic device such as a smart phone, a notebook computer and a tablet computer, and is not limited herein.
The following describes in detail specific implementation steps of a file generation method provided in the embodiment of the present disclosure with reference to fig. 1.
Firstly, executing step 101, detecting a shooting instruction input by a user, wherein the shooting instruction is an instruction for starting a first camera and a second camera on mobile equipment to shoot simultaneously;
in this embodiment, the mobile device at least includes a first camera and a second camera, where the first camera may be one of a plurality of rear cameras and is used to shoot horizontal screen image information, and the second camera may also be another one of the plurality of rear cameras and is used to shoot vertical screen image information, or vice versa, and this embodiment is not limited. It should be noted that, the front camera or the rear camera on the mobile device, except for the first camera and the second camera currently used, includes the remaining cameras, and a part of the remaining cameras are alternative cameras of the original proportion of the image shot by the first camera; and the other part of the rest cameras are alternative cameras with original proportion of the images shot by the second camera. Of course, the first camera and the second camera may also be cameras at other positions on the mobile device, and this embodiment is not limited.
In this embodiment, the photosensitive elements (CMOS) of the first camera and the second camera on the mobile device may be the same or different, and in a normal case, it is default that the photosensitive elements (CMOS) of the first camera and the second camera are the same, and one horizontal camera and one vertical camera are placed (that is, the original proportion of the image information output by the two cameras is the same as the required image proportion), so as to ensure the consistency of the picture centers of the horizontal screen image information collected by the first camera and the vertical screen image information collected by the second camera (that is, the picture centers coincide), and if different, the centers of the pictures of the horizontal screen image information collected by the first camera and the vertical screen image information collected by the second camera need to be firstly adjusted to be consistent.
In this embodiment, a user may start a unidirectional shooting function or a bidirectional shooting function of a shooting application as needed, and if the user starts the bidirectional shooting function, that is, the mobile device detects that a shooting instruction input by the user is a bidirectional shooting instruction, that is, an instruction for simultaneously starting the first camera and the second camera to shoot; of course, when the user starts a shooting instruction of the shooting application, a plurality of shooting selection modes are displayed to the user, such as starting the first camera, starting the second camera, or simultaneously starting the first camera and the second camera, and the like, and of course, more cameras can be started, and the like, which is not limited in this embodiment.
In this embodiment, it is detected that the user simultaneously starts the first camera and the second camera on the mobile device to perform a shooting instruction.
Secondly, executing a step 102, according to the shooting instruction, simultaneously controlling the first camera to shoot horizontal screen image information of the same scene and the second camera to shoot vertical screen image information of the same scene, wherein the picture centers of the horizontal screen image information and the vertical screen image information are overlapped;
in this step, the mobile device simultaneously starts the first camera and the second camera for shooting according to the shooting instruction, that is, simultaneously starts the shooting module of the first camera to collect the horizontal screen image information of the same scene, and starts the shooting module of the second camera to collect the vertical screen image information of the same scene. That is to say, the imaging system of the first camera and the imaging system of the second camera are independent imaging systems respectively, and the two imaging systems can shoot the same scene at the same time to obtain the horizontal screen image information and the vertical screen image information of the scene.
Thirdly, executing step 103, and simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
in this step, after the mobile device obtains the horizontal screen image information and the vertical screen image information at the same time, the horizontal screen image information shot by the first camera and the vertical screen image information shot by the second camera can be simultaneously displayed on the display screen of the mobile device. That is to say, in this embodiment, the display screen of the mobile device is divided into a horizontal screen image display area and a vertical screen image display area, where the horizontal screen image display area is used to display the shot horizontal screen image information, and the vertical screen image display area is used to display the shot horizontal screen image information, that is, in this embodiment, only the horizontal screen image information and the vertical screen image information which are simultaneously started to be shot in two directions are displayed on the same screen in a split manner, for example, the upper side of the screen is used as the horizontal screen image display area, and the lower side is used as the vertical screen image display area, as shown in fig. 2 in particular, fig. 2 is a schematic diagram of the screen provided by this disclosure for simultaneously displaying the horizontal screen image area and the vertical screen image area, fig. 2 is only an example, and in practical application, this is not limited thereto, and other manners may also be used, such as the upper side of the screen is used as the vertical screen image display area, the lower side may be a horizontal screen image display area or the like, and may be left and right. Of course, if the user selects the shooting mode of the shooting application to be shooting through only one camera, the image information shot by the one camera may be displayed on the full screen of the display screen of the mobile device, and the image information may be horizontal screen image information or vertical screen image information, which is not limited in this embodiment.
And finally, executing step 104, when the shooting end is detected, generating a horizontal screen file according to the displayed horizontal screen image file information, and generating a vertical screen file according to the vertical screen image information.
In the step, when the terminal detects that the shooting is finished, a horizontal screen file is generated according to the displayed horizontal screen image file information, and a vertical screen file is generated according to the vertical screen image information. That is to say, when the shooting is finished, the corresponding horizontal screen file and the vertical screen file are respectively generated according to the shot horizontal screen image information and the shot vertical screen image, and the horizontal screen file and the vertical screen file are saved.
According to the method and the device, when a shooting instruction that a first camera and a second camera on the mobile equipment shoot is started while user input is detected, the first camera is controlled to shoot transverse screen image information of the same scene and the second camera shoots vertical screen image information of the same scene, the transverse screen image information and the vertical screen image information are displayed for the user at the same time, when shooting is detected to be finished, a transverse screen file is generated according to the displayed transverse screen image file information, and a vertical screen file is generated according to the vertical screen image information. That is to say, in the present disclosure, by using the characteristics of the multiple cameras on the mobile device, two cameras can be controlled to simultaneously shoot the horizontal screen image and the vertical screen image of the same scene, that is, once shooting is performed, the horizontal screen image information and the vertical screen image information of the scene can be simultaneously obtained (i.e., image information with different proportions is obtained), so that not only is the shooting efficiency improved, but also the shooting time of the user is saved.
FIG. 3 is another flow chart illustrating a file generation method, as shown in FIG. 3, for use in a mobile device, according to an exemplary embodiment, the method comprising the steps of:
step 301: detecting a shooting instruction input by a user, wherein the shooting instruction is an instruction for starting a first camera and a second camera on the mobile equipment to shoot simultaneously;
step 302: according to the shooting instruction, the first camera is controlled to shoot transverse screen image information of the same scene, and the second camera is controlled to shoot vertical screen image information of the same scene, wherein the image centers of the transverse screen image information and the vertical screen image information are overlapped;
in this embodiment, the implementation processes of step 301 and step 302 are the same as those of step 101 and step 102, and are specifically described above, and are not described again here.
Step 303: judging whether the horizontal screen image information and the vertical screen image information both meet the horizontal screen proportion and the vertical screen proportion of a preset file; if yes, go to step 304 and step 307; if not, go to step 305;
in this step, because the screen proportion of different platforms is different, for example, the mobile phone screen proportion is different from the computer screen proportion, the proportion of horizontal and vertical screens of the full-screen displayed image or video on different platforms is different, and based on this, the screen proportion of the horizontal screen image information and the vertical screen image information shot by the user needs to be judged, so that the shot image or video can be displayed on different platforms in full-screen.
The method comprises the steps that the horizontal screen proportion and the vertical screen proportion of a preset file are predetermined, and the determination mode is that the preset values of the horizontal screen proportion and the vertical screen proportion of different social platforms (such as a mobile phone platform, a computer platform and the like) to an uploaded file are obtained; and then according to the preset value, setting the horizontal screen proportion and the vertical screen proportion of the generated file, for example, the video on the short video platform of the mobile phone is generally vertical screen, the length of the uploaded video is required to be larger than the width, and the preset value of the proportion of the width to the length can be 3:4, 9:16, etc.; for another example, a video on a computer platform is generally a horizontal screen, and the width of the uploaded video is required to be greater than the length, for example, the preset value of the ratio of the width to the length may be: 4:3,16:9.
In this step, the terminal judges whether the horizontal screen image information meets the horizontal screen proportion of a preset file, and judges whether the vertical screen image information meets the vertical screen proportion of the preset file, if so, the step 304 is executed; otherwise, step 305 is performed as long as one is not satisfied.
Step 304: simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
the step is the same as the implementation process of step 103, and is described in detail above, and is not described herein again.
Step 305: clipping the horizontal screen image information and/or the vertical screen image information which are not satisfied;
in the step, the mobile device cuts the unsatisfied transverse screen image information and/or vertical screen image information, specifically, the mobile device can control the image data acquisition module of the first camera to cut the shot transverse screen image information (namely the original transverse screen picture) according to the transverse screen proportion of a preset file, or, controlling an image data acquisition module of the second camera to cut the shot vertical screen image information (namely the original vertical screen picture) according to the vertical screen proportion of the preset file, or simultaneously controlling the image data acquisition module of the first camera and the image data acquisition module of the second camera to respectively cut the shot transverse screen image information and vertical screen image information according to the transverse screen proportion and the vertical screen proportion of a preset file, therefore, the horizontal screen image information meeting the horizontal screen proportion requirement of the preset file and the vertical screen image information meeting the vertical screen proportion requirement of the preset file are obtained.
The horizontal screen image information and the vertical screen image information before and after cropping are shown in fig. 4A and 4B, wherein fig. 4A is a schematic scale diagram of the horizontal screen image information before and after cropping according to an exemplary embodiment, and fig. 4B is a schematic scale diagram of the vertical screen image information before and after cropping according to an exemplary embodiment.
In fig. 4A, the ratio of the landscape image information (i.e., the original frame) before clipping is 4:3, clipping is performed according to the preset value of the preset landscape ratio, the ratio of the landscape image information after clipping is 16:9, and the landscape image information after clipping is specifically shown by the diagonal line portion in fig. 4A.
Similarly, in fig. 4B, the ratio of the vertical screen image information (i.e., the original image frame) before clipping is 3:4, clipping is performed according to the preset value of the preset horizontal screen ratio, the ratio of the clipped vertical screen image information is 9:16, and the clipped horizontal screen image information is specifically shown by the diagonal line segment in fig. 4B.
Step 306: displaying the cut horizontal screen image information and vertical screen image information to the user at the same time;
in this step, the process shown in step 103 is the same as or similar to that shown in step 103, and is described in detail above, and is not described herein again.
Step 307: and when the shooting is detected to be finished, generating a horizontal screen file according to the displayed horizontal screen image file information, and generating a vertical screen file according to the vertical screen image information.
The step is the same as the implementation process of step 104, and is described in detail above, and is not described herein again.
According to the method and the device, whether the horizontal screen image information and the vertical screen image information both meet the horizontal screen proportion and the vertical screen proportion of the preset file is further judged, and the original image proportion of the horizontal screen image information and/or the vertical screen image information which are not met is cut according to the horizontal screen proportion and the vertical screen proportion of the preset file, so that the horizontal screen file and the vertical screen file which are generated according to the cut horizontal screen image information and the vertical screen image information can be displayed in a full screen mode when being uploaded to different platforms. That is to say, in the present disclosure, by using the characteristics of multiple cameras on the mobile device, two cameras can be controlled to simultaneously shoot the horizontal screen image and the vertical screen image of the same scene, that is, once shooting is performed, the horizontal screen image information and the vertical screen image information of the scene (that is, image information with different proportions) can be obtained at the same time, and the horizontal screen image information and/or the vertical screen image information that do not satisfy the horizontal-vertical screen proportion of the preset file are cut, so that the horizontal screen proportion and the vertical screen proportion of the preset file are both satisfied with the shot horizontal-vertical screen image information, which not only reduces information loss caused by cutting the image at the later stage, ensures the consistency of the content of the image, but also improves the shooting efficiency, and saves the shooting time of the user.
Fig. 5 is a further flowchart illustrating a file generation method, as shown in fig. 5, for use in a mobile device, according to an exemplary embodiment, the method comprising the steps of:
step 501: detecting a shooting instruction input by a user, wherein the shooting instruction is an instruction for starting a first camera and a second camera on the mobile equipment to shoot simultaneously;
step 502: according to the shooting instruction, the first camera is controlled to shoot transverse screen image information of the same scene, and the second camera is controlled to shoot vertical screen image information of the same scene, wherein the image centers of the transverse screen image information and the vertical screen image information are overlapped;
in this embodiment, the implementation processes of step 501 and step 502 are the same as those of step 101 and step 102, and are specifically described above, and are not described again here.
Step 503: judging whether the horizontal screen image information and the vertical screen image information both meet the horizontal screen proportion and the vertical screen proportion of a preset file; if yes, go to step 504 and step 507; if not, go to step 505;
step 504: simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
step 505: clipping the horizontal screen image information and/or the vertical screen image information which are not satisfied;
in this embodiment, steps 501 to 505 are the same as steps 401 to 405 described above, and are described in detail above, and are not described again here.
Step 506: judging whether the image centers of the cut horizontal screen image information and the cut vertical screen image information are overlapped; if not, go to step 507; if so, go to step 509;
the purpose of the judgment is to ensure the image center consistency of the cut transverse screen image information and the cut vertical screen image information, and if the transverse screen image information and the vertical screen image information are not consistent, the adjustment is needed to ensure that the image centers of the transverse screen image information and the vertical screen image information are consistent.
Step 507: adjusting the image center of the cut horizontal screen image information and/or vertical screen image information to enable the cut horizontal screen image information and the cut vertical screen image information to be superposed;
in this step, one adjustment method may determine whether the center points of the horizontal screen image information and the vertical screen image information are the same by comparing the image coordinate points or the focal distance reference points of the horizontal screen image information and the vertical screen image information, and of course, the adjustment method may be the same as the other adjustment method, which is well known in the art and will not be described herein again.
Step 508: displaying the horizontal screen image information and the vertical screen image information after the image center is adjusted to the user;
step 509: displaying the cut horizontal screen image information and vertical screen image information to the user;
step 510: and when the shooting end is detected, generating a horizontal screen file according to the displayed horizontal screen image file information, and generating a vertical screen file according to the vertical screen image information.
Namely, generating corresponding vertical screen image information according to the display of the step 504, the step 507 and the step 508 to generate a vertical screen file.
In this disclosure, in order to ensure consistency between horizontal screen image information acquired by a first camera and vertical screen image information acquired by a second camera, it is necessary to determine whether image centers of the horizontal screen image information and the vertical screen image information after being cut coincide with each other, and adjust image centers of the horizontal screen image information and/or the vertical screen image information that do not coincide with each other, so that image centers thereof coincide with each other.
Optionally, in another embodiment, on the basis of the above embodiment, after the horizontal screen image information and the vertical screen image information with the adjusted image centers are displayed to the user, the method may further include:
detecting an adjusting instruction input by the user, wherein the adjusting instruction is used for enlarging or reducing the displayed horizontal screen image information and/or vertical screen image information;
adjusting the focal length parameter of the first camera and/or the second camera according to the adjusting instruction; so that the centers of the corresponding horizontal and/or vertical screen image information shot by the adjusted first camera and/or second camera are all in the center of the image display region.
Utilizing the first camera after the focal length parameter is adjusted to shoot the horizontal screen image information of the same scene and/or utilizing the second camera to shoot the vertical screen image information of the same scene;
and when or after the shooting is detected to be finished, generating a horizontal screen file according to the information of the horizontal screen image shot by the first camera after the focal length parameter is adjusted and generating a vertical screen file according to the information of the vertical screen image shot by the second camera after the focal length parameter is adjusted.
In this embodiment, after the landscape screen image information and the portrait screen image information with the adjusted image centers are displayed to the user, if the center of the landscape screen image information and/or the center of the portrait screen image information after the center of the image is adjusted does not exceed the center of the corresponding image display area of the screen (for example, the center of the adjusted landscape screen image information does not exceed the center of the image display area, etc.), the user inputs an instruction for adjusting the focal length of the corresponding camera, namely, when the mobile equipment detects an adjusting instruction input by a user, the focal length parameter of the first camera and/or the second camera is adjusted, and adjusting the center of the transverse screen image information recorded by the first camera to be in the center of the transverse screen image display area, and the like.
Optionally, in another embodiment, on the basis of the foregoing embodiment, before the cutting, the method may further include:
acquiring preset values of horizontal screen proportion and vertical screen proportion of different social platforms to uploaded files;
and setting the horizontal screen proportion and the vertical screen proportion of the generated file according to the preset value.
In this embodiment, because the requirements (i.e., preset values) of different social platforms on the proportions of uploaded files (e.g., videos or pictures) are different, for example, the mobile phone platform displays the files in a vertical screen mode, and the computer platform displays the files in a horizontal screen mode. Therefore, the video or the picture meeting different social platforms can be shot only by acquiring the proportion requirement of different social platforms on the uploaded video or the picture.
Optionally, in another embodiment, on the basis of the above embodiment, after the horizontal screen image information and the vertical screen image information are simultaneously displayed to the user and before it is detected that the shooting is finished, the method may further include:
detecting a switching instruction input by a user;
switching the first camera to a third camera on the mobile equipment or switching the second camera to a fourth camera on the mobile equipment according to the switching instruction; or simultaneously switching the first camera to the third camera and switching the second camera to the fourth camera, wherein the third camera is an alternative camera with the original proportion of the image shot by the first camera; the fourth camera is an alternative camera with the original proportion of the image shot by the second camera;
simultaneously controlling the switched third camera to shoot transverse screen image information of the same scene and/or the switched fourth camera to shoot vertical screen image information of the same scene;
simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
and when or after the shooting is detected to be finished, generating a horizontal screen file according to the displayed horizontal screen image file information, and generating a vertical screen file according to the vertical screen image information.
In this embodiment, when the user sees the horizontal screen image information and the vertical screen image information in the display screen, if the user feels that the image needs to be adjusted, the user can select the corresponding horizontal screen image information and/or the corresponding standby camera corresponding to the vertical screen image information according to the need, so as to take a better image picture or video picture.
Alternatively, in another embodiment, which is based on the above-described embodiment,
the first camera and the second camera are respectively a first main camera and a second main camera on the mobile equipment; or
The first camera is a first main camera on the mobile equipment, and the second camera is an alternative camera on the mobile equipment; or
The first camera is an alternative camera on the mobile equipment, and the second camera is a second main camera on the mobile equipment; or
The first camera is a standby camera on the mobile device, and the second camera is a standby camera on the mobile device.
In this embodiment, when detecting an instruction of a user, the mobile device switches the camera according to the instruction, so as to capture a better image or record a better file such as a video.
Alternatively, in another embodiment, which is based on the above-described embodiment,
the first camera and the second camera are rear cameras on the mobile equipment; or
The first camera and the second camera are both front cameras on the mobile equipment.
In this embodiment, the first camera and the second camera on the mobile device may both be front-facing cameras, or may both be rear-facing cameras, and this embodiment is not limited.
For easy understanding, it is assumed that there are 2 rear cameras on the mobile phone, and the image sensing elements (COMS) of the 2 cameras are all 4: for example, as shown in fig. 6, fig. 6 is a schematic diagram of image sensing elements of two rear cameras on a mobile device according to an exemplary embodiment, where the image sensing elements (COMS) of the two rear cameras are 4:3 is taken as an example.
In this embodiment, when the mobile phone is in the vertical state, since the image sensing elements (COMS) of the 2 cameras are all 4:3, actually requiring the cross-screen ratio of the video to be 16:9, and the vertical screen ratio is 9: for example, 16, the horizontal screen ratio and the vertical screen ratio of the original set file are required.
Therefore, the horizontal screen ratio of the video (original picture) shot by the 2 cameras is 4:3, and the vertical screen ratio is 4: 3; therefore, the picture information collected by the 2 cameras needs to be cut, and the horizontal screen ratio and the vertical screen ratio after cutting are 16:9 and 9:16 respectively.
Since the image sensing elements or modules (COMS) of these 2 cameras are all 4:3, the centers of the framing pictures of the 2 cameras are consistent, and adjustment is not needed.
The mobile phone screen displays the framing pictures of the 2 cameras, the centers of the pictures are consistent, the displayed pictures are as shown in fig. 7, and fig. 7 shows a schematic diagram for simultaneously displaying horizontal screen image information and vertical screen image information acquired by the two cameras according to an exemplary embodiment.
Further, the focal length of the vertical-screen camera can be independently adjusted according to needs, and the horizontal-screen camera remains unchanged, as shown in fig. 8, fig. 8 shows a schematic diagram showing horizontal-screen image information and vertical-screen image information after the focal length of the vertical-screen camera is adjusted according to an exemplary embodiment.
And finally, after the shooting is detected to be finished, generating a horizontal screen file according to the displayed horizontal screen image file information, and generating a vertical screen file according to the vertical screen image information. I.e. 2 video files are obtained simultaneously: horizontal screen files and vertical screen files.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present disclosure is not limited by the order of acts described, as some steps may, in accordance with the present disclosure, occur in other orders and/or concurrently. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required in order to implement the disclosure.
FIG. 9 is a block diagram illustrating a file generation apparatus according to an example embodiment. Referring to fig. 9, the apparatus includes: a first detection module 901, a first control module 902, a first presentation module 903, and a first generation module 904.
A first detection module 901, configured to execute a shooting instruction detected by a user, where the shooting instruction is an instruction to start a first camera and a second camera on a mobile device to shoot simultaneously;
a first control module 902 configured to execute, according to the shooting instruction, simultaneously controlling the first camera to shoot landscape screen image information of the same scene and the second camera to shoot portrait screen image information of the same scene, wherein picture centers of the landscape screen image information and the portrait screen image information coincide;
a first presentation module 903 configured to perform presentation of the landscape screen image information and the portrait screen image information to the user at the same time;
a first generating module 904 configured to execute, when the end of shooting is detected, simultaneously generating a landscape screen file according to the displayed landscape screen image file information, and generating a portrait screen file according to the portrait screen image information.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a schematic structural diagram of the first determining module 1001, the clipping module 1002 and the second exhibiting module 1003 is shown in fig. 10, wherein,
a first judging module 1001 configured to judge whether the horizontal screen image information and the vertical screen image information both satisfy a horizontal screen ratio and a vertical screen ratio of a preset file before being displayed by the first displaying module 903;
the first display module 903 is further configured to perform, when the first determination module 1001 determines that the requirements are met, simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
a cropping module 1002 configured to perform cropping on the horizontal screen image information and/or vertical screen image information that is not satisfied when the first determination module 1001 determines that the horizontal screen image information and/or vertical screen image information are not satisfied;
a second display module 1003 configured to simultaneously display the horizontal screen image information and the vertical screen image information cut by the cutting module 1002 to the user.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a second determining module, a first adjusting module and a third displaying module (not shown), wherein,
the second judgment module is configured to execute judgment on whether the image centers of the horizontal screen image information and the vertical screen image information cut by the cutting module coincide or not;
a first adjusting module configured to perform adjustment on the image center of the cut horizontal screen image information and/or vertical screen image information so that the image center of the cut horizontal screen image information and the image center of the cut vertical screen image information coincide when the second judging module judges that the horizontal screen image information and the vertical screen image information do not coincide;
a third display module configured to perform display of the landscape screen image information and the portrait screen image information with the adjusted image centers to the user;
the second display module is further configured to display the cut horizontal screen image information and vertical screen image information to the user when the second determination module determines that the horizontal screen image information and the vertical screen image information coincide with each other.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a second detection module, a second adjustment module, a photographing module and a second generation module (not shown), wherein,
a second detection module configured to detect an adjustment instruction input by the user after the third display module displays the horizontal screen image information and/or the vertical screen image information, wherein the adjustment instruction is an instruction for enlarging or reducing the displayed horizontal screen image information and/or vertical screen image information;
the second adjusting module is configured to adjust the focal length parameter of the first camera and/or the second camera according to the adjusting instruction;
the shooting module is configured to execute shooting of the horizontal screen image information of the same scene by using the first camera after the focal length parameter adjustment and/or shooting of the vertical screen image information of the same scene by using the second camera;
and the second generation module is configured to execute the steps of generating a horizontal screen file according to the horizontal screen image information shot by the first camera after the focal length parameter is adjusted and generating a vertical screen file according to the vertical screen image information shot by the second camera after the focal length parameter is adjusted when the shooting end is detected.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: an acquisition module and a setup module (not shown), wherein,
the acquisition module is configured to acquire preset values of horizontal screen proportion and vertical screen proportion of the uploaded files of different social platforms before the first judgment module judges;
and the setting module is configured to set the horizontal screen proportion and the vertical screen proportion of the generated file according to the preset value.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a third detecting module, a switching module, a second control module, a third displaying module and a third generating module (not shown), wherein
The third detection module is configured to execute a switching instruction input by the user after being displayed to the user and before the shooting is detected to be finished;
a switching module configured to execute switching the first camera to a third camera on the mobile device or switching the second camera to a fourth camera on the mobile device according to the switching instruction; or simultaneously switching the first camera to the third camera and switching the second camera to the fourth camera, wherein the third camera is an alternative camera with the original proportion of the image shot by the first camera; the fourth camera is an alternative camera with the original proportion of the image shot by the second camera;
the second control module is configured to execute simultaneous control of the switched third camera to shoot horizontal screen image information of the same scene and/or the switched fourth camera to shoot vertical screen image information of the same scene;
a third presentation module configured to perform presentation of the landscape screen image information and the portrait screen image information to the user at the same time;
and the third generation module is configured to execute generating a horizontal screen file according to the displayed horizontal screen image file information and generating a vertical screen file according to the vertical screen image information after the shooting is detected to be finished.
Alternatively, in another embodiment, which is based on the above-described embodiment,
the first camera and the second camera controlled by the first control module are respectively a first main camera and a second main camera on the mobile equipment; or
The first camera controlled by the first control module is a first main camera on the mobile equipment, and the second camera is an alternative camera on the mobile equipment; or
The first camera controlled by the first control module is an alternative camera on the mobile equipment, and the second camera is a second main camera on the mobile equipment; or
The first camera controlled by the first control module is the alternative camera on the mobile equipment, and the second camera is the alternative camera on the mobile equipment.
Alternatively, in another embodiment, which is based on the above-described embodiment,
the first camera and the second camera controlled by the first control module are rear cameras on the mobile equipment; or
The first camera and the second camera controlled by the first control module are front cameras on the mobile equipment.
An electronic device shown in an embodiment of the present disclosure includes:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the file generation method as described above.
Referring also to fig. 11, fig. 11 is a block diagram illustrating an electronic device 1100 in accordance with an example embodiment. The electronic device may be a mobile terminal or a server, and in the embodiment of the present disclosure, the electronic device is taken as an example for description. For example, the electronic device 1100 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 11, electronic device 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input/output (I/O) interface 1112, a sensor component 1114, and a communication component 1116.
The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1102 may include one or more processors 1120 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the electronic device 1100. Examples of such data include instructions for any application or method operating on the electronic device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1106 provides power to the various components of the electronic device 1100. The power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1100.
The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 1100 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1114 includes one or more sensors for providing various aspects of state assessment for the electronic device 1100. For example, the sensor assembly 1114 may detect an open/closed state of the electronic device 1100, the relative positioning of components, such as a display and keypad of the electronic device 1100, the sensor assembly 1114 may also detect a change in the position of the electronic device 1100 or a component of the electronic device 1100, the presence or absence of user contact with the electronic device 1100, orientation or acceleration/deceleration of the electronic device 1100, and a change in the temperature of the electronic device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the electronic device 1100 and other devices. The electronic device 1100 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the file generation methods shown above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1104 comprising instructions, executable by the processor 1120 of the electronic device 1100 to perform the file generation method illustrated above, is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product, the instructions of which, when executed by the processor 1120 of the electronic device 1100, cause the electronic device 1100 to perform the file generation method described above.
The present disclosure also provides a storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the file generation method as described above.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and reference may be made to part of the description of the embodiment of the method for the relevant points, and the detailed description will not be made here.
Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, which may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present disclosure also provides a computer program product, in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform the file generation method as described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A file generation method, comprising:
detecting a shooting instruction input by a user, wherein the shooting instruction is an instruction for starting a first camera and a second camera on mobile equipment to shoot simultaneously;
according to the shooting instruction, the first camera is controlled to shoot transverse screen image information of the same scene, and the second camera is controlled to shoot vertical screen image information of the same scene, wherein the image centers of the transverse screen image information and the vertical screen image information are overlapped;
simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
when the shooting is detected to be finished, generating a horizontal screen file according to the displayed horizontal screen image information and generating a vertical screen file according to the vertical screen image information;
before being presented to the user, the method further comprises:
judging whether the horizontal screen image information and the vertical screen image information both meet the horizontal screen proportion and the vertical screen proportion of a preset file, wherein the horizontal screen proportion and the vertical screen proportion of the preset file are determined according to preset values of the horizontal screen proportion and the vertical screen proportion of different social platforms to uploaded files;
if both the horizontal screen image information and the vertical screen image information are satisfied, the step of simultaneously displaying the horizontal screen image information and the vertical screen image information to the user is executed;
if the image information does not meet the requirements, the transverse screen image information and/or the vertical screen image information which are not met are/is cut;
and simultaneously displaying the cut horizontal screen image information and vertical screen image information to the user.
2. The file generation method of claim 1, wherein after the cropping, the method further comprises:
judging whether the image centers of the cut horizontal screen image information and the cut vertical screen image information are overlapped;
if the image center of the cut horizontal screen image information and/or vertical screen image information is not coincident, adjusting the image center of the cut horizontal screen image information and/or vertical screen image information to enable the image center of the cut horizontal screen image information and the image center of the cut vertical screen image information to be coincident; displaying the horizontal screen image information and the vertical screen image information after the image center is adjusted to the user;
and if the horizontal screen image information and the vertical screen image information are overlapped, displaying the cut horizontal screen image information and vertical screen image information to the user.
3. The file generation method according to claim 2, wherein after the horizontal screen image information and the vertical screen image information with the adjusted image centers are displayed to the user, the method further comprises:
detecting an adjusting instruction input by the user, wherein the adjusting instruction is used for enlarging or reducing the displayed horizontal screen image information and/or vertical screen image information;
adjusting the focal length parameter of the first camera and/or the second camera according to the adjusting instruction;
utilizing the first camera after the focal length parameter is adjusted to shoot the horizontal screen image information of the same scene and/or utilizing the second camera to shoot the vertical screen image information of the same scene;
after the shooting is detected to be finished, generating a horizontal screen file according to the information of the horizontal screen image shot by the first camera after the focal length parameter is adjusted, and generating a vertical screen file according to the information of the vertical screen image shot by the second camera after the focal length parameter is adjusted.
4. The file generation method of claim 1, wherein prior to clipping, the method further comprises:
acquiring preset values of horizontal screen proportion and vertical screen proportion of different social platforms to uploaded files;
and setting the horizontal screen proportion and the vertical screen proportion of the generated file according to the preset value.
5. The file generation method according to any one of claims 1 to 4, wherein after the horizontal screen image information and the vertical screen image information are simultaneously presented to the user, before the end of shooting is detected, the method further comprises:
detecting a switching instruction input by a user;
switching the first camera to a third camera on the mobile equipment or switching the second camera to a fourth camera on the mobile equipment according to the switching instruction; or simultaneously switching the first camera to the third camera and switching the second camera to the fourth camera, wherein the third camera is a candidate camera with an original proportion of images shot by the first camera; the fourth camera is an alternative camera with the original proportion of the image shot by the second camera;
simultaneously controlling the switched third camera to shoot transverse screen image information of the same scene and/or the switched fourth camera to shoot vertical screen image information of the same scene;
simultaneously displaying the horizontal screen image information and the vertical screen image information to the user;
and after the shooting is detected to be finished, generating a horizontal screen file according to the displayed horizontal screen image file information, and generating a vertical screen file according to the vertical screen image information.
6. The file generation method according to any one of claims 1 to 4,
the first camera and the second camera are respectively a first main camera and a second main camera on the mobile equipment; or
The first camera is a first main camera on the mobile equipment, and the second camera is an alternative camera on the mobile equipment; or
The first camera is an alternative camera on the mobile equipment, and the second camera is a second main camera on the mobile equipment; or
The first camera is a standby camera on the mobile device, and the second camera is a standby camera on the mobile device.
7. The file generation method according to any one of claims 1 to 4,
the first camera and the second camera are rear cameras on the mobile equipment; or
The first camera and the second camera are both front cameras on the mobile equipment.
8. A file generation apparatus, comprising:
the mobile device comprises a first detection module, a second detection module and a control module, wherein the first detection module is configured to execute a shooting instruction which is detected to be input by a user, and the shooting instruction is an instruction for starting a first camera and a second camera on the mobile device to shoot at the same time;
a first control module configured to execute simultaneous control of the first camera to shoot landscape screen image information of the same scene and the second camera to shoot portrait screen image information of the same scene according to the shooting instruction, wherein the landscape screen image information and the portrait screen image information have coincident picture centers;
a first presentation module configured to perform presentation of the landscape screen image information and the portrait screen image information to the user at the same time;
the first generation module is configured to execute the steps of generating a horizontal screen file according to the displayed horizontal screen image information and generating a vertical screen file according to the vertical screen image information when the shooting end is detected;
the device further comprises:
the first judging module is configured to judge whether the horizontal screen image information and the vertical screen image information both meet the horizontal screen proportion and the vertical screen proportion of a preset file before being displayed by the displaying module, wherein the horizontal screen proportion and the vertical screen proportion of the preset file are determined according to preset values of the horizontal screen proportion and the vertical screen proportion of different social platforms to uploaded files;
the first display module is further configured to simultaneously display the horizontal screen image information and the vertical screen image information to the user when the first judgment module judges that the horizontal screen image information and the vertical screen image information are satisfied;
a cropping module configured to perform cropping on the horizontal screen image information and/or vertical screen image information that is not satisfied when the first determination module determines that the horizontal screen image information and/or vertical screen image information are not satisfied;
and the second display module is configured to simultaneously display the transverse screen image information and the vertical screen image information which are cut by the cutting module to the user.
9. The file generation apparatus according to claim 8, wherein the apparatus further comprises:
the second judgment module is configured to execute judgment on whether the image centers of the horizontal screen image information and the vertical screen image information cut by the cutting module coincide or not;
a first adjusting module configured to perform adjustment on the image center of the cut horizontal screen image information and/or vertical screen image information so that the image center of the cut horizontal screen image information and the image center of the cut vertical screen image information coincide when the second judging module judges that the horizontal screen image information and the vertical screen image information do not coincide;
a third display module configured to perform display of the landscape screen image information and the portrait screen image information with the adjusted image centers to the user;
the second display module is further configured to display the cut horizontal screen image information and vertical screen image information to the user when the second determination module determines that the horizontal screen image information and the vertical screen image information coincide with each other.
10. The file generation apparatus according to claim 9, wherein the apparatus further comprises:
a second detection module configured to detect an adjustment instruction input by the user after the third display module displays the horizontal screen image information and/or the vertical screen image information, wherein the adjustment instruction is an instruction for enlarging or reducing the displayed horizontal screen image information and/or vertical screen image information;
the second adjusting module is configured to adjust the focal length parameter of the first camera and/or the second camera according to the adjusting instruction;
the shooting module is configured to execute shooting of the horizontal screen image information of the same scene by using the first camera after the focal length parameter adjustment and/or shooting of the vertical screen image information of the same scene by using the second camera;
and the second generation module is configured to execute the steps of generating a horizontal screen file according to the horizontal screen image information shot by the first camera after the focal length parameter is adjusted and generating a vertical screen file according to the vertical screen image information shot by the second camera after the focal length parameter is adjusted when the shooting end is detected.
11. The file generation apparatus according to claim 8, wherein the apparatus further comprises:
the acquisition module is configured to acquire preset values of horizontal screen proportion and vertical screen proportion of the uploaded files of different social platforms before the first judgment module judges;
and the setting module is configured to set the horizontal screen proportion and the vertical screen proportion of the generated file according to the preset value.
12. The file generating apparatus according to any one of claims 8 to 11, wherein the apparatus further comprises:
the third detection module is configured to detect a switching instruction input by the user after the third detection module is displayed to the user and before the shooting is finished;
a switching module configured to execute switching the first camera to a third camera on the mobile device or switching the second camera to a fourth camera on the mobile device according to the switching instruction; or simultaneously switching the first camera to the third camera and switching the second camera to the fourth camera, wherein the third camera is a candidate camera with an original proportion of images shot by the first camera; the fourth camera is an alternative camera of the original proportion of the image shot by the second camera;
the second control module is configured to execute simultaneous control of the switched third camera to shoot horizontal screen image information of the same scene and/or the switched fourth camera to shoot vertical screen image information of the same scene;
a third presentation module configured to perform presentation of the landscape screen image information and the portrait screen image information to the user at the same time;
and the third generation module is configured to execute generating a horizontal screen file according to the displayed horizontal screen image file information and generating a vertical screen file according to the vertical screen image information after the shooting is detected to be finished.
13. The file generating apparatus according to any one of claims 8 to 11,
the first camera and the second camera controlled by the first control module are respectively a first main camera and a second main camera of the mobile equipment; or
The first camera controlled by the first control module is a first main camera on the mobile equipment, and the second camera is an alternative camera on the mobile equipment; or
The first camera controlled by the first control module is an alternative camera on the mobile equipment, and the second camera is a second main camera on the mobile equipment; or
The first camera controlled by the first control module is the alternative camera on the mobile equipment, and the second camera is the alternative camera on the mobile equipment.
14. The file generating apparatus according to any one of claims 8 to 11,
the first camera and the second camera controlled by the first control module are rear cameras on the mobile equipment; or
The first camera and the second camera controlled by the first control module are front cameras on the mobile equipment.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the file generation method of any of claims 1 to 7.
16. A storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the file generation method of any one of claims 1 to 7.
CN202010266949.1A 2020-04-07 2020-04-07 File generation method and device, electronic equipment and storage medium Active CN111614910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010266949.1A CN111614910B (en) 2020-04-07 2020-04-07 File generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010266949.1A CN111614910B (en) 2020-04-07 2020-04-07 File generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111614910A CN111614910A (en) 2020-09-01
CN111614910B true CN111614910B (en) 2022-05-13

Family

ID=72201731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010266949.1A Active CN111614910B (en) 2020-04-07 2020-04-07 File generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111614910B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019686A (en) * 2020-09-15 2020-12-01 维沃移动通信(杭州)有限公司 Display method and device and electronic equipment
CN116546333B (en) * 2023-04-03 2023-10-31 华光影像科技合肥有限公司 Method, system and camera for simultaneously outputting video pictures of different shooting modes

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104995A (en) * 2014-07-18 2014-10-15 北京网秦天下科技有限公司 Image display method and device
CN105094762A (en) * 2014-04-30 2015-11-25 联发科技(新加坡)私人有限公司 Communication device and multi-window display method
CN106101553A (en) * 2016-07-27 2016-11-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN109089157A (en) * 2018-06-15 2018-12-25 广州华多网络科技有限公司 Method of cutting out, display equipment and the device of video pictures
GB2574661A (en) * 2018-06-15 2019-12-18 Swiftclass Sa Multipage display on a computing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469119A (en) * 2013-09-12 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
BR112016006091B1 (en) * 2013-11-21 2022-09-06 Huawei Device (Shenzhen) Co., Ltd IMAGE DISPLAY METHOD, COMPUTER STORAGE MEDIA, IMAGE DISPLAY DEVICE AND TERMINAL DEVICE

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094762A (en) * 2014-04-30 2015-11-25 联发科技(新加坡)私人有限公司 Communication device and multi-window display method
CN104104995A (en) * 2014-07-18 2014-10-15 北京网秦天下科技有限公司 Image display method and device
CN106101553A (en) * 2016-07-27 2016-11-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN109089157A (en) * 2018-06-15 2018-12-25 广州华多网络科技有限公司 Method of cutting out, display equipment and the device of video pictures
GB2574661A (en) * 2018-06-15 2019-12-18 Swiftclass Sa Multipage display on a computing device

Also Published As

Publication number Publication date
CN111614910A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN109947521B (en) Interface switching method and device and storage medium
CN107526494B (en) Keyboard display method, device, terminal and storage medium
CN108419016B (en) Shooting method and device and terminal
CN110662095B (en) Screen projection processing method and device, terminal and storage medium
CN105991930B (en) Zoom processing method, device and the mobile terminal of dual camera
CN105159640B (en) Display interface rotating method and device and mobile terminal
CN106657780B (en) Image preview method and device
CN106101680B (en) Acquisition parameters setting method and device
CN105282441B (en) Photographing method and device
CN107888984B (en) Short video playing method and device
CN112114765A (en) Screen projection method and device and storage medium
CN104216525B (en) Method and device for mode control of camera application
CN106775235B (en) Screen wallpaper display method and device
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
CN111614910B (en) File generation method and device, electronic equipment and storage medium
CN105094539A (en) Display method and device of reference information
CN115134505B (en) Preview picture generation method and device, electronic equipment and storage medium
CN105808102B (en) Add the method and device of frame
CN108650412B (en) Display method, display device and computer readable storage medium
CN108769513B (en) Camera photographing method and device
CN114943791A (en) Animation playing method, device, equipment and storage medium
CN115134516A (en) Shooting method and device
CN114697517A (en) Video processing method and device, terminal equipment and storage medium
CN111538447A (en) Information display method, device, equipment and storage medium
CN110784721A (en) Picture data compression method and device, electronic equipment and storage medium

Legal Events

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