Movatterモバイル変換


[0]ホーム

URL:


CN114079730B - Shooting method and shooting system - Google Patents

Shooting method and shooting system
Download PDF

Info

Publication number
CN114079730B
CN114079730BCN202010839365.9ACN202010839365ACN114079730BCN 114079730 BCN114079730 BCN 114079730BCN 202010839365 ACN202010839365 ACN 202010839365ACN 114079730 BCN114079730 BCN 114079730B
Authority
CN
China
Prior art keywords
electronic device
image
shooting
information
wearable device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010839365.9A
Other languages
Chinese (zh)
Other versions
CN114079730A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN202010839365.9ApriorityCriticalpatent/CN114079730B/en
Priority to PCT/CN2021/112362prioritypatent/WO2022037479A1/en
Publication of CN114079730ApublicationCriticalpatent/CN114079730A/en
Application grantedgrantedCritical
Publication of CN114079730BpublicationCriticalpatent/CN114079730B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种拍摄方法和拍摄系统,该拍摄方法应用于一种拍摄系统,该拍摄系统包括电子设备和第一穿戴设备;其中,电子设备与第一穿戴设备建立连接;电子设备接收第一操作,电子设备响应于第一操作,获取摄像头采集的多媒体文件,多媒体文件包括图片文件、视频文件等;第一穿戴设备通过至少一个传感器检测第一传感器数据;电子设备获取第一信息,第一信息和第一传感器数据对应;电子设备保存多媒体文件,多媒体文件和第一信息关联。第一信息包括用户的生物特征信息,电子设备将生物特征信息与图片/视频的信息相关联,对图片/视频做出了更精准的特征识别,方便后续根据生物特征信息对存储的图片/视频进行分类。

The present application discloses a shooting method and a shooting system. The shooting method is applied to a shooting system. The shooting system includes an electronic device and a first wearable device; wherein the electronic device establishes a connection with the first wearable device; and the electronic device receives the first wearable device. In response to the first operation, the electronic device acquires multimedia files collected by the camera. The multimedia files include picture files, video files, etc.; the first wearable device detects the first sensor data through at least one sensor; the electronic device acquires the first information, and the first wearable device detects the first sensor data through at least one sensor. The first information corresponds to the first sensor data; the electronic device stores multimedia files, and the multimedia files are associated with the first information. The first information includes the user's biometric information. The electronic device associates the biometric information with the information of the picture/video, and makes a more accurate feature recognition of the picture/video, which facilitates subsequent identification of the stored picture/video based on the biometric information. sort.

Description

Translated fromChinese
一种拍摄方法和拍摄系统A shooting method and shooting system

技术领域Technical field

本申请涉及电子技术领域,尤其涉及一种拍摄方法和拍摄系统。The present application relates to the field of electronic technology, and in particular to a photographing method and a photographing system.

背景技术Background technique

网络数字信息化时代,消费者的资源(如图片、视频)呈指数级增长,对资源的存储和使用提出了挑战。通常会涉及对指定类型资源的搜索。例如,通过搜索引擎,根据预设特征搜索图片。又例如,用户对其电子设备上保存的资源库进行查找,达到浏览和分享的目的。如:通过手机相册搜索指定特征的图片,小孩跳舞、踢球图片等等。In the era of network digital information, consumers' resources (such as pictures and videos) have increased exponentially, posing challenges to the storage and use of resources. Typically involves searching for resources of a specified type. For example, through a search engine, search for images based on preset characteristics. For another example, users search for resource libraries saved on their electronic devices for the purpose of browsing and sharing. For example: searching for pictures with specified characteristics through the mobile phone album, pictures of children dancing, playing football, etc.

然而,特征的提取和标注依赖大量的硬件资源,尤其当资源量较大时,计算时间也呈几何倍数增长;并且现有的图像识别技术仅能对一些外在的特征进行识别和提取,还没有技术公开如何根据人物的心理、生理特征对图像分类。However, feature extraction and annotation rely on a large amount of hardware resources. Especially when the amount of resources is large, the computing time also increases geometrically; and existing image recognition technology can only identify and extract some external features, and cannot There is no technology disclosed on how to classify images according to the psychological and physiological characteristics of the characters.

发明内容Contents of the invention

本申请提供了一种拍摄方法和拍摄系统,实现了在图片/视频生成的过程中将生物特征信息与图片/视频的信息相关联,对图片/视频做出更精准的特征识别。This application provides a shooting method and shooting system, which enables the association of biometric information with the information of the image/video in the process of generating the image/video, and enables more accurate feature recognition of the image/video.

第一方面,本申请提供了一种拍摄系统,其特征在于,包括:电子设备和第一穿戴设备,电子设备包括摄像头;其中,电子设备,用于与第一穿戴设备建立连接;电子设备,还用于接收第一操作;电子设备,还用于响应于第一操作,获取摄像头采集的多媒体文件;第一穿戴设备,用于通过至少一个传感器检测第一传感器数据;电子设备,还用于获取第一信息,第一信息和第一传感器数据对应;电子设备,还用于保存多媒体文件,多媒体文件和第一信息关联。其中,多媒体文件包括图片文件、视频文件等。第一操作可以包括但不限于如点击、双击、长按、滑动等操作,第一操作用于触发电子设备拍摄图片/视频。电子设备和第一穿戴设备建立连接;电子设备响应于第一操作,通过摄像头采集图片/视频。电子设备获取第一穿戴设备通过传感器检测的用户的生物特征信息(例如心率、血压、运动姿势等),生物特征信息又称为第一信息。电子设备将该生物特征信息与拍摄的图片/视频相关联,或者将该生物特征信息与拍摄的图片/视频中的人物相关联,该人物与该生物特征信息是对应的。电子设备生成包括生物特征信息的图片/视频,该生物特征信息指示了用户的生物特征。通过本申请提供的一种拍摄系统,在图片/视频生成的过程中,电子设备与第一穿戴设备进行信息交互,电子设备获取生物特征信息,电子设备将生物特征信息与图片/视频的信息相关联,对图片/视频做出了更精准的特征识别,电子设备保存带有生物特征信息的图片/视频,方便后续根据生物特征信息对存储的图片/视频进行分类。In a first aspect, this application provides a shooting system, which is characterized in that it includes: an electronic device and a first wearable device, the electronic device includes a camera; wherein the electronic device is used to establish a connection with the first wearable device; the electronic device, It is also used to receive the first operation; the electronic device is also used to obtain the multimedia file collected by the camera in response to the first operation; the first wearable device is used to detect the first sensor data through at least one sensor; the electronic device is also used to The first information is obtained, and the first information corresponds to the first sensor data; the electronic device is also used to save multimedia files, and the multimedia files are associated with the first information. Among them, multimedia files include picture files, video files, etc. The first operation may include but is not limited to operations such as click, double-click, long press, slide, etc. The first operation is used to trigger the electronic device to capture pictures/videos. The electronic device establishes a connection with the first wearable device; in response to the first operation, the electronic device collects pictures/videos through the camera. The electronic device acquires the user's biometric information (such as heart rate, blood pressure, exercise posture, etc.) detected by the first wearable device through the sensor. The biometric information is also called first information. The electronic device associates the biometric information with the captured picture/video, or associates the biometric information with a person in the captured picture/video, and the person corresponds to the biometric information. The electronic device generates pictures/videos that include biometric information indicative of the user's biometric characteristics. Through the shooting system provided by this application, in the process of generating pictures/videos, the electronic device interacts with the first wearable device, the electronic device obtains the biometric information, and the electronic device correlates the biometric information with the information of the picture/video. The connection enables more accurate feature recognition of pictures/videos. Electronic devices save pictures/videos with biometric information to facilitate subsequent classification of stored pictures/videos based on biometric information.

在一种可能的实现方式中,第一穿戴设备,还用于根据第一传感器数据确定出第一信息;向电子设备发送第一信息。第一信息为生物特征信息。这种方式描述了电子设备获取第一信息的一种方式,第一穿戴设备通过一个或多个传感器检测传感器数据(第一传感器数据),第一穿戴设备基于该第一传感器数据确定第一信息,第一穿戴设备将该第一信息发送给电子设备,电子设备获取到第一信息。第一穿戴设备对第一传感器数据进行处理,省去了电子设备处理第一传感器数据的时间和资源。In a possible implementation, the first wearable device is also configured to determine the first information based on the first sensor data; and send the first information to the electronic device. The first information is biometric information. This method describes a way for an electronic device to obtain first information. The first wearable device detects sensor data (first sensor data) through one or more sensors, and the first wearable device determines the first information based on the first sensor data. , the first wearable device sends the first information to the electronic device, and the electronic device obtains the first information. The first wearable device processes the first sensor data, saving time and resources for the electronic device to process the first sensor data.

在一种可能的实现方式中,第一穿戴设备,还用于向电子设备发送第一传感器数据;电子设备,还用于根据第一传感器数据确定出第一信息。第一信息为生物特征信息。这种方式描述了电子设备获取第一信息的又一种方式,第一穿戴设备通过一个或多个传感器检测传感器数据(第一传感器数据),将该第一传感器数据发送给电子设备,电子设备基于获取的第一传感器数据确定生物特征信息。In a possible implementation, the first wearable device is further configured to send the first sensor data to the electronic device; and the electronic device is further configured to determine the first information based on the first sensor data. The first information is biometric information. This method describes another way for an electronic device to obtain the first information. The first wearable device detects sensor data (first sensor data) through one or more sensors and sends the first sensor data to the electronic device. The electronic device Biometric information is determined based on the acquired first sensor data.

在一种可能的实现方式中,电子设备,具体用于:响应于第一操作,获取第一信息,第一信息和第一传感器数据对应。这种方式描述了电子设备获取第一信息的时机。第一操作包括触发电子设备拍摄图片/视频的用户操作。在电子设备接收到第一操作后,电子设备基于该第一操作,获取到第一信息。电子设备对第一传感器数据进行处理,省去了第一穿戴设备处理第一传感器数据的时间和资源。In a possible implementation, the electronic device is specifically configured to: in response to the first operation, acquire first information, where the first information corresponds to the first sensor data. This method describes the timing when the electronic device obtains the first information. The first operation includes a user operation that triggers the electronic device to capture a picture/video. After the electronic device receives the first operation, the electronic device obtains the first information based on the first operation. The electronic device processes the first sensor data, saving time and resources for the first wearable device to process the first sensor data.

在一种可能的实现方式中,电子设备还用于:响应于第一操作,向第一穿戴设备发送第一请求消息;第一穿戴设备,具体用于:响应于第一请求消息,向电子设备发送第一信息。这种方式描述了电子设备响应于第一操作,获取第一信息的一种方式。在电子设备接收到第一操作后,电子设备基于该第一操作,向第一穿戴设备请求获取生物特征信息(第一信息),第一穿戴设备将该第一信息发送给电子设备,电子设备获取到第一信息。In a possible implementation, the electronic device is further configured to: in response to the first operation, send a first request message to the first wearable device; and the first wearable device is specifically configured to: in response to the first request message, send a first request message to the electronic device. The device sends the first message. This method describes a method for the electronic device to obtain the first information in response to the first operation. After the electronic device receives the first operation, the electronic device requests the first wearable device to obtain biometric information (first information) based on the first operation, and the first wearable device sends the first information to the electronic device, and the electronic device Get the first information.

在一种可能的实现方式中,电子设备还用于:响应于第一操作,向第一穿戴设备发送第一请求消息;第一穿戴设备,具体用于:响应于第一请求消息,向电子设备发送第一传感器数据。这种方式描述了电子设备响应于第一操作,获取第一信息的又一种方式。在电子设备接收到第一操作后,电子设备基于该第一操作,向第一穿戴设备请求获取传感器数据(第一传感器数据),电子设备基于获取的第一传感器数据确定生物特征信息(第一信息)。In a possible implementation, the electronic device is further configured to: in response to the first operation, send a first request message to the first wearable device; and the first wearable device is specifically configured to: in response to the first request message, send a first request message to the electronic device. The device sends first sensor data. This method describes another way for the electronic device to obtain the first information in response to the first operation. After the electronic device receives the first operation, the electronic device requests the first wearable device to acquire sensor data (first sensor data) based on the first operation, and the electronic device determines the biometric information (first sensor data) based on the acquired first sensor data. information).

在一种可能的实现方式中,电子设备,还用于:显示拍摄预览界面,拍摄预览界面中包括拍摄按钮,第一操作包括作用于拍摄按钮的输入操作。这里提供了一种应用场景,电子设备在拍摄预览界面接收到第一操作,触发电子设备拍摄图片/视频。In a possible implementation, the electronic device is further configured to: display a shooting preview interface, the shooting preview interface includes a shooting button, and the first operation includes an input operation acting on the shooting button. An application scenario is provided here. The electronic device receives the first operation on the shooting preview interface, triggering the electronic device to shoot pictures/videos.

在一种可能的实现方式中,多媒体文件的属性信息中包括第一信息。电子设备保存多媒体文件,将该多媒体文件和第一信息进行融合编码,用户可以通过查看该多媒体文件的属性信息查看到第一信息。In a possible implementation, the attribute information of the multimedia file includes the first information. The electronic device saves the multimedia file and fuses and encodes the multimedia file with the first information. The user can view the first information by viewing the attribute information of the multimedia file.

在一种可能的实现方式中,电子设备,用于与第一穿戴设备建立连接包括:响应于电子设备进入预设拍摄模式,电子设备与第一穿戴设备建立连接。这种方式描述了电子设备与第一穿戴设备建立连接的时机,在预设拍摄模式下,电子设备显示拍摄预览界面。当电子设备检测到进入预设拍摄模式的用户操作时,电子设备自动开启蓝牙,与第一穿戴设备自动建立蓝牙连接。In a possible implementation, the electronic device's use to establish a connection with the first wearable device includes: in response to the electronic device entering a preset shooting mode, the electronic device establishes a connection with the first wearable device. This method describes the timing when the electronic device establishes a connection with the first wearable device. In the preset shooting mode, the electronic device displays a shooting preview interface. When the electronic device detects a user operation of entering the preset shooting mode, the electronic device automatically turns on Bluetooth and automatically establishes a Bluetooth connection with the first wearable device.

在一种可能的实现方式中,第一穿戴设备,还用于:接收第二操作;第一穿戴设备,还用于响应于第二操作,指示电子设备开启摄像头;第一电子设备,还用于显示拍摄预览界面,拍摄预览界面显示摄像头采集的预览图像;第一操作包括作用于拍摄预览界面的操作。这种方式描述了在第一穿戴设备侧触发拍摄图片/视频的一种方式。其中,第二操作可以包括但不限于如点击、双击、长按、滑动等操作,第二操作作用在第一穿戴设备上,用于触发第一穿戴设备指示电子设备开启摄像头,从而拍摄图片/视频。In a possible implementation, the first wearable device is also used to: receive a second operation; the first wearable device is also used to instruct the electronic device to turn on the camera in response to the second operation; the first electronic device is also used to: The shooting preview interface is displayed, and the shooting preview interface displays the preview image collected by the camera; the first operation includes an operation acting on the shooting preview interface. This method describes a way to trigger taking pictures/videos on the first wearable device side. The second operation may include but is not limited to operations such as click, double-click, long press, slide, etc. The second operation acts on the first wearable device and is used to trigger the first wearable device to instruct the electronic device to turn on the camera to take pictures/ video.

在一种可能的实现方式中,电子设备,还用于显示多媒体文件和至少部分第一信息。用户可以进入图库查看多媒体文件,电子设备显示多媒体文件和至少部分第一信息,第一信息指示了用户的生物特征信息。可选的,电子设备的显示界面上显示多媒体文件和部分第一信息,用户可以通过查看详细信息等方式查看全部第一信息。In a possible implementation, the electronic device is also used to display multimedia files and at least part of the first information. The user can enter the gallery to view multimedia files, and the electronic device displays the multimedia files and at least part of the first information, where the first information indicates the user's biometric information. Optionally, the multimedia file and part of the first information are displayed on the display interface of the electronic device, and the user can view all the first information by viewing detailed information.

在一种可能的实现方式中,电子设备,还用于显示多媒体文件和至少部分第一信息,包括:电子设备,还用于响应于多媒体文件中包括预设面部图像,显示多媒体文件和至少部分第一信息;预设面部图像与第一穿戴设备对应。电子设备中存有一个或多个面部图像的信息,电子设备通过第一穿戴设备的身份信息确定出第一穿戴设备对应的预设面部图像,将预设面部图像与多媒体文件中的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则表示多媒体文件中的人物为第一穿戴设备的用户,这时电子设备才显示至少部分第一信息,否则不显示,保护了用户的隐私性。In a possible implementation, the electronic device is also used to display the multimedia file and at least part of the first information, including: the electronic device is also used to display the multimedia file and at least part of the first information in response to the multimedia file including a preset facial image. First information; the preset facial image corresponds to the first wearable device. The electronic device stores one or more facial image information. The electronic device determines the preset facial image corresponding to the first wearable device through the identity information of the first wearable device, and combines the preset facial image with one or more of the multimedia files. Similarity matching is performed on individual characters. If the preset facial image is successfully matched with one of the characters, it means that the character in the multimedia file is the user of the first wearable device. Only then will the electronic device display at least part of the first information. Otherwise, it will not be displayed. User privacy is protected.

其中,预设面部图像与第一穿戴设备具有关联关系,其中面部信息可以是用户预设在电子设备中,也可以是以图像或视频的方式上传到电子设备中,也可以是用户预设在第一穿戴设备中,第一穿戴设备再提供给电子设备,本申请不作限制。The preset facial image is associated with the first wearable device, and the facial information may be preset by the user in the electronic device, may be uploaded to the electronic device in the form of an image or video, or may be preset by the user on the electronic device. In the first wearable device, the first wearable device is then provided to the electronic device, which is not limited by this application.

在一种可能的实现方式中,电子设备,还用于显示多媒体文件和至少部分第一信息,包括:电子设备,还用于响应于多媒体文件中包括第一面部图像和第二面部图像,且第一面部图像与预设面部图像匹配,在多媒体文件的第一区域显示至少部分第一信息;其中,预设面部图像与第一穿戴设备对应;第一区域与第一面部图像的显示区域的距离,小于第一区域与第二面部图像的显示区域的距离。这种方式描述了确定至少部分第一信息在多媒体文件上的显示位置的一种方式。将预设面部图像与多媒体文件中的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则拍摄设备将至少部分第一信息显示在该人物附近。在显示效果上加强了用户和第一信息的对应性,可以直观的看出第一信息对应的用户,能够提升用户体验。In a possible implementation, the electronic device is also used to display the multimedia file and at least part of the first information, including: the electronic device is also used to respond to the multimedia file including the first facial image and the second facial image, And the first facial image matches the preset facial image, and at least part of the first information is displayed in the first area of the multimedia file; wherein the preset facial image corresponds to the first wearable device; and the first area corresponds to the first facial image. The distance between the display areas is smaller than the distance between the first area and the display area of the second facial image. This approach describes a way of determining the display position of at least part of the first information on the multimedia file. Similarity matching is performed between the preset facial image and one or more characters in the multimedia file. If the preset facial image is successfully matched to one of the characters, the shooting device displays at least part of the first information near the character. The display effect strengthens the correspondence between the user and the first information, and can intuitively see the user corresponding to the first information, which can improve the user experience.

在一种可能的实现方式中,电子设备,还用于:在接收第一操作之前,显示拍摄预览界面,拍摄预览界面上包括摄像头采集的预览图像;电子设备,还用于在预览图像上显示至少部分第二信息,第二信息和第一穿戴设备检测出的第二传感器数据对应。第二信息为生物特征信息。电子设备在预览图像上显示至少部分第二信息,实现了在预览界面上实时显示生物特征信息,用户可以实时查看到生物特征信息。即使得电子设备所获取的图像或者视频文件中可以包括更多的生物特征信息,且生物特征信息来源于不同的传感器所采集的传感器数据。In a possible implementation, the electronic device is also used to: before receiving the first operation, display a shooting preview interface, which includes a preview image collected by the camera; the electronic device is also used to display on the preview image At least part of the second information corresponds to the second sensor data detected by the first wearable device. The second information is biometric information. The electronic device displays at least part of the second information on the preview image, thereby realizing real-time display of the biometric information on the preview interface, and the user can view the biometric information in real time. That is, the images or video files acquired by the electronic device can include more biometric information, and the biometric information comes from sensor data collected by different sensors.

在一种可能的实现方式中,电子设备,还用于在预览图像上显示至少部分第二信息,包括:电子设备,还用于响应于预览图像中包括预设面部图像,显示预览图像和至少部分第二信息,预设面部图像与第一穿戴设备对应。电子设备中存有一个或多个面部图像的信息,电子设备通过第一穿戴设备的身份信息确定出第一穿戴设备对应的预设面部图像,将预设面部图像与预览图像上的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则表示预览图像上的人物为第一穿戴设备的用户,这时电子设备才显示至少部分第二信息,否则不显示,保护了用户的隐私性。In a possible implementation, the electronic device is further configured to display at least part of the second information on the preview image, including: the electronic device is further configured to display the preview image and at least Part of the second information, the preset facial image corresponds to the first wearable device. The electronic device stores one or more facial image information. The electronic device determines the preset facial image corresponding to the first wearable device through the identity information of the first wearable device, and compares the preset facial image with one or more facial images on the preview image. Similarity matching is performed on individual characters. If the preset facial image is successfully matched with one of the characters, it means that the character on the preview image is the user of the first wearable device. Only then will the electronic device display at least part of the second information. Otherwise, it will not be displayed. User privacy is protected.

在一种可能的实现方式中,电子设备,还用于在预览图像上显示至少部分第二信息,包括:电子设备,还用于响应于预览图像中包括第三面部图像和第四面部图像,且第三面部图像与预设面部图像匹配,在预览图像的第二区域显示至少部分第二信息;其中,预设面部图像与第一穿戴设备对应;第二区域与第三面部图像的显示区域的距离,小于第二区域与第四面部图像的显示区域的距离。这种方式描述了确定至少部分第二信息在预览图像上的显示位置的一种方式。将预设面部图像与预览图像中的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则拍摄设备将至少部分生物特征信息显示在预览图像中该人物附近。在显示效果上加强了用户和第二信息的对应性,可以直观的看出第二信息在预览图像上对应的用户,提升用户体验。In a possible implementation, the electronic device is further configured to display at least part of the second information on the preview image, including: the electronic device is further configured to respond to the preview image including the third facial image and the fourth facial image, And the third facial image matches the preset facial image, and at least part of the second information is displayed in the second area of the preview image; wherein the preset facial image corresponds to the first wearable device; the second area and the display area of the third facial image The distance is smaller than the distance between the second area and the display area of the fourth facial image. This method describes a way of determining the display position of at least part of the second information on the preview image. Similarity matching is performed between the preset facial image and one or more characters in the preview image. If the preset facial image matches one of the characters successfully, the shooting device displays at least part of the biometric information near the character in the preview image. The display effect strengthens the correspondence between the user and the second information, and can intuitively see the user corresponding to the second information on the preview image, thereby improving the user experience.

在一种可能的实现方式中,电子设备,还用于:响应于预览图像中不包括预设面部图像,输出第一提示,第一提示用于提示用户对准面部。电子设备将预设面部图像与图片中的一个或多个人物进行相似度匹配,若匹配不成功,则说明预览图像中不包括第一穿戴设备的用户,电子设备输出提示信息提示用户将拍摄角度对准面部,避免了拍摄出的多媒体文件中不包括第一穿戴设备的用户的情况,提升用户体验。In a possible implementation, the electronic device is further configured to: in response to the preview image not including the preset facial image, output a first prompt, where the first prompt is used to prompt the user to align the face. The electronic device performs similarity matching between the preset facial image and one or more people in the picture. If the matching is unsuccessful, it means that the user of the first wearable device is not included in the preview image. The electronic device outputs a prompt message to prompt the user to change the shooting angle. Aiming at the face avoids the situation where the user of the first wearable device is not included in the captured multimedia file, thereby improving the user experience.

在一种可能的实现方式中,第一信息包括以下至少一项:健康状态信息、运动状态信息、或情绪状态信息。In a possible implementation, the first information includes at least one of the following: health status information, exercise status information, or emotional status information.

在一种可能的实现方式中,第一传感器数据包括通过至少一种传感器检测的数据,至少一种传感器至少包括以下至少一项:加速度传感器、陀螺仪传感器、地磁传感器、大气压传感器、心率传感器、血压传感器、心电传感器、肌电传感器、体温传感器、皮电传感器、空气温湿度传感器、光照传感器、或骨传导传感器。In a possible implementation, the first sensor data includes data detected by at least one sensor, and the at least one sensor includes at least one of the following: acceleration sensor, gyroscope sensor, geomagnetic sensor, atmospheric pressure sensor, heart rate sensor, Blood pressure sensor, ECG sensor, EMG sensor, body temperature sensor, skin electrode sensor, air temperature and humidity sensor, light sensor, or bone conduction sensor.

在一种可能的实现方式中,系统还包括第二穿戴设备;电子设备,还用于与第二穿戴设备建立连接;第二穿戴设备,用于通过至少一个传感器检测出第四传感器数据;其中,第一信息还与第四传感器数据对应。这种方式描述了电子设备与两个穿戴设备(第一穿戴设备和第二穿戴设备)一起建立连接的情况下,电子设备获取到第一信息,该第一信息与第一穿戴设备和第二穿戴设备的传感器数据(第一传感器数据和第四传感器数据)均对应。其中,电子设备与两个以上的穿戴设备一起建立连接同理。In a possible implementation, the system further includes a second wearable device; an electronic device, further configured to establish a connection with the second wearable device; and a second wearable device, configured to detect fourth sensor data through at least one sensor; wherein , the first information also corresponds to the fourth sensor data. This method describes the situation where an electronic device establishes a connection with two wearable devices (a first wearable device and a second wearable device). The electronic device obtains the first information, and the first information is related to the first wearable device and the second wearable device. The sensor data (first sensor data and fourth sensor data) of the wearable device all correspond. Among them, the electronic device establishes a connection with two or more wearable devices in the same way.

第二方面,一种拍摄方法,应用于包括摄像头的电子设备,方法包括:电子设备与第一穿戴设备建立连接;电子设备接收第一操作;电子设备响应于第一操作,获取摄像头采集的多媒体文件;电子设备获取第一信息,第一信息和第一穿戴设备的至少一个传感器检测的第一传感器数据对应;电子设备保存多媒体文件,多媒体文件和第一信息关联。其中,多媒体文件包括图片文件、视频文件等。第一操作可以包括但不限于如点击、双击、长按、滑动等操作,第一操作用于触发电子设备拍摄图片/视频。电子设备响应于第一操作,通过摄像头采集图片/视频。电子设备获取第一穿戴设备通过传感器检测的用户的生物特征信息(例如心率、血压、运动姿势等),电子设备将该生物特征信息与拍摄的图片/视频相关联,或者将该生物特征与拍摄的图片/视频中的人物相关联,该人物与该生物特征是对应的。生物特征信息又称为第一信息。电子设备生成包括生物特征信息的图片/视频,该生物特征信息指示了用户的生物特征。这种方法在图片/视频生成的过程中将生物特征信息与图片/视频的信息相关联,对图片/视频做出了更精准的特征识别,并且提供了一种新的图片/视频格式,使得电子设备保存带有生物特征信息的图片/视频,方便后续根据生物特征信息对存储的图片/视频进行分类。In a second aspect, a shooting method is applied to an electronic device including a camera. The method includes: the electronic device establishes a connection with a first wearable device; the electronic device receives a first operation; and the electronic device responds to the first operation and obtains the multimedia collected by the camera. file; the electronic device obtains the first information, and the first information corresponds to the first sensor data detected by at least one sensor of the first wearable device; the electronic device saves the multimedia file, and the multimedia file is associated with the first information. Among them, multimedia files include picture files, video files, etc. The first operation may include but is not limited to operations such as click, double-click, long press, slide, etc. The first operation is used to trigger the electronic device to capture pictures/videos. In response to the first operation, the electronic device collects pictures/videos through the camera. The electronic device acquires the user's biometric information (such as heart rate, blood pressure, exercise posture, etc.) detected by the first wearable device through the sensor, and the electronic device associates the biometric information with the captured pictures/videos, or associates the biometric features with the captured images/videos. The person in the picture/video is associated, and the person corresponds to the characteristics of the creature. Biometric information is also called first information. The electronic device generates pictures/videos that include biometric information indicative of the user's biometric characteristics. This method associates biometric information with image/video information in the process of image/video generation, makes more accurate feature recognition of images/videos, and provides a new image/video format, making The electronic device saves pictures/videos with biometric information to facilitate subsequent classification of the stored pictures/videos based on the biometric information.

在一种可能的实现方式中,电子设备获取第一信息,包括:电子设备获取第一传感器数据;电子设备基于第一传感器数据确定第一信息。这种方式描述了电子设备获取第一信息的一种方式,第一信息为生物特征信息。第一穿戴设备通过一个或多个传感器检测传感器数据(第一传感器数据),将该第一传感器数据发送给电子设备,电子设备基于获取的第一传感器数据确定生物特征信息。电子设备对第一传感器数据进行处理,省去了第一穿戴设备处理第一传感器数据的时间和资源。In a possible implementation, the electronic device obtains the first information, including: the electronic device obtains the first sensor data; and the electronic device determines the first information based on the first sensor data. This method describes a way for the electronic device to obtain the first information, and the first information is biometric information. The first wearable device detects sensor data (first sensor data) through one or more sensors, sends the first sensor data to the electronic device, and the electronic device determines biometric information based on the acquired first sensor data. The electronic device processes the first sensor data, saving time and resources for the first wearable device to process the first sensor data.

在一种可能的实现方式中,电子设备获取第一信息,包括:电子设备获取第一穿戴设备基于第一传感器数据确定的第一信息。这种方式描述了电子设备获取第一信息的又一种方式,第一信息为生物特征信息。第一穿戴设备通过一个或多个传感器检测传感器数据(第一传感器数据),第一穿戴设备基于该第一传感器数据确定第一信息,第一穿戴设备将该第一信息发送给电子设备,电子设备获取到第一信息。第一穿戴设备对第一传感器数据进行处理,省去了电子设备处理第一传感器数据的时间和资源。In a possible implementation, the electronic device obtains the first information, including: the electronic device obtains the first information determined by the first wearable device based on the first sensor data. This method describes another way for the electronic device to obtain the first information, and the first information is biometric information. The first wearable device detects sensor data (first sensor data) through one or more sensors, the first wearable device determines first information based on the first sensor data, the first wearable device sends the first information to the electronic device, and the electronic device The device obtains the first information. The first wearable device processes the first sensor data, saving time and resources for the electronic device to process the first sensor data.

在一种可能的实现方式中,电子设备获取第一信息,包括:响应于第一操作,电子设备获取第一信息。这种方式描述了电子设备获取第一信息的时机,第一操作包括触发电子设备拍摄图片/视频的用户操作。在电子设备接收到第一操作后,电子设备基于该第一操作,获取到第一信息。In a possible implementation, the electronic device obtains the first information, including: in response to the first operation, the electronic device obtains the first information. This method describes the timing when the electronic device obtains the first information. The first operation includes a user operation that triggers the electronic device to capture pictures/videos. After the electronic device receives the first operation, the electronic device obtains the first information based on the first operation.

