











技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种拍摄预览方法及终端。Embodiments of the present invention relate to the field of communications technologies, and in particular, to a method and a terminal for shooting preview.
背景技术Background technique
目前,终端所具备的功能越来越多样化。例如,音频功能、拍照功能、摄像功能和存储功能等都已经成为终端的必备功能。At present, the functions of terminals are more and more diversified. For example, an audio function, a camera function, a camera function, and a storage function have all become essential functions of a terminal.
对于拍照功能,用户还可以选择不同的拍摄模式,例如人像模式、全景模式、默认模式或者视频模式等等。现有技术中,拍摄的过程比较繁琐。例如,如果用户想选择人像模式进行拍摄,需要在终端屏幕的指定位置点击相机应用图标,显示预览界面之后,还要手动选择人像模式,操作步骤较多。因此,现有技术中,拍摄的过程比较繁琐。For the camera function, the user can also select different shooting modes, such as portrait mode, panorama mode, default mode or video mode, and so on. In the prior art, the photographing process is complicated. For example, if the user wants to select the portrait mode for shooting, he needs to click the camera application icon at a designated position on the terminal screen, and after the preview interface is displayed, he has to manually select the portrait mode, which requires many operation steps. Therefore, in the prior art, the photographing process is cumbersome.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种拍摄预览方法及终端,以解决现有技术中,拍摄的过程比较繁琐的问题。Embodiments of the present invention provide a shooting preview method and terminal, so as to solve the problem that the shooting process is complicated in the prior art.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:
第一方面,本发明实施例提供了一种拍摄预览方法及终端,包括:In a first aspect, embodiments of the present invention provide a method and terminal for shooting preview, including:
接收用户的第一输入;receiving the first input from the user;
响应于所述第一输入,显示目标控件,且显示N个子区域;In response to the first input, displaying a target control, and displaying N sub-regions;
接收用户在所述目标控件上的第二输入;receiving a second input from the user on the target control;
响应于所述第二输入,显示目标拍摄模式对应的拍摄预览界面;In response to the second input, displaying a shooting preview interface corresponding to the target shooting mode;
其中,每个子区域对应一种拍摄模式;所述目标拍摄模式为所述第二输入在所述N个子区域中所选取的目标子区域对应的拍摄模式。Wherein, each sub-region corresponds to a shooting mode; the target shooting mode is a shooting mode corresponding to the target sub-region selected by the second input in the N sub-regions.
第二方面,本发明实施例还提供一种终端,包括:In a second aspect, an embodiment of the present invention further provides a terminal, including:
第一接收模块,用于接收用户的第一输入;a first receiving module, configured to receive the first input of the user;
第一显示模块,用于响应于所述第一输入,显示目标控件,且显示N个子区域;a first display module, configured to display a target control and display N sub-regions in response to the first input;
第二接收模块,用于接收用户在所述目标控件上的第二输入;a second receiving module, configured to receive the second input of the user on the target control;
第二显示模块,用于响应于所述第二输入,显示目标拍摄模式对应的拍摄预览界面;a second display module, configured to display a shooting preview interface corresponding to the target shooting mode in response to the second input;
其中,每个子区域对应一种拍摄模式;所述目标拍摄模式为所述第二输入在所述N个子区域中所选取的目标子区域对应的拍摄模式。Wherein, each sub-region corresponds to a shooting mode; the target shooting mode is a shooting mode corresponding to the target sub-region selected by the second input in the N sub-regions.
第三方面,本发明实施例还提供一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述拍摄预览方法的步骤。In a third aspect, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, when the computer program is executed by the processor Implement the steps of the above-mentioned shooting preview method.
第四方面,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述拍摄预览方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above method for shooting and previewing are implemented.
在本发明实施例中,通过接收用户的第一输入;响应于所述第一输入,显示目标控件,且显示N个子区域;接收用户在所述目标控件上的第二输入;响应于所述第二输入,显示目标拍摄模式对应的拍摄预览界面;其中,每个子区域对应一种拍摄模式;所述目标拍摄模式为所述第二输入在所述N个子区域中所选取的目标子区域对应的拍摄模式。这样,终端可以接收用户在目标控件上的第二输入,进而可以响应于第二输入,显示目标拍摄模式对应的拍摄预览界面。操作过程简单,方便快捷。In this embodiment of the present invention, by receiving a user's first input; in response to the first input, a target control is displayed, and N sub-regions are displayed; a second user input on the target control is received; in response to the The second input displays the shooting preview interface corresponding to the target shooting mode; wherein, each sub-region corresponds to a shooting mode; the target shooting mode corresponds to the target sub-region selected in the N sub-regions by the second input shooting mode. In this way, the terminal can receive the user's second input on the target control, and then can display a shooting preview interface corresponding to the target shooting mode in response to the second input. The operation process is simple, convenient and fast.
附图说明Description of drawings
图1是本发明实施例提供的拍摄预览方法的流程图之一;1 is one of the flow charts of a method for shooting preview provided by an embodiment of the present invention;
图2是本发明实施例提供的接收用户的第一输入的示意图;2 is a schematic diagram of receiving a first input from a user provided by an embodiment of the present invention;
图3是本发明实施例提供的显示目标控件以及N个子区域的示意图;3 is a schematic diagram of a display target control and N sub-regions provided by an embodiment of the present invention;
图4是本发明实施例提供的第二输入的操作结束时目标控件的预设区域位于目标子区域中的目标分区的示意图;4 is a schematic diagram of a target subregion where the preset area of the target control is located in the target sub-area when the operation of the second input provided by an embodiment of the present invention ends;
图5是本发明实施例提供的显示第一标识和第二标识的示意图;5 is a schematic diagram showing a first identification and a second identification provided by an embodiment of the present invention;
图6是本发明实施例提供的第二输入的操作结束时子控件位于终端显示屏的显示区域的第一位置的示意图;6 is a schematic diagram of a sub-control located at a first position of a display area of a terminal display screen when the operation of the second input provided by an embodiment of the present invention ends;
图7是本发明实施例提供的显示第三标识和第四标识的示意图;7 is a schematic diagram showing a third identification and a fourth identification provided by an embodiment of the present invention;
图8是本发明实施例提供的在子控件内显示标识的示意图之一;8 is one of the schematic diagrams of displaying a logo in a sub-control provided by an embodiment of the present invention;
图9是本发明实施例提供的在子控件内显示标识的示意图之二;9 is the second schematic diagram of displaying a logo in a sub-control provided by an embodiment of the present invention;
图10是本发明实施例提供的第一显示区、第二显示区和第三显示区的示意图;10 is a schematic diagram of a first display area, a second display area, and a third display area provided by an embodiment of the present invention;
图11是本发明实施例提供的终端的结构图;11 is a structural diagram of a terminal provided by an embodiment of the present invention;
图12是本发明实施例提供的终端的硬件结构示意图。FIG. 12 is a schematic diagram of a hardware structure of a terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
参见图1,图1是本发明实施例提供的拍摄预览方法的流程图之一,应用于终端。如图1所示,包括以下步骤:Referring to FIG. 1 , FIG. 1 is one of the flowcharts of a shooting preview method provided by an embodiment of the present invention, which is applied to a terminal. As shown in Figure 1, it includes the following steps:
步骤101、接收用户的第一输入。Step 101: Receive a first input from a user.
在步骤101中,终端可以接收用户的第一输入。第一输入可以为拖动操作。如图2所示,为接收用户的第一输入的示意图。In
步骤102、响应于所述第一输入,显示目标控件,且显示N个子区域。Step 102: In response to the first input, display the target control and display N sub-regions.
在步骤102中,响应于第一输入,可以显示目标控件,且可以显示N个子区域。其中,N个子区域中的每个子区域对应一种拍摄模式。拍摄模式可以为默认模式、人像模式、全景模式和视频模式等等。In
可选的,所述目标控件为线型控件。Optionally, the target control is a line control.
本发明实施例中,目标控件可为线型控件,例如触控线(TouchLine)。目标控件也可以为操作线或者操作控件等等。如图3所示,为显示目标控件以及N个子区域的示意图。在图3中,显示了目标控件1、默认模式区域2、人像模式区域3、全景模式区域4以及视频模式区域5。In the embodiment of the present invention, the target control may be a line control, such as a touch line (TouchLine). The target control can also be an operation line or an operation control and so on. As shown in FIG. 3 , it is a schematic diagram of displaying target controls and N sub-regions. In Figure 3,
步骤103、接收用户在所述目标控件上的第二输入。Step 103: Receive a second input from the user on the target control.
在步骤103中,终端可以接收用户在目标控件上的第二输入。第二输入可以为拖动目标控件的操作。In
步骤104、响应于所述第二输入,显示目标拍摄模式对应的拍摄预览界面,其中,每个子区域对应一种拍摄模式;所述目标拍摄模式为所述第二输入在所述N个子区域中所选取的目标子区域对应的拍摄模式。Step 104: In response to the second input, display a shooting preview interface corresponding to the target shooting mode, wherein each sub-region corresponds to a shooting mode; the target shooting mode is that the second input is in the N sub-regions The shooting mode corresponding to the selected target sub-area.
在步骤104中,终端响应于第二输入,可以显示目标拍摄模式对应的拍摄预览界面。其中,目标拍摄模式为第二输入在N个子区域中所选取的目标子区域对应的拍摄模式。In
可选的,所述第二输入为拖动所述目标控件的操作;Optionally, the second input is an operation of dragging the target control;
所述响应于所述第二输入,显示目标拍摄模式对应的拍摄预览界面,包括:The displaying of the shooting preview interface corresponding to the target shooting mode in response to the second input includes:
获取所述第二输入的操作结束时所述目标控件的预设区域所在的目标子区域;Obtaining the target sub-area where the preset area of the target control is located when the operation of the second input ends;
显示所述目标子区域对应的目标拍摄模式的拍摄预览界面。A shooting preview interface of the target shooting mode corresponding to the target sub-region is displayed.
第二输入可以为拖动目标控件的操作。例如,可以获取第二输入的操作结束时目标控件的预设区域所在的目标子区域。进而可以显示目标子区域对应的目标拍摄模式的拍摄预览界面。需要说明的是,显示目标子区域对应的目标拍摄模式的拍摄预览界面时,可以有两种方式。这里先来解释第一种方式。The second input may be the operation of dragging the target control. For example, the target sub-area where the preset area of the target control is located when the second input operation ends may be acquired. Further, the shooting preview interface of the target shooting mode corresponding to the target sub-region can be displayed. It should be noted that, when displaying the shooting preview interface of the target shooting mode corresponding to the target sub-region, there may be two methods. The first way is explained here.
可选的,所述显示所述目标子区域对应的目标拍摄模式的拍摄预览界面,包括:Optionally, the displaying the shooting preview interface of the target shooting mode corresponding to the target sub-area includes:
获取所述第二输入的操作结束时所述目标控件的预设区域所在的目标子区域中的目标分区;Obtaining the target subregion in the target subregion where the preset region of the target control is located when the operation of the second input ends;
开启所述目标分区对应的第一目标摄像头;Turn on the first target camera corresponding to the target partition;
显示通过所述第一目标摄像头采集图像所生成的目标拍摄模式的拍摄预览界面;Displaying a shooting preview interface of the target shooting mode generated by collecting images by the first target camera;
其中,所述目标子区域包括第一分区和第二分区,所述第一分区对应所述终端的前置摄像头,所述第二分区对应所述终端的后置摄像头,所述目标分区为所述第一分区和所述第二分区中的一者。The target sub-area includes a first partition and a second partition, the first partition corresponds to the front camera of the terminal, the second partition corresponds to the rear camera of the terminal, and the target partition is the one of the first partition and the second partition.
可以获取第二输入的操作结束时目标控件的预设区域所在的目标子区域中的目标分区。目标控件的预设区域可以为目标控件中间的长度为预设长度的一段,例如,可以为目标控件中间的长度为2厘米的一段。其中,目标子区域可以包括第一分区和第二分区,第一分区可以对应终端的前置摄像头,第二分区可以对应终端的后置摄像头。目标分区可以为第一分区和第二分区中的一者。需要说明的是,对于N个子区域中的每个子区域,均可以包含两个分区。且两个分区中的一个分区对应终端的前置摄像头,另一个分区对应终端的后置摄像头。接下来,可以开启目标分区对应的第一目标摄像头,进而可以显示通过第一目标摄像头采集图像所生成的目标拍摄模式的拍摄预览界面。如图4所示,为第二输入的操作结束时目标控件的预设区域位于目标子区域中的目标分区的示意图。在图4中,显示了目标控件1、默认模式区域2、人像模式区域3、全景模式区域4以及视频模式区域5。还显示了目标子区域包括的第一分区和第二分区,即显示了人像模式区域3包括的第一分区31和第二分区32。还显示了目标控件1的预设区域11,其中,预设区域11可为目标控件的中间或者其他区域的预设长度一段,例如,目标控件1的预设区域11可以为目标控件1中间的长度为2厘米的一段,或者其他长度的一段。这样,用户只需要将手指滑动到目标子区域中的目标分区,再抬起手指,终端即可通过目标分区对应的摄像头,采集目标子区域对应的目标拍摄模式的图像,进而可以生成目标拍摄模式的拍摄预览界面。操作步骤少,方便快捷。The target partition in the target sub-area where the preset area of the target control is located when the operation of the second input is completed may be obtained. The preset area of the target control may be a section in the middle of the target control whose length is the preset length, for example, may be a section in the middle of the target control with a length of 2 cm. The target sub-area may include a first partition and a second partition, the first partition may correspond to the front camera of the terminal, and the second partition may correspond to the rear camera of the terminal. The target partition may be one of the first partition and the second partition. It should be noted that, for each of the N sub-regions, two partitions may be included. And one of the two partitions corresponds to the front camera of the terminal, and the other partition corresponds to the rear camera of the terminal. Next, the first target camera corresponding to the target partition can be turned on, and then a shooting preview interface of the target shooting mode generated by collecting images by the first target camera can be displayed. As shown in FIG. 4 , it is a schematic diagram of a target sub-area where the preset area of the target control is located in the target sub-area when the operation of the second input ends. In Figure 4,
需要说明的是,终端还可以判断第二输入在拖动结束位置的停留时长是否达到预设时长。只有当第二输入在拖动结束位置的停留时长达到预设时长,才会显示拍摄预览界面。如果第二输入在拖动结束位置的停留时长未达到预设时长,就不会显示拍摄预览界面,此时目标控件可以恢复为直线状态。It should be noted that, the terminal can also determine whether the staying time of the second input at the drag end position reaches a preset time. The shooting preview interface will be displayed only when the second input stays at the drag end position for a preset time. If the dwell time of the second input at the drag end position does not reach the preset time, the shooting preview interface will not be displayed, and the target control can be restored to a straight state at this time.
可选的,在所述第一输入的操作过程中,所述方法还包括:Optionally, during the operation of the first input, the method further includes:
在所述目标控件的预设区域所经过的子区域的第一分区和第二分区分别显示第一标识和第二标识;Display the first identification and the second identification respectively in the first subregion and the second subregion of the subregion that the preset region of the target control passes through;
其中,所述第一标识用于指示所述第一分区对应所述终端的前置摄像头,所述第二标识用于指示所述第二分区对应所述终端的后置摄像头。The first identifier is used to indicate that the first partition corresponds to the front camera of the terminal, and the second identifier is used to indicate that the second partition corresponds to the rear camera of the terminal.
在第一输入的操作过程中,可以在目标控件的预设区域所经过的子区域的第一分区和第二分区分别显示第一标识和第二标识。其中,第一标识用于指示第一分区对应终端的前置摄像头,第二标识用于指示第二分区对应终端的后置摄像头。第一标识和第二标识可以为文字提示或者预览提示。例如,可以在第一分区显示前置摄像头的文字提示:“前置”、或者显示前置摄像头的预览提示画面。可以在第二分区显示后置摄像头的文字提示:“后置”、或者显示后置摄像头的预览提示画面。如图5所示,为显示第一标识和第二标识的示意图。在图5中,目标控件的预设区域所经过的子区域为默认模式区域2,目标控件的预设区域所经过的子区域的第一分区为默认模式区域2的左半部分区域;目标控件的预设区域所经过的子区域的第二分区为默认模式区域2的右半部分区域。在第一分区显示有“前置”字样,在第二分区显示有“后置”字样。这样,可以为用户提供提示,提示用户前置摄像头对应的触控区域以及后置摄像头对应的触控区域。便于用户快速选择想使用的摄像头。During the operation of the first input, the first mark and the second mark may be displayed in the first sub-area and the second sub-area of the sub-area that the preset area of the target control passes through, respectively. The first identifier is used to indicate the front camera of the terminal corresponding to the first partition, and the second identifier is used to indicate the rear camera of the terminal corresponding to the second partition. The first identification and the second identification may be text prompts or preview prompts. For example, a text prompt of the front camera: "Front" may be displayed in the first partition, or a preview prompt screen of the front camera may be displayed. The text prompt of the rear camera can be displayed in the second partition: "rear", or the preview prompt screen of the rear camera can be displayed. As shown in FIG. 5 , it is a schematic diagram showing the first identification and the second identification. In Fig. 5, the sub-area that the preset area of the target control passes through is the
可选的,所述目标控件预设侧边显示有子控件;Optionally, a sub-control is displayed on the preset side of the target control;
所述第二输入为控制所述子控件移动的拖动操作;The second input is a drag operation that controls the movement of the sub-control;
其中,所述第二输入为拉伸所述目标控件以控制所述子控件移动的操作。Wherein, the second input is an operation of stretching the target control to control the movement of the sub-control.
这里再来解释第二种方式。目标控件预设侧边还可以显示有子控件。第二输入可以为控制子控件移动的拖动操作,其中,第二输入为拉伸目标控件以控制子控件移动的操作。The second method is explained here. Sub-controls can also be displayed on the side of the target control preset. The second input may be a drag operation for controlling the movement of the sub-control, wherein the second input is an operation for stretching the target control to control the movement of the sub-control.
可选的,所述响应于所述第二输入,显示目标拍摄模式对应的拍摄预览界面,包括:Optionally, in response to the second input, displaying a shooting preview interface corresponding to the target shooting mode, including:
获取所述第二输入的操作结束时所述子控件在终端显示屏的显示区域的第一位置;When the operation of obtaining the second input ends, the sub-control is at the first position of the display area of the terminal display screen;
根据所述第一位置,确定第二目标摄像头;determining a second target camera according to the first position;
开启所述第二目标摄像头;turn on the second target camera;
显示通过所述第二目标摄像头采集图像所生成的目标拍摄模式的拍摄预览界面。A shooting preview interface of a target shooting mode generated by capturing an image with the second target camera is displayed.
终端可以获取第二输入的操作结束时子控件在终端显示屏的显示区域的第一位置。进而可以根据该第一位置,确定第二目标摄像头。The terminal may obtain the first position of the sub-control in the display area of the terminal display screen when the operation of obtaining the second input ends. Further, the second target camera can be determined according to the first position.
可选的,所述根据所述第一位置,确定第二目标摄像头,包括:Optionally, the determining the second target camera according to the first position includes:
根据所述第一位置,确定所述子控件响应于所述第二输入移动至的第一落点位置;determining, according to the first position, a first drop point position to which the sub-control moves in response to the second input;
确定所述第一落点位置所属的目标显示区;determining the target display area to which the first landing point position belongs;
确定所述目标显示区对应的摄像头为所述第二目标摄像头;determining that the camera corresponding to the target display area is the second target camera;
其中,所述终端显示屏的显示区域包括第一显示区和第二显示区,所述第一显示区对应所述终端的前置摄像头,所述第二显示区对应所述终端的后置摄像头;所述目标显示区为所述第一显示区和所述第二显示区中的一者。The display area of the terminal display screen includes a first display area and a second display area, the first display area corresponds to the front camera of the terminal, and the second display area corresponds to the rear camera of the terminal ; The target display area is one of the first display area and the second display area.
例如,可以根据第一位置,确定子控件响应于第二输入移动至的第一落点位置。进而可以确定第一落点位置所属的目标显示区。其中,终端显示屏的显示区域可以包括第一显示区和第二显示区。需要说明的是,终端显示屏可以为异形屏,第一显示区和第二显示区可以为异形屏的两个耳朵区域。第一显示区可以对应终端的前置摄像头,第二显示区可以对应终端的后置摄像头。目标显示区为第一显示区和第二显示区中的一者。可以确定目标显示区对应的摄像头为上述第二目标摄像头。接下来,可以开启第二目标摄像头,进而可以显示通过第二目标摄像头采集图像所生成的目标拍摄模式的拍摄预览界面。如图6所示,为第二输入的操作结束时子控件位于终端显示屏的显示区域的第一位置的示意图。在图6中,显示了目标控件1、默认模式区域2、人像模式区域3、全景模式区域4以及视频模式区域5。还显示了子控件6。图6中还显示了第一显示区7和第二显示区8。如图6所示,子控件位于人像模式区域3的右半部分区域,因此可以确定子控件响应于第二输入移动至的第一落点位置所属的目标显示区为第一显示区7。进而可以开启第一显示区7对应的前置摄像头,可以显示通过前置摄像头采集图像所生成的人像模式的拍摄预览界面。这样,用户只需要将手指滑动到目标子区域,再抬起手指,终端即可获取第二输入的操作结束时子控件在终端显示屏的显示区域上的位置,进而可以根据第二输入的操作结束时子控件在终端显示屏的显示区域上的位置,确定待使用的摄像头。最后,可以显示通过所确定的摄像头采集图像所生成的目标拍摄模式的拍摄预览界面。操作步骤少,方便快捷。For example, the first drop position to which the sub-control moves in response to the second input may be determined according to the first position. Further, the target display area to which the position of the first landing point belongs can be determined. Wherein, the display area of the terminal display screen may include a first display area and a second display area. It should be noted that the terminal display screen may be a special-shaped screen, and the first display area and the second display area may be two ear areas of the special-shaped screen. The first display area may correspond to the front camera of the terminal, and the second display area may correspond to the rear camera of the terminal. The target display area is one of the first display area and the second display area. It can be determined that the camera corresponding to the target display area is the above-mentioned second target camera. Next, the second target camera may be turned on, and then a shooting preview interface of the target shooting mode generated by collecting images by the second target camera may be displayed. As shown in FIG. 6 , it is a schematic diagram that the sub-control is located at the first position of the display area of the terminal display screen when the operation of the second input ends. In Figure 6,
进一步的,开启第二目标摄像头,可以为后台开启。后台开启第二目标摄像头之后,可以控制子控件在终端显示屏的显示区域内移动,并显示子控件的移动轨迹。在子控件触碰到目标显示区的边缘的情况下,可以显示通过第二目标摄像头采集图像所生成的目标拍摄模式的拍摄预览界面。这样,可以增强趣味性。Further, turning on the second target camera can be turned on in the background. After the second target camera is turned on in the background, the sub-control can be controlled to move within the display area of the terminal display screen, and the movement track of the sub-control can be displayed. When the sub-control touches the edge of the target display area, a shooting preview interface of the target shooting mode generated by collecting images by the second target camera can be displayed. In this way, the fun can be enhanced.
可选的,在所述第一输入的操作过程中,所述方法还包括:Optionally, during the operation of the first input, the method further includes:
在所述第一显示区和所述第二显示区分别显示第三标识和第四标识;Display a third logo and a fourth logo in the first display area and the second display area, respectively;
其中,所述第三标识用于指示所述第一显示区对应所述终端的前置摄像头,所述第四标识用于指示所述第二显示区对应所述终端的后置摄像头。The third identifier is used to indicate that the first display area corresponds to the front camera of the terminal, and the fourth identifier is used to indicate that the second display area corresponds to the rear camera of the terminal.
在第一输入的操作过程中,还可以在第一显示区和第二显示区分别显示第三标识和第四标识。其中,第三标识用于指示第一显示区对应终端的前置摄像头,第四标识用于指示第二显示区对应终端的后置摄像头。如图7所示,为显示第三标识和第四标识的示意图。在图7中,显示了目标控件1、默认模式区域2、人像模式区域3、全景模式区域4以及视频模式区域5。还显示了子控件6。图7中还显示了第一显示区7和第二显示区8。第一输入的触摸位置位于默认模式区域2,第一显示区7位于默认模式区域2的左半部分区域;第二显示区8位于默认模式区域2的右半部分区域。第三标识和第四标识可以为文字提示或者预览提示。例如,可以在第一显示区7显示前置摄像头的文字提示:“前置”、或者显示前置摄像头的预览提示画面。可以在第二显示区8显示后置摄像头的文字提示:“后置”、或者显示后置摄像头的预览提示画面。在图7中,在第一显示区7显示有“前置”字样,在第二显示区8显示有“后置”字样。这样,可以为用户提供提示,提示用户前置摄像头对应的触控区域以及后置摄像头对应的触控区域。便于用户快速选择想使用的摄像头。During the operation of the first input, the third logo and the fourth logo may also be displayed in the first display area and the second display area, respectively. The third identifier is used to indicate the front camera of the terminal corresponding to the first display area, and the fourth identifier is used to indicate the rear camera of the terminal corresponding to the second display area. As shown in FIG. 7 , it is a schematic diagram showing the third logo and the fourth logo. In Figure 7,
或者,在第一输入的操作过程中,可以在子控件内显示标识。例如,如图8所示,为在子控件内显示标识的示意图之一。在图8中,显示了目标控件1、默认模式区域2、人像模式区域3、全景模式区域4以及视频模式区域5。还显示了子控件6。图8中还显示了第一显示区7和第二显示区8。如图8所示,子控件位于默认模式区域2的右半部分区域,因此可以确定子控件响应于第二输入移动至的第一落点位置所属的目标显示区为第一显示区7。由于第一显示区7对应终端的前置摄像头,因此,可以在子控件内显示前置摄像头的标识。例如,可以在子控件内显示前置摄像头的文字提示:“前置”、或者显示前置摄像头的预览提示画面。Alternatively, during the operation of the first input, the logo may be displayed in the sub-control. For example, as shown in FIG. 8 , it is one of the schematic diagrams of displaying the logo in the sub-control. In Figure 8,
如图9所示,为在子控件内显示标识的示意图之二。在图9中,显示了目标控件1、默认模式区域2、人像模式区域3、全景模式区域4以及视频模式区域5。还显示了子控件6。图9中还显示了第一显示区7和第二显示区8。如图9所示,子控件位于人像模式区域3的左半部分区域,因此可以确定子控件响应于第二输入移动至的第一落点位置所属的目标显示区为第二显示区8。由于第二显示区8对应终端的后置摄像头,因此,可以在子控件内显示后置摄像头的标识。例如,可以在子控件内显示后置摄像头的文字提示:“后置”、或者显示后置摄像头的预览提示画面。这样,可以为用户提供提示,提示用户前置摄像头对应的触控区域以及后置摄像头对应的触控区域。便于用户快速选择想使用的摄像头。As shown in Figure 9, it is the second schematic diagram of displaying the logo in the sub-control. In Figure 9,
需要说明的是,如果终端判断出子控件响应于第二输入移动至的第一落点位置位于终端显示屏的顶端区域,即如果终端判断出子控件响应于第二输入移动至的第一落点位置位于终端显示屏的刘海区域,则可以不显示拍摄预览界面,此时目标控件可以恢复为直线状态。只有终端判断出子控件响应于第二输入移动至的第一落点位置位于终端显示屏的第一显示区7或者第二显示区8时,才会显示拍摄预览界面。It should be noted that, if the terminal determines that the first drop position to which the sub-control moves in response to the second input is located in the top area of the terminal display screen, that is, if the terminal determines that the first drop to which the sub-control moves in response to the second input If the point position is located in the notch area of the terminal display screen, the shooting preview interface may not be displayed, and the target control can be restored to a straight state at this time. The shooting preview interface will be displayed only when the terminal determines that the first landing position to which the sub-control moves in response to the second input is located in the
可选的,所述接收用户的第一输入,包括:Optionally, the receiving the first input from the user includes:
接收用户在终端显示屏的显示区域的第一输入。A first input from the user in the display area of the terminal display screen is received.
终端可以接收用户在终端显示屏的显示区域的第一输入。The terminal may receive the first input of the user in the display area of the display screen of the terminal.
可选的,所述终端显示屏为异形屏,所述显示屏的显示区域包括第一显示区、第二显示区和第三显示区中的至少一项;Optionally, the terminal display screen is a special-shaped screen, and the display area of the display screen includes at least one of a first display area, a second display area, and a third display area;
在所述显示屏的显示区域包括所述第一显示区和所述第二显示区的情况下,所述第一显示区和所述第二显示区为所述异形屏的顶端区域中相隔的两个区域;In the case where the display area of the display screen includes the first display area and the second display area, the first display area and the second display area are spaced apart in the top area of the special-shaped screen two areas;
在所述显示屏的显示区域包括所述第三显示区的情况下,所述第三显示区为所述终端显示屏中除所述第一显示区和所述第二显示区外的其他显示区域。In the case where the display area of the display screen includes the third display area, the third display area is other displays in the terminal display screen except the first display area and the second display area area.
终端显示屏可以为异形屏,显示屏的显示区域可以包括第一显示区7、第二显示区8和第三显示区9中的至少一项。在显示屏的显示区域包括第一显示区7和第二显示区8的情况下,第一显示区7和第二显示区8为异形屏的顶端区域中相隔的两个区域;在显示屏的显示区域包括第三显示区9的情况下,第三显示区9为终端显示屏中除第一显示区7和第二显示区8外的其他显示区域。如图10所示,为第一显示区、第二显示区和第三显示区的示意图。The terminal display screen may be a special-shaped screen, and the display area of the display screen may include at least one of the
本发明实施例中,上述终端可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等等。In this embodiment of the present invention, the terminal may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (PDA for short), a mobile Internet Device (MID) ) or wearable device (Wearable Device) and so on.
本发明实施例的拍摄预览方法,应用于终端。接收用户的第一输入;响应于所述第一输入,显示目标控件,且显示N个子区域;接收用户在所述目标控件上的第二输入;响应于所述第二输入,显示目标拍摄模式对应的拍摄预览界面;其中,每个子区域对应一种拍摄模式;所述目标拍摄模式为所述第二输入在所述N个子区域中所选取的目标子区域对应的拍摄模式。这样,终端可以接收用户在目标控件上的第二输入,进而可以响应于第二输入,显示目标拍摄模式对应的拍摄预览界面。操作过程简单,方便快捷。The shooting preview method according to the embodiment of the present invention is applied to a terminal. receiving a first input from a user; in response to the first input, displaying a target control and displaying N sub-regions; receiving a second user input on the target control; in response to the second input, displaying a target shooting mode A corresponding shooting preview interface; wherein, each sub-region corresponds to a shooting mode; the target shooting mode is a shooting mode corresponding to the target sub-region selected by the second input in the N sub-regions. In this way, the terminal can receive the user's second input on the target control, and then can display a shooting preview interface corresponding to the target shooting mode in response to the second input. The operation process is simple, convenient and fast.
参见图11,图11是本发明实施提供的终端的结构图,如图11所示,终端1100包括第一接收模块1101、第一显示模块1102、第二接收模块1103和第二显示模块1104,其中:Referring to FIG. 11, FIG. 11 is a structural diagram of a terminal provided by the implementation of the present invention. As shown in FIG. 11, the terminal 1100 includes a
第一接收模块1101,用于接收用户的第一输入;The
第一显示模块1102,用于响应于所述第一输入,显示目标控件,且显示N个子区域;a
第二接收模块1103,用于接收用户在所述目标控件上的第二输入;The
第二显示模块1104,用于响应于所述第二输入,显示目标拍摄模式对应的拍摄预览界面;The
其中,每个子区域对应一种拍摄模式;所述目标拍摄模式为所述第二输入在所述N个子区域中所选取的目标子区域对应的拍摄模式。Wherein, each sub-region corresponds to a shooting mode; the target shooting mode is a shooting mode corresponding to the target sub-region selected by the second input in the N sub-regions.
可选的,所述目标控件为线型控件。Optionally, the target control is a line control.
可选的,所述第二输入为拖动所述目标控件的操作;Optionally, the second input is an operation of dragging the target control;
所述第二显示模块包括:The second display module includes:
第一获取子模块,用于获取所述第二输入的操作结束时所述目标控件的预设区域所在的目标子区域;The first acquisition submodule is used to acquire the target subregion where the preset region of the target control is located when the operation of the second input ends;
第一显示子模块,用于显示所述目标子区域对应的目标拍摄模式的拍摄预览界面。The first display sub-module is configured to display the shooting preview interface of the target shooting mode corresponding to the target sub-region.
可选的,所述第一显示子模块包括:Optionally, the first display submodule includes:
获取单元,用于获取所述第二输入的操作结束时所述目标控件的预设区域所在的目标子区域中的目标分区;an obtaining unit, used for obtaining the target sub-region in the target sub-region where the preset region of the target control is located when the operation of the second input ends;
开启单元,用于开启所述目标分区对应的第一目标摄像头;an opening unit for opening the first target camera corresponding to the target partition;
显示单元,用于显示通过所述第一目标摄像头采集图像所生成的目标拍摄模式的拍摄预览界面;a display unit, configured to display a shooting preview interface of a target shooting mode generated by capturing an image with the first target camera;
其中,所述目标子区域包括第一分区和第二分区,所述第一分区对应所述终端的前置摄像头,所述第二分区对应所述终端的后置摄像头,所述目标分区为所述第一分区和所述第二分区中的一者。The target sub-area includes a first partition and a second partition, the first partition corresponds to the front camera of the terminal, the second partition corresponds to the rear camera of the terminal, and the target partition is the one of the first partition and the second partition.
可选的,在所述第一输入的操作过程中,所述终端还包括:Optionally, during the operation of the first input, the terminal further includes:
第三显示模块,用于在所述目标控件的预设区域所经过的子区域的第一分区和第二分区分别显示第一标识和第二标识;The third display module is used to display the first mark and the second mark respectively in the first sub-region and the second sub-region of the sub-region that the preset region of the target control passes through;
其中,所述第一标识用于指示所述第一分区对应所述终端的前置摄像头,所述第二标识用于指示所述第二分区对应所述终端的后置摄像头。The first identifier is used to indicate that the first partition corresponds to the front camera of the terminal, and the second identifier is used to indicate that the second partition corresponds to the rear camera of the terminal.
可选的,所述目标控件预设侧边显示有子控件;Optionally, a sub-control is displayed on the preset side of the target control;
所述第二输入为控制所述子控件移动的拖动操作;The second input is a drag operation that controls the movement of the sub-control;
其中,所述第二输入为拉伸所述目标控件以控制所述子控件移动的操作。Wherein, the second input is an operation of stretching the target control to control the movement of the sub-control.
可选的,所述第二显示模块还包括:Optionally, the second display module further includes:
第二获取子模块,用于获取所述第二输入的操作结束时所述子控件在终端显示屏的显示区域的第一位置;A second acquisition submodule, configured to acquire the first position of the sub-control in the display area of the terminal display screen when the operation of the second input ends;
确定子模块,用于根据所述第一位置,确定第二目标摄像头;a determination submodule for determining a second target camera according to the first position;
开启子模块,用于开启所述第二目标摄像头;opening a submodule for opening the second target camera;
第二显示子模块,用于显示通过所述第二目标摄像头采集图像所生成的目标拍摄模式的拍摄预览界面。The second display sub-module is configured to display the shooting preview interface of the target shooting mode generated by collecting images by the second target camera.
可选的,所述确定子模块包括:Optionally, the determining submodule includes:
第一确定单元,用于根据所述第一位置,确定所述子控件响应于所述第二输入移动至的第一落点位置;a first determining unit, configured to determine, according to the first position, a first drop point position to which the sub-control moves in response to the second input;
第二确定单元,用于确定所述第一落点位置所属的目标显示区;a second determining unit, configured to determine the target display area to which the first drop point position belongs;
第三确定单元,用于确定所述目标显示区对应的摄像头为所述第二目标摄像头;a third determining unit, configured to determine that the camera corresponding to the target display area is the second target camera;
其中,所述终端显示屏的显示区域包括第一显示区和第二显示区,所述第一显示区对应所述终端的前置摄像头,所述第二显示区对应所述终端的后置摄像头;所述目标显示区为所述第一显示区和所述第二显示区中的一者。The display area of the terminal display screen includes a first display area and a second display area, the first display area corresponds to the front camera of the terminal, and the second display area corresponds to the rear camera of the terminal ; The target display area is one of the first display area and the second display area.
可选的,在所述第一输入的操作过程中,所述终端还包括:Optionally, during the operation of the first input, the terminal further includes:
第四显示模块,用于在所述第一显示区和所述第二显示区分别显示第三标识和第四标识;a fourth display module for displaying a third logo and a fourth logo in the first display area and the second display area, respectively;
其中,所述第三标识用于指示所述第一显示区对应所述终端的前置摄像头,所述第四标识用于指示所述第二显示区对应所述终端的后置摄像头。The third identifier is used to indicate that the first display area corresponds to the front camera of the terminal, and the fourth identifier is used to indicate that the second display area corresponds to the rear camera of the terminal.
可选的,所述第一接收模块具体用于接收用户在终端显示屏的显示区域的第一输入。Optionally, the first receiving module is specifically configured to receive the first input from the user in the display area of the display screen of the terminal.
可选的,所述终端显示屏为异形屏,所述显示屏的显示区域包括第一显示区、第二显示区和第三显示区中的至少一项;Optionally, the terminal display screen is a special-shaped screen, and the display area of the display screen includes at least one of a first display area, a second display area, and a third display area;
在所述显示屏的显示区域包括所述第一显示区和所述第二显示区的情况下,所述第一显示区和所述第二显示区为所述异形屏的顶端区域中相隔的两个区域;In the case where the display area of the display screen includes the first display area and the second display area, the first display area and the second display area are spaced apart in the top area of the special-shaped screen two areas;
在所述显示屏的显示区域包括所述第三显示区的情况下,所述第三显示区为所述终端显示屏中除所述第一显示区和所述第二显示区外的其他显示区域。In the case where the display area of the display screen includes the third display area, the third display area is other displays in the terminal display screen except the first display area and the second display area area.
终端1100能够实现图1的方法实施例中终端实现的各个过程,为避免重复,这里不再赘述。且终端1100可以实现接收用户在目标控件上的第二输入,进而可以响应于第二输入,显示目标拍摄模式对应的拍摄预览界面。操作过程简单,方便快捷。The terminal 1100 can implement each process implemented by the terminal in the method embodiment of FIG. 1 , which is not repeated here to avoid repetition. In addition, the terminal 1100 can implement to receive the second input from the user on the target control, and then can display the shooting preview interface corresponding to the target shooting mode in response to the second input. The operation process is simple, convenient and fast.
图12为实现本发明各个实施例的一种终端的硬件结构示意图。FIG. 12 is a schematic diagram of a hardware structure of a terminal implementing various embodiments of the present invention.
该终端1200包括但不限于:射频单元1201、网络模块1202、音频输出单元1203、输入单元1204、传感器1205、显示单元1206、用户输入单元1207、接口单元1208、存储器1209、处理器1210、以及电源1211等部件。本领域技术人员可以理解,图12中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The terminal 1200 includes but is not limited to: a
处理器1210,用于接收用户的第一输入;a processor 1210, configured to receive a user's first input;
响应于所述第一输入,显示目标控件,且显示N个子区域;In response to the first input, displaying a target control, and displaying N sub-regions;
接收用户在所述目标控件上的第二输入;receiving a second input from the user on the target control;
响应于所述第二输入,显示目标拍摄模式对应的拍摄预览界面;In response to the second input, displaying a shooting preview interface corresponding to the target shooting mode;
其中,每个子区域对应一种拍摄模式;所述目标拍摄模式为所述第二输入在所述N个子区域中所选取的目标子区域对应的拍摄模式。Wherein, each sub-region corresponds to a shooting mode; the target shooting mode is a shooting mode corresponding to the target sub-region selected by the second input in the N sub-regions.
终端可以接收用户在目标控件上的第二输入,进而可以响应于第二输入,显示目标拍摄模式对应的拍摄预览界面。操作过程简单,方便快捷。The terminal may receive a second input from the user on the target control, and may further display a shooting preview interface corresponding to the target shooting mode in response to the second input. The operation process is simple, convenient and fast.
应理解的是,本发明实施例中,射频单元1201可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1210处理;另外,将上行的数据发送给基站。通常,射频单元1201包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1201还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
终端通过网络模块1202为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal provides the user with wireless broadband Internet access through the
音频输出单元1203可以将射频单元1201或网络模块1202接收的或者在存储器1209中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1203还可以提供与终端1200执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1203包括扬声器、蜂鸣器以及受话器等。The
输入单元1204用于接收音频或视频信号。输入单元1204可以包括图形处理器(Graphics Processing Unit,GPU)12041和麦克风12042,图形处理器12041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1206上。经图形处理器12041处理后的图像帧可以存储在存储器1209(或其它存储介质)中或者经由射频单元1201或网络模块1202进行发送。麦克风12042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1201发送到移动通信基站的格式输出。The
终端1200还包括至少一种传感器1205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板12061的亮度,接近传感器可在终端1200移动到耳边时,关闭显示面板12061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1205还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal 1200 also includes at least one
显示单元1206用于显示由用户输入的信息或提供给用户的信息。显示单元1206可包括显示面板12061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板12061。The
用户输入单元1207可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1207包括触控面板12071以及其他输入设备12072。触控面板12071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板12071上或在触控面板12071附近的操作)。触控面板12071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1210,接收处理器1210发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板12071。除了触控面板12071,用户输入单元1207还可以包括其他输入设备12072。具体地,其他输入设备12072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹信息球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板12071可覆盖在显示面板12061上,当触控面板12071检测到在其上或附近的触摸操作后,传送给处理器1210以确定触摸事件的类型,随后处理器1210根据触摸事件的类型在显示面板12061上提供相应的视觉输出。虽然在图12中,触控面板12071与显示面板12061是作为两个独立的部件来实现终端的输入和输出功能,但是在某些实施例中,可以将触控面板12071与显示面板12061集成而实现终端的输入和输出功能,具体此处不做限定。Further, the
接口单元1208为外部装置与终端1200连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1208可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端1200内的一个或多个元件或者可以用于在终端1200和外部装置之间传输数据。The
存储器1209可用于存储软件程序以及各种数据。存储器1209可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1209可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器1210是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器1209内的软件程序和/或模块,以及调用存储在存储器1209内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。处理器1210可包括一个或多个处理单元;优选的,处理器1210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1210中。The processor 1210 is the control center of the terminal, using various interfaces and lines to connect various parts of the entire terminal, by running or executing the software programs and/or modules stored in the
终端1200还可以包括给各个部件供电的电源1211(比如电池),优选的,电源1211可以通过电源管理系统与处理器1210逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal 1200 may also include a power supply 1211 (such as a battery) that supplies power to various components. Preferably, the
另外,终端1200包括一些未示出的功能模块,在此不再赘述。In addition, the terminal 1200 includes some unshown functional modules, which will not be repeated here.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
所述目标控件为线型控件。The target control is a line control.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
所述第二输入为拖动所述目标控件的操作;The second input is an operation of dragging the target control;
获取所述第二输入的操作结束时所述目标控件的预设区域所在的目标子区域;Obtaining the target sub-area where the preset area of the target control is located when the operation of the second input ends;
显示所述目标子区域对应的目标拍摄模式的拍摄预览界面。A shooting preview interface of the target shooting mode corresponding to the target sub-region is displayed.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
获取所述第二输入的操作结束时所述目标控件的预设区域所在的目标子区域中的目标分区;Obtaining the target subregion in the target subregion where the preset region of the target control is located when the operation of the second input ends;
开启所述目标分区对应的第一目标摄像头;Turn on the first target camera corresponding to the target partition;
显示通过所述第一目标摄像头采集图像所生成的目标拍摄模式的拍摄预览界面;Displaying a shooting preview interface of the target shooting mode generated by collecting images by the first target camera;
其中,所述目标子区域包括第一分区和第二分区,所述第一分区对应所述终端的前置摄像头,所述第二分区对应所述终端的后置摄像头,所述目标分区为所述第一分区和所述第二分区中的一者。The target sub-area includes a first partition and a second partition, the first partition corresponds to the front camera of the terminal, the second partition corresponds to the rear camera of the terminal, and the target partition is the one of the first partition and the second partition.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
在所述第一输入的操作过程中,在所述目标控件的预设区域所经过的子区域的第一分区和第二分区分别显示第一标识和第二标识;During the operation of the first input, the first sub-region and the second sub-region of the sub-region through which the preset region of the target control passes are respectively displayed with a first identification and a second identification;
其中,所述第一标识用于指示所述第一分区对应所述终端的前置摄像头,所述第二标识用于指示所述第二分区对应所述终端的后置摄像头。The first identifier is used to indicate that the first partition corresponds to the front camera of the terminal, and the second identifier is used to indicate that the second partition corresponds to the rear camera of the terminal.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
所述目标控件预设侧边显示有子控件;A sub-control is displayed on the preset side of the target control;
所述第二输入为控制所述子控件移动的拖动操作;The second input is a drag operation that controls the movement of the sub-control;
其中,所述第二输入为拉伸所述目标控件以控制所述子控件移动的操作。Wherein, the second input is an operation of stretching the target control to control the movement of the sub-control.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
获取所述第二输入的操作结束时所述子控件在终端显示屏的显示区域的第一位置;When the operation of obtaining the second input ends, the sub-control is at the first position of the display area of the terminal display screen;
根据所述第一位置,确定第二目标摄像头;determining a second target camera according to the first position;
开启所述第二目标摄像头;turn on the second target camera;
显示通过所述第二目标摄像头采集图像所生成的目标拍摄模式的拍摄预览界面。A shooting preview interface of a target shooting mode generated by capturing an image with the second target camera is displayed.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
根据所述第一位置,确定所述子控件响应于所述第二输入移动至的第一落点位置;determining, according to the first position, a first drop point position to which the sub-control moves in response to the second input;
确定所述第一落点位置所属的目标显示区;determining the target display area to which the first landing point position belongs;
确定所述目标显示区对应的摄像头为所述第二目标摄像头;determining that the camera corresponding to the target display area is the second target camera;
其中,所述终端显示屏的显示区域包括第一显示区和第二显示区,所述第一显示区对应所述终端的前置摄像头,所述第二显示区对应所述终端的后置摄像头;所述目标显示区为所述第一显示区和所述第二显示区中的一者。The display area of the terminal display screen includes a first display area and a second display area, the first display area corresponds to the front camera of the terminal, and the second display area corresponds to the rear camera of the terminal ; The target display area is one of the first display area and the second display area.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
在所述第一显示区和所述第二显示区分别显示第三标识和第四标识;Display a third logo and a fourth logo in the first display area and the second display area, respectively;
其中,所述第三标识用于指示所述第一显示区对应所述终端的前置摄像头,所述第四标识用于指示所述第二显示区对应所述终端的后置摄像头。The third identifier is used to indicate that the first display area corresponds to the front camera of the terminal, and the fourth identifier is used to indicate that the second display area corresponds to the rear camera of the terminal.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
接收用户在终端显示屏的显示区域的第一输入。A first input from the user in the display area of the terminal display screen is received.
可选的,处理器1210还用于:Optionally, the processor 1210 is further configured to:
所述终端显示屏为异形屏,所述显示屏的显示区域包括第一显示区、第二显示区和第三显示区中的至少一项;The terminal display screen is a special-shaped screen, and the display area of the display screen includes at least one of a first display area, a second display area, and a third display area;
在所述显示屏的显示区域包括所述第一显示区和所述第二显示区的情况下,所述第一显示区和所述第二显示区为所述异形屏的顶端区域中相隔的两个区域;In the case where the display area of the display screen includes the first display area and the second display area, the first display area and the second display area are spaced apart in the top area of the special-shaped screen two areas;
在所述显示屏的显示区域包括所述第三显示区的情况下,所述第三显示区为所述终端显示屏中除所述第一显示区和所述第二显示区外的其他显示区域。In the case where the display area of the display screen includes the third display area, the third display area is other displays in the terminal display screen except the first display area and the second display area area.
终端1200能够实现前述实施例中终端实现的各个过程,为避免重复,这里不再赘述。且终端1200可以实现接收用户在目标控件上的第二输入,进而可以响应于第二输入,显示目标拍摄模式对应的拍摄预览界面。操作过程简单,方便快捷。The terminal 1200 can implement each process implemented by the terminal in the foregoing embodiments, and in order to avoid repetition, details are not repeated here. In addition, the terminal 1200 can implement to receive the second input of the user on the target control, and then can display the shooting preview interface corresponding to the target shooting mode in response to the second input. The operation process is simple, convenient and quick.
优选的,本发明实施例还提供一种终端,包括处理器1210,存储器1209,存储在存储器1209上并可在所述处理器1210上运行的计算机程序,该计算机程序被处理器1210执行时实现上述拍摄预览方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a terminal, including a processor 1210, a
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述拍摄预览方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiments of the shooting preview method can be realized, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810219113.9ACN108471498B (en) | 2018-03-16 | 2018-03-16 | Shooting preview method and terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810219113.9ACN108471498B (en) | 2018-03-16 | 2018-03-16 | Shooting preview method and terminal |
| Publication Number | Publication Date |
|---|---|
| CN108471498A CN108471498A (en) | 2018-08-31 |
| CN108471498Btrue CN108471498B (en) | 2020-07-21 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810219113.9AActiveCN108471498B (en) | 2018-03-16 | 2018-03-16 | Shooting preview method and terminal |
| Country | Link |
|---|---|
| CN (1) | CN108471498B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109298824B (en)* | 2018-09-30 | 2021-01-15 | 维沃移动通信(杭州)有限公司 | Application program starting method and terminal equipment |
| CN109639970B (en)* | 2018-12-17 | 2021-07-30 | 维沃移动通信有限公司 | A shooting method and terminal device |
| CN110769152A (en) | 2019-09-27 | 2020-02-07 | 华为技术有限公司 | Image processing method, device, terminal device and storage medium |
| CN113253889B (en)* | 2020-02-13 | 2023-09-01 | 深圳市万普拉斯科技有限公司 | Page display processing method, device and computer equipment based on special-shaped screen |
| CN112148185A (en)* | 2020-09-17 | 2020-12-29 | 维沃移动通信(杭州)有限公司 | Image display method and device |
| CN113965809B (en)* | 2020-11-30 | 2024-12-13 | 深圳卡多希科技有限公司 | A method and device for simultaneous interactive live broadcast based on single terminal and multiple platforms |
| CN112511751B (en)* | 2020-12-04 | 2021-10-29 | 维沃移动通信(杭州)有限公司 | Shooting method and device, electronic equipment and readable storage medium |
| CN112714255B (en)* | 2020-12-30 | 2023-02-21 | 维沃移动通信(杭州)有限公司 | Shooting method and device, electronic equipment and readable storage medium |
| CN112738403B (en)* | 2020-12-30 | 2023-12-05 | 维沃移动通信(杭州)有限公司 | Shooting method, shooting device, electronic equipment and medium |
| CN112911060B (en)* | 2021-01-22 | 2022-07-19 | 维沃移动通信(杭州)有限公司 | Display control method, first display control device and first electronic equipment |
| CN112911059B (en)* | 2021-01-22 | 2022-06-07 | 维沃移动通信(杭州)有限公司 | Photographing method, device, electronic device and readable storage medium |
| CN112954215B (en)* | 2021-02-10 | 2024-06-28 | 维沃移动通信有限公司 | Control method and device, electronic equipment and storage medium |
| CN115484392B (en)* | 2021-06-16 | 2023-12-19 | 荣耀终端有限公司 | Video shooting method and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101047785A (en)* | 2006-03-28 | 2007-10-03 | 三星电子株式会社 | Camera-enabled portable terminal and method for taking multi-image photograph using the same |
| CN103945113A (en)* | 2013-01-18 | 2014-07-23 | 三星电子株式会社 | Method and apparatus for photographing in portable terminal |
| CN104199598A (en)* | 2014-08-15 | 2014-12-10 | 小米科技有限责任公司 | Menu display method and device |
| CN104243822A (en)* | 2014-09-12 | 2014-12-24 | 广州三星通信技术研究有限公司 | Method and device for shooting images |
| CN105744161A (en)* | 2016-02-18 | 2016-07-06 | 宇龙计算机通信科技(深圳)有限公司 | Camera switching method, camera switching device and terminal |
| CN106293444A (en)* | 2015-06-25 | 2017-01-04 | 小米科技有限责任公司 | Mobile terminal, display control method and device |
| CN106569709A (en)* | 2016-10-31 | 2017-04-19 | 努比亚技术有限公司 | Device and method for controlling mobile terminal |
| KR20170046915A (en)* | 2015-10-22 | 2017-05-04 | 삼성전자주식회사 | Apparatus and method for controlling camera thereof |
| CN106937045A (en)* | 2017-02-23 | 2017-07-07 | 华为机器有限公司 | The display methods and terminal device of a kind of preview image |
| CN107734248A (en)* | 2017-09-14 | 2018-02-23 | 维沃移动通信有限公司 | A kind of screening-mode starts method and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6426484B2 (en)* | 2015-01-28 | 2018-11-21 | 京セラ株式会社 | Mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101047785A (en)* | 2006-03-28 | 2007-10-03 | 三星电子株式会社 | Camera-enabled portable terminal and method for taking multi-image photograph using the same |
| CN103945113A (en)* | 2013-01-18 | 2014-07-23 | 三星电子株式会社 | Method and apparatus for photographing in portable terminal |
| CN104199598A (en)* | 2014-08-15 | 2014-12-10 | 小米科技有限责任公司 | Menu display method and device |
| CN104243822A (en)* | 2014-09-12 | 2014-12-24 | 广州三星通信技术研究有限公司 | Method and device for shooting images |
| CN106293444A (en)* | 2015-06-25 | 2017-01-04 | 小米科技有限责任公司 | Mobile terminal, display control method and device |
| KR20170046915A (en)* | 2015-10-22 | 2017-05-04 | 삼성전자주식회사 | Apparatus and method for controlling camera thereof |
| CN105744161A (en)* | 2016-02-18 | 2016-07-06 | 宇龙计算机通信科技(深圳)有限公司 | Camera switching method, camera switching device and terminal |
| CN106569709A (en)* | 2016-10-31 | 2017-04-19 | 努比亚技术有限公司 | Device and method for controlling mobile terminal |
| CN106937045A (en)* | 2017-02-23 | 2017-07-07 | 华为机器有限公司 | The display methods and terminal device of a kind of preview image |
| CN107734248A (en)* | 2017-09-14 | 2018-02-23 | 维沃移动通信有限公司 | A kind of screening-mode starts method and mobile terminal |
| Publication number | Publication date |
|---|---|
| CN108471498A (en) | 2018-08-31 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108471498B (en) | Shooting preview method and terminal | |
| CN108668083B (en) | Photographing method and terminal | |
| CN110557566B (en) | Video shooting method and electronic equipment | |
| CN108536365B (en) | Image sharing method and terminal | |
| CN108182019B (en) | Suspension control display processing method and mobile terminal | |
| CN108762954A (en) | A kind of object sharing method and mobile terminal | |
| CN110213440B (en) | Image sharing method and terminal | |
| CN108495029A (en) | A kind of photographic method and mobile terminal | |
| CN108803963A (en) | A kind of screenshotss method and mobile terminal | |
| CN108174109B (en) | A kind of photographing method and mobile terminal | |
| CN108833709A (en) | Method for starting camera and mobile terminal | |
| CN111290810A (en) | An image display method and electronic device | |
| CN108632413B (en) | Photographing method and mobile terminal | |
| CN108471550A (en) | A kind of video intercepting method and terminal | |
| CN108132749B (en) | Image editing method and mobile terminal | |
| CN107608606A (en) | A kind of image display method, mobile terminal and computer-readable recording medium | |
| CN110602389A (en) | Display method and electronic equipment | |
| CN108366221A (en) | A kind of video call method and terminal | |
| CN109710130B (en) | Display method and terminal | |
| CN108924422B (en) | Panoramic photographing method and mobile terminal | |
| CN108881721B (en) | A display method and terminal | |
| CN107959755B (en) | A kind of photographing method, mobile terminal and computer readable storage medium | |
| CN109005337B (en) | A kind of photographing method and terminal | |
| CN110865752A (en) | A photo viewing method and electronic device | |
| CN107800968B (en) | A shooting method and mobile terminal |
| 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 |