CN104754234A - Photographing method and device - Google Patents

Photographing method and device Download PDF

Info

Publication number
CN104754234A
CN104754234A CN201510172730.4A CN201510172730A CN104754234A CN 104754234 A CN104754234 A CN 104754234A CN 201510172730 A CN201510172730 A CN 201510172730A CN 104754234 A CN104754234 A CN 104754234A
Authority
CN
China
Prior art keywords
image data
attribute parameter
mobile terminal
user
current image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510172730.4A
Other languages
Chinese (zh)
Other versions
CN104754234B (en
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
SHENZHEN OPPO COMMUNICATION SOFTWARE Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN OPPO COMMUNICATION SOFTWARE Co Ltd filed Critical SHENZHEN OPPO COMMUNICATION SOFTWARE Co Ltd
Priority to CN201510172730.4A priority Critical patent/CN104754234B/en
Publication of CN104754234A publication Critical patent/CN104754234A/en
Application granted granted Critical
Publication of CN104754234B publication Critical patent/CN104754234B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

本发明适用于信息处理领域,提供了一种拍照方法及装置,所述方法包括:移动终端获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储;移动终端采集当前的图像数据;移动终端遍历所述当前图像数据,并判断所述当前图像数据是否与存储的第一属性参数匹配;当所述当前图像数据与存储的第一属性参数匹配时,移动终端发出拍照提示,以供用户拍摄到符合要求的照片。本发明实施例能使得请别人拍照时也能拍出用户自己想要的拍摄角度,提高拍照体验。

The present invention is applicable to the field of information processing, and provides a photographing method and device, the method comprising: a mobile terminal acquires image data obtained by setting a viewing angle set by a user, and stores the image data as a first attribute parameter; the mobile terminal Collect current image data; the mobile terminal traverses the current image data, and judges whether the current image data matches the stored first attribute parameter; when the current image data matches the stored first attribute parameter, the mobile terminal A reminder to take a photo is issued so that the user can take a photo that meets the requirements. The embodiment of the present invention enables the shooting angle that the user wants to be taken when asking others to take a photo, thereby improving the photo-taking experience.

Description

一种拍照方法及装置Method and device for taking pictures

技术领域technical field

本发明实施例属于信息处理领域,尤其涉及一种拍照方法及装置。The embodiments of the present invention belong to the field of information processing, and in particular relate to a method and device for taking pictures.

背景技术Background technique

随着移动终端的普及,而且移动终端的摄像头的像素不断提高,使用移动终端拍照已经成为一种流行并且方便快捷的拍照方式。With the popularization of mobile terminals, and the continuous improvement of the pixels of the cameras of the mobile terminals, using the mobile terminal to take pictures has become a popular and convenient way of taking pictures.

如果当前用户不方便自己拍照,比如在旅游景区游玩,希望别人帮忙拍照,但是很多时候,别人不了解自己的拍照习惯,拍照的角度也会有各种偏差,导致拍摄出来的照片不符合用户的意图。If the current user is inconvenient to take pictures by himself, such as playing in a tourist attraction, he hopes that others will help him take pictures. However, many times, other people do not understand his own photography habits, and the angles of the pictures will have various deviations, resulting in the pictures taken. intention.

发明内容Contents of the invention

本发明实施例提供了一种拍照方法及装置,旨在解决现有方法难以拍出符合要求的照片的问题。Embodiments of the present invention provide a method and device for photographing, aiming at solving the problem that it is difficult to photograph satisfactory photographs in existing methods.

本发明实施例是这样实现的,一种拍照方法,所述方法包括:The embodiment of the present invention is achieved in this way, a method for taking pictures, the method comprising:

移动终端获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储;The mobile terminal obtains the image data obtained by setting the viewing angle by the user, and stores the image data as the first attribute parameter;

移动终端采集当前的图像数据;The mobile terminal collects the current image data;

移动终端遍历所述当前图像数据,并判断所述当前图像数据是否与存储的第一属性参数匹配;The mobile terminal traverses the current image data, and judges whether the current image data matches the stored first attribute parameter;

当所述当前图像数据与存储的第一属性参数匹配时,移动终端发出拍照提示,以供用户拍摄到符合要求的照片。When the current image data matches the stored first attribute parameter, the mobile terminal sends a prompt to take a photo, so that the user can take a photo that meets the requirements.

本发明实施例的另一目的在于提供一种拍照装置,所述装置包括:Another object of the embodiments of the present invention is to provide a photographing device, the device comprising:

存储单元,用于获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储;a storage unit, configured to obtain image data obtained by setting a viewing angle by the user, and store the image data as a first attribute parameter;

数据采集单元,用于采集当前的图像数据;A data acquisition unit, configured to acquire current image data;

判断单元,用户遍历所述当前图像数据,并判断所述当前图像数据是否与存储的第一属性参数匹配;Judging unit, the user traverses the current image data, and judges whether the current image data matches the stored first attribute parameter;

拍照提示单元,用于当所述当前图像数据与存储的第一属性参数匹配时,发出拍照提示,以供用户拍摄到符合要求的照片。The photographing prompt unit is configured to issue a photographing prompt when the current image data matches the stored first attribute parameter, so that the user can take a photo that meets the requirements.

在本发明实施例中,由于在所述当前图像数据与所述第一属性参数匹配时,表示当前选取的取景角度符合用户预先设置的认为比较满意的取景角度,因此,通过这种拍照方法,可以在用户请别人帮忙拍照时,也能拍到符合自己要求的取景角度的照片,解决了别人帮忙拍照不能得到符合用户拍摄习惯的照片的问题。In the embodiment of the present invention, when the current image data matches the first attribute parameter, it means that the currently selected viewing angle conforms to the satisfactory viewing angle preset by the user. Therefore, through this photographing method, When the user asks others to help take pictures, they can also take photos that meet their own requirements, which solves the problem that others cannot get photos that meet the user's shooting habits.

附图说明Description of drawings

图1是本发明第一实施例提供的一种拍照方法的流程图;Fig. 1 is a flowchart of a photographing method provided by the first embodiment of the present invention;

图2是本发明第二实施例提供的一种拍照装置的结构图;Fig. 2 is a structural diagram of a photographing device provided by a second embodiment of the present invention;

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。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.

本发明实施例中,移动终端获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储,采集当前的图像数据,并遍历所述当前图像数据,再判断所述当前图像数据是否与存储的第一属性参数匹配,若匹配,则发出拍照提示,以供用户拍摄到符合要求的照片。In the embodiment of the present invention, the mobile terminal obtains the image data obtained by setting the viewing angle set by the user, stores the image data as the first attribute parameter, collects the current image data, traverses the current image data, and then judges the Whether the current image data matches the stored first attribute parameter, and if so, a photo prompt is issued for the user to take a photo that meets the requirements.

为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

实施例一:Embodiment one:

图1示出了本发明第一实施例提供的一种拍照方法的流程图,详述如下:Fig. 1 shows a flow chart of a photographing method provided by the first embodiment of the present invention, which is described in detail as follows:

步骤S11,移动终端获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储;Step S11, the mobile terminal obtains the image data obtained by setting the viewing angle set by the user, and stores the image data as the first attribute parameter;

该步骤中,用户需要设置好取景的角度,比如设定特定物体在希望得到的照片中的距离、大小等参数,此处特定物体可以是人物头像或者是一些标志性建筑物等,比如说一些景区的某些标志性建筑在图片中的位置或者说用户头像在照片中的位置、大小,在用户结束设置动作后,移动终端将这些图像数据以第一属性参数记录下来并存储。由于移动终端存储的第一属性参数为用户设置的,因此,这样的参数就是用户认为满意的参数。In this step, the user needs to set the viewing angle, such as setting the distance and size of the specific object in the desired photo, where the specific object can be a portrait of a person or some landmark buildings, etc. The position of some landmark buildings in the scenic area in the picture or the position and size of the user's avatar in the picture. After the user completes the setting action, the mobile terminal records and stores these image data as the first attribute parameter. Since the first attribute parameter stored in the mobile terminal is set by the user, such a parameter is a parameter that the user considers satisfactory.

步骤S12,移动终端采集当前的图像数据;Step S12, the mobile terminal collects current image data;

该步骤中,当用户请别人帮忙拍照时,移动终端的摄像头设备采集当前的图像数据。In this step, when the user asks others to help take pictures, the camera device of the mobile terminal collects current image data.

步骤S13,移动终端遍历所述当前图像数据,并判断所述当前图像数据是否与存储的第一属性参数匹配;Step S13, the mobile terminal traverses the current image data, and judges whether the current image data matches the stored first attribute parameter;

此步骤中,遍历通过移动终端摄像头获取到的当前图像数据,然后分别与步骤S11中用户自己预先设置的取景角度生成并存储在移动终端中的第一属性参数匹配,此步骤是为了判断当前别人选取的取景角度是否与自己预先设置的认为比较满意的取景角度匹配。In this step, the current image data acquired through the mobile terminal camera is traversed, and then matched with the first attribute parameters generated and stored in the mobile terminal from the viewing angle preset by the user in step S11. This step is to judge the current image data of other people. Whether the selected framing angle matches the preset framing angle that you think is satisfactory.

步骤S14,当所述当前图像数据与存储的第一属性参数匹配时,移动终端发出拍照提示,以供用户拍摄到符合要求的照片;Step S14, when the current image data matches the stored first attribute parameter, the mobile terminal sends a photo prompt for the user to take a photo that meets the requirements;

该步骤中,当所述的当前图像数据能与所述的第一属性参数匹配时,表示当前选取的取景角度符合用户预先设置的认为比较满意的取景角度,此时,移动终端发出拍照提示,此处所述的提示方式包括但不限于语音或者画面闪烁等方式,此时移动终端使用者点击拍照键发出拍照指令,移动终端根据接收的拍照指令执行拍照动作。由于当前选取的取景角度符合用户预先设置的认为比较满意的取景角度,因此能够拍出符合用户要求的照片。In this step, when the current image data can match the first attribute parameter, it means that the currently selected viewing angle conforms to the satisfactory viewing angle preset by the user, and at this time, the mobile terminal sends a photographing prompt, The prompting methods described here include but are not limited to voice or screen flashing. At this time, the user of the mobile terminal clicks the camera button to send a camera instruction, and the mobile terminal executes the camera action according to the received camera instruction. Since the currently selected framing angle conforms to the framing angle preset by the user and is considered satisfactory, photos meeting the user's requirements can be taken.

可选地,当所述当前图像数据与存储的第一属性参数不匹配时,表示当前选取的取景角度不符合用户预先设置的认为比较满意的取景角度,若此时移动终端使用者点击拍照键发出拍照指令时,移动终端发出报警提示且不响应接收的拍照指令。Optionally, when the current image data does not match the stored first attribute parameter, it means that the currently selected framing angle does not meet the user’s preset framing angle that is considered satisfactory. If the mobile terminal user clicks the camera button at this time When the camera instruction is issued, the mobile terminal sends an alarm prompt and does not respond to the received camera instruction.

此步骤中,为了提高用户体验度,还设置一个参数匹配范围,在将所述当前图像数据与所述第一属性参数执行匹配动作时,如果匹配结果落在所述参数匹配范围内,表示当前的取景角度符合用户预先设置的认为比较满意的取景角度,此时也可以进行拍照响应。In this step, in order to improve the user experience, a parameter matching range is also set. When the current image data is matched with the first attribute parameter, if the matching result falls within the parameter matching range, it means that the current The framing angle of the camera is in line with the framing angle preset by the user and is considered satisfactory, and it is also possible to respond by taking pictures at this time.

可选地,所述移动终端获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储,具体包括:Optionally, the mobile terminal obtains the image data obtained by setting the viewing angle by the user, and stores the image data as a first attribute parameter, specifically including:

A110、获取用户点击特定物体在移动终端屏幕上的位置,并将所述位置的参数解析成所述第一属性参数。A110. Obtain the location where the user clicks on the specific object on the screen of the mobile terminal, and parse the location parameter into the first attribute parameter.

A120,存储解析得到的所述第一属性参数。A120, storing the first attribute parameter obtained through parsing.

上述A110和A120中,特定物体可以是人物头像或者是一些标志性建筑物等,比如一些景区的某些标志性建筑在图片中的位置或者说用户头像在照片中的位置、大小。解析用户点击特定物体在移动终端屏幕上的位置,解析点击位置得到的解析结果包括点击位置在移动终端屏幕的横坐标和纵坐标等,将解析结果对应的第一属性参数存储在移动终端中。可选地,为了提高匹配速度,将用户点击位置的区域图像进行二值化处理,并存储二值化处理得到的第一属性参数。In the above-mentioned A110 and A120, the specific object can be a person's head portrait or some landmark buildings, etc., such as the position of some landmark buildings in some scenic spots in the picture or the position and size of the user's head portrait in the photo. Analyze the location where the user clicks on a specific object on the screen of the mobile terminal, and the analysis result obtained by analyzing the click location includes the abscissa and ordinate of the click location on the screen of the mobile terminal, etc., and store the first attribute parameter corresponding to the analysis result in the mobile terminal. Optionally, in order to increase the matching speed, the image of the area clicked by the user is binarized, and the first attribute parameter obtained by the binarization is stored.

可选地,为了更好的提高用户体验,可以预先在移动终端中设置特定的功能开启开关,该功能开启开关用于打开和关闭该拍照功能。用户可以选择只有当需要请别人帮忙时才通过特定的功能开启开关打开该拍照功能,当用户是自己使用移动终端拍照时,可以通过该功能开启开关关闭该拍照功能,移动终端此时进入普通的拍照模式。Optionally, in order to better improve user experience, a specific function enabling switch can be set in advance in the mobile terminal, and the function enabling switch is used to enable and disable the photographing function. The user can choose to turn on the camera function through a specific function switch only when he needs to ask others for help. When the user uses the mobile terminal to take pictures by himself, he can turn off the camera function through the function switch. photo mode.

可选地,所述移动终端遍历所述当前图像数据,并判断所述当前图像数据是否与存储的第一属性参数匹配具体包括:对所述的当前图像数据进行二值化处理;遍历经过所述二值化处理的图像数据,并判断所述经过所述二值化处理的图像数据是否与存储的第一属性参数匹配。当采用二值化处理的图像数据与存储的第一属性参数匹配时,该存储的第一属性参数也为二值化处理后的图像数据。当然,若采用彩色的图像数据与存储的第一属性参数匹配时,该存储的第一属性参数也为彩色的图像数据,此处不作限定。Optionally, the mobile terminal traverses the current image data, and judging whether the current image data matches the stored first attribute parameter specifically includes: performing binarization processing on the current image data; traversing through the the binarized image data, and determine whether the binarized image data matches the stored first attribute parameter. When the binarized image data matches the stored first attribute parameter, the stored first attribute parameter is also binarized image data. Of course, if the color image data matches the stored first attribute parameter, the stored first attribute parameter is also color image data, which is not limited here.

可选地,上文中所述的第一属性参数,具体包括:特定物体在移动终端屏幕上的区域图像以及该区域图像在移动终端屏幕上的位置区域坐标。其中,位置区域坐标包括屏幕的横坐标和纵坐标。此处特定物体可以是人物头像或者是一些标志性建筑物等,比如说一些景区的某些标志性建筑在图片中的位置或者说用户头像在照片中的位置、大小。Optionally, the above-mentioned first attribute parameter specifically includes: an area image of the specific object on the screen of the mobile terminal and a location area coordinate of the area image on the screen of the mobile terminal. Wherein, the location area coordinates include the abscissa and ordinate of the screen. The specific object here can be a person's head portrait or some landmark buildings, etc., for example, the position of some landmark buildings in some scenic spots in the picture or the position and size of the user's head portrait in the photo.

本发明第一实施例中,移动终端获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储,采集当前的图像数据,并遍历所述当前图像数据,再判断所述当前图像数据是否与存储的第一属性参数匹配,若匹配,则发出拍照提示,以供用户拍摄到符合要求的照片。由于在所述当前图像数据与所述第一属性参数匹配时,表示当前选取的取景角度符合用户预先设置的认为比较满意的取景角度,因此,通过这种拍照方法,可以在用户请别人帮忙拍照时,也能拍到符合自己要求的取景角度的照片,解决了别人帮忙拍照不能得到符合用户拍摄习惯的照片的问题,同时,采用这种拍照方法能够进一步的提高了用户使用移动终端拍照的使用度。In the first embodiment of the present invention, the mobile terminal obtains the image data obtained by setting the viewing angle set by the user, stores the image data as the first attribute parameter, collects the current image data, traverses the current image data, and then judges Whether the current image data matches the stored first attribute parameter, and if so, a prompt to take a photo is issued so that the user can take a photo that meets the requirements. When the current image data matches the first attribute parameter, it means that the currently selected framing angle conforms to the framing angle preset by the user and is considered satisfactory. Therefore, through this method of taking pictures, the user can ask others to help take pictures. At the same time, you can also take photos that meet your own requirements for viewing angles, which solves the problem that others can’t get photos that meet the user’s shooting habits when taking pictures. Spend.

应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment of the present invention. constitute any limitation.

实施例二:Embodiment two:

图2示出了本发明第二实施例提供的一种拍照装置的结构图,该拍照装置主要可应用于移动终端设备中,此处移动终端设备可以包括经无线接入网RAN与一个或多个核心网进行通信的用户设备,该用户设备可以是移动电话(或称为“蜂窝”电话)、具有移动设备的计算机等,例如,用户设备还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语音和/或数据。又例如,该移动设备可以包括智能手机、平板电脑、个人数字助理PDA、销售终端POS或车载电脑等。为了便于说明,仅示出了与本发明实施例相关的部分。Fig. 2 shows a structural diagram of a photographing device provided by a second embodiment of the present invention. The photographing device is mainly applicable to mobile terminal equipment, where the mobile terminal equipment may include a radio access network RAN and one or more A user equipment that communicates with a core network, the user equipment can be a mobile phone (or called a "cellular" phone), a computer with a mobile device, etc., for example, the user equipment can also be portable, pocket, handheld, computer built-in on-board or on-board mobile devices that exchange voice and/or data with the radio access network. For another example, the mobile device may include a smart phone, a tablet computer, a personal digital assistant PDA, a sales terminal POS, or a vehicle-mounted computer. For ease of description, only parts related to the embodiments of the present invention are shown.

所述拍照装置包括存储单元21,数据采集单元22,判断单元23以及拍照提示单元24。其中,The photographing device includes a storage unit 21 , a data collection unit 22 , a judging unit 23 and a photographing prompt unit 24 . in,

存储单元21,用于获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储。The storage unit 21 is configured to acquire image data obtained by setting a viewing angle by the user, and store the image data as a first attribute parameter.

具体地,用户需要设置好取景的角度,比如设定特定物体在希望得到的照片中的距离、大小等参数,此处特定物体可以是人物头像或者是一些标志性建筑物等,比如说一些景区的某些标志性建筑在图片中的位置或者说用户头像在照片中的位置、大小,在用户结束设置动作后,存储单元21将这些图像数据以第一属性参数记录下来并存储。由于存储的第一属性参数为用户设置的,因此,这样的参数就是用户认为满意的参数。Specifically, the user needs to set the viewing angle, such as setting the distance and size of a specific object in the desired photo, where the specific object can be a portrait of a person or some landmark buildings, etc. The position and size of certain landmarks in the picture or the position and size of the user's avatar in the picture, after the user completes the setting action, the storage unit 21 records and stores these image data as the first attribute parameter. Since the stored first attribute parameter is set by the user, such a parameter is a parameter considered satisfactory by the user.

数据采集单元22,用于采集当前的图像数据。所述数据采集单元22可以是移动终端摄像头设备。当用户请别人帮忙拍照时,数据采集设备采集当前的图像数据。The data collection unit 22 is used to collect current image data. The data collection unit 22 may be a mobile terminal camera device. When the user asks others to help take pictures, the data collection device collects the current image data.

判断单元23,遍历所述当前图像数据,并判断所述当前图像数据是否与存储的第一属性参数匹配。The judging unit 23 traverses the current image data, and judges whether the current image data matches the stored first attribute parameter.

判断单元23遍历通过数据采集单元22获取到的当前图像数据,然后分别与用户自己预先设置的取景角度生成并存储在移动终端存储单元21中的第一属性参数匹配。The judging unit 23 traverses the current image data acquired by the data acquisition unit 22, and then respectively matches with the first attribute parameters generated by the viewing angle preset by the user and stored in the mobile terminal storage unit 21.

拍照提示单元24,用于当所述当前图像数据与存储的第一属性参数匹配时,发出拍照提示,以供用户拍摄到符合要求的照片。The photographing prompt unit 24 is configured to issue a photographing prompt when the current image data matches the stored first attribute parameter, so that the user can take a photo that meets the requirements.

当所述的当前图像数据能与所述的第一属性参数匹配时,表示当前选取的取景角度符合用户预先设置的认为比较满意的取景角度,此时,拍照提示单元24发出拍照提示,此处所述的提示方式包括但不限于语音或者画面闪烁等方式。When the current image data can match the first attribute parameter, it means that the currently selected viewing angle meets the user’s preset viewing angle that is considered satisfactory. At this time, the photographing prompt unit 24 sends a photographing prompt, here The prompting methods include but are not limited to voice or screen flashing.

可选地,所述存储单元21还包括:Optionally, the storage unit 21 also includes:

数据解析模块,用于获取用户点击特定物体在移动终端屏幕上的位置,并将所述位置的参数解析成所述第一属性参数;其中,特定物体可以是人物头像或者是一些标志性建筑物等,比如一些景区的某些标志性建筑在图片中的位置或者说用户头像在照片中的位置、大小。The data parsing module is used to obtain the position where the user clicks on a specific object on the screen of the mobile terminal, and parse the parameter of the position into the first attribute parameter; where the specific object can be a person's head portrait or some landmark buildings etc., such as the position and size of some landmark buildings in some scenic spots in the picture or the position and size of the user's avatar in the photo.

解析结果存储模块,用于存储解析得到的所述第一属性参数。可选地,为了提高匹配速度,将用户点击位置的区域图像进行二值化处理,并存储二值化处理得到的第一属性参数。The parsing result storage module is configured to store the first attribute parameter obtained through parsing. Optionally, in order to increase the matching speed, the image of the area clicked by the user is binarized, and the first attribute parameter obtained by the binarization is stored.

可选地,为了更好的提高用户体验,可以预先在移动终端中设置一功能开启设置单元,该功能开启设置单元,用于设置一功能开启开关。该功能开启开关用于打开和关闭该拍照功能。用户可以选择只有当需要请别人帮忙时才通过特定的功能开启开关打开该拍照功能,当用户是自己使用移动终端拍照时,可以通过该功能开启开关关闭该拍照功能,移动终端此时进入普通的拍照模式。Optionally, in order to better improve user experience, a function enabling setting unit may be pre-set in the mobile terminal, and the function enabling setting unit is used for setting a function enabling switch. The function enable switch is used to turn on and off the camera function. The user can choose to turn on the camera function through a specific function switch only when he needs to ask others for help. When the user uses the mobile terminal to take pictures by himself, he can turn off the camera function through the function switch. photo mode.

可选地,所述的判断单元23包括:Optionally, the judging unit 23 includes:

数据处理模块,用于对所述的当前图像数据进行二值化处理;A data processing module, configured to perform binarization processing on the current image data;

二值化处理结果匹配模块,用于遍历经过所述二值化处理的图像数据,并判断所述经过所述二值化处理的图像数据是否与存储的第一属性参数匹配。The binarization processing result matching module is configured to traverse the image data that has undergone the binarization processing, and determine whether the image data that has undergone the binarization processing matches the stored first attribute parameter.

当采用二值化处理的图像数据与存储的第一属性参数匹配时,该存储的第一属性参数也为二值化处理后的图像数据。当然,若采用彩色的图像数据与存储的第一属性参数匹配时,该存储的第一属性参数也为彩色的图像数据,此处不作限定。When the binarized image data matches the stored first attribute parameter, the stored first attribute parameter is also binarized image data. Of course, if the color image data matches the stored first attribute parameter, the stored first attribute parameter is also color image data, which is not limited here.

可选地,所述拍照装置中的所述的第一属性参数,具体包括:特定物体在移动终端屏幕上的区域图像以及该区域图像在移动终端屏幕上的位置区域坐标。其中,位置区域坐标包括屏幕的横坐标和纵坐标。此处特定物体可以是人物头像或者是一些标志性建筑物等,比如说一些景区的某些标志性建筑在图片中的位置或者说用户头像在照片中的位置、大小。Optionally, the first attribute parameter in the photographing device specifically includes: an area image of the specific object on the screen of the mobile terminal and a location area coordinate of the area image on the screen of the mobile terminal. Wherein, the location area coordinates include the abscissa and ordinate of the screen. The specific object here can be a person's head portrait or some landmark buildings, etc., for example, the position of some landmark buildings in some scenic spots in the picture or the position and size of the user's head portrait in the photo.

本发明第二实施例中,通过判断单元23遍历采集单元22采集当前的图像数据,并判断是否与存储单元21中存储的第一属性参数匹配,当所述的当前图像数据与所述的第一属性参数匹配,拍照提示单元24发出拍照提示,以供用户拍摄到符合要求的照片。由于在所述当前图像数据与所述第一属性参数匹配时,表示当前选取的取景角度符合用户预先设置的认为比较满意的取景角度,因此,通过这种拍照方法,可以在用户请别人帮忙拍照时,也能拍到符合自己要求的取景角度的照片,解决了别人帮忙拍照不能得到符合用户拍摄习惯的照片的问题,同时,采用这种拍照方法能够进一步的提高了用户使用移动终端拍照的使用度。In the second embodiment of the present invention, the judging unit 23 traverses the acquisition unit 22 to collect the current image data, and judges whether it matches the first attribute parameter stored in the storage unit 21, when the current image data matches the first attribute parameter Once the attribute parameters match, the photographing prompt unit 24 sends out a photographing prompt for the user to take a photo that meets the requirements. When the current image data matches the first attribute parameter, it means that the currently selected framing angle conforms to the framing angle preset by the user and is considered satisfactory. Therefore, through this method of taking pictures, the user can ask others to help take pictures. At the same time, you can also take photos that meet your own requirements for viewing angles, which solves the problem that others can’t get photos that meet the user’s shooting habits when taking pictures. Spend.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may 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 shown 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.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the 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 are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment 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 disc, etc., which can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

1.一种拍照方法,其特征在于,所述方法包括:1. A method for taking pictures, characterized in that the method comprises: 移动终端获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储;The mobile terminal obtains the image data obtained by setting the viewing angle by the user, and stores the image data as the first attribute parameter; 移动终端采集当前的图像数据;The mobile terminal collects the current image data; 移动终端遍历所述当前图像数据,并判断所述当前图像数据是否与存储的第一属性参数匹配;The mobile terminal traverses the current image data, and judges whether the current image data matches the stored first attribute parameter; 当所述当前图像数据与存储的第一属性参数匹配时,移动终端发出拍照提示,以供用户拍摄到符合要求的照片。When the current image data matches the stored first attribute parameter, the mobile terminal sends a prompt to take a photo, so that the user can take a photo that meets the requirements. 2.根据权利要求1所述的方法,其特征在于,所述移动终端获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储,具体包括:2. The method according to claim 1, wherein the mobile terminal obtains the image data obtained by setting the viewing angle by the user, and stores the image data with the first attribute parameter, specifically comprising: 获取用户点击特定物体在移动终端屏幕上的位置,并将所述位置的参数解析成所述第一属性参数;Obtaining the position where the user clicks on the specific object on the screen of the mobile terminal, and parsing the parameter of the position into the first attribute parameter; 存储解析得到的所述第一属性参数。The first attribute parameter obtained by parsing is stored. 3.根据权利要求1所述的方法,其特征在于,在所述移动终端获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储之前,还包括:3. The method according to claim 1, wherein, before the mobile terminal acquires the image data obtained by the user setting the viewing angle, and stores the image data with the first attribute parameter, it also includes: 设置一功能开启开关。Set a function enable switch. 4.根据权利要求1所述的方法,其特征在于,所述移动终端遍历所述当前图像数据,并判断所述当前图像数据是否与存储的第一属性参数匹配,具体包括:4. The method according to claim 1, wherein the mobile terminal traverses the current image data, and judges whether the current image data matches the stored first attribute parameter, specifically comprising: 对所述的当前图像数据进行二值化处理;performing binarization processing on the current image data; 遍历经过所述二值化处理的图像数据,并判断所述经过所述二值化处理的图像数据是否与存储的第一属性参数匹配。Iterating through the image data that has undergone the binarization process, and judging whether the image data that has undergone the binarization process matches the stored first attribute parameter. 5.根据权利要求1所述的方法,其特征在于,所述的第一属性参数,具体包括:5. The method according to claim 1, wherein the first attribute parameter specifically includes: 特定物体在移动终端屏幕上的区域图像以及该区域图像在移动终端屏幕上的位置区域坐标。The area image of the specific object on the screen of the mobile terminal and the location area coordinates of the area image on the screen of the mobile terminal. 6.一种拍照装置,其特征在于,所述装置包括:6. A camera device, characterized in that the device comprises: 存储单元,用于获取用户设置取景角度得到的图像数据,并将所述图像数据以第一属性参数进行存储;a storage unit, configured to obtain image data obtained by setting a viewing angle by the user, and store the image data as a first attribute parameter; 数据采集单元,用于采集当前的图像数据;A data acquisition unit, configured to acquire current image data; 判断单元,用户遍历所述当前图像数据,并判断所述当前图像数据是否与存储的第一属性参数匹配;Judging unit, the user traverses the current image data, and judges whether the current image data matches the stored first attribute parameter; 拍照提示单元,用于当所述当前图像数据与存储的第一属性参数匹配时,发出拍照提示,以供用户拍摄到符合要求的照片。The photographing prompt unit is configured to issue a photographing prompt when the current image data matches the stored first attribute parameter, so that the user can take a photo that meets the requirements. 7.根据权利要求6所述的装置,其特征在于,所述存储单元包括:7. The device according to claim 6, wherein the storage unit comprises: 数据解析模块,用于获取用户点击特定物体在移动终端屏幕上的位置,并将所述位置的参数解析成所述第一属性参数;A data parsing module, configured to obtain the position where the user clicks on a specific object on the screen of the mobile terminal, and parse the parameters of the position into the first attribute parameter; 解析结果存储模块,用于存储解析得到的所述第一属性参数。The parsing result storage module is configured to store the first attribute parameter obtained through parsing. 8.根据权利要求6所述的装置,其特征在于,所述装置还包括:8. The device according to claim 6, further comprising: 功能开启设置单元,用于设置一功能开启开关。The function enabling setting unit is used for setting a function enabling switch. 9.根据权利要求6所述的装置,其特征在于,所述判断单元包括:9. The device according to claim 6, wherein the judging unit comprises: 数据处理模块,用于对所述的当前图像数据进行二值化处理;A data processing module, configured to perform binarization processing on the current image data; 二值化处理结果匹配模块,用于遍历经过所述二值化处理的图像数据,并判断所述经过所述二值化处理的图像数据是否与存储的第一属性参数匹配。The binarization processing result matching module is configured to traverse the image data that has undergone the binarization processing, and determine whether the image data that has undergone the binarization processing matches the stored first attribute parameter. 10.根据权利要求6所述的装置,其特征在于,所述的第一属性参数,具体包括:10. The device according to claim 6, wherein the first attribute parameter specifically includes: 特定物体在移动终端屏幕上的区域图像以及该区域图像在移动终端屏幕上的位置区域坐标。The area image of the specific object on the screen of the mobile terminal and the location area coordinates of the area image on the screen of the mobile terminal.
CN201510172730.4A 2015-04-13 2015-04-13 A kind of photographic method and device Expired - Fee Related CN104754234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510172730.4A CN104754234B (en) 2015-04-13 2015-04-13 A kind of photographic method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510172730.4A CN104754234B (en) 2015-04-13 2015-04-13 A kind of photographic method and device

Publications (2)

Publication Number Publication Date
CN104754234A true CN104754234A (en) 2015-07-01
CN104754234B CN104754234B (en) 2018-07-03

Family

ID=53593275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510172730.4A Expired - Fee Related CN104754234B (en) 2015-04-13 2015-04-13 A kind of photographic method and device

Country Status (1)

Country Link
CN (1) CN104754234B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245773A (en) * 2015-09-10 2016-01-13 广东欧珀移动通信有限公司 Shooting control method and system, and shooting system
CN105657257A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Method, device and system for taking panoramic photo, mobile terminal and selfie stick
CN105681597A (en) * 2016-03-30 2016-06-15 中国联合网络通信集团有限公司 Guidance method for photographing of terminal and terminal
CN105744169A (en) * 2016-03-29 2016-07-06 北京小米移动软件有限公司 Image shooting method and device
CN105898140A (en) * 2016-03-30 2016-08-24 联想(北京)有限公司 Information processing method and device
WO2016180221A1 (en) * 2015-07-30 2016-11-17 中兴通讯股份有限公司 Photographing method and apparatus
CN106503606A (en) * 2015-09-08 2017-03-15 宏达国际电子股份有限公司 face image adjusting system and face image adjusting method
WO2017084220A1 (en) * 2015-11-20 2017-05-26 宇龙计算机通信科技(深圳)有限公司 Photography processing method and apparatus, and terminal
WO2017143778A1 (en) * 2016-02-24 2017-08-31 北京小米移动软件有限公司 Automatic picture acquisition method and apparatus, and electronic device
CN113038015A (en) * 2021-03-19 2021-06-25 城云科技(中国)有限公司 Secondary shooting method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050088546A1 (en) * 2003-10-27 2005-04-28 Fuji Photo Film Co., Ltd. Photographic apparatus
CN101815171A (en) * 2009-02-24 2010-08-25 华晶科技股份有限公司 Image capture device and its method for automatically indicating shooting position
CN103401994A (en) * 2013-07-11 2013-11-20 广东欧珀移动通信有限公司 Method for guiding to photograph and mobile terminal
CN103747171A (en) * 2013-11-15 2014-04-23 北京智谷睿拓技术服务有限公司 Camera system control method and camera system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050088546A1 (en) * 2003-10-27 2005-04-28 Fuji Photo Film Co., Ltd. Photographic apparatus
CN101815171A (en) * 2009-02-24 2010-08-25 华晶科技股份有限公司 Image capture device and its method for automatically indicating shooting position
CN103401994A (en) * 2013-07-11 2013-11-20 广东欧珀移动通信有限公司 Method for guiding to photograph and mobile terminal
CN103747171A (en) * 2013-11-15 2014-04-23 北京智谷睿拓技术服务有限公司 Camera system control method and camera system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657755A (en) * 2015-07-30 2017-05-10 中兴通讯股份有限公司 Photographing method and photographing device
WO2016180221A1 (en) * 2015-07-30 2016-11-17 中兴通讯股份有限公司 Photographing method and apparatus
CN106503606A (en) * 2015-09-08 2017-03-15 宏达国际电子股份有限公司 face image adjusting system and face image adjusting method
CN105245773B (en) * 2015-09-10 2018-05-15 广东欧珀移动通信有限公司 Filming control method and system, camera system
CN105245773A (en) * 2015-09-10 2016-01-13 广东欧珀移动通信有限公司 Shooting control method and system, and shooting system
WO2017084220A1 (en) * 2015-11-20 2017-05-26 宇龙计算机通信科技(深圳)有限公司 Photography processing method and apparatus, and terminal
CN105657257A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Method, device and system for taking panoramic photo, mobile terminal and selfie stick
WO2017143778A1 (en) * 2016-02-24 2017-08-31 北京小米移动软件有限公司 Automatic picture acquisition method and apparatus, and electronic device
CN105744169A (en) * 2016-03-29 2016-07-06 北京小米移动软件有限公司 Image shooting method and device
CN105898140A (en) * 2016-03-30 2016-08-24 联想(北京)有限公司 Information processing method and device
CN105681597A (en) * 2016-03-30 2016-06-15 中国联合网络通信集团有限公司 Guidance method for photographing of terminal and terminal
CN105681597B (en) * 2016-03-30 2019-03-19 中国联合网络通信集团有限公司 The guidance method and terminal of terminal shooting
CN113038015A (en) * 2021-03-19 2021-06-25 城云科技(中国)有限公司 Secondary shooting method and system

Also Published As

Publication number Publication date
CN104754234B (en) 2018-07-03

Similar Documents

Publication Publication Date Title
CN104754234B (en) A kind of photographic method and device
CN109891874B (en) Panoramic shooting method and device
US10037581B1 (en) Methods systems and computer program products for motion initiated document capture
US10587847B2 (en) Content capture and transmission of data of a subject to a target device
US10115019B2 (en) Video categorization method and apparatus, and storage medium
US20170124833A1 (en) Alarming method and device
CN108600632B (en) Photo prompting method, smart glasses and computer-readable storage medium
WO2016058456A1 (en) Photographing method, intelligent terminal and cloud server
CN107480601B (en) Detection method and related product
KR20170023748A (en) Photo sharing method and apparatus for
JP2017531950A (en) Method and apparatus for constructing a shooting template database and providing shooting recommendation information
CN105956022B (en) Electronic mirror image processing method and device, and image processing method and device
CN105320695A (en) Picture processing method and device
WO2022110837A1 (en) Image processing method and device
CN108304708A (en) Mobile terminal, face unlocking method and related product
US20170339287A1 (en) Image transmission method and apparatus
CN105354296B (en) A kind of method of locating terminal and user terminal
CN108093177B (en) Image acquisition method, device, storage medium and electronic device
CN106469284A (en) An information processing method, device and mobile terminal
CN105159959A (en) Image file processing method and system
CN107657219B (en) Face detection method and related products
WO2018092378A1 (en) Information processing device, information processing method, and program
CN105426904A (en) Photo processing method, apparatus and device
CN107563338A (en) Face detection method and related products
WO2018000299A1 (en) Method for assisting acquisition of picture by device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170323

Address after: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road No. 013 Fu technology building B block 6 Building

Applicant before: SHENZHEN OPPO COMMUNICATION SOFTWARE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180703