在一种可能的实现方式中,响应于第一操作,电子设备获取第一信息,包括:响应于第一操作,电子设备向第一穿戴设备发送第一请求,第一请求用于请求获取第一穿戴设备的至少一个传感器检测的第一传感器数据;电子设备获取第一信息,第一信息和第一传感器数据对应。这种方式描述了电子设备响应于第一操作,获取第一信息的一种方式。在电子设备接收到第一操作后,电子设备基于该第一操作,向第一穿戴设备发送请求,以获取传感器数据(第一传感器数据),电子设备基于获取的第一传感器数据确定生物特征信息(第一信息)。In a possible implementation, in response to the first operation, the electronic device obtains the first information, including: in response to the first operation, the electronic device sends a first request to the first wearable device, and the first request is used to request to obtain the first wearable device. First sensor data detected by at least one sensor of a wearable device; the electronic device obtains first information, and the first information corresponds to the first sensor data. This method describes a method for the electronic device to obtain the first information in response to the first operation. After the electronic device receives the first operation, the electronic device sends a request to the first wearable device to obtain sensor data (first sensor data) based on the first operation, and the electronic device determines the biometric information based on the obtained first sensor data. (first information).

在一种可能的实现方式中,响应于第一操作,电子设备获取第一信息,包括:响应于第一操作,电子设备向第一穿戴设备发送第一请求,第一请求用于请求获取第一穿戴设备基于第一传感器数据确定的第一信息;电子设备获取第一信息,第一信息和第一传感器数据对应。这种方式描述了电子设备响应于第一操作,获取第一信息的又一种方式。在电子设备接收到第一操作后,电子设备基于该第一操作,向第一穿戴设备发送请求,以获取生物特征信息(第一信息),第一穿戴设备将该第一信息发送给电子设备,电子设备获取到第一信息。In a possible implementation, in response to the first operation, the electronic device obtains the first information, including: in response to the first operation, the electronic device sends a first request to the first wearable device, and the first request is used to request to obtain the first wearable device. A wearable device determines first information based on the first sensor data; the electronic device obtains the first information, and the first information corresponds to the first sensor data. This method describes another way for the electronic device to obtain the first information in response to the first operation. After the electronic device receives the first operation, the electronic device sends a request to the first wearable device to obtain biometric information (first information) based on the first operation, and the first wearable device sends the first information to the electronic device. , the electronic device obtains the first information.

在一种可能的实现方式中,电子设备接收第一操作包括:电子设备显示拍摄预览界面,拍摄预览界面中包括拍摄按钮;电子设备接收第一操作,第一操作包括作用于拍摄按钮的输入操作。这里提供了一种应用场景,电子设备在拍摄预览界面接收到第一操作,触发电子设备拍摄图片/视频。In a possible implementation, the electronic device receiving the first operation includes: the electronic device displays a shooting preview interface, and the shooting preview interface includes a shooting button; the electronic device receives the first operation, and the first operation includes an input operation acting on the shooting button . An application scenario is provided here. The electronic device receives the first operation on the shooting preview interface, triggering the electronic device to shoot pictures/videos.

在一种可能的实现方式中,多媒体文件的属性信息中包括第一信息。电子设备保存多媒体文件,将该多媒体文件和第一信息进行融合编码,用户可以通过查看该多媒体文件的属性信息查看到第一信息。In a possible implementation, the attribute information of the multimedia file includes the first information. The electronic device saves the multimedia file and fuses and encodes the multimedia file with the first information. The user can view the first information by viewing the attribute information of the multimedia file.

在一种可能的实现方式中,电子设备与第一穿戴设备建立连接,包括:响应于电子设备进入预设拍摄模式,电子设备与第一穿戴设备建立连接。这种方式描述了电子设备与第一穿戴设备建立连接的时机,在预设拍摄模式下,电子设备显示拍摄预览界面。当电子设备检测到进入预设拍摄模式的用户操作时,电子设备自动开启蓝牙,与第一穿戴设备自动建立蓝牙连接。In a possible implementation, the electronic device establishing a connection with the first wearable device includes: in response to the electronic device entering a preset shooting mode, the electronic device establishing a connection with the first wearable device. This method describes the timing when the electronic device establishes a connection with the first wearable device. In the preset shooting mode, the electronic device displays a shooting preview interface. When the electronic device detects a user operation of entering the preset shooting mode, the electronic device automatically turns on Bluetooth and automatically establishes a Bluetooth connection with the first wearable device.

在一种可能的实现方式中,方法还包括:电子设备显示多媒体文件和至少部分第一信息。用户可以进入图库查看多媒体文件,电子设备显示多媒体文件和至少部分第一信息,第一信息指示了用户的生物特征信息。可选的,电子设备的显示界面上显示多媒体文件和部分第一信息,用户可以通过查看详细信息等方式查看全部第一信息。In a possible implementation, the method further includes: the electronic device displays the multimedia file and at least part of the first information. The user can enter the gallery to view multimedia files, and the electronic device displays the multimedia files and at least part of the first information, where the first information indicates the user's biometric information. Optionally, the multimedia file and part of the first information are displayed on the display interface of the electronic device, and the user can view all the first information by viewing detailed information.

在一种可能的实现方式中,电子设备显示多媒体文件和至少部分第一信息,具体包括:响应于多媒体文件中包括预设面部图像,电子设备显示多媒体文件和至少部分第一信息;预设面部图像与第一穿戴设备对应。电子设备中存有一个或多个面部图像的信息,电子设备通过第一穿戴设备的身份信息确定出第一穿戴设备对应的预设面部图像,将预设面部图像与多媒体文件中的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则表示多媒体文件中的人物为第一穿戴设备的用户,这时电子设备才显示至少部分第一信息,否则不显示,保护了用户的隐私性。In a possible implementation, the electronic device displays the multimedia file and at least part of the first information, specifically including: in response to the multimedia file including a preset facial image, the electronic device displays the multimedia file and at least part of the first information; presetting the face The image corresponds to the first wearable device. The electronic device stores one or more facial image information. The electronic device determines the preset facial image corresponding to the first wearable device through the identity information of the first wearable device, and combines the preset facial image with one or more of the multimedia files. Similarity matching is performed on individual characters. If the preset facial image is successfully matched with one of the characters, it means that the character in the multimedia file is the user of the first wearable device. Only then will the electronic device display at least part of the first information. Otherwise, it will not be displayed. User privacy is protected.

其中,预设面部图像与第一穿戴设备具有关联关系,其中面部信息可以是用户预设在电子设备中,也可以是以图像或视频的方式上传到电子设备中,也可以是用户预设在第一穿戴设备中,第一穿戴设备再提供给电子设备,本申请不作限制。The preset facial image is associated with the first wearable device, and the facial information may be preset by the user in the electronic device, may be uploaded to the electronic device in the form of an image or video, or may be preset by the user on the electronic device. In the first wearable device, the first wearable device is then provided to the electronic device, which is not limited by this application.

在一种可能的实现方式中,电子设备显示多媒体文件和至少部分第一信息,具体包括:响应于多媒体文件中包括第一面部图像和第二面部图像,且第一面部图像与预设面部图像匹配,电子设备在多媒体文件的第一区域显示至少部分第一信息;其中,预设面部图像与第一穿戴设备对应;第一区域与第一面部图像的显示区域的距离,小于第一区域与第二面部图像的显示区域的距离。这种方式描述了确定至少部分第一信息在多媒体文件上的显示位置的一种方式。将预设面部图像与多媒体文件中的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则拍摄设备将至少部分第一信息显示在该人物附近。在显示效果上加强了用户和第一信息的对应性,可以直观的看出第一信息对应的用户,能够提升用户体验。In a possible implementation, the electronic device displays the multimedia file and at least part of the first information, specifically including: in response to the multimedia file including the first facial image and the second facial image, and the first facial image is consistent with the preset Facial image matching, the electronic device displays at least part of the first information in the first area of the multimedia file; wherein the preset facial image corresponds to the first wearable device; the distance between the first area and the display area of the first facial image is smaller than the first area of the multimedia file. The distance between one area and the display area of the second facial image. This approach describes a way of determining the display position of at least part of the first information on the multimedia file. Similarity matching is performed between the preset facial image and one or more characters in the multimedia file. If the preset facial image is successfully matched to one of the characters, the shooting device displays at least part of the first information near the character. The display effect strengthens the correspondence between the user and the first information, and can intuitively see the user corresponding to the first information, which can improve the user experience.

在一种可能的实现方式中,电子设备接收第一操作,之前还包括:电子设备显示拍摄预览界面,拍摄预览界面上包括摄像头采集的预览图像;电子设备在预览图像上显示至少部分第二信息,第二信息和第一穿戴设备检测出的第二传感器数据对应。第二信息为预览界面上显示的生物特征信息。电子设备在预览图像上显示至少部分第二信息,实现了在预览界面上实时显示生物特征信息,用户可以实时查看到生物特征信息。In a possible implementation, before the electronic device receives the first operation, the process further includes: the electronic device displays a shooting preview interface, and the shooting preview interface includes a preview image collected by the camera; and the electronic device displays at least part of the second information on the preview image. , the second information corresponds to the second sensor data detected by the first wearable device. The second information is biometric information displayed on the preview interface. The electronic device displays at least part of the second information on the preview image, thereby realizing real-time display of the biometric information on the preview interface, and the user can view the biometric information in real time.

在一种可能的实现方式中,电子设备在预览图像上显示至少部分第二信息,具体包括:响应于预览图像中包括预设面部图像,电子设备显示预览图像和至少部分第二信息,预设面部图像与第一穿戴设备对应。电子设备中存有一个或多个面部图像的信息,电子设备通过第一穿戴设备的身份信息确定出第一穿戴设备对应的预设面部图像,将预设面部图像与预览图像上的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则表示预览图像上的人物为第一穿戴设备的用户,这时电子设备才显示至少部分第二信息,否则不显示,保护了用户的隐私性。In a possible implementation, the electronic device displays at least part of the second information on the preview image, specifically including: in response to the preview image including a preset facial image, the electronic device displays the preview image and at least part of the second information, and the preset facial image is displayed on the preview image. The facial image corresponds to the first wearable device. The electronic device stores one or more facial image information. The electronic device determines the preset facial image corresponding to the first wearable device through the identity information of the first wearable device, and compares the preset facial image with one or more facial images on the preview image. Similarity matching is performed on individual characters. If the preset facial image is successfully matched with one of the characters, it means that the character on the preview image is the user of the first wearable device. Only then will the electronic device display at least part of the second information. Otherwise, it will not be displayed. User privacy is protected.

在一种可能的实现方式中,电子设备在预览界面上显示至少部分第二信息,具体包括:响应于预览图像中包括第三面部图像和第四面部图像,且第三面部图像与预设面部图像匹配,电子设备在预览图像的第二区域显示至少部分第二信息;其中,预设面部图像与第一穿戴设备对应;第二区域与第三面部图像的显示区域的距离,小于第二区域与第四面部图像的显示区域的距离。这种方式描述了确定至少部分第二信息在预览图像上的显示位置的一种方式。将预设面部图像与预览图像中的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则拍摄设备将至少部分生物特征信息显示在预览图像中该人物附近。在显示效果上加强了用户和第二信息的对应性,可以直观的看出第二信息在预览图像上对应的用户,提升用户体验。In a possible implementation, the electronic device displays at least part of the second information on the preview interface, specifically including: responding that the preview image includes a third facial image and a fourth facial image, and the third facial image is consistent with the preset facial image. Image matching, the electronic device displays at least part of the second information in the second area of the preview image; wherein the preset facial image corresponds to the first wearable device; the distance between the second area and the display area of the third facial image is smaller than the second area The distance from the display area of the fourth facial image. This method describes a way of determining the display position of at least part of the second information on the preview image. Similarity matching is performed between the preset facial image and one or more characters in the preview image. If the preset facial image matches one of the characters successfully, the shooting device displays at least part of the biometric information near the character in the preview image. The display effect strengthens the correspondence between the user and the second information, and can intuitively see the user corresponding to the second information on the preview image, thereby improving the user experience.

在一种可能的实现方式中,方法还包括:响应于预览图像中不包括预设面部图像,电子设备输出第一提示,第一提示用于提示用户对准面部。电子设备将预设面部图像与图片中的一个或多个人物进行相似度匹配,若匹配不成功,则说明预览图像中不包括第一穿戴设备的用户,电子设备输出提示信息提示用户将拍摄角度对准面部,避免了拍摄出的多媒体文件中不包括第一穿戴设备的用户的情况,提升用户体验。In a possible implementation, the method further includes: in response to the preview image not including the preset facial image, the electronic device outputs a first prompt, where the first prompt is used to prompt the user to align the face. The electronic device performs similarity matching between the preset facial image and one or more people in the picture. If the matching is unsuccessful, it means that the user of the first wearable device is not included in the preview image. The electronic device outputs a prompt message to prompt the user to change the shooting angle. Aiming at the face avoids the situation where the user of the first wearable device is not included in the captured multimedia file, thereby improving the user experience.

在一种可能的实现方式中,第一信息包括以下至少一项:健康状态信息、运动状态信息、或情绪状态信息。In a possible implementation, the first information includes at least one of the following: health status information, exercise status information, or emotional status information.

在一种可能的实现方式中,第一传感器数据包括通过至少一种传感器检测的数据,至少一种传感器至少包括以下至少一项:加速度传感器、陀螺仪传感器、地磁传感器、大气压传感器、心率传感器、血压传感器、心电传感器、肌电传感器、体温传感器、皮电传感器、空气温湿度传感器、光照传感器、或骨传导传感器中。In a possible implementation, the first sensor data includes data detected by at least one sensor, and the at least one sensor includes at least one of the following: acceleration sensor, gyroscope sensor, geomagnetic sensor, atmospheric pressure sensor, heart rate sensor, Blood pressure sensor, ECG sensor, EMG sensor, body temperature sensor, skin electrode sensor, air temperature and humidity sensor, light sensor, or bone conduction sensor.

在一种可能的实现方式中,方法还包括:电子设备与第二穿戴设备建立连接;第二穿戴设备用于通过至少一个传感器检测出第四传感器数据,第一信息还与第四传感器数据对应。这种方式描述了电子设备与两个穿戴设备(第一穿戴设备和第二穿戴设备)一起建立连接的情况下,电子设备获取到第一信息,该第一信息与第一穿戴设备和第二穿戴设备的传感器数据(第一传感器数据和第四传感器数据)均对应。其中,电子设备与两个以上的穿戴设备一起建立连接同理。In a possible implementation, the method further includes: the electronic device establishes a connection with a second wearable device; the second wearable device is configured to detect fourth sensor data through at least one sensor, and the first information also corresponds to the fourth sensor data . This method describes the situation where an electronic device establishes a connection with two wearable devices (a first wearable device and a second wearable device). The electronic device obtains the first information, and the first information is related to the first wearable device and the second wearable device. The sensor data (first sensor data and fourth sensor data) of the wearable device all correspond. Among them, the electronic device establishes a connection with two or more wearable devices in the same way.

第三方面,本申请提供了一种电子设备,包括:一个或多个处理器、一个或多个存储器;该一个或多个存储与一个或多个处理器耦合;该一个或多个存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令;当该计算机指令在该处理器上运行时,使得该电子设备执行上述任一方面任一种可能的实现方式中的拍摄方法。In a third aspect, the application provides an electronic device, including: one or more processors and one or more memories; the one or more memories are coupled to the one or more processors; the one or more memories are used to The computer program code is stored, and the computer program code includes computer instructions; when the computer instructions are run on the processor, the electronic device is caused to execute the photographing method in any possible implementation of any of the above aspects.

第四方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得通信装置执行上述任一方面任一项可能的实现方式中的拍摄方法。In a fourth aspect, embodiments of the present application provide a computer storage medium that includes computer instructions. When the computer instructions are run on an electronic device, the communication device causes the communication device to execute the photographing method in any of the possible implementations of any of the above aspects.

第五方面,本申请提供一种芯片系统,芯片系统应用于包括存储器、显示屏和传感器的电子设备;芯片系统包括:一个或多个接口电路和一个或者多个处理器;接口电路和处理器通过线路互联;接口电路用于从存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行计算机指令时,电子设备执行第一方面及第一方面任一项可能的实现方式中的任务处理的方法。In a fifth aspect, this application provides a chip system, which is applied to electronic devices including memory, display screens, and sensors; the chip system includes: one or more interface circuits and one or more processors; the interface circuit and the processor Interconnected through lines; the interface circuit is used to receive signals from the memory and send signals to the processor, where the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the first aspect and any one of the first aspects Task processing methods in possible implementations.

第六方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述任一方面任一项可能的实现方式中的拍摄方法。In a sixth aspect, embodiments of the present application provide a computer program product. When the computer program product is run on a computer, it causes the computer to execute the photographing method in any of the possible implementations of any of the above aspects.

附图说明Description of drawings

图1为本申请实施例提供的一种系统图;Figure 1 is a system diagram provided by an embodiment of the present application;

图2为本申请实施例提供的一种电子设备的结构示意图;Figure 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图3为本申请实施例提供的一种电子设备的软件架构图;Figure 3 is a software architecture diagram of an electronic device provided by an embodiment of the present application;

图4为本申请实施例提供的一种穿戴设备的结构示意图;Figure 4 is a schematic structural diagram of a wearable device provided by an embodiment of the present application;

图5a-图5e为本申请实施例提供的一组拍摄方法的界面示意图;Figures 5a-5e are schematic interface diagrams of a set of shooting methods provided by embodiments of the present application;

图6a-图6b为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 6a-6b are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图7a-图7b为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 7a-7b are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图8a-图8d为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 8a-8d are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图9a-图9c为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 9a-9c are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图10为本申请实施例提供的又一组拍摄方法的界面示意图;Figure 10 is a schematic interface diagram of another set of shooting methods provided by the embodiment of the present application;

图11a-图11c为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 11a-11c are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图12为本申请实施例提供的又一组拍摄方法的界面示意图;Figure 12 is a schematic interface diagram of another set of shooting methods provided by the embodiment of the present application;

图13a-图13b为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 13a-13b are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图14a-图14b为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 14a-14b are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图15a-图15b为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 15a-15b are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图16a-图16b为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 16a-16b are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图17a-图17b为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 17a-17b are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图18a-图18b为本申请实施例提供的又一组拍摄方法的界面示意图;Figures 18a-18b are schematic interface diagrams of another set of shooting methods provided by embodiments of the present application;

图19a-图19b为本申请实施例提供的一种拍摄方法的技术原理图;Figures 19a-19b are technical schematic diagrams of a shooting method provided by embodiments of the present application;

图20a-图20b为本申请实施例提供的一种拍摄方法的方法流程图;Figures 20a-20b are a method flow chart of a shooting method provided by an embodiment of the present application;

图21为本申请实施例提供的又一种拍摄方法的方法流程图;Figure 21 is a method flow chart of yet another shooting method provided by an embodiment of the present application;

图22为本申请实施例提供的又一种系统图;Figure 22 is another system diagram provided by an embodiment of the present application;

图23-图24为本申请实施例提供的又一种拍摄方法的方法流程图。Figures 23 and 24 are method flow charts of yet another shooting method provided by embodiments of the present application.

具体实施方式Detailed ways

下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings. Among them, in the description of the embodiments of this application, unless otherwise stated, "/" means or, for example, A/B can mean A or B; "and/or" in the text is only a way to describe related objects. The association relationship means that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiment of the present application , "plurality" means two or more than two.

以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms “first” and “second” are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.

本申请实施例中涉及的电子设备/用户设备可以是手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、手持计算机、上网本、个人数字助理(Personal Digital Assistant,PDA)、虚拟现实设备、PDA(Personal Digital Assistant,个人数字助手,又称为掌上电脑)、便携式互联网设备、数据存储设备、相机或可穿戴设备(例如,无线耳机、智能手表、智能手环、智能眼镜、头戴式设备(Head-mounted display,HMD)、电子衣物、电子手镯、电子项链、电子配件、电子纹身和智能镜子)等等。The electronic device/user equipment involved in the embodiments of this application may be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an Ultra-mobile Personal Computer (UMPC), a handheld computer, a netbook, or a personal digital computer. Assistant (Personal Digital Assistant, PDA), virtual reality device, PDA (Personal Digital Assistant, also known as handheld computer), portable Internet device, data storage device, camera or wearable device (for example, wireless headset, smart phone Watches, smart bracelets, smart glasses, head-mounted displays (HMD), electronic clothing, electronic bracelets, electronic necklaces, electronic accessories, electronic tattoos and smart mirrors), etc.

本申请实施例提供了一种拍摄方法,应用于至少包括电子设备100和穿戴设备201的系统,电子设备100与穿戴设备201建立连接,当电子设备100拍摄图片/视频时,获取穿戴设备201通过传感器检测的用户的生物特征(例如心率、血压、运动姿势等),电子设备100将该生物特征与拍摄的图片/视频相关联,或者将该生物特征与拍摄的图片/视频中的人物相关联,该人物与该生物特征是对应的。电子设备100生成包括生物特征信息的图片/视频,该生物特征信息指示了用户的生物特征。这种方法在图片/视频生成的过程中将生物特征信息与图片/视频的信息相关联,对图片/视频做出了更精准的特征识别,并且提供了一种新的图片/视频格式,使得电子设备100保存带有生物特征信息的图片/视频,方便后续根据生物特征信息对存储的图片/视频进行分类。其中,为实现本申请实施例所涉及的方案,所述电子设备和穿戴设备的数量都可以为一个或者多个,本申请中对此不加以限制。The embodiment of the present application provides a shooting method, which is applied to a system including at least an electronic device 100 and a wearable device 201. The electronic device 100 establishes a connection with the wearable device 201. When the electronic device 100 shoots a picture/video, the wearable device 201 obtains the The user's biometric features (such as heart rate, blood pressure, exercise posture, etc.) detected by the sensor, the electronic device 100 associates the biometric features with the captured pictures/videos, or associates the biometric features with the characters in the captured pictures/videos. , the character corresponds to the characteristics of the creature. The electronic device 100 generates pictures/videos including biometric information indicating the user's biometric characteristics. This method associates biometric information with image/video information in the process of image/video generation, makes more accurate feature recognition of images/videos, and provides a new image/video format, making The electronic device 100 saves pictures/videos with biometric information to facilitate subsequent classification of the stored pictures/videos based on the biometric information. Wherein, in order to implement the solutions involved in the embodiments of this application, the number of the electronic devices and wearable devices may be one or more, which is not limited in this application.

图1示例性示出了本申请提供的一种系统图。Figure 1 exemplarily shows a system diagram provided by this application.

如图1所示,该系统可以包括电子设备100和一个或多个穿戴设备(例如穿戴设备201、穿戴设备202)。电子设备100和穿戴设备201(穿戴设备202)可以通过无线通信方式连接。例如至少可以通过以下至少一种无线连接方式建立连接:蓝牙(blue tooth,BT)、近场通信(near field communication,NFC)、无线保真(wireless fidelity,WiFi)、或WiFi直连。As shown in Figure 1, the system may include an electronic device 100 and one or more wearable devices (eg, wearable device 201, wearable device 202). The electronic device 100 and the wearable device 201 (wearable device 202) may be connected through wireless communication. For example, the connection can be established through at least one of the following wireless connection methods: Bluetooth (blue tooth, BT), near field communication (NFC), wireless fidelity (wireless fidelity, WiFi), or WiFi direct connection.

其中,可选的,电子设备100可以与多个不同类型的穿戴设备连接。例如,电子设备100可以同时通过蓝牙连接智能手表和无线耳机。Optionally, the electronic device 100 can be connected to multiple different types of wearable devices. For example, the electronic device 100 can connect a smart watch and a wireless headset via Bluetooth at the same time.

在本申请实施例中,以电子设备100和穿戴设备201通过蓝牙连接作为示例性说明。In the embodiment of this application, the electronic device 100 and the wearable device 201 are connected through Bluetooth as an exemplary description.

电子设备100是具有摄像功能的电子设备。例如手机、平板、或相机等等。The electronic device 100 is an electronic device having a camera function. For example, mobile phones, tablets, or cameras, etc.

穿戴设备201包括无线耳机、智能手表、智能手环、智能眼镜、智能戒指、智能运动鞋、虚拟现实显示设备、智能头带、电子衣物、电子手镯、电子项链、电子配件、电子纹身或智能镜子等等。Wearable devices 201 include wireless headphones, smart watches, smart bracelets, smart glasses, smart rings, smart sneakers, virtual reality display devices, smart headbands, electronic clothing, electronic bracelets, electronic necklaces, electronic accessories, electronic tattoos or smart mirrors etc.

穿戴设备201可以通过传感器检测用户的健康状态信息、运动状态信息、情绪状态信息等。健康状态信息包括心率、血压、血糖、脑电、心电、肌电、体温等信息;运动状态信息包括走路、跑步、骑车、游泳、打羽毛球、滑冰、冲浪、跳舞等常见的运动类型姿态,也可以包括一些更细粒度的运动姿态,例如:正手击球、反手击球、跳拉丁舞、跳机械舞等;情绪状态信息包括紧张、焦虑、悲伤、压力大、兴奋、愉悦等。The wearable device 201 can detect the user's health status information, exercise status information, emotional status information, etc. through sensors. Health status information includes heart rate, blood pressure, blood sugar, EEG, ECG, EMG, body temperature and other information; exercise status information includes common sports postures such as walking, running, cycling, swimming, badminton, skating, surfing, dancing, etc. , and can also include some more fine-grained sports gestures, such as: forehand hitting, backhand hitting, Latin dance, mechanical dance, etc.; emotional state information includes tension, anxiety, sadness, pressure, excitement, joy, etc.

电子设备100与穿戴设备201通过蓝牙连接。电子设备100在拍摄图片/视频时,获取用户的生物特征信息,该生物特征信息与穿戴设备201通过传感器检测到的用户的健康状态信息、运动状态信息、情绪状态信息等对应。例如,穿戴设备201通过心率传感器检测到心率数据、通过血压传感器检测到血压数据;则生物特征信息可以是心率数据、血压数据,也可以是基于该心率数据和血压数据得出的心率正常、血压正常等信息。The electronic device 100 and the wearable device 201 are connected through Bluetooth. When taking pictures/videos, the electronic device 100 acquires the user's biometric information, which corresponds to the user's health status information, exercise status information, emotional status information, etc. detected by the wearable device 201 through sensors. For example, the wearable device 201 detects heart rate data through a heart rate sensor and blood pressure data through a blood pressure sensor; the biometric information can be heart rate data and blood pressure data, or it can be a normal heart rate and blood pressure based on the heart rate data and blood pressure data. Normal information.

电子设备将生物特征信息与图片/视频的信息相关联,并保存带有生物特征信息的图片/视频。电子设备通过对这种带有生物特征信息的图片/视频进行分类,能够对不同特征的图片/视频进行快捷且准确的查询和筛选。并且通过穿戴设备的传感器能够提供更多的内在特征,对图片/视频的特征识别更加精准。The electronic device associates the biometric information with the information of the picture/video and saves the picture/video with the biometric information. By classifying such pictures/videos with biometric information, electronic devices can quickly and accurately query and filter pictures/videos with different characteristics. And the sensors of wearable devices can provide more intrinsic features, making the feature recognition of pictures/videos more accurate.

首先介绍本申请以下实施例中提供的示例性电子设备100。First, an exemplary electronic device 100 provided in the following embodiments of the present application is introduced.

图2示出了电子设备100的结构示意图。FIG. 2 shows a schematic structural diagram of the electronic device 100.

下面以电子设备100为例对实施例进行具体说明。应该理解的是,图2所示电子设备100仅是一个范例,并且电子设备100可以具有比图2中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The following uses the electronic device 100 as an example to describe the embodiment in detail. It should be understood that the electronic device 100 shown in FIG. 2 is only an example, and the electronic device 100 may have more or fewer components than shown in FIG. 2 , two or more components may be combined, or Can have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2. Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, And subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.

