技术领域technical field
本发明属于摄像领域,尤其涉及一种终端的拍照方法和装置。The invention belongs to the field of photographing, and in particular relates to a terminal photographing method and device.
背景技术Background technique
随着智能终端的功能的多样化发展,智能终端为人们生活和工作带来了极大的便利。比如在智能终端中集成支付功能、打车功能、点餐功能、在线订票功能、拍照功能、邮件收发功能,为人们工作生活节约了大量的时间,提高了工作生活中处理事情的效率和携带的便利性。With the diversified development of functions of smart terminals, smart terminals bring great convenience to people's life and work. For example, integrating payment functions, taxi-hailing functions, ordering functions, online booking functions, camera functions, and mail sending and receiving functions in smart terminals saves a lot of time for people's work and life, and improves the efficiency of handling things in work and life. convenience.
终端的自拍功能是一个受到广泛消费者喜爱的功能,通过携带终端,比如智能手机、平板电脑等,可以随时随地进行影像的获取,方便人们更为真实的分享当前场景信息。但是,目前智能终端的摄像机受到硬件功能的限制,还不能够实现专业摄像机,比如单反相机的滤光功能,虽然在一些高级的智能手机里面设置有双色温的闪光灯,但是这种双色温闪光灯可塑造的颜色较少,不能够有效的满足用户对于不同滤光效果的拍摄要求。The Selfie function of the terminal is a function favored by a wide range of consumers. By carrying the terminal, such as a smart phone, a tablet, etc., images can be acquired anytime and anywhere, which is convenient for people to share the current scene information more realistically. However, at present, the cameras of intelligent terminals are limited by hardware functions, and cannot realize professional cameras, such as the light filtering function of SLR cameras. There are fewer colors to shape, which cannot effectively meet the user's shooting requirements for different filter effects.
发明内容Contents of the invention
本发明的目的在于提供一种终端的拍照方法,以解决现有技术的终端在拍照时,滤光效果少,不能满足用户对滤光效果要求的问题。The purpose of the present invention is to provide a method for taking pictures of a terminal, so as to solve the problem that the terminal in the prior art has little filtering effect and cannot meet the user's requirements for the filtering effect when taking pictures.
第一方面,本发明实施例提供了一种终端的拍照方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for taking pictures of a terminal, the method comprising:
检测所述终端是否处于摄像状态;Detecting whether the terminal is in a camera state;
如果所述终端处于摄像状态,则在所述终端的屏幕中显示设定的颜色的补光光源;If the terminal is in a camera state, displaying a supplementary light source of a set color on the screen of the terminal;
根据所述屏幕中显示的补光光源,进行照片的拍摄。The photos are taken according to the supplementary light source displayed on the screen.
结合第一方面,在第一方面的第一种可能实现方式中,在所述终端的屏幕中显示设定的颜色的补光光源的步骤之前,所述方法还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, before the step of displaying a supplementary light source of a set color on the screen of the terminal, the method further includes:
检测所述终端的摄像状态是否为获取前置画面的摄像状态;Detecting whether the camera state of the terminal is the camera state of acquiring the front screen;
如果所述终端的摄像状态为获取前置画面的摄像状态,则在所述终端的屏幕中显示设定的颜色的补光光源。If the shooting state of the terminal is the shooting state of acquiring the front screen, displaying the supplementary light source of the set color on the screen of the terminal.
结合第一方面,在第一方面的第二种可能实现方式中,所述在所述终端的屏幕中显示设定的颜色的补光光源的步骤具体包括:With reference to the first aspect, in the second possible implementation manner of the first aspect, the step of displaying a supplementary light source of a set color on the screen of the terminal specifically includes:
根据获取的图像检测当前拍摄的场景的主体对象;Detecting the subject object of the currently captured scene according to the acquired image;
根据预设的主体对象与颜色的对应关系,在屏幕中显示所述主体对象所对应的颜色的光源进行补光;或者,According to the preset corresponding relationship between the main object and the color, the light source of the color corresponding to the main object is displayed on the screen to supplement light; or,
根据用户设定的颜色,在屏幕中显示用户设定的颜色的光源进行补光。According to the color set by the user, the light source of the color set by the user is displayed on the screen for supplementary light.
结合第一方面,在第一方面的第三种可能实现方式中,所述方法还包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, the method further includes:
获取当前拍摄的场景的亮度;Obtain the brightness of the currently captured scene;
根据获取的当前环境的亮度,在屏幕中通过显示相应的亮度的光源进行补光;或者,According to the acquired brightness of the current environment, the light source that displays the corresponding brightness is used to supplement the light on the screen; or,
根据用户设定的亮度,调整屏幕中显示设定的亮度的光源进行补光。According to the brightness set by the user, adjust the light source that displays the set brightness on the screen to fill in the light.
结合第一方面,或第一方面的第一种可能实现方式,在第一方面的第四种可能实现方式中,所述摄像状态为摄像机当前快门触发状态,所述在所述终端的屏幕中显示设定的颜色的补光光源的步骤具体为:With reference to the first aspect, or the first possible implementation of the first aspect, in a fourth possible implementation of the first aspect, the camera state is the current shutter trigger state of the camera, and the The steps to display the fill light source of the set color are as follows:
将所述屏幕中的内容,由原来显示的摄像的图像内容,切换为设定的颜色的补光光源。The content in the screen is switched from the originally displayed captured image content to the supplementary light source of the set color.
第二方面,本发明实施例提供了一种终端的拍照装置,所述装置包括:In a second aspect, an embodiment of the present invention provides a terminal photographing device, the device comprising:
状态检测单元,用于检测所述终端是否处于摄像状态;A state detection unit, configured to detect whether the terminal is in a camera state;
补光单元,用于如果所述终端处于摄像状态,则在所述终端的屏幕中显示设定的颜色的补光光源;A supplementary light unit, configured to display a supplementary light source of a set color on the screen of the terminal if the terminal is in a camera state;
拍摄单元,用于根据所述屏幕中显示的补光光源,进行照片的拍摄。The photographing unit is used for photographing photos according to the supplementary light source displayed on the screen.
结合第二方面,在第二方面的第一种可能实现方式中,所述装置还包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the device further includes:
画面判断单元,用于检测所述终端的摄像状态是否为获取前置画面的摄像状态;A picture judging unit, used to detect whether the camera state of the terminal is the camera state of acquiring the front picture;
如果所述终端的摄像状态为获取前置画面的摄像状态,则执行补光单元。If the camera state of the terminal is the camera state of acquiring the front screen, then execute the supplementary light unit.
结合第二方面,在第二方面的第二种可能实现方式中,所述补光单元包括:With reference to the second aspect, in a second possible implementation manner of the second aspect, the supplementary light unit includes:
主体对象获取子单元,用于根据获取的图像检测当前拍摄的场景的主体对象;The main object acquisition subunit is used to detect the main object of the currently captured scene according to the acquired image;
第一补光子单元,用于根据预设的主体对象与颜色的对应关系,在屏幕中显示所述主体对象所对应的颜色的光源进行补光;或者,The first supplementary light sub-unit is configured to display on the screen a light source of a color corresponding to the subject object for supplementary light according to the preset correspondence between the subject object and the color; or,
第二补光子单元,用于根据用户设定的颜色,在屏幕中显示用户设定的颜色的光源进行补光。The second supplementary light sub-unit is used to display the light source of the color set by the user on the screen for supplementary light according to the color set by the user.
结合第二方面,在第二方面的第三种可能实现方式中,所述装置还包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, the device further includes:
亮度获取子单元,用于获取当前拍摄的场景的亮度;The brightness acquisition subunit is used to acquire the brightness of the currently captured scene;
第三补光单元,用于根据获取的当前环境的亮度,在屏幕中通过显示相应的亮度的光源进行补光;或者,The third supplementary light unit is configured to perform supplementary light on the screen by displaying a light source of corresponding brightness according to the acquired brightness of the current environment; or,
第四补光子单元有,用于根据用户设定的亮度,调整屏幕中显示设定的亮度的光源进行补光。The fourth supplementary light sub-unit is used for supplementing light by adjusting the light source with the brightness set on the screen according to the brightness set by the user.
结合第二方面,或第二方面的第一种可能实现方式,在第二方面的第四种可能实现方式中,所述摄像状态为摄像机当前快门触发状态,所述补光单元具体用于:In combination with the second aspect, or the first possible implementation of the second aspect, in the fourth possible implementation of the second aspect, the camera state is the current shutter trigger state of the camera, and the supplementary light unit is specifically used for:
将所述屏幕中的内容,由原来显示的摄像的图像内容,切换为设定的颜色的补光光源。The content in the screen is switched from the originally displayed captured image content to the supplementary light source of the set color.
在本发明中,检测到终端处于摄像状态时,在屏幕中显示设定的颜色的补光光源,根据屏幕中的补光光源对场景进行补光,根据屏幕的补光完成照片的拍摄。由于屏幕的颜色可以任意调节,因此可以生成任意颜色的补光,有效的满足用户在拍照时对于多样化滤光的要求。In the present invention, when it is detected that the terminal is in the shooting state, the supplementary light source of the set color is displayed on the screen, the scene is supplemented with supplementary light according to the supplementary light source in the screen, and the photo is taken according to the supplementary light of the screen. Since the color of the screen can be adjusted arbitrarily, it can generate supplementary light of any color, which effectively meets the user's requirements for diversified light filtering when taking pictures.
附图说明Description of drawings
图1是本发明第一实施例提供的终端的拍照方法的实现流程图;FIG. 1 is an implementation flowchart of a method for photographing a terminal provided by a first embodiment of the present invention;
图2是本发明实施例提供的补光光源的显示状态示意图;Fig. 2 is a schematic diagram of the display state of the supplementary light source provided by the embodiment of the present invention;
图3是本发明第二实施例提供的终端的拍照方法的实现流程图;FIG. 3 is a flow chart of realizing a photographing method of a terminal provided by a second embodiment of the present invention;
图4是本发明第三实施例提供的终端的拍照方法的实现流程图;FIG. 4 is a flow chart of realizing a method for taking pictures of a terminal provided by a third embodiment of the present invention;
图5为本发明第四实施例提供的终端的拍照方法的实现流程图;FIG. 5 is an implementation flowchart of a method for photographing a terminal provided by a fourth embodiment of the present invention;
图6是本发明第五实施例提供的终端的拍照装置的结构示意图。Fig. 6 is a schematic structural diagram of a photographing device of a terminal provided by a fifth embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明实施例的目的在于提供一种终端的拍照方法,以解决现有技术中的终端在拍照时,由于LED闪光灯个数的限制,无法生成丰富的滤光效果,不能有效的满足用户在摄像时的滤光要求。下面结合附图,对本发明作进一步的说明。The purpose of the embodiments of the present invention is to provide a terminal photography method to solve the problem that in the prior art, due to the limitation of the number of LED flashlights, rich filtering effects cannot be generated when the terminal is taking pictures, and it cannot effectively meet the needs of users when taking pictures. filter requirements. Below in conjunction with accompanying drawing, the present invention will be further described.
实施例一:Embodiment one:
图1示出了本发明第一实施例提供的终端的拍照方法的实现流程,详述如下:FIG. 1 shows the implementation process of the method for photographing a terminal provided by the first embodiment of the present invention, which is described in detail as follows:
在步骤S101中,检测所述终端是否处于摄像状态。In step S101, it is detected whether the terminal is in a shooting state.
具体的,所述摄像状态的检测,可以包括多种方式。比如,第一种方式,可以通过检测摄像头是否开启,如果摄像头开启,则表明终端处于摄像状态。在第二种方式中,所述摄像状态的检测,还可以根据拍摄指令来确定。比如,当接收到用户在按压快门或者拍照按键的拍照指令的时候,则表示终端处于摄像状态。Specifically, the detection of the imaging state may include various manners. For example, in the first way, it is possible to detect whether the camera is turned on, and if the camera is turned on, it indicates that the terminal is in a camera state. In the second manner, the detection of the imaging state may also be determined according to the imaging instruction. For example, when receiving a camera instruction that the user presses the shutter or the camera button, it means that the terminal is in the camera state.
通过设置摄像状态为接收到用户在按压快门或者拍照按键的状态,可以有效的将补光光源与图像采集同步。By setting the camera state as receiving the state that the user is pressing the shutter or the camera button, the supplementary light source can be effectively synchronized with the image acquisition.
在步骤S102中,如果所述终端处于摄像状态,则在所述终端的屏幕中显示设定的颜色的补光光源。In step S102, if the terminal is in a camera state, display a supplementary light source of a set color on the screen of the terminal.
当检测到所述终端处于摄像状态时,则在屏幕中显示补光光源,具体可以分为以下两种情况:When it is detected that the terminal is in the camera state, the supplementary light source is displayed on the screen, which can be specifically divided into the following two situations:
在第一种摄像状态下,由于终端在启动照相机应用程序时,一般会在屏幕中显示当前摄像头所采集的图像,用户可以通过屏幕所显示的图像,对拍摄的角度、效果进行预览。当接收按键指令,进入拍摄状态时,则将屏幕中显示的图像切换为补光光源的图像。所述补光光源的图像可以为占据屏幕中的一部分或者占据全部屏幕。如图2所示为一种补光光源在屏幕中显示的示意图,在图2中,所述补光光源包括在屏幕上的两个射灯图样。所述射灯的颜色、亮度根据设定的样式进行显示。In the first camera state, since the terminal generally displays the image captured by the current camera on the screen when starting the camera application, the user can preview the shooting angle and effect through the image displayed on the screen. When the button command is received and the shooting state is entered, the image displayed on the screen is switched to the image of the supplementary light source. The image of the supplementary light source may occupy a part of the screen or the entire screen. FIG. 2 is a schematic diagram of a supplementary light source displayed on a screen. In FIG. 2 , the supplementary light source includes two spotlight patterns on the screen. The color and brightness of the spotlights are displayed according to the set style.
当然,作为本发明优选的一种实施方式,当所述摄像状态对应打开照相机应用程序时,所述补光光源可以与所述照相机所采集的图像同时显示,比如可以将屏幕分为第一区域和第二区域,在第一区域显示所述照相机所采集的预览图像,在第二区域显示所述补光光源。将补光光源与预览图像同时显示,可以方便用户对补光光源进行调整。比如,在打开照相机应用程序的摄像状态下,设定的补光光源开启,照相机所采集的预览图像中,包括由所述补光光源所产生的效果。当用户不满意当前的预览图像的效果时,可以一边调整补光光源的参数,一边查看预览图像的效果。Of course, as a preferred implementation of the present invention, when the camera application is opened corresponding to the camera state, the supplementary light source can be displayed simultaneously with the image captured by the camera, for example, the screen can be divided into a first area and a second area, where the preview image captured by the camera is displayed in the first area, and the supplementary light source is displayed in the second area. Simultaneously displaying the supplementary light source and the preview image can facilitate the user to adjust the supplementary light source. For example, in the shooting state of opening the camera application program, the set supplementary light source is turned on, and the preview image collected by the camera includes the effect produced by the supplementary light source. When the user is not satisfied with the effect of the current preview image, he can check the effect of the preview image while adjusting the parameters of the supplementary light source.
所述补光光源的颜色,可以选择屏幕能够显示的颜色中任意一种。而目前终端的屏幕所能显示的颜色非常丰富,不会受到闪光灯个数的限制。The color of the supplementary light source can be any one of the colors that can be displayed on the screen. At present, the screen of the terminal can display very rich colors, and will not be limited by the number of flashlights.
在第二种状态下,在接收到拍照指令,比如快门或者拍照按键时,在屏幕中显示补光光源,使得拍照得到的图像能够有效的得到补光光源所带来的补光效果。In the second state, when a photographing instruction is received, such as a shutter or a camera button, the supplementary light source is displayed on the screen, so that the image obtained by taking pictures can effectively obtain the supplementary light effect brought by the supplementary light source.
在步骤S103中,根据所述屏幕中显示的补光光源,进行照片的拍摄。In step S103, a photo is taken according to the supplementary light source displayed on the screen.
在第一种摄像状态下,屏幕显示补光光源,可以接收用户对补光光源的调整指令,对所述补光光源进行调整,在调整至满意的效果后,进行拍摄,得到拍摄后的图像,可以确认是否满意。或者还可以根据拍摄的图像进一步接收用户对补光光源的调节指令。In the first shooting state, the screen displays the supplementary light source, which can receive the user’s adjustment instruction on the supplementary light source, adjust the supplementary light source, and shoot after adjusting to a satisfactory effect to obtain the captured image , you can confirm whether you are satisfied. Alternatively, according to the captured image, an instruction for adjusting the supplementary light source from the user may be further received.
如果所述屏幕上同时显示补光光源和采集的图像,那么用户可以直接根据显示的采集的图像,对补光光源进行调整。在调整完成后,触发拍照指令,完成图像的拍摄。If the supplementary light source and the collected image are simultaneously displayed on the screen, the user can directly adjust the supplementary light source according to the displayed collected image. After the adjustment is completed, a photographing instruction is triggered to complete the photographing of the image.
在第二种摄像状态下,根据设定的补光光源参数,在触发拍摄按键时,在屏幕显示补光光源,完成包括补光光源的补光效果的图像采集。In the second shooting state, according to the set supplementary light source parameters, when the shooting button is triggered, the supplementary light source is displayed on the screen, and the image acquisition including the supplementary light effect of the supplementary light source is completed.
通过检测到终端处于摄像状态,在屏幕中显示设定的颜色的补光光源,根据屏幕中的补光光源对场景进行补光,根据屏幕的补光完成照片的拍摄。由于屏幕的颜色可以任意调节,因此可以生成任意颜色的补光,有效的满足用户在拍照时对于滤光的要求。By detecting that the terminal is in the shooting state, display the supplementary light source of the set color on the screen, perform supplementary light to the scene according to the supplementary light source in the screen, and complete the photo shooting according to the supplementary light on the screen. Since the color of the screen can be adjusted arbitrarily, it can generate any color supplementary light, effectively meeting the user's requirements for light filtering when taking pictures.
实施例二:Embodiment two:
图3示出了本发明第二实施例提供的终端的拍照方法的实现流程,详述如下:FIG. 3 shows the implementation process of the terminal camera method provided by the second embodiment of the present invention, which is described in detail as follows:
在步骤S301中,检测所述终端是否处于摄像状态。In step S301, it is detected whether the terminal is in a shooting state.
在步骤S302中,检测所述终端的摄像状态是否为获取前置画面的摄像状态。In step S302, it is detected whether the shooting state of the terminal is the shooting state of acquiring the front screen.
具体的,所述前置画面的摄像状态的检测,可以根据终端的类型,采用不同的检测方式:Specifically, the detection of the camera state of the front screen may adopt different detection methods according to the type of the terminal:
方式A:如果终端的摄像头为固定的摄像头,则前置摄像头开启的状态,即为获取前置画面的摄像状态。比如用户进行自拍等场景。Method A: If the camera of the terminal is a fixed camera, the state of the front camera being turned on is the state of capturing the front image. For example, the user takes a selfie and other scenarios.
方式B:如果终端的摄像头为可放置的摄像头,则需要获取所述终端的摄像头的放置角度。在确定所述终端的摄像头的放置角度后,再检测当前打开的摄像头所采集的画面是否处于预定的角度范围。其中,所述预定的角度范围,可以使得开启的摄像头所采集的画面,可以通过屏幕的补光光源完成补光。Way B: If the camera of the terminal is a camera that can be placed, it is necessary to obtain the placement angle of the camera of the terminal. After determining the placement angle of the camera of the terminal, it is detected whether the picture captured by the currently turned on camera is within a predetermined angle range. Wherein, the predetermined range of angles can make the picture captured by the turned-on camera be supplemented by the supplementary light source of the screen.
所述前置画面,是指所采集的图像为终端的屏幕所面向的画面。The front-end picture refers to the picture that the screen of the terminal faces to which the collected image is facing.
在步骤S303中,如果所述终端的摄像状态为获取前置画面的摄像状态,则在所述终端的屏幕中显示设定的颜色的补光光源。In step S303, if the shooting state of the terminal is the shooting state of acquiring the front screen, a supplementary light source of a set color is displayed on the screen of the terminal.
在所述终端的摄像状态为前置画面的摄像状态时,在所述屏幕显示所述补光光源,通过所述补光光源完成对图像颜色的渲染或滤光,或者对图像的亮度的调节,比较增加图像的亮度或者图像的柔和度。When the shooting state of the terminal is the shooting state of the front screen, the supplementary light source is displayed on the screen, and the rendering or filtering of the image color or the adjustment of the brightness of the image is completed through the supplementary light source , to increase the brightness of the image or the softness of the image.
在步骤S304中,根据所述屏幕中显示的补光光源,进行照片的拍摄。In step S304, a photo is taken according to the supplementary light source displayed on the screen.
本发明实施例在实施例一的基础上,进一步通过对摄像头的状态的检测,在检测到摄像头获取的画面为前置画面时,则打开补光光源,通过补光光源对图像进行补光,有利于提高图像获取时补光光源的补光效率,避免在非补光场景下开启补光光源。On the basis of Embodiment 1, the embodiment of the present invention further detects the state of the camera, and when it is detected that the picture captured by the camera is the front picture, the supplementary light source is turned on, and the image is supplemented by the supplementary light source. It is beneficial to improve the fill light efficiency of the fill light source during image acquisition, and avoid turning on the fill light source in non-fill light scenes.
实施例三:Embodiment three:
图5示出了本发明第三实施例提供的终端的拍照方法的实现流程,详述如下:FIG. 5 shows the implementation process of the method for photographing a terminal provided by the third embodiment of the present invention, which is described in detail as follows:
在步骤S501中,检测所述终端是否处于摄像状态。In step S501, it is detected whether the terminal is in a shooting state.
在步骤S502中,如果所述终端处于摄像状态,根据获取的图像检测当前拍摄的场景的主体对象。In step S502, if the terminal is in the shooting state, detect the main object of the currently captured scene according to the acquired image.
具体的,对所述摄像的场景中的主体对象,可以通过多种方式获取。比如,可以通过识别场景中的物品的距离,根据设定的距离范围确定主体对象。或者可以根据获取的图像中的预定区域内的物品作为主体对象等。Specifically, the subject object in the captured scene may be acquired in various ways. For example, the main object can be determined according to the set distance range by recognizing the distance of the items in the scene. Alternatively, an item in a predetermined area in the acquired image may be used as the main object or the like.
在步骤S403中,根据预设的主体对象与颜色的对应关系,在屏幕中显示所述主体对象所对应的颜色的光源进行补光。In step S403, according to the preset corresponding relationship between the main object and the color, the light source of the color corresponding to the main object is displayed on the screen to supplement light.
可以预先设定不同的主体对象的特征信息,比如通过设定人脸的特征,或者人的体型的特征,对主体对象是否为人进行识别。The feature information of different subject objects may be preset, for example, by setting features of a human face or a person's body shape to identify whether the subject is a person.
当然,还可以包括其它主体对象的识别,通过设定主体对象的特征,将拍摄的主体对象的特征与预设的特征进行比较,可以确定主体对象的具体类型。Of course, it may also include identification of other main objects. By setting the characteristics of the main object and comparing the characteristics of the captured main object with the preset characteristics, the specific type of the main object can be determined.
在确定了主体对象的类型后,可以根据主体对象类型与补光光源的颜色的对应关系,查找所述主体对象所对应的补光光源的颜色,比如,在检测到所述主体对象为人脸时,根据人脸与补光光源的颜色的对应关系,比如人脸与柔和白光的对应关系,开启柔和白光的补光光源。After the type of the main object is determined, the color of the light source corresponding to the main object can be searched according to the corresponding relationship between the type of the main object and the color of the light source. For example, when the main object is detected to be a human face , according to the corresponding relationship between the face and the color of the fill light source, such as the correspondence between the face and the soft white light, turn on the fill light source of the soft white light.
当然,不局限于预先设定的主体对象与补光光源的颜色对应关系,还可以根据用户设定的补光光源的颜色参数,在屏幕中显示用户设定的颜色的光源进行补光Of course, it is not limited to the preset color correspondence between the main object and the fill light source, and can also display the light source with the color set by the user on the screen to perform fill light according to the color parameters of the fill light source set by the user.
在步骤S404中,根据所述屏幕中显示的补光光源,进行照片的拍摄。In step S404, a photo is taken according to the supplementary light source displayed on the screen.
本发明实施例根据拍摄图像的主体对象与补光光源的颜色的对应关系,可自动生成对应的补光光源,有利于提高用户使用的便利性和快捷性。According to the corresponding relationship between the main object of the captured image and the color of the supplementary light source, the embodiment of the present invention can automatically generate the corresponding supplementary light source, which is beneficial to improve the convenience and quickness of the user's use.
实施例四:Embodiment four:
图4示出了本发明第四实施例提供的一种终端的拍照方法的实现流程,详述如下:FIG. 4 shows the implementation process of a method for taking pictures of a terminal provided by the fourth embodiment of the present invention, which is described in detail as follows:
在步骤S401中,检测所述终端是否处于摄像状态。In step S401, it is detected whether the terminal is in a shooting state.
在步骤S402中,如果所述终端处于摄像状态,获取当前拍摄的场景的亮度。In step S402, if the terminal is in the shooting state, acquire the brightness of the currently shot scene.
所述当前拍摄场景的亮度,可以通过亮度传感器进行检测获取,或者可以通过没有检测打开闪光灯时所拍摄的图像的亮度,确定当前环境的亮度。The brightness of the current shooting scene can be detected and acquired by a brightness sensor, or the brightness of the current environment can be determined by not detecting the brightness of the image captured when the flashlight is turned on.
在步骤S503中,根据获取的当前环境的亮度,在屏幕中通过显示相应的亮度的光源进行补光。In step S503, according to the acquired brightness of the current environment, supplementary light is performed on the screen through a light source displaying a corresponding brightness.
根据预先设定的亮度补偿的对应关系,可以根据当前检测的环境的亮度,确定补光光源所需要设置的亮度值。比如,环境的亮度越高,则补光光源的亮度可以相应的变小。而如果环境的亮度越低,则补光光源的亮度则相应的增加。According to the preset corresponding relationship of brightness compensation, the brightness value to be set for the supplementary light source can be determined according to the brightness of the currently detected environment. For example, the higher the brightness of the environment is, the brightness of the supplementary light source can be correspondingly reduced. And if the brightness of the environment is lower, the brightness of the supplementary light source will increase accordingly.
当然,所述补光光源的亮度也可以接收用户的调整指令,根据调整指令对补光光源的亮度进行调整。如图2所示,在补光光源的显示界面的左侧,包括补光光源的颜色调节条,在补光光源的显示界面的右侧,包括补光光源的亮度调节条。Certainly, the brightness of the supplementary light source may also receive an adjustment instruction from a user, and adjust the brightness of the supplementary light source according to the adjustment instruction. As shown in FIG. 2 , on the left side of the display interface of the supplementary light source, there is a color adjustment bar of the supplementary light source, and on the right side of the display interface of the supplementary light source, there is a brightness adjustment bar of the supplementary light source.
在步骤S504中,根据所述屏幕中显示的补光光源,进行照片的拍摄。In step S504, a photo is taken according to the supplementary light source displayed on the screen.
本发明实施例在实施例一的基础上,进一步对亮度的调节方式进行了描述,可通过环境的亮度值,自动调节补光光源的亮度,提高用户拍摄使用的便利性和智能性。On the basis of Embodiment 1, the embodiment of the present invention further describes the brightness adjustment method, which can automatically adjust the brightness of the supplementary light source according to the brightness value of the environment, and improve the convenience and intelligence of the user's shooting and use.
实施例五:Embodiment five:
图6为本发明实施例提供的终端的提姆装置的结构示意图,详述如下:FIG. 6 is a schematic structural diagram of a Tim device of a terminal provided by an embodiment of the present invention, which is described in detail as follows:
本发明所述终端的拍照装置,包括:The photographing device of the terminal described in the present invention includes:
状态检测单元601,用于检测所述终端是否处于摄像状态;A state detection unit 601, configured to detect whether the terminal is in a camera state;
补光单元602,用于如果所述终端处于摄像状态,则在所述终端的屏幕中显示设定的颜色的补光光源;A supplementary light unit 602, configured to display a supplementary light source of a set color on the screen of the terminal if the terminal is in a camera state;
拍摄单元603,用于根据所述屏幕中显示的补光光源,进行照片的拍摄。The shooting unit 603 is configured to take pictures according to the supplementary light source displayed on the screen.
优选的,所述装置还包括:Preferably, the device also includes:
画面判断单元,用于检测所述终端的摄像状态是否为获取前置画面的摄像状态;A picture judging unit, used to detect whether the camera state of the terminal is the camera state of acquiring the front picture;
如果所述终端的摄像状态为获取前置画面的摄像状态,则执行补光单元。If the camera state of the terminal is the camera state of acquiring the front screen, then execute the supplementary light unit.
优选的,所述补光单元包括:Preferably, the supplementary light unit includes:
主体对象获取子单元,用于根据获取的图像检测当前拍摄的场景的主体对象;The main object acquisition subunit is used to detect the main object of the currently captured scene according to the acquired image;
第一补光子单元,用于根据预设的主体对象与颜色的对应关系,在屏幕中显示所述主体对象所对应的颜色的光源进行补光;或者,The first supplementary light sub-unit is configured to display on the screen a light source of a color corresponding to the main object to perform supplementary light according to the preset correspondence between the main object and the color; or,
第二补光子单元,用于根据用户设定的颜色,在屏幕中显示用户设定的颜色的光源进行补光。The second supplementary light sub-unit is used to display the light source of the color set by the user on the screen for supplementary light according to the color set by the user.
优选的,所述装置还包括:Preferably, the device also includes:
亮度获取子单元,用于获取当前拍摄的场景的亮度;The brightness acquisition subunit is used to acquire the brightness of the currently captured scene;
第三补光单元,用于根据获取的当前环境的亮度,在屏幕中通过显示相应的亮度的光源进行补光;或者,The third supplementary light unit is configured to perform supplementary light on the screen by displaying a light source of corresponding brightness according to the acquired brightness of the current environment; or,
第四补光子单元有,用于根据用户设定的亮度,调整屏幕中显示设定的亮度的光源进行补光。The fourth supplementary light sub-unit is used for supplementing light by adjusting the light source with the brightness set on the screen according to the brightness set by the user.
优选的,所述摄像状态为摄像机当前快门触发状态,所述补光单元具体用于:Preferably, the camera state is the current shutter trigger state of the camera, and the supplementary light unit is specifically used for:
将所述屏幕中的内容,由原来显示的摄像的图像内容,切换为设定的颜色的补光光源。The content in the screen is switched from the originally displayed captured image content to the supplementary light source of the set color.
本发明实施例所述终端的拍照装置,与实施例一至四所述终端的拍照方法对应,在此不作重复赘述。The photographing device of the terminal described in the embodiment of the present invention corresponds to the photographing method of the terminal described in Embodiments 1 to 4, and will not be repeated here.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710173698.0ACN106899768A (en) | 2017-03-22 | 2017-03-22 | Terminal photographing method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710173698.0ACN106899768A (en) | 2017-03-22 | 2017-03-22 | Terminal photographing method and device |
| Publication Number | Publication Date |
|---|---|
| CN106899768Atrue CN106899768A (en) | 2017-06-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710173698.0APendingCN106899768A (en) | 2017-03-22 | 2017-03-22 | Terminal photographing method and device |
| Country | Link |
|---|---|
| CN (1) | CN106899768A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107609514A (en)* | 2017-09-12 | 2018-01-19 | 广东欧珀移动通信有限公司 | Face identification method and Related product |
| CN108040164A (en)* | 2017-10-27 | 2018-05-15 | 努比亚技术有限公司 | Close shot image pickup method, terminal and computer-readable recording medium |
| CN108171224A (en)* | 2018-03-07 | 2018-06-15 | 北京上古视觉科技有限公司 | A kind of electron album and attendance recorder |
| CN108307125A (en)* | 2018-02-08 | 2018-07-20 | 腾讯科技(深圳)有限公司 | A kind of image-pickup method, device and storage medium |
| CN109615579A (en)* | 2018-11-27 | 2019-04-12 | 成都圭目机器人有限公司 | A kind of illumination compensation algorithm applied to the area array cameras for using LED spotlight |
| CN112995439A (en)* | 2019-12-02 | 2021-06-18 | 北京小米移动软件有限公司 | Light assembly, control method and control device thereof and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103312986A (en)* | 2013-06-08 | 2013-09-18 | 康佳集团股份有限公司 | Mobile terminal based front photographing fill light method and mobile terminal |
| CN104301598A (en)* | 2013-07-18 | 2015-01-21 | 国龙信息技术(上海)有限公司 | Method of setting lighting effect of front camera by mobile terminal |
| CN105554413A (en)* | 2016-02-15 | 2016-05-04 | 广东欧珀移动通信有限公司 | Screen light compensation photographing method and device, and mobile terminal |
| CN105744176A (en)* | 2016-02-15 | 2016-07-06 | 广东欧珀移动通信有限公司 | A method, device, and mobile terminal for supplementing light on a screen |
| CN105744174A (en)* | 2016-02-15 | 2016-07-06 | 广东欧珀移动通信有限公司 | A Selfie method, device and mobile terminal |
| CN105827943A (en)* | 2015-10-19 | 2016-08-03 | 维沃移动通信有限公司 | Human eye-based self-shooting method and electronic device |
| CN106231187A (en)* | 2016-07-29 | 2016-12-14 | 维沃移动通信有限公司 | A kind of method shooting image and mobile terminal |
| CN106303280A (en)* | 2016-09-09 | 2017-01-04 | 广东欧珀移动通信有限公司 | A method, device and terminal for supplementary light for photographing |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103312986A (en)* | 2013-06-08 | 2013-09-18 | 康佳集团股份有限公司 | Mobile terminal based front photographing fill light method and mobile terminal |
| CN104301598A (en)* | 2013-07-18 | 2015-01-21 | 国龙信息技术(上海)有限公司 | Method of setting lighting effect of front camera by mobile terminal |
| CN105827943A (en)* | 2015-10-19 | 2016-08-03 | 维沃移动通信有限公司 | Human eye-based self-shooting method and electronic device |
| CN105554413A (en)* | 2016-02-15 | 2016-05-04 | 广东欧珀移动通信有限公司 | Screen light compensation photographing method and device, and mobile terminal |
| CN105744176A (en)* | 2016-02-15 | 2016-07-06 | 广东欧珀移动通信有限公司 | A method, device, and mobile terminal for supplementing light on a screen |
| CN105744174A (en)* | 2016-02-15 | 2016-07-06 | 广东欧珀移动通信有限公司 | A Selfie method, device and mobile terminal |
| CN106231187A (en)* | 2016-07-29 | 2016-12-14 | 维沃移动通信有限公司 | A kind of method shooting image and mobile terminal |
| CN106303280A (en)* | 2016-09-09 | 2017-01-04 | 广东欧珀移动通信有限公司 | A method, device and terminal for supplementary light for photographing |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107609514A (en)* | 2017-09-12 | 2018-01-19 | 广东欧珀移动通信有限公司 | Face identification method and Related product |
| CN107609514B (en)* | 2017-09-12 | 2021-08-06 | Oppo广东移动通信有限公司 | Face recognition method and related products |
| CN108040164A (en)* | 2017-10-27 | 2018-05-15 | 努比亚技术有限公司 | Close shot image pickup method, terminal and computer-readable recording medium |
| CN108307125A (en)* | 2018-02-08 | 2018-07-20 | 腾讯科技(深圳)有限公司 | A kind of image-pickup method, device and storage medium |
| CN108307125B (en)* | 2018-02-08 | 2021-10-08 | 腾讯科技(深圳)有限公司 | Image acquisition method, device and storage medium |
| CN108171224A (en)* | 2018-03-07 | 2018-06-15 | 北京上古视觉科技有限公司 | A kind of electron album and attendance recorder |
| CN109615579A (en)* | 2018-11-27 | 2019-04-12 | 成都圭目机器人有限公司 | A kind of illumination compensation algorithm applied to the area array cameras for using LED spotlight |
| CN109615579B (en)* | 2018-11-27 | 2023-04-14 | 成都圭目机器人有限公司 | Illumination compensation method applied to area-array camera using LED spotlight |
| CN112995439A (en)* | 2019-12-02 | 2021-06-18 | 北京小米移动软件有限公司 | Light assembly, control method and control device thereof and electronic equipment |
| Publication | Publication Date | Title |
|---|---|---|
| CN105744176B (en) | A method, device, and mobile terminal for supplementing light on a screen | |
| CN106899768A (en) | Terminal photographing method and device | |
| CN115835010A (en) | Shooting method and terminal | |
| US11405539B2 (en) | Background replacement system and methods | |
| CN108762501B (en) | AR display method, smart terminal, AR device and system | |
| CN105791708B (en) | A shooting control method, device and intelligent terminal | |
| CN204481940U (en) | Binocular camera is taken pictures mobile terminal | |
| CN104243822A (en) | Method and device for shooting images | |
| WO2015162605A2 (en) | System and method for controlling a camera based on processing an image captured by other camera | |
| CN110740260B (en) | Shooting method and device and computer readable storage medium | |
| JP2017532922A (en) | Image photographing method and apparatus | |
| CN105554372B (en) | Shooting method and device | |
| CN112532854B (en) | An image processing method and electronic device | |
| CN105657239B (en) | A kind of image processing method and device | |
| CN108900764A (en) | Image pickup method and electronic device and filming control method and server | |
| KR20170074742A (en) | Image processing device, image processing method amd program | |
| CN104820567A (en) | Method, equipment and system for controlling photographing with stylus | |
| CN113850709A (en) | Image transformation method and device | |
| KR102351496B1 (en) | Image processing apparatus and method for operating thereof | |
| CN103034021A (en) | Method and system and mobile terminal of camera photographing | |
| WO2016155227A1 (en) | Method and apparatus for displaying viewfinding information | |
| CN111835941A (en) | Image generation method and apparatus, electronic device, computer-readable storage medium | |
| CN105933613A (en) | Image processing method, device and mobile terminal | |
| CN105578039A (en) | Photographic apparatus with photography auxiliary function | |
| CN116437198B (en) | Image processing method and electronic equipment |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20170627 |