可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备100也可以包括一个或多个处理器110。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), an image signal processor ( image signal processor (ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. . Among them, different processing units can be independent devices or integrated in one or more processors. In some embodiments, electronic device 100 may also include one or more processors 110 .

控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。示例性地,无线通信模块160可以包括蓝牙模块、Wi-Fi模块等。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellite system. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation. Exemplarily, the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.

在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括第五代移动通信(the 5th Generation,5G)系统、新空口(NewRadio,NR)系统,全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include the 5th Generation (5G) system, New Radio (NR) system, global system for mobile communications (GSM), general packet wireless service (general packet radio service (GPRS), codedivision multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD) -SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou satellite navigation system (beidounavigation satellite system, BDS), quasi-zenith satellite system (quasi- zenith satellitesystem (QZSS) and/or satellite based augmentation systems (SBAS).

可选的,在一些实施例中,无线通信模块160中包括的蓝牙(BT)模块、WLAN模块可以发射信号来探测或扫描电子设备100附近设备,使得电子设备100可以使用蓝牙或WLAN等无线通信技术发现附近设备,并与附近设备建立无线通信连接,并通过上述连接分享数据至附近设备。其中,蓝牙(BT)模块可以提供包括经典蓝牙(蓝牙2.1)或蓝牙低功耗(Bluetooth low energy,BLE)中一项或多项蓝牙通信的解决方案。WLAN模块可以提供包括Wi-Fi direct、Wi-Fi LAN或Wi-Fi softAP中一项或多项WLAN通信的解决方案。Optionally, in some embodiments, the Bluetooth (BT) module and WLAN module included in the wireless communication module 160 can transmit signals to detect or scan devices near the electronic device 100, so that the electronic device 100 can use wireless communication such as Bluetooth or WLAN. The technology discovers nearby devices, establishes wireless communication connections with nearby devices, and shares data to nearby devices through the above connections. Among them, the Bluetooth (BT) module can provide one or more Bluetooth communication solutions including classic Bluetooth (Bluetooth 2.1) or Bluetooth low energy (Bluetooth low energy, BLE). The WLAN module can provide a WLAN communication solution that includes one or more of Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP.

可选的,在一些实施例中,移动通信模块150提供的无线通信的解决方案可使得电子设备可以与网络中的设备(如服务器)通信,无线通信模块160提供的WLAN无线通信的解决方案也可使得电子设备可以与网络中的设备(如服务器)通信,并可以通过网络中的该设备(如服务器)与云端设备通信。这样,电子设备便可以发现云端设备、传输数据至云端设备。Optionally, in some embodiments, the wireless communication solution provided by the mobile communication module 150 can enable electronic devices to communicate with devices in the network (such as servers), and the WLAN wireless communication solution provided by the wireless communication module 160 can also This allows the electronic device to communicate with a device in the network (such as a server), and to communicate with a cloud device through the device in the network (such as a server). In this way, electronic devices can discover cloud devices and transmit data to cloud devices.

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.

显示屏194用于显示图像,视频等。该显示屏194可以为平面显示屏、曲面显示屏、或折叠屏。当显示屏194为折叠屏,折叠屏处于折叠状态,折叠屏至少包括第一显示区域和第二显示区域。其中,第一显示区域和第二显示区域的出光面不同。第一显示区域位于折叠屏的第一区域,第二显示区域位于折叠屏的第二区域,当折叠屏处于折叠状态,第一区域和第二区域之间的夹角大于等于0度,小于180。The display screen 194 is used to display images, videos, etc. The display screen 194 can be a flat display screen, a curved display screen, or a folding screen. When the display screen 194 is a folding screen, the folding screen is in a folded state, and the folding screen at least includes a first display area and a second display area. Wherein, the light-emitting surfaces of the first display area and the second display area are different. The first display area is located in the first area of the folding screen, and the second display area is located in the second area of the folding screen. When the folding screen is in the folded state, the angle between the first area and the second area is greater than or equal to 0 degrees and less than 180 degrees. .

显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystaldisplay,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。当电子设备100包含两个或两个以上显示屏时,各显示屏的形态可以不同。例如,其中一个显示屏可以是折叠显示屏,另一个显示屏可以是平面显示屏。例如,其中一个显示屏是彩色显示屏,另一个显示屏可以是黑白显示屏。Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. When the electronic device 100 includes two or more display screens, the shapes of each display screen may be different. For example, one of the displays may be a folding display and the other may be a flat display. For example, one of the displays may be a color display and the other may be a black and white display.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.

ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

摄像头193可以是3D摄像头,电子设备100可以通过3D摄像头,ISP,视频编解码器,GPU,显示屏194以及应用处理器AP、神经网络处理器NPU等实现摄像功能。The camera 193 may be a 3D camera, and the electronic device 100 may implement the camera function through a 3D camera, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, etc.

3D摄像头可用于采集拍摄对象的彩色图像数据以及深度数据。ISP可用于处理3D摄像头采集的彩色图像数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置于3D摄像头。3D cameras can be used to collect color image data and depth data of the subject. ISP can be used to process color image data collected by 3D cameras. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided on the 3D camera.

可选的,在一些实施例中,3D摄像头可以由彩色摄像模组和3D感测模组组成。Optionally, in some embodiments, the 3D camera may be composed of a color camera module and a 3D sensing module.

可选的,在一些实施例中,彩色摄像模组的摄像头的感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。Optionally, in some embodiments, the photosensitive element of the camera of the color camera module may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals.

可选的,在一些实施例中,3D感测模组可以是(time of flight,TOF)3D感测模块或结构光(structured light)3D感测模块。其中,结构光3D感测是一种主动式深度感测技术,结构光3D感测模组的基本零组件可包括红外线(Infrared)发射器、IR相机模等。结构光3D感测模组的工作原理是先对被拍摄物体发射特定图案的光斑(pattern),再接收该物体表面上的光斑图案编码(light coding),进而比对与原始投射光斑的异同,并利用三角原理计算出物体的三维坐标。该三维坐标中就包括电子设备100距离被拍摄物体的距离。其中,TOF 3D感测也是主动式深度感测技术,TOF 3D感测模组的基本组件可包括红外线(Infrared)发射器、IR相机模等。TOF 3D感测模组的工作原理是通过红外线折返的时间去计算TOF 3D感测模组跟被拍摄物体之间的距离(即深度),以得到3D景深图。Optionally, in some embodiments, the 3D sensing module may be a time of flight (TOF) 3D sensing module or a structured light (structured light) 3D sensing module. Among them, structured light 3D sensing is an active depth sensing technology. The basic components of the structured light 3D sensing module can include infrared (Infrared) emitters, IR camera modules, etc. The working principle of the structured light 3D sensing module is to first emit a light spot (pattern) of a specific pattern on the object being photographed, and then receive the light spot pattern coding (light coding) on the surface of the object, and then compare the similarities and differences with the original projected light spot. And use the principle of trigonometry to calculate the three-dimensional coordinates of the object. The three-dimensional coordinates include the distance between the electronic device 100 and the photographed object. Among them, TOF 3D sensing is also an active depth sensing technology. The basic components of a TOF 3D sensing module can include an infrared emitter, an IR camera module, etc. The working principle of the TOF 3D sensing module is to calculate the distance (i.e., depth) between the TOF 3D sensing module and the photographed object through the time of infrared retracement to obtain a 3D depth map.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)-1,MPEG-2,MPEG-3,MPEG-4等。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG)-1, MPEG-2, MPEG-3, MPEG-4, etc.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,面部识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. Intelligent cognition and other applications of the electronic device 100 can be implemented through the NPU, such as image recognition, facial recognition, speech recognition, text understanding, etc.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、照片、视频等数据保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save music, photos, videos and other data on an external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 . The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls. Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear. Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C.

耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.

陀螺仪传感器180B可以用于确定电子设备100的运动姿态。The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .

气压传感器180C用于测量气压。Air pressure sensor 180C is used to measure air pressure.

磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。Magnetic sensor 180D includes a Hall sensor. The electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster.

加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.

距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。Distance sensor 180F for measuring distance. Electronic device 100 can measure distance via infrared or laser.

接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power.

环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touching.

指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.

温度传感器180J用于检测温度。Temperature sensor 180J is used to detect temperature.

触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。Touch sensor 180K, also called "touch panel". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 .

骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。Bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.

SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .

电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。其中,Android系统仅为本申请实施例中电子设备100的一种系统示例,本申请还可以适用于其他类型的操作系统,比如IOS、windows等,本申请对此不加以限制。下述仅将Android系统作为电子设备100的操作系统的示例。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 . Among them, the Android system is only an example of the system of the electronic device 100 in the embodiment of this application. This application can also be applied to other types of operating systems, such as IOS, windows, etc., and this application does not limit this. The following only uses the Android system as an example of the operating system of the electronic device 100 .

图3是本申请实施例的电子设备100的软件结构框图。FIG. 3 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.

分层架构将软件分成若干个层。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。A layered architecture divides software into several layers. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime (Android runtime) and system libraries, and kernel layer.

应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.

如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 3, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 3, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.

内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.

电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, call status management (including connected, hung up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.

Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. The Android runtime is responsible for the scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.

系统库可以包括多个功能模块。例如:图像处理模块、视频处理模块、表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL嵌入式系统版(OpenGL for Embedded Systems,OpenGL ES)),2D图形引擎(例如:Skia图形库(SkiaGraphics Library,SGL))等。System libraries can include multiple functional modules. For example: image processing module, video processing module, surface manager (surface manager), media libraries (Media Libraries), three-dimensional graphics processing library (for example: OpenGL for Embedded Systems (OpenGL ES)), 2D graphics Engine (for example: Skia Graphics Library (SGL)), etc.

图像处理模块,用于对图像进行编码、解码以及渲染等过程,使应用程序可以在显示屏上显示图像。可以实现图像格式的转换和图像文件的生成等。The image processing module is used to encode, decode and render images so that applications can display images on the display. It can convert image formats and generate image files, etc.

视频处理模块,用于对视频帧进行编码、解码以及渲染等过程,使应用程序可以在显示屏上显示视频。可以实现视频格式的转换和视频文件的生成等。The video processing module is used to encode, decode, and render video frames so that the application can display the video on the display. It can convert video formats and generate video files, etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:移动影像专家组4(Motion Picture Expert Group,MPEG4),高级视频编码(MPEG-4Part 10Advanced Video Coding,MPEG-4AVC/H.264),动态影像专家压缩标准音频层3(MPEG Audio Layer3,MP3),高级音频编码(Advanced AudioCoding,AAC),自适应多速率(Adaptive Multi-Rate,AMR),联合图像专家组(JointPhotographic Experts Group,JPEG/JPG),便携式网络图形(Portable NetworkGraphics,PNG)等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video coding formats, such as: Motion Picture Expert Group 4 (MPEG4), Advanced Video Coding (MPEG-4Part 10Advanced Video Coding, MPEG-4AVC/H.264), Motion Picture Expert Compression standard audio layer 3 (MPEG Audio Layer3, MP3), advanced audio coding (Advanced AudioCoding, AAC), adaptive multi-rate (Adaptive Multi-Rate, AMR), Joint Photographic Experts Group (Joint Photographic Experts Group, JPEG/JPG), Portable Network Graphics (PNG), etc.

三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.

2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

图3所示的软件系统涉及到使用拍摄能力的应用呈现(如图库,文件管理器),以及应用框架层提供WLAN服务、蓝牙服务,以及内核和底层提供WLAN蓝牙能力和基本通信协议。The software system shown in Figure 3 involves application presentation using shooting capabilities (such as image library, file manager), as well as the application framework layer providing WLAN services and Bluetooth services, and the kernel and bottom layer providing WLAN Bluetooth capabilities and basic communication protocols.

下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。The following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with capturing the photographing scene.

当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用对应的相机服务,进而相机服务通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored at the kernel level. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the control corresponding to the touch operation as the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera service corresponding to the camera application. Then the camera service starts the camera driver by calling the kernel layer and captures static images through the camera 193 image or video.

相机服务同步调用内核层启动蓝牙驱动,通过蓝牙天线向已连接的穿戴设备发送请求消息,并接收上述穿戴设备基于该请求消息发送的传感器数据或生物特征信息;相机服务调用图像处理模块或视频处理模块将生物特征信息写入图像或视频的图像帧中,生成带有生物特征信息的图片文件或视频文件。The camera service synchronously calls the kernel layer to start the Bluetooth driver, sends a request message to the connected wearable device through the Bluetooth antenna, and receives the sensor data or biometric information sent by the wearable device based on the request message; the camera service calls the image processing module or video processing The module writes biometric information into image frames of images or videos and generates picture files or video files with biometric information.

本申请中,图片文件和视频文件可以称为多媒体文件。In this application, picture files and video files may be called multimedia files.

图4示例性的示出了本申请提供的穿戴设备201的结构示意图。Figure 4 exemplarily shows a schematic structural diagram of the wearable device 201 provided by this application.

如图4所示,穿戴设备201可以包括处理器102、存储器103、无线通信处理模块104、移动通信处理模块105、触控显示屏106和传感器模块107。这些部件可以通过总线连接。其中:As shown in FIG. 4 , the wearable device 201 may include a processor 102, a memory 103, a wireless communication processing module 104, a mobile communication processing module 105, a touch display screen 106 and a sensor module 107. These components can be connected via a bus. in:

处理器102可用于读取和执行计算机可读指令。具体实现中,处理器102可主要包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责执行定点或浮点算数运算操作、移位操作以及逻辑操作等,也可以执行地址运算和转换。寄存器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器102的硬件架构可以是专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)架构、MIPS架构、ARM架构或者NP架构等等。Processor 102 may be used to read and execute computer-readable instructions. In specific implementation, the processor 102 may mainly include a controller, arithmetic unit, and a register. Among them, the controller is mainly responsible for decoding instructions and issuing control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations, and logical operations. It can also perform address operations and conversions. Registers are mainly responsible for storing register operands and intermediate operation results temporarily stored during instruction execution. In specific implementation, the hardware architecture of the processor 102 may be an Application Specific Integrated Circuits (ASIC) architecture, a MIPS architecture, an ARM architecture or an NP architecture, etc.

在一些实施例中,处理器102可以用于解析无线通信处理模块104和有线LAN通信处理模块116接收到的信号,如电子设备100发送的获取传感器数据或生物特征信息的请求消息,电子设备100发送的停止获取传感器数据或生物特征信息的请求消息。处理器102可以用于根据传感器模块106采集的信息,进行相应的分析处理,如分析用户的健康状态、运动状态、情绪状态等等。In some embodiments, the processor 102 may be used to parse signals received by the wireless communication processing module 104 and the wired LAN communication processing module 116, such as a request message sent by the electronic device 100 to obtain sensor data or biometric information. The electronic device 100 A request message sent to stop acquiring sensor data or biometric information. The processor 102 can be used to perform corresponding analysis and processing based on the information collected by the sensor module 106, such as analyzing the user's health status, motion status, emotional status, etc.

存储器103与处理器102耦合,用于存储各种软件程序或多组指令中的至少一种。具体实现中,存储器103可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器103可以存储操作系统,例如uCOS、VxWorks、RTLinux等嵌入式操作系统。存储器103还可以存储通信程序,该通信程序可用于与电子设备100,一个或多个服务器,或附加设备进行通信。Memory 103 is coupled to processor 102 for storing at least one of various software programs or sets of instructions. In specific implementations, the memory 103 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 103 can store operating systems, such as uCOS, VxWorks, RTLinux and other embedded operating systems. Memory 103 may also store communications programs that may be used to communicate with electronic device 100, one or more servers, or additional devices.

无线通信处理模块104可以包括蓝牙(BT)通信处理模块104A、WLAN通信处理模块104B中的一项或多项。The wireless communication processing module 104 may include one or more of a Bluetooth (BT) communication processing module 104A and a WLAN communication processing module 104B.

在一些实施例中,蓝牙(BT)通信处理模块、WLAN通信处理模块中的一项或多项可以监听到其他设备(如电子设备100)发射的信号,如探测请求、扫描信号等等,并可以发送响应信号,如探测响应、扫描响应等,使得其他设备(如电子设备100)可以发现穿戴设备201,并与其他设备(如电子设备100)建立无线通信连接,通过蓝牙或WLAN中的一种或多种无线通信技术与其他设备(如电子设备100)进行通信。In some embodiments, one or more of the Bluetooth (BT) communication processing module and the WLAN communication processing module can monitor signals transmitted by other devices (such as the electronic device 100), such as detection requests, scanning signals, etc., and A response signal, such as a detection response, a scanning response, etc., can be sent so that other devices (such as the electronic device 100) can discover the wearable device 201 and establish a wireless communication connection with other devices (such as the electronic device 100) through one of Bluetooth or WLAN. One or more wireless communication technologies communicate with other devices (such as the electronic device 100).

在另一些实施例中,蓝牙(BT)通信处理模块、WLAN通信处理模块中的一项或多项也可以发射信号,如广播蓝牙信号、信标信号,使得其他设备(如电子设备100)可以发现穿戴设备201,并与其他设备(如电子设备100)建立无线通信连接,通过蓝牙或WLAN中的一种或多种无线通信技术与其他设备(如电子设备100)进行通信。In other embodiments, one or more of the Bluetooth (BT) communication processing module and the WLAN communication processing module can also transmit signals, such as broadcasting Bluetooth signals and beacon signals, so that other devices (such as the electronic device 100) can Discover the wearable device 201, establish a wireless communication connection with other devices (such as the electronic device 100), and communicate with other devices (such as the electronic device 100) through one or more wireless communication technologies in Bluetooth or WLAN.

移动通信处理模块105可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。用于执行蜂窝通信和/或数据通信,例如,移动通信模块106可以包括用于执行蜂窝通信的电路交换模块(“CS”模块)和用于执行数据通信的分组交换模块(“PS”模块)。在本申请中,移动通信处理模块105可以通过第四代移动通信技术(4th generationmobile networks)或第五代移动通信技术(5th generation mobile networks)与其他设备(如服务器)进行通信。The mobile communication processing module 105 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . For performing cellular communications and/or data communications, for example, the mobile communications module 106 may include a circuit switched module ("CS" module) for performing cellular communications and a packet switched module ("PS" module) for performing data communications. . In this application, the mobile communication processing module 105 can communicate with other devices (such as servers) through fourth generation mobile communication technology (4th generation mobile networks) or fifth generation mobile communication technology (5th generation mobile networks).

触控屏106,Touch panel,又称为触控面板,是个可接收触头等输入讯号的感应式液晶显示装置,可用于显示图像、视频等。触控屏106可以采用液晶显示屏(liquid crystaldisplay,LCD),有机发光二极管(organic light-emitting diode,OLED)显示屏,有源矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)显示屏,柔性发光二极管(flexible light-emitting diode,FLED)显示屏,量子点发光二极管(quantumdot light emitting diodes,QLED)显示屏等等。Touch screen 106, Touch panel, also known as touch panel, is an inductive liquid crystal display device that can receive input signals such as contacts, and can be used to display images, videos, etc. The touch screen 106 can be a liquid crystal display (LCD), an organic light-emitting diode (OLED) display, or an active-matrix organic light emitting diode (AMOLED). Display screen, flexible light-emitting diode (FLED) display screen, quantum dot light emitting diode (QLED) display screen, etc.

传感器模块107可以包括运动传感器107A、生物传感器107B、环境传感器107C等等。其中,Sensor module 107 may include motion sensor 107A, biosensor 107B, environment sensor 107C, and so on. in,

运动传感器107A,是一种将非电量(如速度、压力)的变化转换为电量变化的元件。可以包括以下的至少一种:加速度传感器、陀螺仪传感器、地磁传感器(又称电子罗盘传感器)、或大气压传感器等。其中,加速度传感器可以检测各个方向上(一般为三轴,即x、y和z轴)加速度的大小。陀螺仪传感器可以用于确定运动姿态。电子罗盘传感器可以用于测量方向,实现或辅助导航。大气压传感器用于测量气压,在一些实施例中,可以通过在运动过程中微弱的气压变化来计算出所在位置的高度变化,同时在10层楼的高度运动过程中精确度可以控制在10CM以内,大到攀岩、小到爬楼梯的数据都可以实现监测。The motion sensor 107A is a component that converts changes in non-electricity (such as speed, pressure) into changes in electricity. It may include at least one of the following: acceleration sensor, gyroscope sensor, geomagnetic sensor (also known as electronic compass sensor), or atmospheric pressure sensor, etc. Among them, the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes, namely x, y and z axes). Gyroscope sensors can be used to determine motion posture. Electronic compass sensors can be used to measure direction to enable or assist navigation. The atmospheric pressure sensor is used to measure air pressure. In some embodiments, the height change of the location can be calculated through the slight change of air pressure during movement. At the same time, the accuracy can be controlled within 10CM during the height movement of 10 floors. Data ranging from rock climbing to stair climbing can be monitored.

本申请中,通过运动传感器107A可以测量用户的活动情况,例如跑步步数、速度、游泳圈数、骑车距离、运动姿态(如打球、游泳、跑步)等。In this application, the user's activities can be measured through the motion sensor 107A, such as the number of running steps, speed, swimming laps, cycling distance, sports posture (such as playing ball, swimming, running), etc.

生物传感器107B,对生物物质敏感并将其浓度转换为电信号进行检测的仪器。是由固定化的生物敏感材料作为识别元件(包括酶、抗体、抗原、微生物、细胞、组织、核酸等生物活性物质)与适当的理化换能器(如氧电极、光敏管、场效应管、压电晶体等)即信号放大装置构成的分析工具或系统。生物传感器具有接收器与转换器的功能。生物传感器107B可以包括以下至少一种:血糖传感器、血压传感器、心电传感器、肌电传感器、体温传感器、脑电波传感器等,这些传感器主要实现的功能包括健康和医疗监控、娱乐等。Biosensor 107B is an instrument that is sensitive to biological substances and converts their concentration into electrical signals for detection. It is composed of immobilized biologically sensitive materials as identification elements (including enzymes, antibodies, antigens, microorganisms, cells, tissues, nucleic acids and other biologically active substances) and appropriate physical and chemical transducers (such as oxygen electrodes, photosensitive tubes, field effect tubes, Piezoelectric crystal, etc.) is an analysis tool or system composed of a signal amplification device. Biosensors have the functions of receiver and converter. The biosensor 107B may include at least one of the following: blood glucose sensor, blood pressure sensor, electrocardiogram sensor, myoelectric sensor, body temperature sensor, brain wave sensor, etc. The main functions implemented by these sensors include health and medical monitoring, entertainment, etc.

其中,血糖传感器用于测量血糖。血压传感器用于测量血压。心电传感器,例如使用银质纳米线来监测电生理信号,比如心电图。肌电传感器用于监测肌电图。体温传感器用于测量体温、脑电波传感器用于监测脑电波。本申请中,通过生物传感器107B可以测量用户的各项生理指标(例如血糖、血压、体温、心电等等),穿戴设备201可以根据生理指标推算出用户的健康状况。Among them, the blood glucose sensor is used to measure blood glucose. Blood pressure sensors are used to measure blood pressure. Cardiac sensors, for example, use silver nanowires to monitor electrophysiological signals, such as electrocardiograms. Myoelectric sensors are used to monitor electromyography. The body temperature sensor is used to measure body temperature, and the brain wave sensor is used to monitor brain waves. In this application, the biosensor 107B can measure various physiological indicators of the user (such as blood sugar, blood pressure, body temperature, ECG, etc.), and the wearable device 201 can calculate the user's health status based on the physiological indicators.

生物传感器107B还可以包括心率传感器、皮电传感器。其中,The biosensor 107B may also include a heart rate sensor and an electrodermal sensor. in,

心率传感器,可以通过检测用户的心率来追踪用户的运动强度、不同的运动训练模式等,并可以推算出用户的睡眠周期、睡眠质量等健康数据。当电容灯光射向皮肤,透过皮肤组织反射回的光被光敏传感器接受并转换成电信号再经过电信号转换成数字信号,再根据血液的吸光率就能测算出心率。The heart rate sensor can track the user's exercise intensity, different exercise training modes, etc. by detecting the user's heart rate, and can calculate the user's sleep cycle, sleep quality and other health data. When the capacitive light shines on the skin, the light reflected through the skin tissue is received by the photosensitive sensor and converted into an electrical signal. The electrical signal is then converted into a digital signal, and the heart rate can be measured based on the absorbance of the blood.

皮电传感器,用来测量用户的唤醒度,而唤醒度是和用户的关注度和参与度紧密联系在一起的,通常配备在一些可以监测汗水水平的设备上。人体的皮肤电阻、电导随皮肤汗腺机能变化而改变,这些可测量的皮肤电改变称之为皮电活动(EDA)。Electrodermal sensors are used to measure the user's arousal, which is closely linked to the user's attention and participation. They are usually equipped on devices that can monitor sweat levels. The human body's skin resistance and conductance change with changes in the function of the skin's sweat glands. These measurable skin electrical changes are called electrodermal activity (EDA).

本申请实施例中,穿戴设备201通过皮电传感器对心理上引起的汗腺活动进行测量,来确定用户的心理活动,例如用户的心情指数。例如心情愉悦、紧张害怕、压力较大等。In the embodiment of the present application, the wearable device 201 measures the psychologically induced sweat gland activity through an electrodermal sensor to determine the user's psychological activity, such as the user's mood index. For example, feeling happy, nervous, scared, stressed, etc.

环境传感器107C可以包括以下至少一种:空气温湿度传感器、雨量传感器、光照传感器、风速风向传感器、颗粒物传感器等。环境传感器107C可以实现对空气质量的检测,比如雾霾程度、室内甲醛浓度、PM2.5检测等。本申请中,通过环境传感器107C可以测量天气变化、空气湿度、空气质量等。The environment sensor 107C may include at least one of the following: air temperature and humidity sensor, rain sensor, light sensor, wind speed and direction sensor, particle sensor, etc. The environment sensor 107C can detect air quality, such as haze level, indoor formaldehyde concentration, PM2.5 detection, etc. In this application, weather changes, air humidity, air quality, etc. can be measured through the environment sensor 107C.

可以理解的是,图4示意的结构并不构成对穿戴设备201的具体限定。可选的,在本申请另一些实施例中,穿戴设备101可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in Figure 4 does not constitute a specific limitation on the wearable device 201. Optionally, in other embodiments of the present application, the wearable device 101 may include more or fewer components than shown in the figures, or combine some components, or split some components, or arrange different components. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.

在一些具体场景中,用户佩戴穿戴设备,电子设备与穿戴设备建立连接。用户触发电子设备启动摄像头拍摄图片,电子设备获取图片信息,并且获取生物特征信息。该生物特征信息与穿戴设备通过至少一个传感器检测出的传感器数据对应。其中,本申请涉及的传感器数据包括但不限于上述提及的运动传感器107A、生物传感器107B和环境传感器107C中的至少一个传感器检测出的数据。In some specific scenarios, the user wears the wearable device, and the electronic device establishes a connection with the wearable device. The user triggers the electronic device to start the camera to take pictures, and the electronic device obtains picture information and biometric information. The biometric information corresponds to sensor data detected by the wearable device through at least one sensor. Among them, the sensor data involved in this application includes but is not limited to the data detected by at least one of the above-mentioned motion sensor 107A, biosensor 107B, and environment sensor 107C.

可选的,上述生物特征信息可以是穿戴设备基于传感器数据进行分析处理后,发送给电子设备的;可选的,上述生物特征信息可以是电子设备获取到穿戴设备发送的传感器数据,然后基于该传感器数据进行分析处理后得到的。Optionally, the above biometric information can be sent to the electronic device after the wearable device analyzes and processes the sensor data; optionally, the above biometric information can be obtained by the electronic device based on the sensor data sent by the wearable device. Sensor data is obtained after analysis and processing.

电子设备将该生物特征信息与图片信息相关联,或者将该生物特征信息与拍摄的图片中的人物相关联,该人物与该生物特征信息是对应的。电子设备生成带有生物特征信息的图片文件,响应于用户查看该图片文件,电子设备可以显示该生物特征信息或者显示部分该生物特征信息。The electronic device associates the biometric information with the picture information, or associates the biometric information with a person in the photographed picture, and the person corresponds to the biometric information. The electronic device generates a picture file with biometric information, and in response to the user viewing the picture file, the electronic device may display the biometric information or display part of the biometric information.

下面以智能手机为上述电子设备举例,示例性的说明本申请提供的拍摄方法在智能手机的显示界面上的实现形式。The following uses a smartphone as an example of the above-mentioned electronic device to illustrate the implementation of the shooting method provided by the present application on the display interface of the smartphone.

首先,对启动标注模式进行介绍。First, let’s introduce starting annotation mode.

方式一,启动电子设备的摄像头,选择标注模式。Method 1: Start the camera of the electronic device and select the annotation mode.

相机应用是电子设备具有的一款用于拍照的应用软件。当用户想要拍摄图像或视频时,可以启动相机应用,电子设备调用至少一个摄像头进行拍摄。如图5a所示,图5a示出了电子设备上用于陈列应用程序列表的示例性用户界面。图5a包括状态栏201和显示界面202,其中状态栏201可包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符203、无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符207,蓝牙指示符208,电池状态指示符209、时间指示符211。当电子设备的蓝牙模块为开启状态(即电子设备为蓝牙模块进行供电)时,电子设备的显示界面上显示蓝牙指示符208。A camera application is an application software that an electronic device has for taking pictures. When the user wants to take an image or video, the camera application can be started, and the electronic device calls at least one camera to take the picture. As shown in Figure 5a, Figure 5a shows an exemplary user interface for displaying an application list on an electronic device. Figure 5a includes a status bar 201 and a display interface 202, where the status bar 201 may include: one or more signal strength indicators 203 of mobile communication signals (also called cellular signals), wireless fidelity (Wi-Fi) ) signal, one or more signal strength indicators 207, Bluetooth indicator 208, battery status indicator 209, time indicator 211. When the Bluetooth module of the electronic device is turned on (that is, the electronic device supplies power to the Bluetooth module), the Bluetooth indicator 208 is displayed on the display interface of the electronic device.

显示界面202陈列了多个应用图标。其中,显示界面202中包括相机205的应用图标。当电子设备检测到作用于相机205的应用图标的用户操作,电子设备显示相机应用提供的应用界面。The display interface 202 displays multiple application icons. The display interface 202 includes an application icon of the camera 205 . When the electronic device detects a user operation on the application icon of the camera 205, the electronic device displays an application interface provided by the camera application.

参考图5b,图5b示出了一种可能的相机应用提供的用户界面。相机205的应用界面如图5b所示,该应用界面可以包括:显示区30、闪光灯图标301、设置图标302、模式选择区303、图库图标304、拍摄图标305、切换图标306。Referring to Figure 5b, Figure 5b shows a possible user interface provided by a camera application. The application interface of the camera 205 is shown in Figure 5b. The application interface may include: a display area 30, a flash icon 301, a setting icon 302, a mode selection area 303, a gallery icon 304, a shooting icon 305, and a switching icon 306.

显示区30的显示内容为电子设备当前使用的摄像头所采集的图像的预览显示界面。电子设备当前使用的摄像头可以是相机应用设置的默认摄像头,电子设备当前使用过的摄像头还可以是上一次关闭相机应用时使用的摄像头。The display content of the display area 30 is a preview display interface of images collected by the camera currently used by the electronic device. The camera currently used by the electronic device may be the default camera set by the camera application, and the camera currently used by the electronic device may also be the camera used when the camera application was closed last time.

闪光灯图标301,可以用于指示闪光灯的工作状态。The flash icon 301 can be used to indicate the working status of the flash.

设置图标302,当检测到作用于设置图标302的用户操作时,响应于该操作,电子设备可显示其他快捷功能,例如调整分辨率、定时拍摄(又可称为延时拍摄,可以控制开启拍照的时间)、拍摄静音、声控拍照、笑脸抓拍(当摄像头检测到笑脸特征时,自动对焦到笑脸)等功能。Setting icon 302, when a user operation on the setting icon 302 is detected, in response to the operation, the electronic device can display other shortcut functions, such as adjusting resolution, timed shooting (also called time-lapse shooting, and can control the start of taking pictures). time), silent shooting, voice-activated photo taking, smile capture (when the camera detects the features of a smiling face, it automatically focuses on the smiling face) and other functions.

模式选择区303,用于提供不同的拍摄模式,根据用户选择的拍摄模式不同,电子设备启用的摄像头以及拍摄参数也不同。可以包括标注模式303A、夜景模式303B、拍照模式303C、录像模式303D以及更多303E。图5b中拍照模式303C的图标被标记,用于提示用户当前的模式为拍照模式。其中,The mode selection area 303 is used to provide different shooting modes. According to the different shooting modes selected by the user, the cameras enabled by the electronic device and the shooting parameters are also different. It can include annotation mode 303A, night scene mode 303B, camera mode 303C, video recording mode 303D and more 303E. In Figure 5b, the icon of the camera mode 303C is marked to remind the user that the current mode is the camera mode. in,

标注模式303A,在该模式下时,当电子设备检测到拍摄图片/视频的用户操作,电子设备获取摄像头当前采集的图像信息,并获取生物特征信息,该生物特征信息与穿戴设备通过传感器检测出的传感器数据(例如心率传感器检测出的心率数据,血压传感器检测出的血压数据)对应,电子设备将生物特征信息与拍摄获取的图像信息进行融合编码,生成带有生物特征信息的图片/视频文件。例如,生物特征信息可以是用户的心率数据、血压数据等信息;也可以是心率正常、血压正常等信息。Annotation mode 303A. In this mode, when the electronic device detects the user operation of taking pictures/videos, the electronic device obtains the image information currently collected by the camera and obtains biometric information. The biometric information and the wearable device detect through the sensor. Corresponding to the sensor data (such as heart rate data detected by the heart rate sensor, blood pressure data detected by the blood pressure sensor), the electronic device fuses and codes the biometric information with the image information obtained by shooting, and generates a picture/video file with biometric information. . For example, biometric information can be the user's heart rate data, blood pressure data and other information; it can also be information such as normal heart rate and normal blood pressure.

可选的,在一些实施例中,若电子设备没有开启蓝牙,当电子设备检测到作用于标注模式303A的用户操作307,响应于该用户操作307,电子设备自动开启蓝牙,并自动搜索可连接的蓝牙设备,根据用户选择建立连接,或者电子设备与曾经建立过连接的蓝牙设备自动建立连接。Optionally, in some embodiments, if the electronic device does not turn on Bluetooth, when the electronic device detects the user operation 307 acting on the annotation mode 303A, in response to the user operation 307, the electronic device automatically turns on Bluetooth and automatically searches for connectable devices. The Bluetooth device establishes a connection according to the user's selection, or the electronic device automatically establishes a connection with the Bluetooth device that has previously established a connection.

可选的,在一些实施例中,电子设备可以同时接收两个用户的穿戴设备的传感器数据或生物特征信息,将两个生物特征信息与拍摄获取的图像信息进行融合编码,在一个图片/视频文件中关联两个用户的生物特征信息。Optionally, in some embodiments, the electronic device can receive sensor data or biometric information from two users' wearable devices at the same time, fuse and encode the two biometric information with the image information obtained by shooting, and compile it into one picture/video. The biometric information of two users is associated in the file.

当检测到作用于标注模式303A的用户操作时,响应于该操作,电子设备的模式选择区303中拍照模式303C的图标不再被标记,而标注模式303A被标记。When a user operation on the marking mode 303A is detected, in response to the operation, the icon of the photographing mode 303C in the mode selection area 303 of the electronic device is no longer marked, but the marking mode 303A is marked.

夜景模式303B,可以提升亮部和暗部的细节呈现能力,控制噪点,并呈现出更多的画面细节。拍照模式303C,适应大部分的拍摄场景,可以根据当前的环境自动调整摄影参数。录像模式303D,用于拍摄一段视频。更多303E,当检测到作用于更多303E的用户操作时,响应于该操作,电子设备可显示其他选择模式,例如全景模式(实现自动拼接,电子设备将连续拍摄的多张照片拼接为一张照片,实现扩大画面视角的效果)、HDR模式(自动连拍欠曝光、正常曝光、过度曝光三张照片、并选取最好的部分合成为一张照片)等等。Night scene mode 303B can improve the detail rendering capabilities of bright and dark parts, control noise, and present more picture details. Photo mode 303C is suitable for most shooting scenarios and can automatically adjust photography parameters according to the current environment. Video mode 303D, used to shoot a video. More 303E, when a user operation acting on More 303E is detected, in response to the operation, the electronic device can display other selection modes, such as panorama mode (to achieve automatic stitching, the electronic device stitches multiple photos taken continuously into one photos to achieve the effect of expanding the viewing angle of the picture), HDR mode (automatic continuous shooting of three photos of underexposure, normal exposure, and overexposure, and selecting the best part to combine into one photo), etc.

当检测到作用于模式选择区303中任一模式的应用图标(例如标注模式303A、夜景模式303B、拍照模式303C、录像模式303D、全景模式、HDR模式等等)的用户操作时,响应于该操作,拍摄设备/电子设备可以进入对应的模式。相应的,所述显示区30显示的图像为当前模式下处理后的图像。When a user operation on the application icon of any mode in the mode selection area 303 (such as annotation mode 303A, night scene mode 303B, camera mode 303C, video recording mode 303D, panorama mode, HDR mode, etc.) is detected, in response to the Operation, the shooting equipment/electronic equipment can enter the corresponding mode. Correspondingly, the image displayed in the display area 30 is the image processed in the current mode.

模式选择区303中的各模式图标不限于虚拟图标,也可以为通过拍摄设备/电子设备上部署的物理按键进行模式的选择,从而使得拍摄设备进入相应的模式。Each mode icon in the mode selection area 303 is not limited to a virtual icon, and can also be a mode selected through a physical button deployed on the shooting device/electronic device, thereby causing the shooting device to enter the corresponding mode.

图库图标304,当检测到作用于图库图标304的用户操作时,响应于该操作,电子设备可进入电子设备的图库,所述图库中可以包括已拍摄的照片和视频。其中,图库图标304可以显示为不同的形式,例如当电子设备保存摄像头当前采集的图像后,图库图标304中显示该图像的缩略图。Gallery icon 304, when a user operation on the gallery icon 304 is detected, in response to the operation, the electronic device can enter the gallery of the electronic device, and the gallery can include photos and videos that have been taken. The gallery icon 304 can be displayed in different forms. For example, after the electronic device saves the image currently collected by the camera, the gallery icon 304 displays a thumbnail of the image.

拍摄图标305,当检测到作用于拍摄图标305的用户操作(例如触控操作、语音操作、手势操作等)时,响应于该操作,电子设备获取显示区30当前显示的图像,并保存在图库中。其中,可以通过针对于图库图标304的用户操作(例如触控操作、手势操作等)进入图库。Shooting icon 305, when a user operation (such as touch operation, voice operation, gesture operation, etc.) on the shooting icon 305 is detected, in response to the operation, the electronic device obtains the image currently displayed in the display area 30 and saves it in the gallery. middle. The gallery can be entered through user operations (such as touch operations, gesture operations, etc.) on the gallery icon 304 .

切换图标306,可以用于对前置摄像头和后置摄像头的切换。其中,前置摄像头的拍摄方向与用户使用的电子设备的屏幕的显示方向相同,后置摄像头的拍摄方向与用户使用的电子设备的屏幕的显示方向相反。若显示区30当前显示后置摄像头采集的图像,当检测到作用于切换图标306的用户操作时,响应于该操作,显示区30显示前置摄像头采集的图像。若显示区30当前显示前置摄像头采集的图像,当检测到作用于切换图标306的用户操作时,响应于该操作,显示区30显示后置摄像头采集的图像。The switching icon 306 can be used to switch between the front camera and the rear camera. The shooting direction of the front camera is the same as the display direction of the screen of the electronic device used by the user, and the shooting direction of the rear camera is opposite to the display direction of the screen of the electronic device used by the user. If the display area 30 currently displays images captured by the rear camera, when a user operation on the switching icon 306 is detected, in response to the operation, the display area 30 displays images captured by the front camera. If the display area 30 currently displays images captured by the front camera, when a user operation on the switching icon 306 is detected, in response to the operation, the display area 30 displays images captured by the rear camera.

如图5c所示,图5c示例性的示出了标注模式303A所对应的应用界面。其中,模式选择区303中智能标注303A的图标被标记,表示当前的模式为标注模式。As shown in Figure 5c, Figure 5c exemplarily shows the application interface corresponding to the annotation mode 303A. Among them, the icon of smart annotation 303A in the mode selection area 303 is marked, indicating that the current mode is the annotation mode.

可选的,如图5c的显示区30还可以显示提示信息,用于提示用户当前电子设备与穿戴设备连接。比如提示区308中显示文本“连接到一个可穿戴设备”,表示当前电子设备已经与一个穿戴设备进行连接,该穿戴设备可以是耳机、手表、手环、眼镜等等。又比如提示区308中显示文本“没有连接到可穿戴设备”,提示用户当前电子设备没有与穿戴设备进行连接。其中连接方式可以是蓝牙连接、WiFi连接等短距离连接方式。Optionally, the display area 30 in Figure 5c can also display prompt information to prompt the user that the current electronic device is connected to the wearable device. For example, the text "Connected to a wearable device" is displayed in the prompt area 308, indicating that the current electronic device has been connected to a wearable device. The wearable device can be headphones, watches, bracelets, glasses, etc. For another example, the text "Not connected to the wearable device" is displayed in the prompt area 308, prompting the user that the current electronic device is not connected to the wearable device. The connection method can be a short-distance connection method such as Bluetooth connection, WiFi connection, etc.

可选的,在一些实施例中,提示区308中的内容可以提示使用该电子设备的用户,使佩戴该穿戴设备的用户在拍摄区域内。例如提示区308中显示文本“请确认佩戴穿戴设备的用户在镜头的拍摄范围内”。Optionally, in some embodiments, the content in the prompt area 308 can prompt the user using the electronic device so that the user wearing the wearable device is within the shooting area. For example, the text "Please confirm that the user wearing the wearable device is within the shooting range of the lens" is displayed in the prompt area 308 .

本申请中,用户操作包括但不限于点击、快捷按键、手势、悬浮触控、语音指令等操作。In this application, user operations include but are not limited to clicks, shortcut keys, gestures, floating touch, voice commands and other operations.

可选的,参考图5d,图5d示出了又一种可能的相机应用提供的用户界面。相机205的应用界面如图5d所示,与图5b不同的是,在应用界面31中包括标注图标310。当电子设备检测到作用于标注图标310的用户操作,响应于该操作,电子设备启动标注功能。这样,可以在模式选择区303中的任意拍摄模式下,开启标注功能。Optionally, refer to Figure 5d, which shows yet another possible user interface provided by a camera application. The application interface of the camera 205 is shown in Figure 5d. The difference from Figure 5b is that the application interface 31 includes an annotation icon 310. When the electronic device detects a user operation on the annotation icon 310, in response to the operation, the electronic device starts the annotation function. In this way, the annotation function can be enabled in any shooting mode in the mode selection area 303.

当电子设备在拍照模式303C下,检测到作用于标注图标310的用户操作,响应于该操作,电子设备在拍摄模式303C下启动标注功能。当电子设备在夜景模式303B下,检测到作用于标注图标310的用户操作,响应于该操作,电子设备在夜景模式303B下启动标注功能。When the electronic device is in the photographing mode 303C, a user operation on the annotation icon 310 is detected, and in response to the operation, the electronic device starts the annotation function in the photographing mode 303C. When the electronic device is in the night scene mode 303B, a user operation on the annotation icon 310 is detected, and in response to the operation, the electronic device starts the annotation function in the night scene mode 303B.

如图5e所示,图5e示例性的示出了启动标注功能后的应用界面。其中,标注图标310被标记,表示当前启动了标注功能。As shown in Figure 5e, Figure 5e exemplarily shows the application interface after starting the annotation function. Among them, the annotation icon 310 is marked, indicating that the annotation function is currently activated.

本申请实施例,不限定通过相机205应用图标启动摄像头。例如还可以通过短信、社交软件的拍摄功能、视频通话等方式启动摄像头,进一步开启标注功能。在开启了标注功能的情况下,电子设备获取带有生物特征信息的图片/视频,并且将带有生物特征信息的图片/视频通过短信息,社交软件,视频通话等方式分享出去。The embodiment of the present application is not limited to starting the camera through the camera 205 application icon. For example, you can also activate the camera through text messages, the shooting function of social software, video calls, etc., to further enable the annotation function. When the annotation function is turned on, the electronic device obtains pictures/videos with biometric information, and shares the pictures/videos with biometric information through short messages, social software, video calls, etc.

方式二,通过第一应用图标,启动摄像头,摄像头的拍摄模式默认为标注模式。Method 2: Start the camera through the first application icon, and the camera's shooting mode defaults to the annotation mode.

其中,“智能标注”仅为示例,还可以为其他名称。如图6a所示,图6a的显示界面202陈列了多个应用图标。其中,显示界面202中包括智能标注212的应用图标。若用户想要启动标注模式,通过用户操作触发智能标注212的应用图标。电子设备响应于用户操作,显示智能标注212的应用界面。Among them, "intelligent annotation" is only an example, and it can also be named by other names. As shown in Figure 6a, the display interface 202 of Figure 6a displays multiple application icons. The display interface 202 includes an application icon of the smart annotation 212 . If the user wants to start the annotation mode, the application icon of the intelligent annotation 212 is triggered through user operation. In response to the user's operation, the electronic device displays the application interface of the smart annotation 212 .

在一些实施例中,若电子设备没有开启蓝牙,当电子设备检测到作用于智能标注212的用户操作,响应于该用户操作,电子设备自动开启蓝牙,自动搜索可连接的蓝牙设备,根据用户选择建立连接,或者电子设备与曾经建立过连接的蓝牙设备自动建立连接。In some embodiments, if the electronic device does not turn on Bluetooth, when the electronic device detects a user operation on the smart annotation 212, in response to the user operation, the electronic device automatically turns on Bluetooth and automatically searches for connectable Bluetooth devices. According to the user's selection A connection is established, or the electronic device automatically establishes a connection with the Bluetooth device that has previously established a connection.

参考图6b,图6b示例性的示出了一种可能的智能标注212提供的应用界面。该应用界面可以包括:显示区40、闪光灯图标401、设置图标402、图库图标403、拍摄图标404、切换图标405,提示区406。Referring to Figure 6b, Figure 6b exemplarily shows a possible application interface provided by the intelligent annotation 212. The application interface may include: a display area 40, a flash icon 401, a settings icon 402, a gallery icon 403, a shooting icon 404, a switching icon 405, and a prompt area 406.

需要说明的是,基于同一发明构思,图6b所示实施例提供的闪光灯图标401、设置图标402、图库图标403、拍摄图标404、切换图标405、提示区406解决问题的原理与上述图5b中实施例相似,因此图6b中闪光灯图标401、设置图标402、图库图标403、拍摄图标404、切换图标405、提示区406的实施可以参见上述图5b中闪光灯图标301、设置图标302、图库图标304、拍摄图标305、切换图标306提示区308的实施对应的相应描述,在此不再赘述。It should be noted that, based on the same inventive concept, the flash icon 401, setting icon 402, gallery icon 403, shooting icon 404, switching icon 405, and prompt area 406 provided in the embodiment shown in Figure 6b solve the problem in the same way as in Figure 5b above. The embodiments are similar, so the implementation of the flash icon 401, setting icon 402, gallery icon 403, shooting icon 404, switching icon 405, and prompt area 406 in Figure 6b can refer to the flash icon 301, setting icon 302, and gallery icon 304 in Figure 5b above. The descriptions corresponding to the implementation of the shooting icon 305 and the switching icon 306 prompt area 308 will not be repeated here.

可选的,在一些实施例中,还可以通过电子设备中的穿戴设备APP,启动标注模式。例如图6a的显示界面202中的应用图标,智能穿戴214。其中,智能穿戴214是对一个、一类或多类穿戴设备进行管理和交互的应用,包括功能管理、权限管理等等。在该智能穿戴214的应用界面中,可以包括多个穿戴设备的功能控件。电子设备与穿戴设备进行配对连接,用户选择进入相应的穿戴设备的用户界面,在该穿戴设备的用户界面中,电子设备检测到针对启动标注模式的用户操作,实现启动标注模式,电子设备可以获取到与该穿戴设备的传感器数据对应的生物特征信息。Optionally, in some embodiments, the annotation mode can also be started through the wearable device APP in the electronic device. For example, the application icon, smart wear 214 in the display interface 202 of Figure 6a. Among them, smart wear 214 is an application for managing and interacting with one, one or more types of wearable devices, including function management, permission management, etc. The application interface of the smart wearable 214 may include functional controls of multiple wearable devices. The electronic device and the wearable device are paired and connected, and the user chooses to enter the user interface of the corresponding wearable device. In the user interface of the wearable device, the electronic device detects the user operation for starting the labeling mode, realizes the startup of the labeling mode, and the electronic device can obtain to the biometric information corresponding to the sensor data of the wearable device.

上述两种方式,介绍了电子设备开启标注模式的不同方式以及相应的显示界面。图5c和图6b都示例性的示出了标注模式下的应用界面。可选的,图7a还提供了一种可能的应用界面。The above two methods introduce different ways for electronic devices to turn on the labeling mode and the corresponding display interfaces. Figures 5c and 6b both exemplarily show the application interface in annotation mode. Optionally, Figure 7a also provides a possible application interface.

如图7a所示,相比于图6b,显示区40还可以包括预览图标407,该预览图标407用于触发电子设备获取生物特征信息。当电子设备检测到针对于预览图标407的用户操作,电子设备向穿戴设备发送请求消息,穿戴设备接收到该请求消息后,向电子设备发送传感器数据或生物特征信息,电子设备根据获取的传感器数据或生物特征信息,在显示屏上实时显示至少部分生物特征信息。具体的,穿戴设备接收到该请求消息后,穿戴设备向电子设备发送传感器数据,电子设备基于接收到的该传感器数据,确定生物特征信息,在显示屏上实时显示至少部分生物特征信息;或者,穿戴设备接收到该请求消息后,穿戴设备基于传感器数据确定生物特征信息,向电子设备发送生物特征信息,电子设备基于接收到的该生物特征信息,在显示屏上实时显示至少部分生物特征信息。As shown in Figure 7a, compared to Figure 6b, the display area 40 may also include a preview icon 407, which is used to trigger the electronic device to obtain biometric information. When the electronic device detects a user operation on the preview icon 407, the electronic device sends a request message to the wearable device. After receiving the request message, the wearable device sends sensor data or biometric information to the electronic device, and the electronic device uses the acquired sensor data to or biometric information, displaying at least part of the biometric information on the display screen in real time. Specifically, after the wearable device receives the request message, the wearable device sends sensor data to the electronic device, and the electronic device determines the biometric information based on the received sensor data, and displays at least part of the biometric information on the display screen in real time; or, After the wearable device receives the request message, the wearable device determines the biometric information based on the sensor data and sends the biometric information to the electronic device. The electronic device displays at least part of the biometric information on the display screen in real time based on the received biometric information.

可选的,在一些实施例中,当电子设备检测到针对于图6a中智能标注212的用户操作,电子设备显示图7a所示界面,并且向穿戴设备发送请求消息,穿戴设备接收到该请求消息后,向电子设备发送传感器数据或生物特征信息。该预览图标407用于触发电子设备基于获取的传感器数据或生物特征信息,在显示屏上实时显示至少部分生物特征信息。Optionally, in some embodiments, when the electronic device detects a user operation for the smart annotation 212 in Figure 6a, the electronic device displays the interface shown in Figure 7a and sends a request message to the wearable device, and the wearable device receives the request. After the message, sensor data or biometric information is sent to the electronic device. The preview icon 407 is used to trigger the electronic device to display at least part of the biometric information on the display screen in real time based on the acquired sensor data or biometric information.

举例来说,如图7b所示,当电子设备检测到针对于预览图标407的用户操作,电子设备显示图7b所示界面,显示区40包括预览区408,该预览区408显示了用户小A的健康状态,例如小A的心率正常;还显示了小A的运动状态,例如小A正在跑步。其中,预览区408还可以包括小A的血压、血糖、运动姿势是否规范、情绪(例如心情愉快、紧张、伤心)等信息。For example, as shown in Figure 7b, when the electronic device detects a user operation on the preview icon 407, the electronic device displays the interface shown in Figure 7b. The display area 40 includes a preview area 408, which displays the user's small A. The health status of Little A, for example, the heart rate of Little A is normal; it also displays the movement status of Little A, for example, Little A is running. Among them, the preview area 408 may also include information such as Little A's blood pressure, blood sugar, whether the exercise posture is normal, and emotions (such as happy, nervous, sad).

可选的,在一种可能的实施例中,电子设备响应于用户操作,可以直接显示图7b的应用界面,无需在图7a中通过预览图标407的触发。当电子设备检测到启动标注模式的用户操作,电子设备向穿戴设备发送请求消息,穿戴设备接收到该请求消息后,向电子设备发送传感器数据或生物特征信息,电子设备根据获取的传感器数据或生物特征信息,在显示屏上实时显示至少部分生物特征信息,如图7b所示。Optionally, in a possible embodiment, the electronic device can directly display the application interface of Figure 7b in response to the user operation without triggering the preview icon 407 in Figure 7a. When the electronic device detects a user operation that starts the annotation mode, the electronic device sends a request message to the wearable device. After receiving the request message, the wearable device sends sensor data or biometric information to the electronic device. The electronic device uses the acquired sensor data or biometric information to Characteristic information, at least part of the biometric information is displayed on the display screen in real time, as shown in Figure 7b.

上述实施例提供了智能标注可能的应用界面,电子设备响应于用户操作307,显示智能标注303A的应用界面(如图5c所示);或者电子设备响应于用户操作,显示智能标注212的应用界面(如图6b所示);或者显示如图7a或图7b的应用界面,等等。The above embodiment provides a possible application interface for smart annotation. The electronic device responds to the user operation 307 and displays the application interface of the smart annotation 303A (as shown in Figure 5c); or the electronic device responds to the user operation and displays the application interface of the intelligent annotation 212. (As shown in Figure 6b); or display the application interface as shown in Figure 7a or Figure 7b, etc.

可选的,在标注模式下或者进入标注模式前,用户可以在电子设备侧对生物特征信息进行配置,根据需要选择获取特定的生物特征信息。Optionally, in the annotation mode or before entering the annotation mode, the user can configure the biometric information on the electronic device side and choose to obtain specific biometric information as needed.

用户点击上述应用界面中的设置图标,电子设备显示设置界面。示例性的,在上述应用界面中,电子设备响应于针对设置图标302(或设置图标402)的用户操作,可以显示如图8a所示的标注模式的设置界面60。The user clicks the setting icon in the above application interface, and the electronic device displays the setting interface. For example, in the above-mentioned application interface, the electronic device may display the setting interface 60 in the annotation mode as shown in FIG. 8a in response to the user operation on the setting icon 302 (or the setting icon 402).

如图8a所示,设置界面60包括设置分辨率、定时拍照、拍照静音、声控拍照、笑脸抓拍等功能。在设置界面60中,该设置界面60包括穿戴设备601这一区域栏,可以对穿戴设备进行具体配置。As shown in Figure 8a, the setting interface 60 includes functions such as setting resolution, timing photography, mute photography, voice-activated photography, and smiling face capture. In the setting interface 60, the setting interface 60 includes an area bar of the wearable device 601, and the wearable device can be specifically configured.

电子设备响应于针对选项602的用户操作,显示如图8b所示的穿戴设备的界面70。该设置界面70包括我的设备701和其他设备702,其中,我的设备701包括电子设备正在连接的设备和连接过的设备,例如包括小A的手表为电子设备正在连接的设备,而小B的手表,表示电子设备和小B的手表曾经建立过连接,但当前没有连接。其他设备702指的是电子设备通过蓝牙搜索到的可连接的,并且没有连接过的设备,例如包括小A的耳机和小C的手表。In response to the user operation for option 602, the electronic device displays the interface 70 of the wearable device as shown in FIG. 8b. The setting interface 70 includes my device 701 and other devices 702 , where my device 701 includes devices that the electronic device is connecting to and devices that have been connected. For example, Little A’s watch is the device that the electronic device is connecting to, and Little B’s watch is the device that the electronic device is connecting to. watch, indicating that the electronic device and Little B’s watch have been connected before, but are not currently connected. Other devices 702 refer to devices that are connectable and have not been connected to the electronic device through Bluetooth search, such as Little A's earphones and Little C's watch.

用户可以点击区域703进入小A的手表的具体配置界面,电子设备响应于针对区域703的用户操作,可以进入如图8c所示的小A的手表的具体配置界面80。如图8c所示,该配置界面80包括多个配置选项,例如心率、血压、血糖、运动状态、情绪状态等。图标801可以描述为开关,当图标801中的圆圈在左边时,表示关闭;当图标801中的圆圈在右边时,表示开启;其中,关闭状态和开启状态可以通过单击操作进行切换。举例来说,如图8c所示,此时心率这一列的图标801的圆圈在左边,表示电子设备当前拍摄的图片/视频的生物特征信息中不包括心率信息,当电子设备检测到针对于图标801的单击操作,图标801的圆圈移动到右边,表示电子设备当前拍摄的图片/视频的生物特征信息中包括心率信息。The user can click area 703 to enter the specific configuration interface of Little A's watch. In response to the user operation on area 703, the electronic device can enter the specific configuration interface 80 of Little A's watch as shown in Figure 8c. As shown in Figure 8c, the configuration interface 80 includes multiple configuration options, such as heart rate, blood pressure, blood sugar, exercise status, emotional status, etc. The icon 801 can be described as a switch. When the circle in the icon 801 is on the left, it means off; when the circle in the icon 801 is on the right, it means on; where, the off state and the on state can be switched by a click operation. For example, as shown in Figure 8c, the circle of the icon 801 in the heart rate column is on the left, indicating that the biometric information of the picture/video currently taken by the electronic device does not include heart rate information. When the electronic device detects that the icon is With the click operation of 801, the circle of the icon 801 moves to the right, indicating that the biometric information of the picture/video currently captured by the electronic device includes heart rate information.

该配置界面80还包括关联面部图像的图标802,电子设备响应于针对图标802的用户操作,获取佩戴小A的手表的用户的面部图像信息,将小A的手表与面部图像信息结合起来。其中该面部图像信息可以是用户上传的图像,用户点击关联面部图像的图标802,上传小A的面部图像,也可以通过点击图标802后,通过电子设备的摄像头获取小A的面部图像,将小A的面部图像与小A的手表关联。The configuration interface 80 also includes an icon 802 associated with a facial image. In response to a user operation on the icon 802, the electronic device acquires the facial image information of the user wearing Little A's watch, and combines Little A's watch with the facial image information. The facial image information may be an image uploaded by the user. The user clicks on the icon 802 associated with the facial image to upload the facial image of Little A. The user may also click the icon 802 to obtain the facial image of Little A through the camera of the electronic device and transfer Little A's facial image to the user. A's facial image is associated with Little A's watch.

如图8d所示,电子设备将小A的手表和面部图像关联成功后,在区域703中显示该面部图像7031。面部图像7031指示了佩戴小A的手表的用户的面部图像。电子设备通过面部识别技术可以在图片中识别出小A。As shown in Figure 8d, after the electronic device successfully associates Little A's watch with the facial image, it displays the facial image 7031 in area 703. The facial image 7031 indicates the facial image of the user wearing Little A's watch. Electronic devices can identify Little A in pictures through facial recognition technology.

可以理解的,当小A的手表再次与电子设备连接时,电子设备可以在图8d中自动显示小A的手表所关联的面部图像7031,即电子设备检测到针对图8a中选项602的用户操作后,直接显示如图8d的界面。可选的,电子设备与小A的手表在再次建立连接之前,当电子设备搜索到小A的手表,电子设备可以自动显示小A的手表所关联的面部图像。It can be understood that when Little A's watch is connected to the electronic device again, the electronic device can automatically display the facial image 7031 associated with Little A's watch in Figure 8d, that is, the electronic device detects the user operation for option 602 in Figure 8a. Afterwards, the interface shown in Figure 8d is directly displayed. Optionally, before the electronic device establishes a connection with Little A's watch again, when the electronic device searches for Little A's watch, the electronic device can automatically display the facial image associated with Little A's watch.

当用户点击图8d中的区域703,电子设备响应于该点击操作,显示如图8c所示的界面80。此时,图标802可以用于更改小A的手表关联的面部图像。电子设备响应于针对图标802的用户操作,将小A的手表与最新接收到的面部图像信息结合起来。When the user clicks on the area 703 in Figure 8d, the electronic device responds to the click operation and displays the interface 80 as shown in Figure 8c. At this time, icon 802 can be used to change the facial image associated with Little A's watch. In response to the user operation on icon 802, the electronic device combines Little A's watch with the latest received facial image information.

可选的,在一些实施例中,图标802还可以用于添加小A的手表关联的面部图像。电子设备响应于针对图标802的用户操作,将小A的手表与接收到的面部图像信息结合起来。不影响之前添加的关联的面部图像,小A的手表可以与多个面部图像信息相结合。Optionally, in some embodiments, icon 802 can also be used to add a facial image associated with Little A's watch. In response to the user operation on icon 802, the electronic device combines Little A's watch with the received facial image information. Without affecting the previously added associated facial images, Xiao A’s watch can be combined with multiple facial image information.

上述实施例描述了电子设备对标注模式的配置过程以及相应的用户界面。在本申请的另一种实现方式中,还可以通过穿戴设备对标注模式进行配置。该穿戴设备是与电子设备建立连接的穿戴设备。The above embodiment describes the configuration process of the annotation mode by the electronic device and the corresponding user interface. In another implementation of the present application, the annotation mode can also be configured through a wearable device. The wearable device is a wearable device connected to an electronic device.

如图9a所示,图9a示例性的示出了穿戴设备的主界面90,主界面90陈列了多个应用图标。其中,主界面90中包括相机901的应用图标。当穿戴设备检测到作用于相机901的应用图标的用户操作,穿戴设备显示相机应用提供的应用界面。As shown in Figure 9a, Figure 9a exemplarily shows the main interface 90 of the wearable device, and the main interface 90 displays multiple application icons. The main interface 90 includes an application icon of the camera 901 . When the wearable device detects a user operation on the application icon of the camera 901, the wearable device displays an application interface provided by the camera application.

参考图9b,图9b示出了一种相机应用提供的应用界面1000。相机901的应用界面1000如图9b所示,该应用界面1000可以包括:标注图标1001、图库图标1002、拍摄图标1003、切换图标1004。其中,图9b所示实施例提供的图库图标1002、拍摄图标1003、切换图标1004解决问题的原理与上述图5b中实施例相似,因此图6b中图库图标1002、拍摄图标1003、切换图标1004的实施可以参见上述图5b中图库图标304、拍摄图标305、切换图标306的实施对应的相应描述,在此不再赘述。Referring to Figure 9b, Figure 9b shows an application interface 1000 provided by a camera application. The application interface 1000 of the camera 901 is shown in Figure 9b. The application interface 1000 may include: annotation icon 1001, gallery icon 1002, shooting icon 1003, and switching icon 1004. Among them, the problem solving principle of the gallery icon 1002, shooting icon 1003, and switching icon 1004 provided by the embodiment shown in Figure 9b is similar to that of the embodiment in Figure 5b. Therefore, the gallery icon 1002, shooting icon 1003, and switching icon 1004 in Figure 6b For implementation, please refer to the corresponding descriptions corresponding to the implementation of the gallery icon 304, the shooting icon 305, and the switching icon 306 in Figure 5b, which will not be described again here.

应用界面1000的显示区的显示内容为电子设备当前使用的摄像头所采集的图像。电子设备当前使用的摄像头可以是相机应用设置的默认摄像头,电子设备当前使用过的摄像头还可以是上一次关闭相机应用时使用的摄像头。The display content of the display area of the application interface 1000 is the image collected by the camera currently used by the electronic device. The camera currently used by the electronic device may be the default camera set by the camera application, and the camera currently used by the electronic device may also be the camera used when the camera application was closed last time.

标注图标1001,指示用户可以启动标注模式,并对标注模式进行配置。当穿戴设备检测到针对于标注图标1001的用户操作,显示如图9c的配置界面。图9c用于对标注模式进行配置,配置的选项包括心率、血压、血糖、运动状态、情绪状态等。图标1005用于对电子设备是否获取心率信息进行标识,如图9c所示,此时图标1005中的圆圈在左边,表示电子设备当前拍摄的图片/视频的生物特征信息中不包括心率信息,当电子设备检测到针对于图标1005的单击操作,图标1005中的圆圈移动到右边,表示电子设备当前拍摄的图片/视频的生物特征信息中包括心率信息。图标1007用于对电子设备是否获取血压信息进行标识,图9c中,图标1007中的圆圈在右边,表示电子设备当前拍摄的图片/视频的生物特征信息中包括血压信息。Annotation icon 1001 indicates that the user can start the annotation mode and configure the annotation mode. When the wearable device detects a user operation on the annotation icon 1001, the configuration interface shown in Figure 9c is displayed. Figure 9c is used to configure the annotation mode. The configuration options include heart rate, blood pressure, blood sugar, exercise status, emotional status, etc. Icon 1005 is used to identify whether the electronic device obtains heart rate information, as shown in Figure 9c. At this time, the circle in icon 1005 is on the left, indicating that the biometric information of the picture/video currently taken by the electronic device does not include heart rate information. The electronic device detects a click operation on the icon 1005, and the circle in the icon 1005 moves to the right, indicating that the biometric information of the picture/video currently captured by the electronic device includes heart rate information. Icon 1007 is used to identify whether the electronic device obtains blood pressure information. In Figure 9c, the circle in icon 1007 is on the right, indicating that the biometric information of the picture/video currently captured by the electronic device includes blood pressure information.

当用户完成配置后,点击确定图标1006。穿戴设备检测到针对于确定图标1006的用户操作,完成对标注模式的配置,并开启标注模式。开启标注模式后,用户可以在应用界面1000上触发拍摄图标1003,以拍摄图片或视频。穿戴设备向电子设备发送传感器数据,一些实施例中,用户在穿戴设备侧触发拍摄,则发送的数据类型以穿戴设备侧的配置为准;用户在电子设备侧触发拍摄,则发送的数据类型以电子设备侧的配置为准。以图9c的配置为例,穿戴设备向电子设备发送血压传感器检测到的血压数据。When the user completes the configuration, click the OK icon 1006. The wearable device detects the user operation on the determined icon 1006, completes the configuration of the annotation mode, and turns on the annotation mode. After turning on the annotation mode, the user can trigger the shooting icon 1003 on the application interface 1000 to capture pictures or videos. The wearable device sends sensor data to the electronic device. In some embodiments, if the user triggers shooting on the wearable device side, the data type sent is subject to the configuration of the wearable device side; if the user triggers shooting on the electronic device side, the data type sent is based on The configuration on the electronic device side shall prevail. Taking the configuration of Figure 9c as an example, the wearable device sends the blood pressure data detected by the blood pressure sensor to the electronic device.

可选的,在一些实施例中,穿戴设备通过一个或多个传感器检测传感器数据,基于穿戴设备侧的配置,向电子设备发送生物特征信息。以图9c的配置为例,穿戴设备向电子设备发送生物特征信息,该生物特征信息与血压数据对应,包括血压信息(例如血压正常)。Optionally, in some embodiments, the wearable device detects sensor data through one or more sensors, and sends biometric information to the electronic device based on the configuration on the side of the wearable device. Taking the configuration of Figure 9c as an example, the wearable device sends biometric information to the electronic device. The biometric information corresponds to the blood pressure data, including blood pressure information (eg, normal blood pressure).

可选的,在一些实施方式中,当穿戴设备检测到针对于标注图标1001的单击操作,直接启动标注模式,穿戴设备根据配置信息,向电子设备发送传感器数据或生物特征信息;当穿戴设备检测到针对于标注图标1001的长按或者双击操作,显示如图9c的配置界面。Optionally, in some embodiments, when the wearable device detects a click operation on the annotation icon 1001, the annotation mode is directly started, and the wearable device sends sensor data or biometric information to the electronic device according to the configuration information; when the wearable device When a long press or double-click operation on the annotation icon 1001 is detected, the configuration interface shown in Figure 9c is displayed.

上述实施例提供了标注模式可能的设置界面,电子设备响应于针对设置图标302(或设置图标402)的用户操作,显示标注模式的设置界面(如图8a所示);或者穿戴设备响应于针对标注图标1001的用户操作,显示标注模式的设置界面(如图9c所示);等等。The above embodiment provides a possible setting interface for the annotation mode. The electronic device responds to the user operation on the setting icon 302 (or the setting icon 402) and displays the setting interface for the annotation mode (as shown in FIG. 8a); or the wearable device responds to the setting interface for the annotation mode. User operation of the annotation icon 1001 displays the setting interface of the annotation mode (as shown in Figure 9c); and so on.

完成配置后,电子设备在标注模式下进行拍照,在如图7b所示的界面中,预览区408的显示内容随着配置的不同,显示内容也会发生相应的改变。举例来说,若用户在如图8c所示的配置界面80中选择开启心率和运动状态,则预览区408的显示内容可以包括心率信息(如心率数据或心率正常)和运动状态信息(如跑步)。After completing the configuration, the electronic device takes pictures in the annotation mode. In the interface shown in Figure 7b, the display content of the preview area 408 will change accordingly depending on the configuration. For example, if the user chooses to turn on heart rate and exercise status in the configuration interface 80 as shown in Figure 8c, the display content of the preview area 408 may include heart rate information (such as heart rate data or normal heart rate) and exercise status information (such as running ).

当电子设备检测到触发拍摄图片的用户操作,电子设备将当下采集的图片信息与生物特征信息融合编码,生成带有生物特征信息的图片,该生物特征信息与穿戴设备的传感器采集到的用户的心率、血压、血糖、运动状态、情绪状态等传感器数据对应。When the electronic device detects a user operation that triggers taking a picture, the electronic device fuses and encodes the currently collected picture information with the biometric information to generate a picture with biometric information. The biometric information is combined with the user's identity collected by the sensor of the wearable device. Corresponds to sensor data such as heart rate, blood pressure, blood sugar, exercise status, and emotional status.

与拍摄图片不同,拍摄视频是在一段时间内的过程。当电子设备检测到触发拍摄视频的用户操作,本申请提供了一种示例性的用户界面。如图10所示,图10示出了电子设备拍摄视频的用户界面45,其中,该用户界面45中的图标411指示了当前的拍摄模式是拍摄视频中。该用户界面45的显示区可以包括计时区域410、预览区408以及标注图标412。其中,计时区域410实时对视频的拍摄长度进行计时。预览区408实时显示用户的健康状态、运动状态、情绪状态等信息,例如显示了用户小A(电子设备连接的穿戴设备的用户)的健康状态,心率正常;还显示了小A的运动状态,例如小A正在跑步。其中,预览区408的显示内容可以根据用户在电子设备侧或穿戴设备侧的配置而显示,预览区408的显示内容可以随着电子设备获取的生物特征信息进行实时更新。Unlike taking pictures, taking videos is a process over a period of time. When the electronic device detects a user operation that triggers video shooting, this application provides an exemplary user interface. As shown in FIG. 10 , FIG. 10 shows a user interface 45 for video shooting by an electronic device, wherein the icon 411 in the user interface 45 indicates that the current shooting mode is video shooting. The display area of the user interface 45 may include a timing area 410, a preview area 408, and annotation icons 412. Among them, the timing area 410 times the shooting length of the video in real time. The preview area 408 displays the user's health status, exercise status, emotional status and other information in real time. For example, it shows the health status of user A (the user of the wearable device connected to the electronic device) and the heart rate is normal; it also displays the exercise status of user A, For example, Little A is running. Among them, the display content of the preview area 408 can be displayed according to the user's configuration on the electronic device side or the wearable device side, and the display content of the preview area 408 can be updated in real time with the biometric information obtained by the electronic device.

标注图标412用于控制标注模式的开启和关闭,其中,标注图标412可以通过显示亮度或颜色等形式指示开启状态和关闭状态。The annotation icon 412 is used to control the opening and closing of the annotation mode, where the annotation icon 412 can indicate the on state and the off state by displaying brightness or color.

举例来说,用户在拍摄一段视频的过程中,当标注图标412为亮状态,表示当前拍摄的模式为标注模式,用户界面45显示预览区408,电子设备将获取的生物特征信息与拍摄的图像帧进行融合编码;当标注图标412为暗状态,表示当前拍摄的模式不是标注模式(如普通模式),用户界面45不显示预览区408,电子设备不将获取的生物特征信息与拍摄的图像帧进行融合编码,或者电子设备不再获取生物特征信息。即用户可以在视频录制的过程中,通过针对标注图标412的用户操作,控制标注模式的开启和关闭。在标注模式开启的状态下,电子设备将连续采集的图片信息与生物特征信息融合编码,生成带有生物特征信息的图像帧,一系列图像帧组合成一段连续的视频。For example, when the user is shooting a video, when the annotation icon 412 is on, it indicates that the current shooting mode is the annotation mode, the user interface 45 displays the preview area 408, and the electronic device will obtain the biometric information and the captured image. The frames are fused and encoded; when the annotation icon 412 is in a dark state, it indicates that the current shooting mode is not an annotation mode (such as a normal mode), the user interface 45 does not display the preview area 408, and the electronic device does not combine the acquired biometric information with the captured image frames. Fusion encoding is performed, or the electronic device no longer captures biometric information. That is, the user can control the opening and closing of the annotation mode through user operations on the annotation icon 412 during the video recording process. When the annotation mode is turned on, the electronic device fuses and encodes the continuously collected picture information and biometric information to generate image frames with biometric information. A series of image frames are combined into a continuous video.

可选的,在一些实施例中,标注图标412可以用于控制预览区408的显示和隐藏,其中,标注图标412可以通过显示亮度或颜色等形式指示显示状态和隐藏状态。在这种实施例中,不管预览区408是显示或隐藏,电子设备都可以获取生物特征信息,并基于获取的生物特征信息,与拍摄的图像帧进行融合编码。Optionally, in some embodiments, the annotation icon 412 can be used to control the display and hiding of the preview area 408, wherein the annotation icon 412 can indicate the display state and the hidden state through display brightness or color. In this embodiment, regardless of whether the preview area 408 is displayed or hidden, the electronic device can obtain the biometric information, and perform fusion encoding with the captured image frame based on the obtained biometric information.

在上述标注模式下,电子设备拍摄图片/视频,生成带有生物特征信息的图片/视频。拍摄完成的图片/视频可以在图库中进行查看。当电子设备检测到针对于图库图标的用户操作,电子设备显示图库的应用界面。In the above-mentioned annotation mode, the electronic device captures pictures/videos and generates pictures/videos with biometric information. The completed pictures/videos can be viewed in the gallery. When the electronic device detects a user operation on the gallery icon, the electronic device displays the application interface of the gallery.

如图11a所示,图11a示例性的示出了图库界面1100,图库界面1100陈列了多张图片。用户点击在标注模式下拍摄的一张图片1101,进入图片查看界面。如图11b所示,图11b示出了一种图片查看界面1200,包括显示区1201、分享图标1202、编辑图标1203、删除图标1204、更多图标1205和标注区域1206。其中,As shown in Figure 11a, Figure 11a exemplarily shows a gallery interface 1100, which displays a plurality of pictures. The user clicks on a picture 1101 taken in the annotation mode to enter the picture viewing interface. As shown in Figure 11b, Figure 11b shows a picture viewing interface 1200, including a display area 1201, a share icon 1202, an edit icon 1203, a delete icon 1204, a more icon 1205 and a mark area 1206. in,

显示区1201显示图片1101。分享图标1202可用于触发启动图片分享功能,将图片1101分享到其他的设备或应用软件中。编辑图标1203可用于触发对图片1101的旋转、修剪、增加滤镜、虚化等编辑功能。删除图标1204可用于触发删除该图片1101。更多图标1205可用于触发打开更多与该图片1101相关的功能。Display area 1201 displays picture 1101. The sharing icon 1202 can be used to trigger the image sharing function to share the image 1101 to other devices or application software. The editing icon 1203 can be used to trigger editing functions such as rotating, trimming, adding filters, blurring, etc. to the picture 1101. Delete icon 1204 can be used to trigger deletion of the picture 1101 . The more icon 1205 may be used to trigger the opening of more functions related to the picture 1101 .

可选的,在一些实施例中,分享图标1202、编辑图标1203、删除图标1204和更多图标1205的显示区域可以统一称为菜单区。该菜单区为可选的。该菜单区可以在该图片查看界面1200中隐藏,例如,用户单击显示区1201可以隐藏该菜单区,再次单击显示区1201可以显示该菜单区,本申请不作限制。Optionally, in some embodiments, the display areas of the share icon 1202, the edit icon 1203, the delete icon 1204 and the more icons 1205 may be collectively referred to as the menu area. This menu area is optional. The menu area can be hidden in the picture viewing interface 1200. For example, the user clicks the display area 1201 to hide the menu area, and clicks the display area 1201 again to display the menu area, which is not limited by this application.

标注区域1206显示图片1101的生物特征信息。该标注区域1206显示的文本内容包括但不限于心率、血压、血糖、运动状态、情绪状态等相关描述。举例来说,该标注区域1206显示的文本内容可以是“小A在跑步”,也可以是“小A的心率正常,运动状态为跑步,情绪状态为愉快”。该标注区域1206显示的文本内容也可以包括对于用户运动姿势的评价,例如姿势规范、姿势不规范等;也可以包括对于用户的建议,例如用户心情指数较低,希望每天都要开心一点哦;还可以根据用户的状态进行相应的推送,例如用户跑步姿势不规范,电子设备通过网络搜索正确跑步姿势的图片或视频,建议用户观看相关的学习视频或者图片资料等等。本申请对此不作限制。可以理解的,该标注区域1206可以在任意位置、以任意形式显示在图片查看界面1200中。Annotation area 1206 displays the biometric information of picture 1101 . The text content displayed in the annotation area 1206 includes but is not limited to descriptions related to heart rate, blood pressure, blood sugar, exercise status, emotional state, etc. For example, the text content displayed in the annotation area 1206 may be "Little A is running" or "Little A's heart rate is normal, the exercise state is running, and the emotional state is happy." The text content displayed in the annotation area 1206 may also include evaluations of the user's exercise postures, such as standardized postures, irregular postures, etc.; it may also include suggestions for the user, such as the user's mood index is low and he hopes to be happy every day; Corresponding push can also be made based on the user's status. For example, if the user's running posture is irregular, the electronic device searches for pictures or videos of correct running posture through the Internet, and the user is recommended to watch relevant learning videos or picture materials, etc. This application does not limit this. It can be understood that the annotation area 1206 can be displayed in the picture viewing interface 1200 at any position and in any form.

用户可以通过更多图标1205查看图片1101的详细信息。如图11c所示,当电子设备检测到针对于更多图标1205的用户操作,显示用户界面1300。图11c中的用户界面1300示例性的显示了小A的详细信息,包括例如血压正常、血糖正常、心率正常、运动状态为跑步、情绪状态为愉快、地理状态为某某公园等信息,又例如血压数据、血糖数据、心率数据、心情指数等具体的数值信息。The user can view the detailed information of the picture 1101 through the more icon 1205. As shown in Figure 11c, when the electronic device detects a user operation on the more icon 1205, the user interface 1300 is displayed. The user interface 1300 in Figure 11c exemplarily displays the detailed information of Little A, including information such as normal blood pressure, normal blood sugar, normal heart rate, running status as running, emotional status as happy, geographical status as a certain park, and other information. For example, Specific numerical information such as blood pressure data, blood sugar data, heart rate data, mood index, etc.

在一些实施例中,图12示例性的示出了又一种图库界面1400。如图12所示,该图库界面1400针对不同类型的图片划分出了不同的图片集,划分的方式可以根据图片的生物特征信息进行划分。例如图12中包括智能标注的图片集,该图片集中的图片/视频均带有生物特征信息;包括以人物区分出的图片集,例如小A的图片集和小B的图片集,小A的图片集中均为小A的图片/视频,小B的图片集中均为小B的图片/视频;包括以运动状态区分出的图片集,例如跑步的图片集和打羽毛球的图片集。可选的,还可以包括以情绪状态区分出的图片集,例如愉快的图片集、悲伤的图片集等。这样,用户可以以生物特征作为区分,选择想要查看的图片集。In some embodiments, FIG. 12 illustrates yet another gallery interface 1400. As shown in Figure 12, the gallery interface 1400 divides different picture sets for different types of pictures, and the division method can be based on the biometric information of the pictures. For example, Figure 12 includes an intelligently annotated picture set, and the pictures/videos in this picture set all contain biometric information; it includes a picture set distinguished by people, such as Little A's picture set, Little B's picture set, Little A's The picture set is all pictures/videos of Little A, and the picture set of Little B is all pictures/videos of Little B; it includes picture sets distinguished by sports status, such as a picture set of running and a picture set of playing badminton. Optionally, it may also include picture sets distinguished by emotional states, such as happy picture sets, sad picture sets, etc. In this way, users can use biometrics as a distinction to select the collection of pictures they want to view.

在一些实施例中,图13a示例性的示出了又一种图片查看界面1201。如图13a所示,图片查看界面1201的显示区显示图片1101。相比于图片查看界面1200,图片查看界面1201中不包括标注区域,但包括光标1210。该光标1210提示用户可选择查看图片的生物特征信息。如图13a和图13b所示,当电子设备检测到作用于光标1210的用户操作,显示该图片1101的标注区域1211,该标注区域1211中的文本内容可以包括至少部分生物特征信息,例如运动状态、情绪状态、健康状态等,图13a中“小A在跑步”指示了小A的运动状态。In some embodiments, Figure 13a exemplarily shows yet another picture viewing interface 1201. As shown in Figure 13a, the display area of the picture viewing interface 1201 displays a picture 1101. Compared with the picture viewing interface 1200, the picture viewing interface 1201 does not include the annotation area, but includes the cursor 1210. The cursor 1210 prompts the user to optionally view the biometric information of the image. As shown in Figures 13a and 13b, when the electronic device detects a user operation on the cursor 1210, the annotation area 1211 of the picture 1101 is displayed. The text content in the annotation area 1211 may include at least part of the biometric information, such as motion status. , emotional state, health state, etc. “Little A is running” in Figure 13a indicates the motion state of Little A.

其中光标1210的显示位置在小A的附近,指示该光标1210代表的生物特征信息为小A的信息。标注区域1211的显示位置在小A的附近,指示该标注区域1211中的文本内容描述的人物为小A。当图片中包括两个或两个以上的人物时,这种方式可以准确的显示出该生物特征信息所描述的具体人物。The display position of the cursor 1210 is near the small A, indicating that the biometric information represented by the cursor 1210 is the information of the small A. The display position of the annotation area 1211 is near Little A, indicating that the character described by the text content in the annotation area 1211 is Little A. When the picture includes two or more people, this method can accurately display the specific people described by the biometric information.

可选的,光标1210可以在该图片查看界面1201中隐藏。用户可以通过单击图片1101中小A的显示区域,查看图片1101中小A的生物特征信息,再次点击小A的显示区域,可以隐藏小A的生物特征信息,本申请不作限制。Optionally, the cursor 1210 can be hidden in the picture viewing interface 1201. The user can view the biometric information of Little A in Picture 1101 by clicking the display area of Little A in Picture 1101, and click the display area of Little A again to hide Little A's biometric information, which is not limited by this application.

如图14a所示,图14a中的显示区1201中显示的图片包括两个人物,标注区域1206中包括了两个用户的生物特征信息(小A在跑步,小B在跑步),也即是说,电子设备可以同时接收两个用户的穿戴设备的传感器数据或生物特征信息,在一张图片中显示两个用户的生物特征信息。As shown in Figure 14a, the picture displayed in the display area 1201 in Figure 14a includes two people, and the annotation area 1206 includes the biometric information of the two users (Little A is running, Little B is running), that is, It is said that the electronic device can receive sensor data or biometric information from two users' wearable devices at the same time, and display the biometric information of the two users in one picture.

在一些实施例中,生物特征信息可以显示在人物的附近。如图14b所示,生物特征信息“小A在跑步”显示在衣服为12号的人物附近,而生物特征信息“小B在跑步”显示在衣服为8号的人物附近。若穿戴设备与面部图像进行了关联,电子设备可以通过面部识别技术,根据面部图像信息识别图像中的用户,将穿戴设备对应的用户与图像中的人物进行匹配,将生物特征信息显示在图像中对应的人物的附近。In some embodiments, biometric information may be displayed in proximity to the person. As shown in Figure 14b, the biometric information "Little A is running" is displayed near the person wearing No. 12 clothes, while the biometric information "Little B is running" is displayed near the person wearing No. 8 clothes. If the wearable device is associated with the facial image, the electronic device can use facial recognition technology to identify the user in the image based on the facial image information, match the user corresponding to the wearable device with the person in the image, and display the biometric information in the image. near the corresponding person.

上述实施例描述了电子设备中的图片查看界面,接下来,对查看带有生物特征信息的视频的应用界面进行介绍。The above embodiment describes a picture viewing interface in an electronic device. Next, an application interface for viewing videos with biometric information is introduced.

如图15a所示,图15a示例性的示出了一种视频查看界面1500。在该视频查看界面1500中包括一个或多个视频,其中,每个视频的标题可以是电子设备根据视频的生物特征信息而自动命名的。例如小A跑步指示了该视频中的用户为小A,小A的运动状态为跑步。电子设备检测到针对于视频“小A跑步”的用户操作,对“小A跑步”的视频进行播放。As shown in Figure 15a, Figure 15a exemplarily shows a video viewing interface 1500. The video viewing interface 1500 includes one or more videos, where the title of each video can be automatically named by the electronic device based on the biometric information of the video. For example, Little A running indicates that the user in the video is Little A, and Little A's motion state is running. The electronic device detects a user operation on the video "Little A running" and plays the video of "Little A running".

如图15b所示,图15b示例性的示出了一种视频播放界面1600。该视频播放界面1600包括进度条1601,用于指示视频播放的进度。视频的标题“小A跑步”指示了该视频中用户的运动状态,其中视频的标题还可以包括用户的健康状态、情绪状态等信息。As shown in Figure 15b, Figure 15b illustrates a video playback interface 1600. The video playback interface 1600 includes a progress bar 1601 for indicating the progress of video playback. The title of the video "Little A is running" indicates the user's motion status in the video. The title of the video may also include the user's health status, emotional status and other information.

在一些实施例中,在视频播放的过程中视频播放界面1600实时显示至少部分生物特征信息。由于一段视频是由多个图像帧组成。每一个图像帧都具有生物特征信息,根据播放的进度,电子设备可以实时显示每个图像帧的至少部分生物特征信息。如图16a和图16b所示,相比于图15b,图16a和图16b还包括标注区域1603和标注区域1604,该标注区域1603和标注区域1604中的文本内容可以包括用户的健康状态、运动状态、情绪状态等相关描述;也可以包括对于用户运动姿势的评价,例如姿势规范、姿势不规范等;也可以包括对于用户的建议,例如用户心情指数较低,希望每天都要开心一点哦;还可以根据用户的状态进行相应的推送,例如用户跑步姿势不规范,建议观看以下链接的视频学习;等等。In some embodiments, the video playback interface 1600 displays at least part of the biometric information in real time during video playback. Because a video is composed of multiple image frames. Each image frame has biometric information, and according to the playback progress, the electronic device can display at least part of the biometric information of each image frame in real time. As shown in Figures 16a and 16b, compared to Figure 15b, Figures 16a and 16b also include annotation areas 1603 and annotation areas 1604. The text content in the annotation areas 1603 and 1604 can include the user's health status, exercise Related descriptions such as status and emotional state; it can also include evaluation of the user's movement postures, such as standardized postures, irregular postures, etc.; it can also include suggestions for the user, such as the user's mood index is low and he hopes to be happier every day; Corresponding push can also be made based on the user's status. For example, if the user's running posture is irregular, it is recommended to watch the video learning at the following link; etc.

在图16a和图16b中可以看出,在同一视频中,标注区域1603和标注区域1604中的内容可以随着视频播放进度的改变而改变。即视频播放界面1600可以实时显示至少部分生物特征信息。As can be seen in Figures 16a and 16b, in the same video, the content in the annotation area 1603 and the annotation area 1604 can change as the video playback progress changes. That is, the video playback interface 1600 can display at least part of the biometric information in real time.

在一些实施例中,视频播放界面中实时显示的至少部分生物特征信息为生物特征信息的部分内容。若用户想要查看完整的生物特征信息,可以通过暂停查看详细信息。如图17a所示,在图17a中,进度条1605当前指示了暂停状态(暂停在1分41秒的时刻),当电子设备检测到针对于更多图标1205的用户操作,显示当前图像帧(1分41秒的时刻的图像帧)的完整生物特征信息,如图17b所示。图17b中的详细信息即为图17a中的视频在1分41秒的图像帧的完整的生物特征信息。In some embodiments, at least part of the biometric information displayed in real time in the video playback interface is part of the biometric information. If the user wants to view the complete biometric information, they can view the detailed information by pausing. As shown in Figure 17a, in Figure 17a, the progress bar 1605 currently indicates a paused state (paused at a time of 1 minute and 41 seconds). When the electronic device detects a user operation for the more icon 1205, the current image frame is displayed ( The complete biometric information of the image frame at 1 minute and 41 seconds) is shown in Figure 17b. The detailed information in Figure 17b is the complete biometric information of the image frame of the video in Figure 17a at 1 minute and 41 seconds.

在一些实施例中,生物特征信息可以实时显示在人物的附近。如图18a所示,图18a中的视频播放界面1600中播放的视频为“小A和小B跑步”的视频,包括两个人物,并且包括了两个用户的生物特征信息。其中,生物特征信息“小A姿势规范”显示在衣服为12号的人物附近,而生物特征信息“小B姿势规范”显示在衣服为8号的人物附近。若穿戴设备与面部图像进行了关联,电子设备可以通过面部识别技术,根据面部图像信息识别图像中的用户,将穿戴设备对应的用户与图像中的人物进行匹配,将生物特征信息显示在图像中对应的人物的附近。In some embodiments, biometric information can be displayed in real time in the vicinity of the person. As shown in Figure 18a, the video played in the video playback interface 1600 in Figure 18a is a video of "Little A and Little B running", including two characters, and includes the biometric information of the two users. Among them, the biometric information "Little A posture specification" is displayed near the person wearing size 12 clothes, while the biometric information "Little B posture specification" is displayed near the person wearing size 8 clothing. If the wearable device is associated with the facial image, the electronic device can use facial recognition technology to identify the user in the image based on the facial image information, match the user corresponding to the wearable device with the person in the image, and display the biometric information in the image. near the corresponding person.

在图16a和图16b中可以看出,在同一视频中,区域1603和区域1604中的显示内容可以随着视频播放进度的改变而改变。即视频播放界面1600可以在多用户的情况下实时显示生物特征信息。As can be seen in Figures 16a and 16b, in the same video, the display content in area 1603 and area 1604 can change as the video playback progress changes. That is, the video playback interface 1600 can display biometric information in real time in the case of multiple users.

前述介绍了本申请中所涉及的显示界面和方法流程,可以理解的是,前述涉及到生物特征信息和图片/消息进行关联的内容都依赖于将生物特征信息与图片/视频信息进行融合编码,从而得到相应的带有生物特征信息的新的图片/视频。下面对本申请实施例涉及的将对生物特征信息与图片/视频信息进行融合编码,生成带有生物特征信息的图片/视频文件的具体技术实现和原理进行介绍。The foregoing has introduced the display interface and method process involved in this application. It can be understood that the foregoing content involving the association of biometric information and pictures/messages relies on the fusion and encoding of biometric information and picture/video information. Thus, corresponding new pictures/videos with biometric information are obtained. The following is an introduction to the specific technical implementation and principles involved in the embodiments of the present application to fuse and encode biometric information and picture/video information to generate picture/video files with biometric information.

(1)带有生物特征信息的图片文件格式。(1) Picture file format with biometric information.

本申请实施例提供了一种带有生物特征信息的图片文件格式。电子设备将生物特征信息与图片信息进行融合编码,生成为该图片文件格式。如图19a所示,图19a示例性的示出了一种带有生物特征信息的图片文件格式。该图片文件格式的基本数据结构包括两大类型:“段”和经过压缩编码的图像数据。“段”包括标识图像开始(start of image,SOI)的字段、图像识别信息(例如APP1、APP2等)的字段、定义量化表(define quantization table,DQT)的字段、定义霍夫曼表(define huffman table,DHT)的字段、图像帧开始(start offrame,SOF)的字段、扫描开始(start of scan,SOS)的字段、标识图像结束(end of image,EDI)的字段等。The embodiment of the present application provides a picture file format with biometric information. The electronic device fuses and encodes the biometric information and picture information to generate the picture file format. As shown in Figure 19a, Figure 19a exemplarily shows a picture file format with biometric information. The basic data structure of this picture file format includes two major types: "segments" and compressed and encoded image data. "Segment" includes fields that identify the start of image (SOI), fields that identify image identification information (such as APP1, APP2, etc.), fields that define quantization tables (DQT), fields that define Huffman tables (define huffman table, DHT) field, image frame start (start of frame, SOF) field, scan start (start of scan, SOS) field, identifying the end of image (end of image, EDI) field, etc.

其中,图像识别信息的字段可以有一段或多段,例如APP1、APP2等,每个图像识别信息的字段定义了图像的属性信息。其中,图像的属性信息包括拍摄时的光圈、快门、日期时间等各种与当时摄影条件相关的讯息,如相机品牌型号、色彩编码、拍摄时录制的声音以及全球定位系统(GPS)等信息。Among them, the field of the image recognition information may have one or more segments, such as APP1, APP2, etc., and each field of the image recognition information defines the attribute information of the image. Among them, the attribute information of the image includes aperture, shutter, date and time when shooting and other information related to the shooting conditions at that time, such as camera brand model, color coding, sound recorded during shooting, global positioning system (GPS) and other information.

具体的,APP1字段中包括段标识、段字符、段长度、以及标记图像文件格式(tagimage file format,TIFF)的数据。该TIFF数据即包括上述属性信息。其中,一个TIFF文件可以包含多个图像,每个图像都有自己的图像文件目录(image file director,IFD)和一系列标记,并且可以采用多种压缩算法。Specifically, the APP1 field includes segment identifier, segment character, segment length, and tagimage file format (TIFF) data. The TIFF data includes the above attribute information. Among them, a TIFF file can contain multiple images, each image has its own image file director (IFD) and a series of tags, and can use multiple compression algorithms.

以IFD0为例,包括多个数据字段(例如DE1、DE2等),每一个数据字段都有一个标识tag,不同的tag指示了不同的属性信息。例如,DE1的字段可以指示图像的拍摄时间,DE2的字段可以指示相机型号,Tag=0x8825的字段可以指示图像的GPS信息,Tag=0x8769的字段可以指示图像的生物特征信息(运动姿态、心率、血压等)。Taking IFD0 as an example, it includes multiple data fields (such as DE1, DE2, etc.). Each data field has an identification tag, and different tags indicate different attribute information. For example, the field of DE1 can indicate the shooting time of the image, the field of DE2 can indicate the camera model, the field of Tag=0x8825 can indicate the GPS information of the image, and the field of Tag=0x8769 can indicate the biometric information of the image (motion posture, heart rate, blood pressure, etc.).

示例性的,在Tag=0x8769的字段中,定义0x00–0x7F的字段表示运动姿态,则该字段中最多可以包括128种运动姿态,例如0x00表示跑步、0x01表示走路、0x02表示游泳等等;0x80–0x9F的字段表示生命体征,则该字段中最多可以包括32种生命体征,例如0x80表示心率、0x81表示血压、0x82表示血糖等等;0xA0–0xAF的字段表示个人基本信息,则该字段中最多可以包括16种个人基本信息,例如0xA0表示身高、0xA1表示年龄、0xA2表示性别等等。For example, in the field of Tag=0x8769, the fields defined as 0x00-0x7F represent sports postures, and this field can include up to 128 sports postures, for example, 0x00 represents running, 0x01 represents walking, 0x02 represents swimming, etc.; 0x80 – The field 0x9F represents vital signs, and this field can include up to 32 vital signs, such as 0x80 represents heart rate, 0x81 represents blood pressure, 0x82 represents blood sugar, etc.; the field 0xA0–0xAF represents basic personal information, so this field can contain up to It can include 16 kinds of basic personal information, such as 0xA0 indicating height, 0xA1 indicating age, 0xA2 indicating gender, etc.

若电子设备获取到的传感器数据或生物特征信息表示用户正在跑步,那么在指示图像的生物特征信息的字段中,写入0x00字段;若电子设备获取到的传感器数据或生物特征信息表示用户的心率为60次/分,那么在指示图像的生物特征信息的字段中,写入0x800x3C字段(0x3C为60的十六进制);等等。If the sensor data or biometric information obtained by the electronic device indicates that the user is running, then in the field indicating the biometric information of the image, write the 0x00 field; if the sensor data or biometric information obtained by the electronic device indicates the user's heart rate is 60 times/minute, then in the field indicating the biometric information of the image, write the 0x800x3C field (0x3C is the hexadecimal notation of 60); and so on.

在一些实施例中,该图片文件格式中的IFD中,还包括有身份信息、场景信息等字段,身份信息包括穿戴设备的设备名称、设备账号(例如华为账号)、自定义用户名等;场景信息包括电子设备通过识别图像中的场景、以及拍摄图片时的地理位置信息,综合确定出图片中的场景,例如公园、酒吧、湖边、博物馆等。In some embodiments, the IFD in the image file format also includes fields such as identity information and scene information. The identity information includes the device name of the wearable device, device account (such as Huawei account), custom user name, etc.; scene The information includes the electronic device identifying the scene in the image and the geographical location information when the picture was taken, and comprehensively determining the scene in the picture, such as a park, bar, lakeside, museum, etc.

可以理解的,图19a示出的图片格式是本申请提供的一种示例性的图片格式,其中图片格式中生物特征信息字段的位置本申请不作限制。It can be understood that the picture format shown in Figure 19a is an exemplary picture format provided by this application, and the position of the biometric information field in the picture format is not limited by this application.

(2)带有生物特征信息的视频帧格式。(2) Video frame format with biometric information.

本申请实施例还提供了一种带有生物特征信息的视频帧格式。一段完整的视频是由多个视频帧组成的,一个视频帧对应一张图片。电子设备将生物特征信息与视频帧信息进行融合编码,生成为该视频帧格式。如图19b所示,图19b示例性的示出了一种带有生物特征信息的视频帧格式。该视频帧格式包括补充增强信息(supplemental enhancementinformation,SEI)、序列参数集(sequence parameter sset,SPS)、图像参数集(pictureparameter set,PPS)和压缩编码后的视频数据序列(VCL数据)。其中,SPS中保存了一组编码视频序列(coded video sequence)的全局参数。其中编码视频序列即原始视频的一帧的像素数据经过编码之后的结构组成的序列。而每一帧的编码后数据所依赖的参数保存于PPS中。The embodiment of the present application also provides a video frame format with biometric information. A complete video is composed of multiple video frames, and one video frame corresponds to one picture. The electronic device fuses and encodes the biometric information and the video frame information to generate the video frame format. As shown in Figure 19b, Figure 19b exemplarily shows a video frame format with biometric information. The video frame format includes supplemental enhancement information (SEI), sequence parameter set (SPS), picture parameter set (PPS), and compressed and encoded video data sequence (VCL data). Among them, the SPS stores a set of global parameters of the coded video sequence. The encoded video sequence is a sequence composed of the encoded structure of one frame of pixel data of the original video. The parameters on which the encoded data of each frame depends are stored in PPS.

SEI属于码流范畴,它提供了向视频码流中加入额外信息的方法。在视频内容的生成和传输过程中,可以插入SEI信息。这些插入的信息,和其他视频内容一同经过传输链路到达电子设备。其中,SEI中包括网络提取层单元(network abstraction layer unit,NAL)类型、SEI类型、SEI长度等字段。SEI belongs to the category of code streams, which provides a method to add additional information to the video code stream. During the generation and transmission of video content, SEI information can be inserted. This inserted information, together with other video content, reaches the electronic device through the transmission link. Among them, the SEI includes fields such as network abstraction layer unit (NAL) type, SEI type, and SEI length.

SEI中还包括指示生物特征信息的字段,生物特征信息包括运动姿态、心率、血压等。示例性的,定义0x00–0x7F的字段表示运动姿态,则该字段中最多可以包括128种运动姿态,例如0x00表示跑步、0x01表示走路、0x02表示游泳等等;0x80–0x9F的字段表示生命体征,则该字段中最多可以包括32种生命体征,例如0x80表示心率、0x81表示血压、0x82表示血糖等等;0xA0–0xAF的字段表示个人基本信息,则该字段中最多可以包括16种个人基本信息,例如0xA0表示身高、0xA1表示年龄、0xA2表示性别等等。The SEI also includes fields indicating biometric information. Biometric information includes movement posture, heart rate, blood pressure, etc. For example, if the fields 0x00–0x7F are defined to represent sports postures, then this field can include up to 128 sports postures, such as 0x00 represents running, 0x01 represents walking, 0x02 represents swimming, etc.; the fields 0x80–0x9F represent vital signs, Then this field can include up to 32 kinds of vital signs, such as 0x80 means heart rate, 0x81 means blood pressure, 0x82 means blood sugar, etc.; the field 0xA0–0xAF means basic personal information, then this field can include up to 16 kinds of personal basic information. For example, 0xA0 represents height, 0xA1 represents age, 0xA2 represents gender, etc.

若电子设备获取到的传感器数据或生物特征信息表示用户正在跑步,那么在指示图像的生物特征信息的字段中,写入0x00字段;若电子设备获取到的传感器数据或生物特征信息表示用户的心率为60次/分,那么在指示图像的生物特征信息的字段中,写入0x800x3C字段(0x3C为60的十六进制);等等。If the sensor data or biometric information obtained by the electronic device indicates that the user is running, then in the field indicating the biometric information of the image, write the 0x00 field; if the sensor data or biometric information obtained by the electronic device indicates the user's heart rate is 60 times/minute, then in the field indicating the biometric information of the image, write the 0x800x3C field (0x3C is the hexadecimal notation of 60); and so on.

在一些实施例中,SEI中还包括有身份信息、场景信息等字段,身份信息包括穿戴设备的设备名称、设备账号(例如华为账号)、自定义用户名等;场景信息包括电子设备通过识别图像中的场景、以及拍摄图片时的地理位置信息,综合确定出图片中的场景,例如公园、酒吧、湖边、博物馆等。In some embodiments, the SEI also includes fields such as identity information and scene information. The identity information includes the device name of the wearable device, device account (such as Huawei account), customized user name, etc.; the scene information includes the electronic device through recognition of the image. The scene in the picture and the geographical location information when the picture was taken are comprehensively determined to determine the scene in the picture, such as a park, bar, lakeside, museum, etc.

可以理解的,图19b示出的视频帧格式是本申请提供的一种示例性的视频帧格式,其中视频帧格式中生物特征信息字段的位置本申请不作限制。It can be understood that the video frame format shown in Figure 19b is an exemplary video frame format provided by this application, and the position of the biometric information field in the video frame format is not limited by this application.

可以理解的是,前文中所提及的实施例、方法流程以及相关技术原理等可以有机的进行组合,从而得到其他新的实施例,本申请对此不进行限定。It can be understood that the embodiments, method flows, and related technical principles mentioned above can be organically combined to obtain other new embodiments, which are not limited in this application.

基于上述的技术原理以及图3所示的特征标注系统,下面结合示例首先介绍本申请提供的针对图片进行拍摄的方法流程。请参见图20a,图20a示出了一种针对图片进行拍摄的方法流程图。其中,该方法流程图中涉及的设备包括有穿戴设备和拍摄设备。其中,拍摄设备包括具有拍摄功能的电子设备100,穿戴设备示例性的包括穿戴设备201、穿戴设备202,还可以包括更多设备。该方法包括:Based on the above technical principles and the feature annotation system shown in Figure 3, the method and process of photographing pictures provided by this application will be first introduced below with examples. Please refer to Figure 20a. Figure 20a shows a flow chart of a method for photographing pictures. Among them, the devices involved in the flow chart of this method include wearable devices and shooting devices. The photographing device includes an electronic device 100 with a photographing function, and the wearable device includes, for example, a wearable device 201 and a wearable device 202, and may also include more devices. The method includes:

步骤S101:穿戴设备和拍摄设备建立连接。Step S101: The wearable device and the shooting device establish a connection.

穿戴设备和拍摄设备建立连接,连接的方式不限于蓝牙(blue tooth,BT),近场通信(near field communication,NFC),无线保真(wireless fidelity,WiFi)、WiFi直连、网络等无线通信方式。在本申请实施例中,使用蓝牙的配对将作为示例被描述。The wearable device and the shooting device establish a connection. The connection method is not limited to Bluetooth (blue tooth, BT), near field communication (NFC), wireless fidelity (wireless fidelity, WiFi), WiFi direct connection, network and other wireless communications. Way. In this application embodiment, pairing using Bluetooth will be described as an example.

可选的,建立连接的过程中,穿戴设备和拍摄设备通过蓝牙互相获取对方的连接信息(例如硬件信息,接口信息,身份信息等等)。拍摄设备可以在开启拍摄功能后,获取穿戴设备的传感器数据,穿戴设备可以同步拍摄设备的部分功能,例如穿戴设备可以同步输出拍摄设备中的通知提醒(例如来电提醒、新消息提醒等),穿戴设备可以主动触发拍摄设备开启拍摄功能,穿戴设备可以查看拍摄设备中的图片/视频文件等等。Optionally, during the process of establishing a connection, the wearable device and the shooting device obtain each other's connection information (such as hardware information, interface information, identity information, etc.) through Bluetooth. The shooting device can obtain the sensor data of the wearable device after turning on the shooting function. The wearable device can synchronize some functions of the shooting device. For example, the wearable device can synchronize the output of notification reminders in the shooting device (such as incoming call reminders, new message reminders, etc.). The device can actively trigger the shooting device to turn on the shooting function, and the wearable device can view the pictures/video files in the shooting device, etc.

可选的,在一些实施例中,当拍摄设备检测到开启标注模式的用户操作时,拍摄设备自动开启蓝牙,与穿戴设备自动建立蓝牙连接。Optionally, in some embodiments, when the photographing device detects a user operation to turn on the annotation mode, the photographing device automatically turns on Bluetooth and automatically establishes a Bluetooth connection with the wearable device.

步骤S102:拍摄设备检测到触发拍摄图片功能的用户操作。Step S102: The shooting device detects a user operation that triggers the picture shooting function.

拍摄设备检测到触发拍摄图片功能的用户操作,触发拍摄图片功能,获取摄像头当前采集的图片信息。该用户操作可以是触控操作、语音操作、悬浮手势操作等等,在此不作限定。本申请中,拍摄设备在标注模式下检测到触发拍摄图片功能的用户操作,具体内容可以参考前述UI实施例。例如用户可以通过针对图5c中的图标305,或图6b中的图标404的用户操作,触发拍摄设备拍摄图片,拍摄设备检测到该用户操作,触发拍摄图片功能。The shooting device detects the user operation that triggers the picture shooting function, triggers the picture shooting function, and obtains the picture information currently collected by the camera. The user operation may be a touch operation, a voice operation, a floating gesture operation, etc., which are not limited here. In this application, the shooting device detects a user operation that triggers the picture shooting function in the annotation mode. For specific content, please refer to the aforementioned UI embodiment. For example, the user can trigger the photographing device to capture a picture by performing a user operation on the icon 305 in Figure 5c or the icon 404 in Figure 6b. The photographing device detects the user operation and triggers the picture capturing function.

可选的,在一些实施例中,该用户操作可以是针对于穿戴设备的用户操作,穿戴设备检测到触发拍摄图片功能的用户操作,通过蓝牙发送到拍摄设备,拍摄设备检测到该用户操作,触发拍摄图片功能。参考图9a,用户通过点击图9a中的应用图标901启动相机应用,通过点击图9b中的图标1003触发拍摄图片功能,穿戴设备通过蓝牙将拍摄图片指令发送到拍摄设备,从而拍摄设备触发拍照,具体内容此处不再赘述。本申请中,触发拍摄图片功能的用户操作也可称为第一操作。Optionally, in some embodiments, the user operation may be a user operation for a wearable device. The wearable device detects the user operation that triggers the picture shooting function and sends it to the shooting device via Bluetooth. The shooting device detects the user operation. Trigger the picture taking function. Referring to Figure 9a, the user starts the camera application by clicking the application icon 901 in Figure 9a, and triggers the picture taking function by clicking the icon 1003 in Figure 9b. The wearable device sends the picture taking instruction to the shooting device through Bluetooth, so that the shooting device triggers taking pictures. The specific content will not be repeated here. In this application, the user operation that triggers the picture taking function may also be called the first operation.

步骤S103:拍摄设备发送请求消息,该请求消息用于请求获取传感器数据或生物特征信息。Step S103: The photographing device sends a request message, which is used to request acquisition of sensor data or biometric information.

拍摄设备检测到触发拍摄图片功能的用户操作后,向穿戴设备发送请求消息,该请求消息用于请求获取传感器数据或生物特征信息。After detecting the user operation that triggers the picture taking function, the shooting device sends a request message to the wearable device. The request message is used to request acquisition of sensor data or biometric information.

可选的,该请求消息包括请求获取的数据类型、数据收集方式和数据收集间隔。其中,请求获取的数据类型可以是:健康状态、运动状态、情绪状态等。其中,健康状态包括心率、血压、血糖、脑电、心电、肌电、体温等;运动状态包括走路、跑步、骑车、游泳、打羽毛球、滑冰、冲浪、跳舞等常见的运动类型姿态,也可以包括一些更细粒度的运动姿态,例如:正手击球、反手击球、跳拉丁舞、跳机械舞等;情绪状态包括紧张、焦虑、悲伤、压力大、兴奋、愉悦等。Optionally, the request message includes the data type requested to be obtained, the data collection method, and the data collection interval. Among them, the data type requested can be: health status, exercise status, emotional status, etc. Among them, health status includes heart rate, blood pressure, blood sugar, brain electricity, ECG, myoelectricity, body temperature, etc.; sports status includes common sports types such as walking, running, cycling, swimming, badminton, skating, surfing, dancing, etc. It can also include some more fine-grained sports gestures, such as: forehand hitting, backhand hitting, Latin dance, mechanical dance, etc.; emotional states include tension, anxiety, sadness, pressure, excitement, joy, etc.

可选的,数据收集方式可以分为单次采集和连续采集。对于拍摄图片来说,数据收集方式一般可以为单次采集。Optionally, data collection methods can be divided into single collection and continuous collection. For taking pictures, the data collection method can generally be a single collection.

数据收集间隔与数据收集方式有关,当数据收集方式为单次采集时,数据收集间隔为无效值。即拍摄设备只需获取一次穿戴设备发送的数据。当数据收集方式为连续采集时,数据收集间隔为预设间隔。即拍摄设备每隔预设间隔获取一次穿戴设备发送的数据。The data collection interval is related to the data collection method. When the data collection method is single collection, the data collection interval is an invalid value. That is, the shooting device only needs to obtain the data sent by the wearable device once. When the data collection mode is continuous collection, the data collection interval is the preset interval. That is, the shooting device obtains the data sent by the wearable device at preset intervals.

拍摄设备请求获取的数据类型,可以由用户在拍摄设备侧进行配置,具体配置内容的方式可以参考前述UI实施例,例如图8c中所示,配置界面80中包括多个配置选项,每个配置选项都对应一种数据类型,拍摄设备根据用户选择的数据类型,向穿戴设备发送请求消息。举例来说,运动姿态、心率、血压、血糖、情绪状态分别用一个字节表示,若拍摄设备想要获取运动姿态,将表示运动姿态的字节置1,否则置0;其他数据类型同理。The data type requested by the shooting device can be configured by the user on the shooting device side. The specific configuration method can refer to the aforementioned UI embodiment. For example, as shown in Figure 8c, the configuration interface 80 includes multiple configuration options. Each configuration Each option corresponds to a data type, and the shooting device sends a request message to the wearable device based on the data type selected by the user. For example, exercise posture, heart rate, blood pressure, blood sugar, and emotional state are each represented by one byte. If the shooting device wants to obtain the exercise posture, set the byte representing the exercise posture to 1, otherwise set it to 0; the same applies to other data types. .

可选的,在一些实施例中,用户可以是在穿戴设备上触发拍摄图片功能,穿戴设备检测到触发拍摄图片功能的用户操作,向拍摄设备发送拍摄图片指令。拍摄设备接收到该拍摄图片指令,获取摄像头当前采集的图片信息,并向穿戴设备发送请求消息。本申请中,穿戴设备检测到触发拍摄图片功能的用户操作,该用户操作可以称为第二操作。Optionally, in some embodiments, the user may trigger the picture-taking function on the wearable device, and the wearable device detects the user operation that triggers the picture-taking function, and sends a picture-taking instruction to the photographing device. The shooting device receives the picture shooting instruction, obtains the picture information currently collected by the camera, and sends a request message to the wearable device. In this application, the wearable device detects a user operation that triggers the picture taking function, and this user operation may be called a second operation.

步骤S104:穿戴设备向拍摄设备发送传感器数据或生物特征信息。Step S104: The wearable device sends sensor data or biometric information to the shooting device.

穿戴设备解析接收到的请求消息,获取到拍摄设备所需要的数据类型、数据收集方式以及数据收集间隔。根据该请求消息,穿戴设备向拍摄设备发送传感器数据或生物特征信息。示例性的,对于拍摄图片来说,数据收集方式为单次采集,数据收集间隔设置为无效值,穿戴设备向拍摄设备发送一次数据。若请求消息中的数据类型中包括运动姿态和心率,则穿戴设备向拍摄设备发送通过运动传感器和心率传感器获取的传感器数据或生物特征信息。The wearable device parses the received request message and obtains the data type, data collection method and data collection interval required by the shooting device. According to the request message, the wearable device sends sensor data or biometric information to the photographing device. For example, for taking pictures, the data collection method is a single collection, the data collection interval is set to an invalid value, and the wearable device sends data once to the shooting device. If the data type in the request message includes motion posture and heart rate, the wearable device sends sensor data or biometric information obtained through the motion sensor and heart rate sensor to the shooting device.

可选的,传感器数据为原始的数据,即传感器直接检测出的数据;例如,传感器数据可以包括穿戴设备通过心率传感器获取到用户的心率数据;通过运动传感器获取到用户的运动幅度、角度、速度等数据;通过皮电传感器获取到用户的皮肤电阻、电导等数据;通过生物传感器获取到用户的血糖、血压、体温等数据。Optionally, the sensor data is original data, that is, data directly detected by the sensor; for example, the sensor data can include the user's heart rate data obtained by the wearable device through the heart rate sensor; the user's movement amplitude, angle, and speed obtained through the motion sensor. and other data; obtain the user's skin resistance, conductance and other data through the skin electrode sensor; obtain the user's blood sugar, blood pressure, body temperature and other data through the biosensor.

可选的,生物特征信息为基于传感器数据处理过后的数据,即根据原始的数据进行计算/推算得出的进一步的数据。例如,生物特征信息可以为穿戴设备根据该心率数据推算出用户当前的心率在正常范围内;根据运动传感器获取的数据推算出用户当前的运动姿势,例如走路、跑步、骑车、游泳、打羽毛球等等;根据皮电传感器获取的数据推算出用户当前的心情指数、压力指数等;根据生物传感器获取的数据推算出用户当前的健康状态。Optionally, the biometric information is data processed based on sensor data, that is, further data calculated/deduced based on the original data. For example, biometric information can be used by a wearable device to deduce that the user's current heart rate is within the normal range based on the heart rate data; based on the data obtained by the motion sensor, it can deduce the user's current sports posture, such as walking, running, cycling, swimming, and playing badminton. etc.; calculate the user's current mood index, stress index, etc. based on the data obtained by the skin electrode sensor; calculate the user's current health status based on the data obtained by the biosensor.

示例性的,0x00–0x7F的字段表示运动姿态,该字段中最多可以包括128种运动姿态,例如0x00表示跑步、0x01表示走路、0x02表示游泳等等;0x80–0x9F的字段表示生命体征,该字段中最多可以包括32种生命体征,例如0x80表示心率、0x81表示血压、0x82表示血糖等等;0xA0–0xAF的字段表示个人基本信息,该字段中最多可以包括16种个人基本信息,例如0xA0表示身高、0xA1表示年龄、0xA2表示性别等等。若拍摄设备想要获取运动姿态,穿戴设备检测到此时运动传感器获取的数据表示用户正在跑步,则穿戴设备将0x00写入待发送的数据包,表示用户正在跑步。若拍摄设备想要获取心率,穿戴设备检测到此时心率传感器获取的数据为60次/分,则穿戴设备将表示“心率为60次/分”的数据字节写入待发送的数据包,例如0x80 0x3C(0x3C为60的十六进制);可选的,心率60次/分在正常范围内,穿戴设备可以将表示“心率正常”的数据字节写入待发送的数据包。For example, the fields 0x00–0x7F represent sports postures, and this field can include up to 128 sports postures, such as 0x00 represents running, 0x01 represents walking, 0x02 represents swimming, etc.; the field 0x80–0x9F represents vital signs, and this field It can include up to 32 kinds of vital signs, such as 0x80 for heart rate, 0x81 for blood pressure, 0x82 for blood sugar, etc.; the fields 0xA0–0xAF represent basic personal information, and this field can include up to 16 kinds of basic personal information, such as 0xA0 for height. , 0xA1 represents age, 0xA2 represents gender, etc. If the shooting device wants to obtain sports posture, and the wearable device detects that the data obtained by the motion sensor indicates that the user is running, the wearable device will write 0x00 into the data packet to be sent, indicating that the user is running. If the shooting device wants to obtain the heart rate, and the wearable device detects that the data obtained by the heart rate sensor is 60 beats/min, the wearable device will write the data byte indicating "the heart rate is 60 beats/min" into the data packet to be sent. For example, 0x80 0x3C (0x3C is the hexadecimal notation of 60); optionally, the heart rate of 60 beats/minute is within the normal range, and the wearable device can write the data byte indicating "normal heart rate" into the data packet to be sent.

可选的,在一些实施例中,穿戴设备解析接收到的请求消息,获取到拍摄设备所需要的数据类型、数据收集方式以及数据收集间隔。根据该请求消息,穿戴设备获取预设时间段之前的传感器数据,发送该传感器数据或基于该传感器数据得到的生物特征信息到拍摄设备。该预设时间段可以是1秒,可以是0.5秒,这里不作限制。由于穿戴设备获取传感器数据的时刻始终滞后于电子设备检测到触发拍摄图片功能的用户操作的时刻,通过实验获取到滞后的数据值,设置为预设时间段,则穿戴设备能够向拍摄设备提供准确的传感器数据或生物特征信息,减少误差。Optionally, in some embodiments, the wearable device parses the received request message and obtains the data type, data collection method and data collection interval required by the shooting device. According to the request message, the wearable device obtains sensor data before the preset time period, and sends the sensor data or biometric information obtained based on the sensor data to the shooting device. The preset time period can be 1 second or 0.5 seconds, and there is no limit here. Since the moment when the wearable device obtains sensor data always lags behind the moment when the electronic device detects the user operation that triggers the picture taking function, the lagging data value is obtained through experiments and set to a preset time period, then the wearable device can provide accurate information to the shooting device. sensor data or biometric information to reduce errors.

可选的,在一些实施例中,穿戴设备解析接收到的请求消息,根据该请求消息,穿戴设备根据时间戳,将传感器数据或生物特征信息发送到拍摄设备。该时间戳为电子设备检测到触发拍摄图片功能的用户操作时的时刻,穿戴设备获取该时刻的传感器数据,将传感器数据或生物特征信息发送到拍摄设备。这样,穿戴设备能够向拍摄设备提供更加准确的信息。Optionally, in some embodiments, the wearable device parses the received request message, and according to the request message, the wearable device sends sensor data or biometric information to the shooting device according to the timestamp. The timestamp is the moment when the electronic device detects the user operation that triggers the picture taking function. The wearable device obtains the sensor data at that moment and sends the sensor data or biometric information to the shooting device. In this way, the wearable device can provide more accurate information to the shooting device.

步骤S105:将拍摄到的图片信息与生物特征信息进行融合编码,生成带有生物特征信息的图片。Step S105: Fusion-encode the captured picture information and biometric information to generate a picture with biometric information.

拍摄设备接收到传感器数据或生物特征信息后,将拍摄到的图片信息与生物特征信息进行融合编码,生成带有生物特征信息的图片,该图片的格式可以参考上述图19a所示的图片格式,该生物特征信息与传感器数据对应。其中,生物特征信息的显示内容可以是简单的一句话,也可以是详细完整的信息。其中生物特征信息在图片中的显示内容、显示位置以及显示形式本申请不作限制。After receiving the sensor data or biometric information, the shooting device fuses and codes the captured picture information with the biometric information to generate a picture with biometric information. The format of this picture can refer to the picture format shown in Figure 19a above. This biometric information corresponds to sensor data. Among them, the displayed content of biometric information can be a simple sentence or detailed and complete information. The display content, display position and display form of the biometric information in the picture are not limited by this application.

可选的,电子设备接收到传感器数据,基于该传感器数据确定生物特征信息,将拍摄到的图片信息与生物特征信息进行融合编码;或者可选的,电子设备接收到生物特征信息,电子设备基于该生物特征信息,将拍摄到的图片信息与生物特征信息进行融合编码。Optionally, the electronic device receives the sensor data, determines the biometric information based on the sensor data, and fuses and codes the captured picture information with the biometric information; or optionally, the electronic device receives the biometric information, and the electronic device based on The biometric information is fused and encoded with the captured picture information and the biometric information.

举例来说,拍摄设备获取的传感器数据为用户的心率数据,则生物特征信息可以为用户的心率是否在正常范围内;拍摄设备获取的传感器数据为用户当前的运动姿势,例如走路、跑步、骑车、游泳、打羽毛球等,则生物特征信息可以为用户的运动姿势是否标准;拍摄设备获取的传感器数据为用户当前的心情指数、压力指数等信息,则生物特征信息可以为用户的心情是否愉快;等等。For example, if the sensor data obtained by the shooting device is the user's heart rate data, the biometric information may be whether the user's heart rate is within the normal range; the sensor data obtained by the shooting device may be the user's current movement posture, such as walking, running, or riding. If the user is driving, swimming, playing badminton, etc., the biometric information can be used to determine whether the user's movement posture is standard; the sensor data obtained by the shooting device is the user's current mood index, stress index and other information, then the biometric information can be used to determine whether the user is in a happy mood. ;etc.

其中生成的图片可以参考上述图11b所示,当用户查看带有生物特征信息的图片时,生物特征信息可以显示在图片中的固定位置,例如图片的上部。其中,图片中的生物特征信息在刚开始查看时可以隐藏,然后通过触发控件显示,例如在图13a中,生物特征信息通过触发光标1210显示。又如在图11b中,生物特征信息通过触发图标1205,在图11c中的用户界面1300中进行查看。The generated picture can be referred to the above-mentioned figure 11b. When the user views the picture with biometric information, the biometric information can be displayed at a fixed position in the picture, such as the upper part of the picture. Among them, the biometric information in the picture can be hidden when initially viewed, and then displayed through the trigger control. For example, in Figure 13a, the biometric information is displayed through the trigger cursor 1210. As another example in Figure 11b, biometric information is viewed in the user interface 1300 in Figure 11c by triggering icon 1205.

可选的,在一些实施例中,电子设备还可以获取穿戴设备的身份信息,例如设备名称、设备账号(例如华为账号)、自定义用户名等信息;将穿戴设备的身份信息和图片信息进行融合编码,生成带有身份信息的图片文件。电子设备还可以获取拍摄图片时的场景信息,场景信息包括电子设备通过识别图像中的场景、以及拍摄图片时的地理位置信息,综合确定出的图片中的场景,例如公园、酒吧、湖边、博物馆等。将场景信息和图片信息进行融合编码,生成带有场景信息的图片文件。Optionally, in some embodiments, the electronic device can also obtain the identity information of the wearable device, such as device name, device account (such as Huawei account), customized user name and other information; and combine the identity information and picture information of the wearable device. Fusion coding to generate image files with identity information. The electronic device can also obtain the scene information when the picture was taken. The scene information includes the scene in the picture that the electronic device comprehensively determines by identifying the scene in the image and the geographical location information when the picture was taken, such as a park, bar, lakeside, etc. Museums etc. The scene information and picture information are fused and encoded to generate a picture file with scene information.

可选的,在一些实施例中,生物特征信息是根据传感器数据和图片信息结合得到的。根据传感器数据可以得出用户的健康状态、运动状态、情绪状态等信息,根据图片信息可以得到场景信息、用户运动姿势等信息,拍摄设备结合传感器数据和图片信息综合得出图片的生物特征信息。举例来说,拍摄设备接收到的传感器数据包括用户的心率数据为60次/分,和运动姿势为跑步;拍摄设备对拍摄到的图片信息进行图像分析,得出图片中用户的运动姿势为跑步,和拍摄地点为公园。综合传感器数据和图片信息,拍摄设备得出最终的生物特征信息包括用户在公园跑步,心率为60次/分。Optionally, in some embodiments, biometric information is obtained based on a combination of sensor data and picture information. According to the sensor data, the user's health status, motion status, emotional state and other information can be obtained. According to the picture information, the scene information, user movement posture and other information can be obtained. The shooting equipment combines the sensor data and picture information to comprehensively obtain the biometric information of the picture. For example, the sensor data received by the shooting device includes the user's heart rate data of 60 beats/min and the movement posture of running; the shooting equipment performs image analysis on the captured picture information and concludes that the user's movement posture in the picture is running. , and the filming location is a park. Combining the sensor data and picture information, the shooting device obtained the final biometric information including that the user was running in the park and had a heart rate of 60 beats/minute.

可选的,在一些实施例中,拍摄设备中存有一个或多个面部图像的信息,拍摄设备通过穿戴设备的身份信息确定出穿戴设备对应的预设面部图像,将预设面部图像与图片中的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则拍摄设备将至少部分生物特征信息显示在该人物附近。Optionally, in some embodiments, the photographing device stores one or more facial image information, the photographing device determines the preset facial image corresponding to the wearable device through the identity information of the wearable device, and combines the preset facial image with the picture. Similarity matching is performed with one or more characters in the facial image. If the preset facial image is successfully matched with one of the characters, the shooting device will display at least part of the biometric information near the character.

其中,预设面部图像与穿戴设备具有关联关系,其中预设面部图像可以是用户预设在拍摄设备中,也可以是以图像或视频的方式上传到拍摄设备中,也可以是用户预设在穿戴设备中,穿戴设备再提供给拍摄设备,本申请不作限制。The preset facial image is associated with the wearable device. The preset facial image may be preset by the user in the shooting device, may be uploaded to the shooting device in the form of an image or video, or may be preset by the user in the shooting device. In the wearable device, the wearable device is then provided to the shooting device, which is not limited by this application.

举例来说,穿戴设备为华为手表1,其中与该华为手表1的绑定用户名为小A,拍摄设备确定小A的面部信息。其中,拍摄设备可以通过查找通讯录中的用户与面部的绑定关系确定小A的面部信息;还可以通过穿戴设备与面部信息的绑定关系确定小A的面部信息(例如图8c中通过关联面部图像的图标802上传小A的面部信息,小A的面部信息即为面部图像7031);等等。拍摄设备对图片进行图像识别,识别出图片中的一个或多个面部,将小A的面部信息与图片中的一个或多个面部进行相似度匹配。若小A面部信息与图片中其中一个面部的相似度大于阈值,则将生物特征信息显示在该面部的附近。参考图13b,图13b中图片的生物特征信息显示在人物的附近,指示了该生物特征信息描述的人物。For example, the wearable device is Huawei Watch 1, and the user name bound to Huawei Watch 1 is Little A, and the shooting device determines Little A's facial information. Among them, the shooting device can determine the facial information of Little A by searching for the binding relationship between the user and the face in the address book; it can also determine the facial information of Little A through the binding relationship between the wearable device and the facial information (for example, through the association in Figure 8c The facial image icon 802 uploads Little A's facial information, and Little A's facial information is the facial image 7031); and so on. The shooting device performs image recognition on the picture, identifies one or more faces in the picture, and matches the similarity between Little A's facial information and one or more faces in the picture. If the similarity between Little A's facial information and one of the faces in the picture is greater than the threshold, the biometric information will be displayed near the face. Referring to Figure 13b, the biometric information of the picture in Figure 13b is displayed near the person, indicating the person described by the biometric information.

可选的,若预设面部图像与图片中的人物匹配不成功,即拍摄设备检测到预设面部图像不在当前的拍摄设备采集到的图片中,拍摄设备可以输出提示消息(第一提示),例如“图片中没有用户小A”。Optionally, if the preset facial image does not match the person in the picture successfully, that is, the shooting device detects that the preset facial image is not in the picture collected by the current shooting device, the shooting device can output a prompt message (first prompt), For example, "There is no user A in the picture."

可选的,在一些实施例中,相比于上述图20a所示的方法流程,本申请还示出了一种对图片进行拍摄的方法流程,如图20b所示。Optionally, in some embodiments, compared to the method flow shown in Figure 20a, this application also shows a method flow for taking pictures, as shown in Figure 20b.

步骤S101a:穿戴设备和拍摄设备建立连接。具体描述可以参考步骤S101的描述,此处不再赘述。Step S101a: The wearable device and the shooting device establish a connection. For specific description, please refer to the description of step S101, which will not be described again here.

步骤S102a:拍摄设备发送请求消息,该请求消息用于请求获取传感器数据或生物特征信息。Step S102a: The photographing device sends a request message, which is used to request acquisition of sensor data or biometric information.

穿戴设备和拍摄设备建立连接后,拍摄设备向穿戴设备发送请求消息,该请求消息用于请求获取传感器数据或生物特征信息。After the wearable device and the shooting device establish a connection, the shooting device sends a request message to the wearable device. The request message is used to request acquisition of sensor data or biometric information.

可选的,当拍摄设备检测到开启标注模式的用户操作时,拍摄设备向穿戴设备发送请求消息。Optionally, when the photographing device detects a user operation that turns on the annotation mode, the photographing device sends a request message to the wearable device.

可选的,拍摄设备在标注模式下,检测到触发获取传感器数据或生物特征信息的用户操作,拍摄设备向穿戴设备发送请求消息。参考图7a,在图7a中拍摄设备检测到针对于图标407的用户操作,拍摄设备向穿戴设备发送请求消息。Optionally, in the annotation mode, the shooting device detects a user operation that triggers acquisition of sensor data or biometric information, and the shooting device sends a request message to the wearable device. Referring to FIG. 7a, in FIG. 7a, the photographing device detects a user operation on the icon 407, and the photographing device sends a request message to the wearable device.

关于请求消息的具体描述可以参考步骤S103的描述,此处不再赘述。For a detailed description of the request message, please refer to the description of step S103, which will not be described again here.

步骤S103a:穿戴设备向拍摄设备发送传感器数据或生物特征信息。Step S103a: The wearable device sends sensor data or biometric information to the shooting device.

该步骤的具体描述可以参考步骤S104的描述。另外的,For detailed description of this step, please refer to the description of step S104. additional,

在一些实施例中,拍摄设备获取到穿戴设备发送的传感器数据或生物特征信息后,将至少部分生物特征信息显示在拍摄界面上。参考图7b,在显示区40中显示摄像头实时采集的图像,以及预览区408,预览区408中的显示内容即为至少部分生物特征信息,以供用户实时查看。该生物特征信息与传感器数据对应。本申请实施例中,该拍摄界面可称为拍摄预览界面,拍摄预览界面上包括摄像头采集的预览图像。拍摄设备在预览图像上显示至少部分生物特征信息,该在预览图像上显示的至少部分生物特征信息可以称为第二信息,该第二信息与第二传感器数据对应。In some embodiments, after the photographing device obtains the sensor data or biometric information sent by the wearable device, it displays at least part of the biometric information on the photographing interface. Referring to Figure 7b, the image captured by the camera in real time is displayed in the display area 40, as well as the preview area 408. The display content in the preview area 408 is at least part of the biometric information for the user to view in real time. This biometric information corresponds to sensor data. In the embodiment of the present application, the shooting interface may be called a shooting preview interface, and the shooting preview interface includes preview images collected by the camera. The photographing device displays at least part of the biometric information on the preview image, and the at least part of the biometric information displayed on the preview image may be called second information, and the second information corresponds to the second sensor data.

在一些实施例中,拍摄设备中存有一个或多个面部图像的信息,以及每个面部图像与穿戴设备的对应关系。拍摄设备通过穿戴设备的身份信息从一个或多个面部图像中确定出穿戴设备对应的预设面部图像,将预设面部图像与图片中的一个或多个人物进行相似度匹配,若预设面部图像与图片中其中一个人物匹配成功,则拍摄设备将至少部分该生物特征信息显示在该人物附近。例如图7b中的预览区408可以显示在匹配的人物附近。In some embodiments, the photographing device stores information about one or more facial images, as well as the correspondence between each facial image and the wearable device. The shooting device determines the preset facial image corresponding to the wearable device from one or more facial images through the identity information of the wearable device, and performs similarity matching between the preset facial image and one or more people in the picture. If the preset face If the image is successfully matched to one of the people in the picture, the shooting device will display at least part of the biometric information near the person. For example, preview area 408 in Figure 7b may be displayed near the matching person.

可选的,若目标面部信息与图片中的人物匹配不成功,即拍摄设备检测到预设面部图像不在当前的拍摄设备采集到的图片中,拍摄设备可以输出提示消息(第一提示),例如“图片中没有用户小A,请将摄像头对准用户小A”。Optionally, if the target facial information does not match the person in the picture successfully, that is, the shooting device detects that the preset facial image is not in the picture collected by the current shooting device, the shooting device can output a prompt message (first prompt), for example "There is no user A in the picture, please point the camera at user A."

步骤S104a:拍摄设备检测到触发拍摄图片功能的用户操作。具体描述可以参考步骤S102的描述,此处不再赘述。Step S104a: The shooting device detects a user operation that triggers the picture shooting function. For specific description, please refer to the description of step S102, which will not be described again here.

步骤S105a:将拍摄到的图片信息与生物特征信息进行融合编码,生成带有生物特征信息的图片,该生物特征信息与传感器数据对应。具体描述可以参考步骤S105的描述,此处不再赘述。Step S105a: Fusion-encode the captured picture information and biometric information to generate a picture with biometric information, and the biometric information corresponds to the sensor data. For specific description, please refer to the description of step S105, which will not be described again here.

相比于上述图20a所描述的实施例,拍摄设备在检测到触发拍摄图片功能的用户操作后,再向穿戴设备获取传感器数据或生物特征信息;而图20b所示出的方法中,拍摄设备可以在启动标注模式后就向穿戴设备获取传感器数据或生物特征信息,在拍摄的预览界面实时显示至少部分生物特征信息,达到对生物特征信息的预览效果,提升用户体验。拍摄设备也可以在启动标注模式后,接收到用户操作后,向穿戴设备获取传感器数据或生物特征信息,在拍摄的预览界面实时显示至少部分生物特征信息,用户可以自由控制生物特征信息的显示和隐藏,提升用户体验。Compared with the embodiment described in Figure 20a above, the photography device acquires sensor data or biometric information from the wearable device after detecting a user operation that triggers the picture taking function; and in the method shown in Figure 20b, the photography device Sensor data or biometric information can be obtained from the wearable device after starting the annotation mode, and at least part of the biometric information can be displayed in real time on the shooting preview interface to achieve a preview effect of the biometric information and improve the user experience. The shooting device can also obtain sensor data or biometric information from the wearable device after activating the annotation mode and receiving user operations, and display at least part of the biometric information in real time on the shooting preview interface. The user can freely control the display and display of the biometric information. Hidden to improve user experience.

可选的,在一些实施例中,用户可以是在穿戴设备上触发拍摄图片功能,穿戴设备检测到触发拍摄功能的用户操作,向拍摄设备发送拍摄图片指令以及传感器数据(或生物特征信息)。拍摄设备接收到拍摄图片指令以及传感器数据(或生物特征信息)后,获取当前摄像头采集的图片信息,将拍摄到的图片信息与生物特征信息进行融合编码,生成带有生物特征信息的图片,该生物特征信息与传感器数据对应。关于传感器数据和生物特征信息的具体描述可以参考上述步骤S104。Optionally, in some embodiments, the user may trigger the picture shooting function on the wearable device, and the wearable device detects the user operation that triggers the shooting function, and sends the picture shooting instruction and sensor data (or biometric information) to the shooting device. After receiving the picture-taking instruction and sensor data (or biometric information), the shooting device obtains the picture information collected by the current camera, fuses and codes the captured picture information with the biometric information, and generates a picture with biometric information. Biometric information corresponds to sensor data. For a detailed description of the sensor data and biometric information, please refer to the above step S104.

举例来说,参考图9c,用户在如图9c中所示的配置界面中选择想要的数据类型,配置完成后,穿戴设备开启标注模式。穿戴设备响应于针对界面1000中图标1003的用户操作,向拍摄设备发送拍摄图片指令,以及根据用户在图9c中选择的数据类型,向拍摄设备提供传感器数据或生物特征信息。拍摄设备接收到拍摄图片指令,获取当前摄像头采集的图片信息,将拍摄到的图片信息与或生物特征信息进行融合编码,生成带有生物特征信息的图片。For example, referring to Figure 9c, the user selects the desired data type in the configuration interface shown in Figure 9c. After the configuration is completed, the wearable device turns on the labeling mode. The wearable device responds to the user operation on the icon 1003 in the interface 1000, sends a picture-taking instruction to the photographing device, and provides sensor data or biometric information to the photographing device according to the data type selected by the user in Figure 9c. The shooting device receives the instruction to take a picture, obtains the picture information collected by the current camera, fuses and codes the captured picture information with or biometric information, and generates a picture with biometric information.

可选的,本申请还提供了一种针对视频进行拍摄的方法流程。请参见图21,图21示出了一种针对视频进行拍摄的方法流程图。Optionally, this application also provides a method and process for shooting videos. Please refer to Figure 21, which shows a flow chart of a method for shooting videos.

步骤S201:穿戴设备和拍摄设备建立连接。具体描述可以参考步骤S101的描述,此处不再赘述。Step S201: The wearable device and the shooting device establish a connection. For specific description, please refer to the description of step S101, which will not be described again here.

步骤S202:拍摄设备检测到触发拍摄视频功能的用户操作。Step S202: The shooting device detects a user operation that triggers the video shooting function.

拍摄设备检测到触发拍摄视频功能的用户操作,触发拍摄视频功能,获取摄像头当前采集的视频帧信息。该用户操作可以是触控操作、语音操作、悬浮手势操作等等,在此不作限定。本申请中,拍摄设备在标注模式下检测到触发拍摄视频功能的用户操作,具体内容可以参考前述UI实施例。The shooting device detects the user operation that triggers the video shooting function, triggers the video shooting function, and obtains the video frame information currently collected by the camera. The user operation may be a touch operation, a voice operation, a floating gesture operation, etc., which are not limited here. In this application, the shooting device detects a user operation that triggers the video shooting function in the annotation mode. For specific content, please refer to the aforementioned UI embodiment.

可选的,在一些实施例中,该用户操作可以是针对于穿戴设备的用户操作,穿戴设备检测到触发拍摄视频功能的用户操作,通过蓝牙发送到拍摄设备,拍摄设备检测到该用户操作,触发拍摄视频功能。Optionally, in some embodiments, the user operation may be a user operation for a wearable device. The wearable device detects the user operation that triggers the video shooting function and sends it to the shooting device via Bluetooth. The shooting device detects the user operation. Trigger the video shooting function.

步骤S203:拍摄设备发送请求消息,该请求消息用于请求获取传感器数据或生物特征信息。Step S203: The photographing device sends a request message, which is used to request acquisition of sensor data or biometric information.

拍摄设备检测到触发拍摄视频功能的用户操作后,向穿戴设备发送请求消息,该请求消息用于请求获取传感器数据或生物特征信息。After the shooting device detects a user operation that triggers the video shooting function, it sends a request message to the wearable device. The request message is used to request acquisition of sensor data or biometric information.

该请求消息包括拍摄设备支持的数据类型、数据收集方式和数据收集间隔。这部分的具体描述可以参考上述步骤S103的描述,与步骤S103不同的是,对于拍摄视频来说,数据收集方式一般为连续采集,数据收集间隔可以设置为1秒。即拍摄设备在拍摄视频的过程中每隔1秒获取一次传感器数据或生物特征信息。The request message includes the data type supported by the shooting device, the data collection method and the data collection interval. The specific description of this part can refer to the description of step S103 above. The difference from step S103 is that for shooting videos, the data collection method is generally continuous collection, and the data collection interval can be set to 1 second. That is, the shooting device obtains sensor data or biometric information every 1 second during the video shooting process.

可选的,在一些实施例中,用户可以是在穿戴设备上触发拍摄视频功能,穿戴设备检测到触发拍摄视频功能的用户操作,向拍摄设备发送拍摄视频指令。拍摄设备接收到该拍摄视频指令,向穿戴设备发送请求消息。Optionally, in some embodiments, the user may trigger the video shooting function on the wearable device, and the wearable device detects the user operation that triggers the video shooting function, and sends a video shooting instruction to the shooting device. The shooting device receives the video shooting instruction and sends a request message to the wearable device.

在一些实施例中,用户是在穿戴设备上触发拍摄视频功能,穿戴设备检测到触发拍摄视频功能的用户操作,想拍摄设备发送拍摄视频指令,并且向拍摄设备发送传感器数据或生物特征信息。此时无需执行步骤S203,穿戴设备基于在穿戴设备侧的配置,向拍摄设备发送传感器数据或生物特征信息。In some embodiments, the user triggers the video shooting function on the wearable device, the wearable device detects the user operation that triggers the video shooting function, sends a video shooting instruction to the shooting device, and sends sensor data or biometric information to the shooting device. At this time, there is no need to perform step S203. The wearable device sends sensor data or biometric information to the shooting device based on the configuration on the wearable device side.

步骤S204:穿戴设备周期性发送传感器数据或生物特征信息。Step S204: The wearable device periodically sends sensor data or biometric information.

穿戴设备解析接收到的请求消息,获取到拍摄设备所需要的数据类型、数据收集方式以及数据收集间隔。根据该请求消息,穿戴设备向拍摄设备周期性发送传感器数据或生物特征信息。示例性的,对于拍摄视频来说,数据收集方式为连续采集,数据收集间隔设置为1秒。则穿戴设备向拍摄设备每隔1秒发送一次传感器数据或生物特征信息。关于传感器数据和生物特征信息的具体描述可以参考上述步骤S104。The wearable device parses the received request message and obtains the data type, data collection method and data collection interval required by the shooting device. According to the request message, the wearable device periodically sends sensor data or biometric information to the shooting device. For example, for shooting videos, the data collection method is continuous collection, and the data collection interval is set to 1 second. The wearable device sends sensor data or biometric information to the shooting device every 1 second. For a detailed description of the sensor data and biometric information, please refer to the above step S104.

步骤S205:拍摄设备每收到一次传感器数据或生物特征信息,将拍摄到的视频信息与或生物特征信息进行融合编码,生成带有生物特征信息的图像帧,该生物特征信息与传感器数据对应。Step S205: Each time the shooting device receives sensor data or biometric information, it fuses and codes the captured video information with the biometric information to generate an image frame with biometric information. The biometric information corresponds to the sensor data.

拍摄设备每收到一次传感器数据或生物特征信息,将拍摄到的视频信息与或生物特征信息进行融合编码。由于一个视频是由多个图像帧组成的,拍摄设备生成的每个图像帧都具有对应的生物特征信息,图像帧的生物特征信息与传感器数据对应。示例性的,拍摄设备每隔1秒接收到一次传感器数据,在一秒内拍摄设备生成的图像帧有24帧,则该一秒内的24个图像帧的生物特征信息都是根据下一次一秒的传感器数据得到的。例如,拍摄设备第5秒获取了一次传感器数据,拍摄设备将视频信息中第4秒-第5秒之间的24帧图像与该传感器数据进行融合编码,生成带有生物特征信息的图像帧;拍摄设备第6秒获取了一次传感器数据,拍摄设备将视频信息中第5秒-第6秒之间的24帧图像与该传感器数据进行融合编码,生成带有生物特征信息的图像帧;依次类推。Each time the shooting device receives sensor data or biometric information, it fuses and encodes the captured video information with the biometric information. Since a video is composed of multiple image frames, each image frame generated by the shooting device has corresponding biometric information, and the biometric information of the image frame corresponds to the sensor data. For example, the shooting device receives sensor data every 1 second, and the shooting device generates 24 image frames in one second, then the biometric information of the 24 image frames in one second is based on the next one. Seconds of sensor data obtained. For example, the shooting device acquires sensor data at the 5th second, and the shooting device fuses and codes the 24 frames of images between the 4th and 5th seconds in the video information with the sensor data to generate image frames with biometric information; The shooting device acquires sensor data once at the 6th second. The shooting device fuses and codes the 24 frames of images between the 5th and 6th seconds in the video information with the sensor data to generate image frames with biometric information; and so on. .

可选的,在一些实施例中,拍摄设备根据时间戳将生物特征信息与视频信息进行融合编码。举例来说,穿戴设备周期性发送传感器数据或生物特征信息,该传感器数据或生物特征信息具有时间戳,表示了该传感器数据或生物特征信息对应在视频信息中的时间。这样,穿戴设备能够向拍摄设备提供更加准确的信息,避免由于信息传输时延导致生物特征信息与视频内容不匹配。Optionally, in some embodiments, the shooting device fuses and encodes the biometric information and the video information according to the timestamp. For example, the wearable device periodically sends sensor data or biometric information, and the sensor data or biometric information has a timestamp, which represents the time when the sensor data or biometric information corresponds to the video information. In this way, the wearable device can provide more accurate information to the shooting device and avoid mismatch between biometric information and video content due to information transmission delay.

可选的,在一些实施例中,生物特征信息是根据传感器数据和视频信息结合得到的。根据传感器数据可以得出用户的健康状态、运动状态、情绪状态等信息,根据视频信息可以得到场景信息、用户运动姿势等信息,拍摄设备结合传感器数据和视频信息综合得出图片的生物特征信息。举例来说,拍摄设备接收到的传感器数据包括用户的心率数据为60次/分,和运动姿势为跑步;拍摄设备对拍摄到的视频信息进行图像分析,得出视频中用户的运动姿势为跑步,和拍摄地点为公园。综合传感器数据和视频信息,拍摄设备得出视频中图像帧最终的生物特征信息包括用户在公园跑步,心率为60次/分。Optionally, in some embodiments, biometric information is obtained based on a combination of sensor data and video information. Based on the sensor data, the user's health status, movement status, emotional status and other information can be obtained. Based on the video information, the scene information, user movement posture and other information can be obtained. The shooting equipment combines the sensor data and video information to comprehensively obtain the biometric information of the picture. For example, the sensor data received by the shooting device includes the user's heart rate data of 60 beats/min and the movement posture of running; the shooting equipment performs image analysis on the captured video information and concludes that the user's movement posture in the video is running. , and the filming location is a park. Combining sensor data and video information, the shooting equipment derives the final biometric information of the image frames in the video, including that the user is running in the park and has a heart rate of 60 beats/minute.

步骤S206:拍摄设备检测到触发停止拍摄视频的用户操作。Step S206: The shooting device detects a user operation that triggers stopping of video shooting.

拍摄设备检测到触发停止拍摄视频的用户操作,停止拍摄视频。该用户操作可以是触控操作、语音操作、悬浮手势操作等等,在此不作限定。本申请中,拍摄设备在标注模式下检测到触发停止拍摄视频功能的用户操作,具体内容可以参考前述UI实施例。The shooting device detects a user operation that triggers stopping the video shooting and stops shooting the video. The user operation may be a touch operation, a voice operation, a floating gesture operation, etc., which are not limited here. In this application, the shooting device detects a user operation that triggers the stop video shooting function in the annotation mode. For specific content, please refer to the aforementioned UI embodiment.

可选的,在一些实施例中,用户可以是在穿戴设备上触发停止拍摄视频,穿戴设备检测到触发停止拍摄视频的用户操作,向拍摄设备发送停止拍摄视频指令。拍摄设备接收到该停止拍摄视频指令,停止拍摄视频。Optionally, in some embodiments, the user may trigger to stop shooting the video on the wearable device, and the wearable device detects the user operation that triggers the stop of shooting the video, and sends an instruction to the shooting device to stop shooting the video. The shooting device receives the instruction to stop shooting videos and stops shooting videos.

步骤S207:拍摄设备向穿戴设备发送请求消息,用于停止获取传感器数据或生物特征信息。Step S207: The photographing device sends a request message to the wearable device to stop acquiring sensor data or biometric information.

拍摄设备检测到触发停止拍摄视频功能的用户操作后,向穿戴设备发送请求消息,该请求消息用于停止获取传感器数据或生物特征信息。穿戴设备接收到该请求消息,停止向拍摄设备发送传感器数据或生物特征信息。After the shooting device detects a user operation that triggers the function of stopping video shooting, it sends a request message to the wearable device. The request message is used to stop acquiring sensor data or biometric information. The wearable device receives the request message and stops sending sensor data or biometric information to the shooting device.

可选的,在一些实施例中,用户可以是在穿戴设备上触发停止拍摄视频,穿戴设备检测到触发停止拍摄视频的用户操作,向拍摄设备发送停止拍摄视频指令,并且停止向拍摄设备发送传感器数据或生物特征信息。Optionally, in some embodiments, the user may trigger to stop shooting video on the wearable device, the wearable device detects the user operation that triggers to stop shooting video, sends a stop shooting video instruction to the shooting device, and stops sending sensors to the shooting device data or biometric information.

步骤S208:拍摄设备生成并保存视频。Step S208: The shooting device generates and saves the video.

拍摄设备检测到触发停止拍摄视频功能的用户操作后,生成并保存拍摄的视频。该视频的格式可以参考上述图19b所示的视频格式,该视频带有生物特征信息,该生物特征信息与传感器数据对应。After the shooting device detects a user operation that triggers the function of stopping video shooting, it generates and saves the captured video. The format of this video can refer to the video format shown in Figure 19b above. This video contains biometric information, and the biometric information corresponds to sensor data.

其中生成的视频可以参考上述图16a或图16b所示,当用户查看该视频时,该视频中还包括生物特征信息,生物特征信息的显示内容可以是简单的一句话,也可以是详细完整的信息。其中生物特征信息的显示内容、显示位置以及显示形式本申请不作限制。The generated video can be shown in Figure 16a or Figure 16b above. When the user views the video, the video also includes biometric information. The displayed content of the biometric information can be a simple sentence or detailed and complete. information. The display content, display position and display form of the biometric information are not limited in this application.

可选的,在一些实施例中,电子设备还可以获取穿戴设备的身份信息,例如设备名称、设备账号(例如华为账号)、自定义用户名等信息;将穿戴设备的身份信息和视频帧信息进行融合编码,生成带有身份信息的视频文件。电子设备还可以获取拍摄视频时的场景信息,场景信息包括电子设备通过识别视频帧中的场景、以及拍摄视频时的地理位置信息,综合确定出的视频帧中的场景,例如公园、酒吧、湖边、博物馆等。将场景信息和视频帧信息进行融合编码,生成带有场景信息的视频文件。Optionally, in some embodiments, the electronic device can also obtain the identity information of the wearable device, such as device name, device account (such as Huawei account), customized user name and other information; combine the identity information of the wearable device and the video frame information Perform fusion encoding to generate video files with identity information. The electronic device can also obtain the scene information when the video is shot. The scene information includes the scene in the video frame that the electronic device comprehensively determines by identifying the scene in the video frame and the geographical location information when the video is shot, such as a park, bar, lake, etc. Borders, museums, etc. The scene information and video frame information are fused and encoded to generate a video file with scene information.

可选的,在一些实施例中,拍摄设备中存有一个或多个面部图像的信息,拍摄设备通过穿戴设备的身份信息确定出穿戴设备对应的预设面部图像,将预设面部图像与视频的图像帧中的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则拍摄设备将至少部分生物特征信息显示在该人物附近。参考上述图18a或图18b,图18a或图18b中视频的生物特征信息显示在人物的上方,指示了该生物特征信息描述的人物。Optionally, in some embodiments, the photographing device stores one or more facial image information, the photographing device determines the preset facial image corresponding to the wearable device through the identity information of the wearable device, and compares the preset facial image with the video One or more characters in the image frame are matched for similarity. If the preset facial image is successfully matched with one of the characters, the shooting device will display at least part of the biometric information near the character. Referring to the above-mentioned Figure 18a or Figure 18b, the biometric information of the video in Figure 18a or Figure 18b is displayed above the character, indicating the character described by the biometric information.

其中可选的,预设面部图像与穿戴设备具有关联关系,其中预设面部图像可以是用户预设在拍摄设备中,也可以是以图像或视频的方式上传到拍摄设备中,也可以是用户预设在穿戴设备中,穿戴设备再提供给拍摄设备,本申请不作限制。Optionally, the preset facial image is associated with the wearable device, where the preset facial image may be preset by the user in the shooting device, may be uploaded to the shooting device in the form of an image or video, or may be the user's It is preset in the wearable device, and the wearable device is then provided to the shooting device, which is not limited by this application.

需要说明的是,拍摄设备可以在启动标注模式后就向穿戴设备获取传感器数据或生物特征信息,在拍摄的预览界面实时显示至少部分生物特征信息,达到对生物特征信息的预览效果,提升用户体验。拍摄设备也可以在启动标注模式后,接收到用户操作后,向穿戴设备获取传感器数据或生物特征信息,在拍摄的预览界面实时显示至少部分生物特征信息,用户可以自由控制生物特征信息的显示和隐藏,提升用户体验。It should be noted that the shooting device can obtain sensor data or biometric information from the wearable device after starting the annotation mode, and display at least part of the biometric information in real time on the shooting preview interface to achieve a preview effect of the biometric information and improve the user experience. . The shooting device can also obtain sensor data or biometric information from the wearable device after activating the annotation mode and receiving user operations, and display at least part of the biometric information in real time on the shooting preview interface. The user can freely control the display and display of the biometric information. Hidden to improve user experience.

可选的,在一些实施例中,在拍摄视频的过程中,生物特征信息可以实时的显示在拍摄界面上,以供用户实时查看。Optionally, in some embodiments, during the process of shooting a video, the biometric information can be displayed on the shooting interface in real time for the user to view in real time.

上述介绍的针对图片和视频进行拍摄的方法适用于图1所示的系统。可选的,本申请还提供了一种拍摄系统,可以使一个拍摄设备与多个相同类型的穿戴设备进行连接,拍摄设备获取到多个相同类型的穿戴设备的传感器数据或生物特征信息,对拍摄的图片/视频中的多个用户进行特征识别。如图22所示,图22示出的拍摄系统包括拍摄设备101、多个相同类型的穿戴设备201以及第三设备301。拍摄设备101和多个相同类型的穿戴设备201通过第三设备301建立连接。其中,The method for shooting pictures and videos described above is applicable to the system shown in Figure 1. Optionally, this application also provides a shooting system that allows one shooting device to be connected to multiple wearable devices of the same type. The shooting device obtains sensor data or biometric information from multiple wearable devices of the same type. Feature recognition of multiple users in captured pictures/videos. As shown in FIG. 22 , the shooting system shown in FIG. 22 includes a shooting device 101 , a plurality of wearable devices 201 of the same type, and a third device 301 . The shooting device 101 and multiple wearable devices 201 of the same type are connected through a third device 301 . in,

拍摄设备101是具有摄像功能的电子设备,例如手机、平板、相机等等。穿戴设备201包括无线耳机、智能手表、智能手环、智能眼镜、电子衣物、电子手镯、电子项链、电子配件、电子纹身和智能镜子等等。The shooting device 101 is an electronic device with a camera function, such as a mobile phone, a tablet, a camera, etc. Wearable devices 201 include wireless headphones, smart watches, smart bracelets, smart glasses, electronic clothing, electronic bracelets, electronic necklaces, electronic accessories, electronic tattoos, smart mirrors, and so on.

第三设备301,可以是中继设备。例如蓝牙中继器hub,蓝牙中继器通过蓝牙与拍摄设备101以及多个相同类型的穿戴设备201连接;第三设备301还可以是云端服务器,第三设备301通过移动通信模块与拍摄设备101以及多个穿戴设备201连接。通过第三设备301,拍摄设备101可以和多个相同类型的穿戴设备201建立连接。可选的,在一种可能实现的方式中,可穿戴设备和拍摄设备还可以通过WiFi等其他无线通信方式和第三设备301建立连接,此时第三设备301还可以是具有数据处理和运算功能的路由器。The third device 301 may be a relay device. For example, a Bluetooth repeater hub is connected to the shooting device 101 and multiple wearable devices 201 of the same type through Bluetooth; the third device 301 can also be a cloud server, and the third device 301 is connected to the shooting device 101 through a mobile communication module. and multiple wearable device 201 connections. Through the third device 301, the shooting device 101 can establish connections with multiple wearable devices 201 of the same type. Optionally, in a possible implementation, the wearable device and the shooting device can also establish a connection with the third device 301 through other wireless communication methods such as WiFi. At this time, the third device 301 can also have data processing and computing capabilities. functional router.

基于上述的技术原理以及图22所示的拍摄系统,下面结合示例介绍本申请提供的针对图片进行拍摄的方法流程。请参见图23,图23示出了一种针对图片进行拍摄的方法流程图。其中,该方法流程图中涉及的设备包括有n个穿戴设备、拍摄设备以及第三设备,n为正整数。该方法包括:Based on the above technical principles and the shooting system shown in Figure 22, the method and process for shooting pictures provided by this application will be introduced below with examples. Please refer to Figure 23. Figure 23 shows a flow chart of a method for photographing pictures. Among them, the devices involved in the flow chart of this method include n wearable devices, shooting devices and third devices, where n is a positive integer. The method includes:

步骤S301:n个穿戴设备和第三设备建立连接,拍摄设备和第三设备建立连接。Step S301: n wearable devices establish connections with third devices, and the shooting device establishes connections with third devices.

连接的方式不限于蓝牙(blue tooth,BT),近场通信(near fieldcommunication,NFC),无线保真(wireless fidelity,WiFi)、WiFi直连、网络等无线通信方式。在本申请实施例中,使用蓝牙的配对将作为示例被描述。The connection method is not limited to Bluetooth (blue tooth, BT), near field communication (NFC), wireless fidelity (wireless fidelity, WiFi), WiFi direct connection, network and other wireless communication methods. In this application embodiment, pairing using Bluetooth will be described as an example.

建立连接的过程中,n个穿戴设备和拍摄设备通过第三设备互相获取对方的连接信息(例如硬件信息,接口信息,身份信息等等)。拍摄设备可以获取穿戴设备的传感器数据或生物特征信息,穿戴设备可以同步拍摄设备的部分功能,例如穿戴设备可以同步输出拍摄设备中的通知提醒(例如来电提醒、新消息提醒等),穿戴设备可以主动触发拍摄设备开启拍摄功能,穿戴设备可以查看拍摄设备中的图片/视频文件等等。During the process of establishing a connection, n wearable devices and shooting devices obtain each other's connection information (such as hardware information, interface information, identity information, etc.) through the third device. The shooting device can obtain the sensor data or biometric information of the wearable device. The wearable device can synchronize some functions of the shooting device. For example, the wearable device can synchronize the output of notification reminders (such as incoming call reminders, new message reminders, etc.) in the shooting device. The wearable device can Actively trigger the shooting device to turn on the shooting function, and the wearable device can view the pictures/video files in the shooting device, etc.

步骤S302:拍摄设备检测到触发拍摄图片功能的用户操作。具体描述可以参考步骤S102的描述,此处不再赘述。Step S302: The shooting device detects a user operation that triggers the picture shooting function. For specific description, please refer to the description of step S102, which will not be described again here.

步骤S303:拍摄设备向第三设备发送请求消息,该请求消息用于请求获取传感器数据或生物特征信息。Step S303: The photographing device sends a request message to the third device, where the request message is used to request acquisition of sensor data or biometric information.

此步骤的具体描述可以参考步骤S103的描述,与步骤S103不同的是,拍摄设备向第三设备发送请求消息。For a detailed description of this step, please refer to the description of step S103. The difference from step S103 is that the shooting device sends a request message to the third device.

步骤S304:第三设备向n个穿戴设备转发该请求消息。Step S304: The third device forwards the request message to n wearable devices.

第三设备接收到拍摄设备发送的请求消息后,向n个穿戴设备转发该请求消息。After receiving the request message sent by the shooting device, the third device forwards the request message to n wearable devices.

步骤S305:穿戴设备发送传感器数据或生物特征信息,传感器数据或生物特征信息中包含穿戴设备的身份信息。Step S305: The wearable device sends sensor data or biometric information, and the sensor data or biometric information contains the identity information of the wearable device.

此步骤的具体描述可以参考步骤S104的描述,与步骤S104不同的是,穿戴设备向第三设备发送传感器数据或生物特征信息,传感器数据或生物特征信息中还包含穿戴设备的身份信息,该身份信息可以唯一表示一个穿戴设备。For a detailed description of this step, please refer to the description of step S104. The difference from step S104 is that the wearable device sends sensor data or biometric information to the third device. The sensor data or biometric information also contains the identity information of the wearable device. This identity Information can uniquely represent a wearable device.

步骤S306:第三设备确定所有连接的穿戴设备的传感器数据或生物特征信息接收完整后,发送给拍摄设备。Step S306: After the third device determines that the sensor data or biometric information of all connected wearable devices has been completely received, it sends it to the shooting device.

第三设备接收穿戴设备发送的传感器数据或生物特征信息,当第三设备接收到n个穿戴设备的传感器数据或生物特征信息后,将n个穿戴设备的传感器数据或生物特征信息发送给拍摄设备。n个穿戴设备的传感器数据或生物特征信息包括穿戴设备的身份信息,第三设备根据获取的身份信息判断是否接收到所有连接的穿戴设备的传感器数据或生物特征信息。The third device receives the sensor data or biometric information sent by the wearable device. After the third device receives the sensor data or biometric information of n wearable devices, it sends the sensor data or biometric information of the n wearable devices to the shooting device. . The sensor data or biometric information of the n wearable devices includes the identity information of the wearable devices, and the third device determines whether to receive the sensor data or biometric information of all connected wearable devices based on the acquired identity information.

步骤S307:拍摄设备将拍摄到的图片信息与生物特征信息进行融合编码,生成带有生物特征信息的图片,该生物特征信息与传感器数据对应。Step S307: The shooting device fuses and codes the captured picture information and biometric information to generate a picture with biometric information, and the biometric information corresponds to the sensor data.

此步骤的具体描述可以参考步骤S105的描述,与步骤S105不同的是,由于拍摄设备接收到的传感器数据或生物特征信息是n个穿戴设备的,则生物特征信息也相应的包括n个用户的生物特征信息。For a detailed description of this step, please refer to the description of step S105. The difference from step S105 is that since the sensor data or biometric information received by the shooting device belongs to n wearable devices, the biometric information also includes n users' data accordingly. Biometric information.

其中生成的图片可以参考上述图14a所示,图14a显示了一种图片查看界面,查看的图片中包括两个人物。当用户查看该图片时,该图片中还包括生物特征信息,该生物特征信息包括两个人物的生物特征信息,分别为小A在跑步和小B在跑步。生物特征信息的显示内容可以是简单的一句话,也可以是详细完整的信息。其中生物特征信息的显示内容、显示位置以及显示形式本申请不作限制。The generated pictures can be referred to the above-mentioned Figure 14a. Figure 14a shows a picture viewing interface, and the viewed pictures include two people. When the user views the picture, the picture also includes biometric information. The biometric information includes the biometric information of two characters, namely Little A is running and Little B is running. The displayed content of biometric information can be a simple sentence or detailed and complete information. The display content, display position and display form of the biometric information are not limited in this application.

可选的,在一些实施例中,拍摄设备中存有一个或多个面部图像的信息,拍摄设备通过穿戴设备的身份信息确定出穿戴设备对应的预设面部图像,将预设面部图像与图片中的一个或多个人物进行相似度匹配,若预设面部图像与其中一个人物匹配成功,则拍摄设备将至少部分生物特征信息显示在该人物附近。拍摄设备获取到n个穿戴设备的身份信息,最多可以执行上述匹配过程n次。参考图14b,图14b中包括两个生物特征信息和两个人物,每个生物特征信息显示在不同人物的附近(小A在跑步显示在12号衣服人物的上方,小B在跑步显示在8号衣服人物的上方),根据生物特征信息的显示位置指示了该生物特征信息描述的人物。Optionally, in some embodiments, the photographing device stores one or more facial image information, the photographing device determines the preset facial image corresponding to the wearable device through the identity information of the wearable device, and combines the preset facial image with the picture. Similarity matching is performed with one or more characters in the facial image. If the preset facial image is successfully matched with one of the characters, the shooting device will display at least part of the biometric information near the character. The shooting device obtains the identity information of n wearable devices and can perform the above matching process up to n times. Referring to Figure 14b, Figure 14b includes two biometric information and two characters. Each biometric information is displayed near a different character (Little A is displayed above the character wearing No. 12 clothing when running, and Little B is displayed above the character wearing No. 12 clothing when running. (above the person wearing the clothing number), the person described by the biometric information is indicated according to the display position of the biometric information.

其中,预设面部图像与穿戴设备具有关联关系,其中预设面部图像可以是用户预设在拍摄设备中,也可以是以图像或视频的方式上传到拍摄设备中,也可以是用户预设在穿戴设备中,穿戴设备再提供给拍摄设备,本申请不作限制。The preset facial image is associated with the wearable device. The preset facial image may be preset by the user in the shooting device, may be uploaded to the shooting device in the form of an image or video, or may be preset by the user in the shooting device. In the wearable device, the wearable device is then provided to the shooting device, which is not limited by this application.

需要说明的是,拍摄设备可以在启动标注模式后就向穿戴设备获取传感器数据或生物特征信息,在拍摄的预览界面实时显示至少部分生物特征信息,达到对生物特征信息的预览效果,提升用户体验。拍摄设备也可以在启动标注模式后,接收到用户操作后,向穿戴设备获取传感器数据或生物特征信息,在拍摄的预览界面实时显示至少部分生物特征信息,用户可以自由控制生物特征信息的显示和隐藏,提升用户体验。It should be noted that the shooting device can obtain sensor data or biometric information from the wearable device after starting the annotation mode, and display at least part of the biometric information in real time on the shooting preview interface to achieve a preview effect of the biometric information and improve the user experience. . The shooting device can also obtain sensor data or biometric information from the wearable device after activating the annotation mode and receiving user operations, and display at least part of the biometric information in real time on the shooting preview interface. The user can freely control the display and display of the biometric information. Hidden to improve user experience.

本申请实施例中,拍摄设备和n个穿戴设备通过第三设备建立连接,拍摄设备在标注模式下检测到触发拍摄图片功能的用户操作,在获取图片信息的同时,通过第三设备向穿戴设备发送请求消息。拍摄设备接收到n个穿戴设备的传感器数据或生物特征信息,将n个或生物特征信息与图片信息进行融合编码,生成带有生物特征信息的图片,该生物特征信息与n个传感器数据对应。可以看出,本申请提供的这种方式是在图片生成的过程中完成对图片的标注,而不需要后续对保存的图片进行特征提取,节约了硬件资源;并且可以结合穿戴设备的传感器数据对图片进行更加精准和丰富的特征标注。In the embodiment of the present application, the shooting device and n wearable devices establish a connection through a third device. The shooting device detects a user operation that triggers the picture shooting function in the annotation mode. While obtaining the picture information, it sends a message to the wearable device through the third device. Send request message. The shooting device receives sensor data or biometric information from n wearable devices, fuses and encodes the n or biometric information with picture information, and generates a picture with biometric information. The biometric information corresponds to the n sensor data. It can be seen that the method provided by this application completes the annotation of the image during the image generation process, without the need for subsequent feature extraction of the saved image, saving hardware resources; and it can be combined with the sensor data of the wearable device to Images are annotated with more precise and rich features.

接下来本申请还提供了一种针对视频进行拍摄的方法流程。请参见图24,图24示出了一种针对视频进行拍摄的方法流程图。Next, this application also provides a method and process for shooting videos. Please refer to FIG. 24 , which shows a flow chart of a method for shooting videos.

步骤S401:n个穿戴设备和第三设备建立连接,拍摄设备和第三设备建立连接。具体描述可以参考步骤S301的描述,此处不再赘述。Step S401: n wearable devices establish connections with the third device, and the shooting device establishes connections with the third device. For specific description, please refer to the description of step S301, which will not be described again here.

步骤S402:拍摄设备检测到触发拍摄视频功能的用户操作。具体描述可以参考步骤S202的描述,此处不再赘述。Step S402: The shooting device detects a user operation that triggers the video shooting function. For specific description, please refer to the description of step S202, which will not be described again here.

步骤S403:拍摄设备向第三设备发送请求消息,该请求消息用于请求获取传感器数据或生物特征信息。Step S403: The photographing device sends a request message to the third device, where the request message is used to request acquisition of sensor data or biometric information.

此步骤的具体描述可以参考步骤S203的描述,与步骤S203不同的是,拍摄设备向第三设备发送请求消息。For a detailed description of this step, please refer to the description of step S203. The difference from step S203 is that the shooting device sends a request message to the third device.

步骤S404:第三设备分别向n个穿戴设备转发该请求消息。Step S404: The third device forwards the request message to n wearable devices respectively.

第三设备接收到拍摄设备发送的请求消息后,向n个穿戴设备转发该请求消息。After receiving the request message sent by the shooting device, the third device forwards the request message to n wearable devices.

步骤S405:穿戴设备周期性发送传感器数据或生物特征信息,传感器数据或生物特征信息中包含穿戴设备的身份信息。Step S405: The wearable device periodically sends sensor data or biometric information, and the sensor data or biometric information contains the identity information of the wearable device.

此步骤的具体描述可以参考步骤S204的描述,与步骤S204不同的是,n个穿戴设备向第三设备发送传感器数据或生物特征信息,传感器数据或生物特征信息中还包含穿戴设备的身份信息,该身份信息可以唯一表示一个穿戴设备。For a detailed description of this step, please refer to the description of step S204. The difference from step S204 is that n wearable devices send sensor data or biometric information to the third device. The sensor data or biometric information also includes the identity information of the wearable device. This identity information can uniquely represent a wearable device.

步骤S406:第三设备确定一个周期内所有连接的穿戴设备的传感器数据或生物特征信息接收完整后,发送给拍摄设备。Step S406: After the third device determines that the sensor data or biometric information of all connected wearable devices within a period has been completely received, it sends it to the shooting device.

由于n个穿戴设备周期性向第三设备发送传感器数据或生物特征信息,第三设备在一个周期性内会接收到n个传感器数据或生物特征信息。n个穿戴设备的传感器数据或生物特征信息包括穿戴设备的身份信息,第三设备根据获取的身份信息判断是否接收到所有连接的穿戴设备的传感器数据或生物特征信息。若接收到了n个穿戴设备的传感器数据或生物特征信息,将该n个穿戴设备的传感器数据或生物特征信息发送给拍摄设备。Since n wearable devices periodically send sensor data or biometric information to the third device, the third device will receive n pieces of sensor data or biometric information within a period. The sensor data or biometric information of the n wearable devices includes the identity information of the wearable devices, and the third device determines whether to receive the sensor data or biometric information of all connected wearable devices based on the acquired identity information. If the sensor data or biometric information of n wearable devices is received, the sensor data or biometric information of the n wearable devices is sent to the shooting device.

步骤S407:拍摄设备每收到一次传感器数据或生物特征信息,对拍摄到的视频信息与生物特征信息进行融合编码,生成带有生物特征信息的图像帧,该生物特征信息与传感器数据对应。Step S407: Each time the shooting device receives sensor data or biometric information, it fuses and codes the captured video information and biometric information to generate an image frame with biometric information, and the biometric information corresponds to the sensor data.

具体描述可以参考步骤S205的描述,此处不再赘述。For specific description, please refer to the description of step S205, which will not be described again here.

步骤S408:拍摄设备检测到触发停止拍摄视频的用户操作。具体描述可以参考步骤S206的描述,此处不再赘述。Step S408: The shooting device detects a user operation that triggers stopping of shooting video. For specific description, please refer to the description of step S206, which will not be described again here.

步骤S409:拍摄设备向第三设备发送请求消息,用于停止获取传感器数据或生物特征信息。具体描述可以参考步骤S207的描述,与步骤S207不同的是,拍摄设备向第三设备发送请求消息。Step S409: The photographing device sends a request message to the third device for stopping acquiring sensor data or biometric information. For specific description, please refer to the description of step S207. The difference from step S207 is that the shooting device sends a request message to the third device.

步骤S410:第三设备分别向n个穿戴设备转发该请求消息。Step S410: The third device forwards the request message to n wearable devices respectively.

第三设备接收到拍摄设备发送的请求消息后,向n个穿戴设备转发该请求消息。该请求消息用于停止获取传感器数据或生物特征信息,穿戴设备接收到该请求消息,停止发送传感器数据或生物特征信息。After receiving the request message sent by the shooting device, the third device forwards the request message to n wearable devices. This request message is used to stop obtaining sensor data or biometric information. The wearable device receives the request message and stops sending sensor data or biometric information.

步骤S411:拍摄设备生成并保存视频。Step S411: The shooting device generates and saves the video.

此步骤的具体描述可以参考步骤S208的描述,与步骤S208不同的是,生成的视频可以参考上述图18a和图18b所示,当用户查看该视频时,随着视频的播放进度显示生物特征信息,生物特征信息的显示内容可以是简单的一句话,也可以是详细完整的信息。其中生物特征信息的显示内容、显示位置以及显示形式本申请不作限制。The specific description of this step can refer to the description of step S208. The difference from step S208 is that the generated video can refer to the above-mentioned Figure 18a and Figure 18b. When the user views the video, the biometric information is displayed as the video progresses. , the displayed content of biometric information can be a simple sentence or detailed and complete information. The display content, display position and display form of the biometric information are not limited in this application.

本申请实施例中,拍摄设备和n个穿戴设备通过第三设备建立连接,拍摄设备在智能标注模式下检测到触发拍摄视频功能的用户操作,在获取视频信息的同时,通过第三设备向穿戴设备发送请求消息。拍摄设备通过第三设备接收到n个穿戴设备的传感器数据或生物特征信息,将n个生物特征信息与图像帧进行融合编码,随着视频拍摄的过程生成带有生物特征信息的图像帧,该生物特征信息与传感器数据对应。可以看出,本申请提供的这种方式是在视频生成的过程中完成对视频中图像帧的特征识别,而不需要后续对保存的视频进行特征识别和提取,节约了硬件资源;并且可以结合穿戴设备的传感器数据对视频进行更加精准和丰富的特征识别。In the embodiment of the present application, the shooting device and n wearable devices are connected through a third device. The shooting device detects a user operation that triggers the video shooting function in the intelligent annotation mode. While obtaining the video information, the shooting device sends a message to the wearable device through the third device. The device sends a request message. The shooting device receives sensor data or biometric information from n wearable devices through a third device, fuses and codes the n biometric information with image frames, and generates image frames with biometric information as the video shooting process progresses. Biometric information corresponds to sensor data. It can be seen that the method provided by this application completes the feature recognition of image frames in the video during the video generation process, without the need for subsequent feature recognition and extraction of the saved video, saving hardware resources; and can be combined with Sensor data from wearable devices enables more accurate and richer feature recognition in videos.

本申请实施例提及的用户操作包括但不限于点击、双击、长按、滑动、悬浮手势、语音指令等操作。The user operations mentioned in the embodiments of this application include but are not limited to click, double-click, long press, slide, hover gesture, voice command and other operations.

本申请实施例提及的第一操作可以为触发拍摄图片功能的用户操作,或触发拍摄视频功能的用户操作。例如前述步骤S102、步骤S302中描述的触发拍摄图片功能的用户操作,前述步骤S202、步骤S402中描述的触发拍摄视频功能的用户操作。The first operation mentioned in the embodiment of the present application may be a user operation that triggers a picture shooting function, or a user operation that triggers a video shooting function. For example, the user operation that triggers the picture shooting function described in the aforementioned step S102 and step S302, and the user operation that triggers the video shooting function described in the aforementioned step S202 and step S402.

本申请实施例提及的第一信息可以为与图片/视频文件进行融合编码的生物特征信息。The first information mentioned in the embodiment of this application may be biometric information that is fused and encoded with a picture/video file.

本申请实施例提及的第二信息可以为在预览界面上显示的生物特征信息。The second information mentioned in the embodiment of this application may be biometric information displayed on the preview interface.

针对于上述的方法流程,下面示例性的简要介绍三种本申请实施例适用的应用场景。Regarding the above method flow, three exemplary application scenarios applicable to the embodiments of the present application are briefly introduced below.

场景一,家居环境,拍摄特定用户的舞蹈图片/视频、瑜伽图片/视频等。Scene 1, home environment, shoot dance pictures/videos, yoga pictures/videos, etc. of specific users.

用户一想要使用手机为用户二拍摄舞蹈视频,可以选择标注模式为用户二进行拍摄。将智能手表佩戴在用户二手上,并将手机与用户二手上的智能手表建立连接。连接成功后,用户一选择标注模式,使用手机为用户二进行拍摄,此时拍摄获取的图片/视频是具有生物特征信息的。该生物特征信息可以指示用户二在跳舞过程中的健康状态,进一步判断出用户二的疲惫程度、身体压力等;该生物特征信息还可以指示用户二在跳舞过程中的运动姿势,进一步判断出该运动姿势是否标准;等等。If user one wants to use his mobile phone to shoot a dance video for user two, he can choose the annotation mode to shoot for user two. Wear the smart watch on the user's phone and establish a connection between the mobile phone and the smart watch on the user's phone. After the connection is successful, user 1 selects the annotation mode and uses the mobile phone to shoot user 2. The pictures/videos captured at this time contain biometric information. The biometric information can indicate the health status of user 2 during the dancing process, and further determine the fatigue level, physical stress, etc. of user 2; the biometric information can also indicate the movement posture of user 2 during dancing, and further determine the Whether the exercise posture is standard; etc.

在拍照之前,用户一可以根据需求在手机或智能手表上进行配置,配置的内容决定了生物特征信息的内容。例如,用户一在手机上配置开启心率信息、运动状态信息、情绪状态信息等选项,则拍摄出的舞蹈视频的生物特征信息包括用户二的心率信息、运动状态信息、情绪状态信息等信息。Before taking a photo, the user can configure it on the mobile phone or smart watch according to the needs. The configuration content determines the content of the biometric information. For example, if user 1 configures options such as turning on heart rate information, motion status information, and emotional state information on the mobile phone, the biometric information of the dance video captured includes user 2's heart rate information, motion status information, emotional state information, and other information.

由于家居场景比较单纯,视频中大概率只会包括用户二这一个人物,该生物特征信息指示用户二的相关信息,则视频的生物特征信息可以显示在手机的显示屏中的固定位置。Since the home scene is relatively simple, there is a high probability that the video will only include user 2. The biometric information indicates the relevant information of user 2, and the biometric information of the video can be displayed at a fixed position on the display of the mobile phone.

场景二,户外活动场景,拍摄多人物中特定用户的游玩图片/视频。Scene 2: Outdoor activity scene, shooting pictures/videos of specific users among multiple characters.

用户一想要使用手机为用户二在公园拍摄游玩图片,可以选择标注模式为用户二进行拍摄。将智能手表佩戴在用户二手上,并将手机与用户二手上的智能手表建立连接。连接成功后,用户一选择标注模式,使用手机为用户二进行拍摄,此时拍摄获取的图片/视频是具有生物特征信息的。该生物特征信息可以指示用户二的运动姿势、情绪状态(例如愉快、激动等)等,还可以指示当时的环境状态(例如空气质量、空气温湿度等)。If user 1 wants to use his mobile phone to take pictures of user 2 playing in the park, he can choose the annotation mode to take pictures for user 2. Wear the smart watch on the user's phone and establish a connection between the mobile phone and the smart watch on the user's phone. After the connection is successful, user 1 selects the annotation mode and uses the mobile phone to shoot user 2. The pictures/videos captured at this time contain biometric information. The biometric information can indicate user 2's movement posture, emotional state (such as happiness, excitement, etc.), etc., and can also indicate the current environmental state (such as air quality, air temperature and humidity, etc.).

由于公园中游客比较多,场景比较复杂,用户一为用户二拍摄的图片中可能会出现其他的游客,该生物特征信息指示用户二的相关信息,则图片的生物特征信息可以显示在用户二的附近,将生物特征信息与用户二在图片上进行匹配。Since there are many tourists in the park and the scene is complex, other tourists may appear in the pictures taken by User 1 for User 2. The biometric information indicates the relevant information of User 2, and the biometric information of the pictures can be displayed on User 2’s screen. Nearby, the biometric information is matched to user two on the image.

场景三,专业训练场馆、健身场馆,拍摄多人物中多用户的训练图片/视频。Scene 3: Professional training venues and fitness venues, shooting training pictures/videos of multiple users among multiple people.

在例如健身场馆、训练室等场景中,通常包括多个学员一起运动,教练需要掌握每一个学员的运动状况。则拍摄设备需要与多个穿戴设备进行连接,例如图22所示的系统架构,拍摄设备和多个穿戴设备通过第三设备建立连接。In scenarios such as fitness venues and training rooms, multiple students usually exercise together, and coaches need to understand the movement status of each student. Then the shooting device needs to be connected to multiple wearable devices. For example, in the system architecture shown in Figure 22, the shooting device and multiple wearable devices are connected through a third device.

将多个智能手表分别佩戴在多个用户的手上,多个智能手表与第三设备建立连接,拍摄设备与第三设备建立连接。连接成功后,使用拍摄设备为多个用户进行拍摄,此时拍摄获取的图片/视频是具有生物特征信息的。该生物特征信息可以指示用户的心率、血压、血糖、运动姿势等信息,进一步判断运动姿势是否标准、用户是否适合加大训练强度等。可以用于教练对运动人体的动作指导、训练疲惫度监测。Multiple smart watches are worn on the hands of multiple users respectively, the multiple smart watches are connected to the third device, and the shooting device is connected to the third device. After the connection is successful, use the shooting device to shoot for multiple users. The pictures/videos captured at this time contain biometric information. This biometric information can indicate the user's heart rate, blood pressure, blood sugar, exercise posture and other information, and further determine whether the exercise posture is standard and whether the user is suitable for increasing training intensity. It can be used by coaches to guide movements of the sports body and monitor training fatigue.

由于场景三针对于多个用户,该生物特征信息指示了多个用户的相关信息,则在图片/视频中,不同学员的生物特征信息可以分别显示在对应的用户附近,将不同用户的生物特征信息与用户本人在图片上进行匹配。这样便于对不同用户的生物特征信息有针对性的进行查看。Since scene three targets multiple users, and the biometric information indicates relevant information of multiple users, in the pictures/videos, the biometric information of different students can be displayed near the corresponding users respectively, and the biometric information of different users can be displayed separately. The information is matched on the image with the user himself. This facilitates targeted viewing of biometric information of different users.

本申请实施例还提供了一种计算机可读存储介质。上述方法实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,则功能可以作为一个或多个指令或代码存储在计算机可读介质上或者在计算机可读介质上传输。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何可用介质。An embodiment of the present application also provides a computer-readable storage medium. The methods described in the above method embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media may include computer storage media and communication media and may include any medium that can transfer a computer program from one place to another. Storage media can be any available media that can be accessed by a computer.

本申请实施例还提供了一种计算机程序产品。上述方法实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,可以全部或者部分得通过计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行上述计算机程序指令时,全部或部分地产生按照上述方法实施例中描述的流程或功能。上述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其它可编程装置。An embodiment of the present application also provides a computer program product. The methods described in the above method embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the processes or functions described in the above method embodiments are generated in whole or in part. The above-mentioned computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.

本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the methods of the embodiments of this application can be sequence adjusted, combined, and deleted according to actual needs.

以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still make the foregoing technical solutions. The technical solutions described in each embodiment may be modified, or some of the technical features may be equivalently replaced; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions in each embodiment of the present application.

Claims (33)

CN202010839365.9A2020-08-192020-08-19Shooting method and shooting systemActiveCN114079730B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202010839365.9ACN114079730B (en)2020-08-192020-08-19Shooting method and shooting system
PCT/CN2021/112362WO2022037479A1 (en)2020-08-192021-08-12Photographing method and photographing system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010839365.9ACN114079730B (en)2020-08-192020-08-19Shooting method and shooting system

Publications (2)

Publication NumberPublication Date
CN114079730A CN114079730A (en)2022-02-22
CN114079730Btrue CN114079730B (en)2023-09-12

Family

ID=80281788

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010839365.9AActiveCN114079730B (en)2020-08-192020-08-19Shooting method and shooting system

Country Status (2)

CountryLink
CN (1)CN114079730B (en)
WO (1)WO2022037479A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116955662A (en)*2022-04-142023-10-27华为技术有限公司 Media file management method, device, equipment and storage medium
CN115439307B (en)*2022-08-082023-06-27荣耀终端有限公司Style conversion method, style conversion model generation method and style conversion system

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1510903A (en)*2002-11-252004-07-07��˹���´﹫˾Image method and system
JP2016082482A (en)*2014-10-202016-05-16シャープ株式会社 Image recording device
CN105830066A (en)*2013-12-192016-08-03微软技术许可有限责任公司Tagging images with emotional state information
CN106464287A (en)*2014-05-052017-02-22索尼公司Embedding biometric data from a wearable computing device in metadata of a recorded image

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
GB2370709A (en)*2000-12-282002-07-03Nokia Mobile Phones LtdDisplaying an image and associated visual effect
US20070124292A1 (en)*2001-10-302007-05-31Evan KirshenbaumAutobiographical and other data collection system
KR100828371B1 (en)*2006-10-272008-05-08삼성전자주식회사 Method and apparatus for generating metadata of content
US9189682B2 (en)*2014-02-132015-11-17Apple Inc.Systems and methods for sending digital images
CN107320114B (en)*2017-06-292020-12-25京东方科技集团股份有限公司Shooting processing method, system and equipment based on brain wave detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1510903A (en)*2002-11-252004-07-07��˹���´﹫˾Image method and system
CN105830066A (en)*2013-12-192016-08-03微软技术许可有限责任公司Tagging images with emotional state information
CN106464287A (en)*2014-05-052017-02-22索尼公司Embedding biometric data from a wearable computing device in metadata of a recorded image
JP2016082482A (en)*2014-10-202016-05-16シャープ株式会社 Image recording device

Also Published As

Publication numberPublication date
CN114079730A (en)2022-02-22
WO2022037479A1 (en)2022-02-24

Similar Documents

PublicationPublication DateTitle
CN111669515B (en) A video generation method and related device
US20220176200A1 (en)Method for Assisting Fitness and Electronic Apparatus
CN114466128B (en)Target user focus tracking shooting method, electronic equipment and storage medium
WO2020078299A1 (en)Method for processing video file, and electronic device
WO2020029306A1 (en)Image capture method and electronic device
WO2020211701A1 (en)Model training method, emotion recognition method, related apparatus and device
CN109829107A (en)A kind of recommended method and electronic equipment based on user movement state
CN112532869A (en)Image display method in shooting scene and electronic equipment
CN110489215A (en)The treating method and apparatus of scene is waited in a kind of application program
WO2021258814A1 (en)Video synthesis method and apparatus, electronic device, and storage medium
WO2021104485A1 (en)Photographing method and electronic device
CN110059211B (en)Method and related device for recording emotion of user
WO2021052139A1 (en)Gesture input method and electronic device
WO2022206764A1 (en)Display method, electronic device, and system
CN113542574A (en) Shooting preview method, terminal, storage medium and electronic device under zoom
CN114079730B (en)Shooting method and shooting system
WO2022100597A1 (en)Adaptive action evaluation method, electronic device, and storage medium
CN111339513B (en) Method and device for data sharing
CN115273216A (en)Target motion mode identification method and related equipment
CN114860178A (en) Screen projection method and electronic device
CN113996046A (en) Warm-up judgment method, device and electronic device
CN115730091A (en)Comment display method and device, terminal device and readable storage medium
EP4546128A1 (en)Dial interface display method and electronic device
CN114079694B (en) Control labeling method and device
CN116450026A (en)Method and system for identifying touch operation

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp