Movatterモバイル変換


[0]ホーム

URL:


CN111510785A - Video playback control method, device, terminal and computer-readable storage medium - Google Patents

Video playback control method, device, terminal and computer-readable storage medium
Download PDF

Info

Publication number
CN111510785A
CN111510785ACN202010302812.7ACN202010302812ACN111510785ACN 111510785 ACN111510785 ACN 111510785ACN 202010302812 ACN202010302812 ACN 202010302812ACN 111510785 ACN111510785 ACN 111510785A
Authority
CN
China
Prior art keywords
terminal
earphone
target image
video
controlling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010302812.7A
Other languages
Chinese (zh)
Other versions
CN111510785B (en
Inventor
李赟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010302812.7ApriorityCriticalpatent/CN111510785B/en
Publication of CN111510785ApublicationCriticalpatent/CN111510785A/en
Application grantedgrantedCritical
Publication of CN111510785BpublicationCriticalpatent/CN111510785B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The present application belongs to the technical field of video playing, and in particular, to a method, an apparatus, a terminal and a computer-readable storage medium for controlling video playing, wherein the method for controlling video playing includes: detecting the wearing state of an earphone connected with a terminal, and acquiring a target image acquired by a camera of the terminal; carrying out face recognition on the target image to obtain a face recognition result of the target image; and respectively controlling the playing and the pausing of the video picture and the audio content of the terminal according to the wearing state of the earphone connected with the terminal and the face recognition result of the target image, thereby improving the flexibility of the video playing control of the terminal.

Description

Translated fromChinese
视频播放的控制方法、装置、终端和计算机可读存储介质Video playback control method, device, terminal and computer-readable storage medium

技术领域technical field

本申请属于视频播放技术领域,尤其涉及一种视频播放的控制方法、装置、终端和计算机可读存储介质。The present application belongs to the technical field of video playback, and in particular, relates to a control method, device, terminal and computer-readable storage medium for video playback.

背景技术Background technique

随着手机等终端能为用户提供的视频内容越来越丰富,越来越多的用户开始使用手机等终端观看视频,使得用户对视频播放功能的要求也越来越高。As mobile phones and other terminals can provide users with more and more rich video content, more and more users begin to use mobile phones and other terminals to watch videos, making users' requirements for video playback functions higher and higher.

然而,目前,用户在使用终端观看视频时,通常只能通过视频播放应用的播放控制键来控制视频的播放和暂停,存在视频播放控制灵活性差的问题。However, at present, when a user uses a terminal to watch a video, he or she can usually only control the playback and pause of the video through the playback control keys of the video playback application, which has the problem of poor video playback control flexibility.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种视频播放的控制方法、装置、终端和计算机可读存储介质,可以提高终端视频播放控制的灵活性。Embodiments of the present application provide a video playback control method, device, terminal, and computer-readable storage medium, which can improve the flexibility of terminal video playback control.

本申请实施例第一方面提供一种视频播放的控制方法,包括:A first aspect of the embodiments of the present application provides a method for controlling video playback, including:

检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像;Detecting the wearing state of the earphone connected to the terminal, and acquiring the target image collected by the camera of the terminal;

对所述目标图像进行人脸识别,得到所述目标图像的人脸识别结果;performing face recognition on the target image to obtain a face recognition result of the target image;

根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果分别控制所述终端视频画面以及音频内容的播放与暂停。According to the wearing state of the earphone connected to the terminal and the face recognition result of the target image, the terminal video screen and audio content are respectively controlled to play and pause.

本申请实施例第二方面提供一种视频播放的控制装置,包括:A second aspect of the embodiments of the present application provides a control device for video playback, including:

检测单元,用于检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像;a detection unit, configured to detect the wearing state of the earphone connected to the terminal, and acquire the target image collected by the camera of the terminal;

识别单元,用于对所述目标图像进行人脸识别,得到所述目标图像的人脸识别结果;a recognition unit, configured to perform face recognition on the target image to obtain a face recognition result of the target image;

控制单元,用于根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果分别控制所述终端视频画面以及音频内容的播放与暂停。The control unit is configured to respectively control the playing and pausing of the video screen and audio content of the terminal according to the wearing state of the earphone connected to the terminal and the face recognition result of the target image.

本申请实施例第三方面提供一种终端,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述方法的步骤。A third aspect of an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the above method when the computer program is executed.

本申请实施例第四方面提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the foregoing method are implemented.

本申请实施例中,通过检测与终端连接的耳机的佩戴状态,并对所述终端的摄像头采集的目标图像进行人脸识别,接着,根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果分别控制所述终端视频画面以及音频内容的播放与暂停,实现了所述终端在视频播放过程中视频画面以及音频内容播放与暂停的自动控制,并且,实现了所述终端在视频播放过程中视频画面以及音频内容播放与暂停的独立控制,而非同步控制。例如,本申请实施例中,可以根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果控制终端实现视频画面暂停播放,而音频内容继续播放;或者,根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果控制终端实现视频画面继续播放,而音频内容暂停播放;而不是只能控制视频画面以及音频内容同时播放或者同时暂停播放,因而,可以提高终端视频播放控制的灵活性,同时,还可以在一定程度上降低终端的能耗。In the embodiment of the present application, by detecting the wearing state of the earphone connected to the terminal, and performing face recognition on the target image collected by the camera of the terminal, then, according to the wearing state of the earphone connected to the terminal and the target image The face recognition result of the image controls the playback and pause of the video screen and audio content of the terminal respectively, which realizes the automatic control of the playback and pause of the video screen and the audio content in the video playback process of the terminal, and realizes the terminal In the process of video playback, the independent control of video screen and audio content playback and pause, rather than synchronous control. For example, in this embodiment of the present application, the terminal may be controlled to pause the playback of the video screen and continue to play the audio content according to the wearing state of the earphone connected to the terminal and the face recognition result of the target image; The wearing state of the earphone connected to the terminal and the face recognition result of the target image control the terminal to realize that the video picture continues to be played, and the audio content is suspended; instead of only controlling the video picture and the audio content to play or pause at the same time, therefore, The flexibility of the terminal video playback control can be improved, and at the same time, the power consumption of the terminal can also be reduced to a certain extent.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following drawings will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.

图1是本申请实施例提供的一种视频播放的控制方法的实现流程示意图;FIG. 1 is a schematic flowchart of the implementation of a method for controlling video playback provided by an embodiment of the present application;

图2是本申请实施例提供的一种视频播放的控制方法步骤103的具体实现流程示意图;2 is a schematic flowchart of a specific implementation ofstep 103 of a method for controlling video playback provided by an embodiment of the present application;

图3是本申请实施例提供的一种视频播放的控制方法步骤101的第一具体实现流程示意图;FIG. 3 is a schematic flowchart of a first specific implementation ofstep 101 of a method for controlling video playback provided by an embodiment of the present application;

图4是本申请实施例提供的一种视频播放的控制方法步骤101的第二具体实现流程示意图;FIG. 4 is a schematic flowchart of a second specific implementation ofstep 101 of a method for controlling video playback provided by an embodiment of the present application;

图5是本申请实施例提供的一种视频播放的控制装置的结构示意图;5 is a schematic structural diagram of a control device for video playback provided by an embodiment of the present application;

图6是本申请实施例提供的终端的结构示意图。FIG. 6 is a schematic structural diagram of a terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other features , whole, step, operation, element, component and/or the presence or addition of a collection thereof.

还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the application herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.

还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .

为了说明本申请的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present application, the following specific embodiments are used for description.

目前,用户在使用终端观看视频时,通常只能通过视频播放应用的播放控制键来控制视频的播放和暂停,并且,只能同步控制视频对应的视频画面以及音频内容的播放暂停,即,只能控制视频对应的视频画面以及音频内容同时播放或者同时暂停,而无法实现视频对应的视频画面以及音频内容的独立控制,存在视频播放控制灵活性差的问题。At present, when a user watches a video on a terminal, he can usually only control the playback and pause of the video through the playback control keys of the video playback application, and can only synchronously control the playback and pause of the video image and audio content corresponding to the video, that is, only The video picture and audio content corresponding to the video can be controlled to play or pause at the same time, but the independent control of the video picture and the audio content corresponding to the video cannot be realized, and there is a problem of poor video playback control flexibility.

基于此,本申请实施例提供一种视频播放的控制方法、装置、终端和计算机可读存储介质,可以提高终端视频播放控制的灵活性,并降低终端的能耗。Based on this, the embodiments of the present application provide a video playback control method, device, terminal, and computer-readable storage medium, which can improve the flexibility of terminal video playback control and reduce the power consumption of the terminal.

如图1示出了本申请实施例提供的一种视频播放的控制方法的第一实现流程示意图,该方法可以应用于本申请实施例中的终端,并由终端上配置的视频播放的控制装置执行,也可以应用于本申请实施例中的耳机,并由耳机上配置的视频播放的控制装置执行。在本申请实施例中,上述终端可以为手机、平板电脑等可以实现视频播放功能的终端。FIG. 1 shows a schematic diagram of a first implementation flow of a method for controlling video playback provided by an embodiment of the present application. The method can be applied to a terminal in an embodiment of the present application, and a video playback control device configured on the terminal is used. The execution can also be applied to the headset in the embodiment of the present application, and is executed by the video playback control device configured on the headset. In the embodiment of the present application, the above-mentioned terminal may be a terminal that can implement a video playback function, such as a mobile phone and a tablet computer.

具体的,上述视频播放的控制方法可以包括步骤101至步骤103。Specifically, the above-mentioned control method for video playback may includesteps 101 to 103 .

步骤101,检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像。Step 101: Detect the wearing state of the earphone connected to the terminal, and acquire the target image collected by the camera of the terminal.

本申请实施例中,当终端前台运行的应用正在进行视频播放,并且检测到终端连接有耳机时,可以通过检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像,接着,根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果实现分别控制所述终端视频画面以及音频内容的播放与暂停,以提高终端视频播放控制的灵活性。In the embodiment of the present application, when an application running in the foreground of the terminal is playing video and detects that the terminal is connected to an earphone, the wearing state of the earphone connected to the terminal can be detected, and the target image collected by the camera of the terminal can be acquired, Then, according to the wearing state of the headset connected to the terminal and the face recognition result of the target image, the terminal video screen and audio content are controlled to play and pause respectively, so as to improve the flexibility of terminal video playback control.

在本申请实施例中,上述与终端连接的耳机的佩戴状态可以包括正常佩戴状态和未佩戴状态。其中,正常佩戴状态是指耳机位于用户耳朵位置的状态;未佩戴状态是指耳机没有位于用户耳朵位置的状态。In the embodiment of the present application, the wearing state of the above-mentioned earphone connected to the terminal may include a normal wearing state and an unworn state. The normal wearing state refers to a state in which the headset is located at the user's ear; the unworn state refers to a state in which the headset is not located at the user's ear.

步骤102,对所述目标图像进行人脸识别,得到所述目标图像的人脸识别结果。Step 102: Perform face recognition on the target image to obtain a face recognition result of the target image.

在本申请实施例中,上述终端的摄像头采集的目标图像为终端上位于显示屏一侧的摄像头采集的图像,通过对该目标图像进行人脸识别,即可确定用户是否正在观看终端上的视频画面。In the embodiment of the present application, the target image collected by the camera of the terminal is the image collected by the camera located on the side of the display screen on the terminal. By performing face recognition on the target image, it can be determined whether the user is watching the video on the terminal. screen.

具体的,当用户正在观看终端上的视频画面时,上述目标图像的人脸识别结果为目标图像中包含目标人脸;当用户未观看终端上的视频画面时,上述目标图像的人脸识别结果为目标图像中不包含目标人脸。Specifically, when the user is watching the video screen on the terminal, the face recognition result of the target image is that the target image contains the target face; when the user is not watching the video screen on the terminal, the face recognition result of the target image is the target image. The target image does not contain the target face.

步骤103,根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果分别控制所述终端视频画面以及音频内容的播放与暂停。Step 103 , according to the wearing state of the earphone connected to the terminal and the face recognition result of the target image, respectively control the playing and pausing of the video screen and audio content of the terminal.

通常在终端进行视频播放的过程中,若终端连接有耳机,则视频对应音频内容将从耳机端输出。当与终端连接的耳机的佩戴状态为未佩戴状态时,表示用户并没有利用该耳机收听视频对应的音频内容,因此,为了降低终端的使用能耗,此时,可以控制所述终端暂停音频内容的播放。当与终端连接的耳机的佩戴状态为正常佩戴状态时,表示用户正利用该耳机收听视频对应的音频内容,因此,需要控制所述终端保持音频内容正常播放。Usually, in the process of video playback on the terminal, if the terminal is connected with an earphone, the audio content corresponding to the video will be output from the earphone end. When the wearing state of the earphone connected to the terminal is not wearing, it means that the user does not use the earphone to listen to the audio content corresponding to the video. Therefore, in order to reduce the energy consumption of the terminal, at this time, the terminal can be controlled to pause the audio content 's playback. When the wearing state of the earphone connected to the terminal is the normal wearing state, it means that the user is using the earphone to listen to the audio content corresponding to the video. Therefore, the terminal needs to be controlled to keep the audio content playing normally.

另外,在识别出目标图像中包含目标人脸时,表示用户正在观看终端上的视频画面,因此,需要控制所述终端保持视频画面正常播放;在识别出目标图像中包含目标人脸时,表示用户未观看终端上的视频画面,因此,为了降低终端的使用能耗,此时,可以控制所述终端暂停视频画面的播放。In addition, when it is recognized that the target image contains the target face, it means that the user is watching the video screen on the terminal, therefore, the terminal needs to be controlled to keep the video screen playing normally; when it is recognized that the target image contains the target face, it means that the user is watching the video screen on the terminal. The user does not watch the video picture on the terminal. Therefore, in order to reduce the energy consumption of the terminal, at this time, the terminal can be controlled to suspend the playing of the video picture.

所以,在本申请实施例中,可以通过检测与终端连接的耳机的佩戴状态,并对所述终端的摄像头采集的目标图像进行人脸识别,接着,根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果分别控制所述终端视频画面以及音频内容的播放与暂停,实现所述终端在视频播放过程中视频画面以及音频内容播放与暂停的自动控制,并且,实现所述终端在视频播放过程中视频画面以及音频内容播放与暂停的独立控制,提高终端视频播放控制的灵活性,以及降低终端的能耗。Therefore, in this embodiment of the present application, the wearing state of the earphone connected to the terminal can be detected, and face recognition can be performed on the target image collected by the camera of the terminal, and then, according to the wearing state of the earphone connected to the terminal And the face recognition result of the target image respectively controls the playing and pausing of the video picture and audio content of the terminal, so as to realize the automatic control of the playing and pausing of the video picture and the audio content of the terminal during the video playing process, and realize the The independent control of playing and pausing the video picture and audio content of the terminal during the video playing process improves the flexibility of the terminal's video playing control and reduces the power consumption of the terminal.

例如,如图2所示,在本申请实施例中,上述步骤103中,根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果分别控制所述终端视频画面以及音频内容的播放与暂停,可以包括:步骤201至步骤204。For example, as shown in FIG. 2 , in the embodiment of the present application, in theabove step 103, the video screen and audio of the terminal are respectively controlled according to the wearing state of the earphone connected to the terminal and the face recognition result of the target image. Playing and pausing the content may includesteps 201 to 204 .

步骤201,若与所述终端连接的耳机处于未佩戴状态,并且所述目标图像中包含目标人脸,则控制所述终端播放视频画面,并控制所述终端暂停播放与所述视频画面对应的音频内容。Step 201, if the earphone connected to the terminal is in an unworn state, and the target image contains the target face, control the terminal to play a video image, and control the terminal to pause playing the video corresponding to the video image. audio content.

例如,用户希望耳朵能够得到休息而摘下耳机,或者,用户需要听其他外部声音而摘下耳机,并且,不想中断视频观看的情况下,则可以通过摘下耳机,以便终端或者耳机在检测到与所述终端连接的耳机处于未佩戴状态,并且所述目标图像中包含目标人脸时,控制所述终端正常播放视频画面,并控制所述终端暂停播放与所述视频画面对应的音频内容,实现终端视频播放过程中视频画面以及音频内容播放的灵活控制,同时,降低终端的能耗。For example, the user takes off the earphone if he wants his ears to rest, or if he needs to listen to other external sounds and takes off the earphone, and if he does not want to interrupt the video viewing, he can remove the earphone by taking off the earphone so that the terminal or earphone detects that the When the earphone connected to the terminal is in an unworn state, and the target image contains the target face, control the terminal to play the video image normally, and control the terminal to pause playing the audio content corresponding to the video image, The flexible control of the video screen and audio content playback during the terminal video playback process is realized, and the energy consumption of the terminal is reduced at the same time.

步骤202,若与所述终端连接的耳机处于未佩戴状态,并且所述目标图像中不包含目标人脸,则控制所述终端暂停播放视频画面,并控制所述终端暂停播放与所述视频画面对应的音频内容。Step 202, if the headset connected to the terminal is in an unworn state, and the target image does not contain the target face, then control the terminal to pause playing the video image, and control the terminal to pause playing and the video image. corresponding audio content.

例如,用户在观看视频的过程中,因各种事情需要中断视频播放时,则可以通过摘下耳机,直接处理其他事情,此时,终端或者耳机在检测到与所述终端连接的耳机处于未佩戴状态,并且所述目标图像中不包含目标人脸时,直接控制所述终端暂停播放视频画面,并控制所述终端暂停播放与所述视频画面对应的音频内容。For example, in the process of watching a video, when the user needs to interrupt the video playback due to various things, he can directly handle other things by taking off the earphone. At this time, the terminal or the earphone detects that the earphone connected to the terminal is not When the target image is in the wearing state and the target image does not contain the target face, the terminal is directly controlled to pause playing the video image, and the terminal is controlled to pause playing the audio content corresponding to the video image.

步骤203,若与所述终端连接的耳机处于正常佩戴状态,并且所述目标图像中包含目标人脸,则控制所述终端播放视频画面,并控制所述终端播放与所述视频画面对应的音频内容。Step 203, if the headset connected to the terminal is in a normal wearing state, and the target image contains a target face, control the terminal to play a video image, and control the terminal to play audio corresponding to the video image content.

例如,用户处理完其他事情,需要继续观看视频时,可以通过终端或者耳机在检测到与所述终端连接的耳机处于正常佩戴状态,并且所述目标图像中包含目标人脸,控制所述终端继续播放视频画面,并控制所述终端播放与所述视频画面对应的音频内容,而不需要通过视频播放应用的播放控制键来控制视频的播放和暂停,提高了终端视频播放过程中视频画面以及音频内容播放控制的灵活性。For example, when the user has finished other things and needs to continue watching the video, he can use the terminal or the headset to detect that the headset connected to the terminal is in a normal wearing state, and the target image contains the target face, and control the terminal to continue Playing a video picture, and controlling the terminal to play the audio content corresponding to the video picture, without the need to control the playing and pausing of the video through the play control key of the video playback application, which improves the video picture and audio in the terminal video playing process. Flexibility in content playback control.

步骤204,若与所述终端连接的耳机处于正常佩戴状态,并且所述目标图像中不包含目标人脸,则控制所述终端播放音频内容,并控制所述终端暂停播放与所述音频内容对应的视频画面。Step 204, if the headset connected to the terminal is in a normal wearing state, and the target image does not contain the target face, then control the terminal to play audio content, and control the terminal to pause playback corresponding to the audio content video screen.

例如,用户希望眼睛能够得到休息,并且,不想中断视频观看的情况下,则可以通过将终端放置一旁,而直接听耳机播放的音频内容的方式观看视频。此时,终端或者耳机可以通过在检测到与所述终端连接的耳机处于正常佩戴状态,并且所述目标图像中不包含目标人脸,控制所述终端继续播放音频内容,并控制所述终端暂停播放与所述音频内容对应的视频画面,实现终端视频播放过程中视频画面以及音频内容播放的灵活控制,同时,降低终端的能耗。For example, if the user wants to rest their eyes, and does not want to interrupt video viewing, they can watch the video by placing the terminal aside and directly listening to the audio content played by the headset. At this time, the terminal or the earphone can control the terminal to continue playing the audio content and control the terminal to pause by detecting that the earphone connected to the terminal is in a normal wearing state and the target image does not contain the target face Playing the video picture corresponding to the audio content realizes flexible control of the video picture and audio content playing during the terminal video playing process, and at the same time, reduces the energy consumption of the terminal.

从上述图1和图2所示的实施例中可以看出,本申请实施例中,可以根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果实现终端在视频播放过程中视频画面以及音频内容播放与暂停的独立控制,而非同步控制;即,在控制终端实现视频画面的暂停与播放的过程中,不影响终端音频内容的暂停与播放;在控制终端实现音频内容的暂停与播放的过程中,不影响终端视频画面的暂停与播放,有效提高了终端视频播放控制的灵活性,同时,还可以在一定程度上降低终端的能耗。It can be seen from the embodiments shown in FIG. 1 and FIG. 2 above that, in the embodiment of the present application, the terminal can play the video according to the wearing state of the headset connected to the terminal and the face recognition result of the target image. The independent control of the playback and pause of the video screen and audio content in the process is not synchronous control; that is, in the process of the control terminal realizing the pause and playback of the video screen, the pause and playback of the audio content of the terminal are not affected; During the pause and playback of the content, the pause and playback of the terminal video screen are not affected, which effectively improves the flexibility of the terminal video playback control, and at the same time, can also reduce the power consumption of the terminal to a certain extent.

在本申请的一些实施方式中,为了进一步降低终端的能耗,在控制所述终端暂停播放视频画面之后,还可以包括:将所述终端的显示亮度调整为最低显示亮度,并在终端恢复视频画面的播放之后,恢复终端显示屏的显示亮度。In some embodiments of the present application, in order to further reduce the energy consumption of the terminal, after controlling the terminal to pause playing the video picture, the method may further include: adjusting the display brightness of the terminal to the lowest display brightness, and resuming the video on the terminal After the screen is played, the display brightness of the terminal display screen is restored.

例如,在控制所述终端暂停播放视频画面之后,若检测到上述目标图像中包含目标人脸,则可以恢复视频画面的播放,同时恢复终端显示屏的显示亮度。For example, after controlling the terminal to suspend the playback of the video image, if it is detected that the target image contains the target face, the playback of the video image can be resumed, and the display brightness of the terminal display screen can be restored at the same time.

另外,为了降低终端的能耗,如图3所示,在本申请的一些实施方式中,上述步骤101中,检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像,还可以包括:步骤301至步骤302。In addition, in order to reduce the energy consumption of the terminal, as shown in FIG. 3, in some embodiments of the present application, in theabove step 101, the wearing state of the earphone connected to the terminal is detected, and the target image collected by the camera of the terminal is acquired , and may further include:steps 301 to 302 .

步骤301,检测所述终端的运动状态是否发生改变。Step 301: Detect whether the motion state of the terminal changes.

在本申请的一些实施方式中,上述检测所述终端的运动状态是否发生改变可以包括:利用加速度传感器检测终端的加速度是否大于加速度阈值,若终端的加速度大于加速度阈值,则确定终端的运动状态发生改变,若终端的加速度小于或等于加速度阈值,则确定终端的运动状态未发生改变。In some embodiments of the present application, the above-mentioned detecting whether the motion state of the terminal changes may include: using an acceleration sensor to detect whether the acceleration of the terminal is greater than an acceleration threshold, and if the acceleration of the terminal is greater than the acceleration threshold, determining that the motion state of the terminal occurs If the acceleration of the terminal is less than or equal to the acceleration threshold, it is determined that the motion state of the terminal has not changed.

步骤302,若所述终端的运动状态发生改变,则检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像。Step 302, if the motion state of the terminal changes, detect the wearing state of the earphone connected to the terminal, and acquire the target image collected by the camera of the terminal.

由于用户在使用终端正常观看视频的过程中,一般会使终端保持某个相对固定的运动状态,例如,通过手持终端,使终端处于相对静止状态,即,保持终端的运动状态不发生改变,此时,用户一般也不会希望终端的视频播放状态发生改变。因此,为了降低终端的能耗,本申请实施例中,可以在检测到所述终端的运动状态未发生改变时,暂停检测与终端连接的耳机的佩戴状态,并暂停获取所述终端的摄像头采集的目标图像。而只有在检测到终端的运动状态发生改变时,检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像。Since the user normally uses the terminal to watch the video, the terminal generally keeps the terminal in a relatively fixed motion state. For example, by holding the terminal, the terminal is kept in a relatively static state, that is, the motion state of the terminal is kept unchanged. , the user generally does not want the video playback state of the terminal to change. Therefore, in order to reduce the energy consumption of the terminal, in this embodiment of the present application, when it is detected that the motion state of the terminal has not changed, the detection of the wearing state of the earphone connected to the terminal may be suspended, and the acquisition of the camera capture of the terminal may be suspended. target image. And only when it is detected that the motion state of the terminal changes, the wearing state of the earphone connected to the terminal is detected, and the target image collected by the camera of the terminal is acquired.

在本申请的一些实施方式中,如图4所示,上述检测与终端连接的耳机的佩戴状态,可以具体包括:步骤401至步骤403。In some embodiments of the present application, as shown in FIG. 4 , the above-mentioned detection of the wearing state of the earphone connected to the terminal may specifically includesteps 401 to 403 .

步骤401,获取所述耳机的温度传感器检测到的耳机温度值。Step 401: Acquire the temperature value of the earphone detected by the temperature sensor of the earphone.

其中,上述耳机的温度传感器为设置在耳机内侧(与用户耳朵接触的一侧)的温度传感器。Wherein, the temperature sensor of the earphone is a temperature sensor disposed inside the earphone (the side in contact with the user's ear).

步骤402,判断所述耳机温度值是否位于预设人体温度阈值区间。Step 402, judging whether the earphone temperature value is within a preset human body temperature threshold range.

步骤403,若所述耳机温度值位于所述预设人体温度阈值区间之外,则确定检测到与所述终端连接的耳机处于未佩戴状态。Step 403: If the earphone temperature value is outside the preset human body temperature threshold range, it is determined that the earphone connected to the terminal is detected to be in an unworn state.

本申请实施例中,上述预设人体温度阈值区间内的温度值为与用户的体温接近的温度,例如,上述预设人体温度阈值区间可以为(35,39)。因此,当耳机温度值位于预设人体温度阈值区间时,表示耳机能够检测到与用户的体温接近的温度,因此,耳机有可能佩戴在用户耳朵上(处于正常佩戴状态),而当耳机检测到的耳机温度值位于预设人体温度阈值区间之外时,表示耳机检测到的温度与用户的体温相差较大,因此,可以比较大的概率确定耳机未佩戴在用户耳朵上(处于未佩戴状态)。In this embodiment of the present application, the temperature value in the preset human body temperature threshold interval is a temperature close to the user's body temperature. For example, the preset human body temperature threshold interval may be (35, 39). Therefore, when the earphone temperature value is within the preset human body temperature threshold range, it means that the earphone can detect a temperature close to the user's body temperature. Therefore, the earphone may be worn on the user's ear (in a normal wearing state), and when the earphone detects a temperature close to the user's body temperature When the temperature value of the earphone is outside the preset human body temperature threshold range, it means that the temperature detected by the earphone is quite different from the user's body temperature. Therefore, it can be determined with a relatively high probability that the earphone is not worn on the user's ear (in an unworn state). .

因此,在本申请实施例中,可以通过判断所述耳机温度值是否位于预设人体温度阈值区间,并在所述耳机温度值位于所述预设人体温度阈值区间之外时,确定检测到与所述终端连接的耳机处于未佩戴状态。而当所述耳机温度值位于所述预设人体温度阈值区间时,如图4所示,在本申请的一些实施方式中,上述判断所述耳机温度值是否位于预设人体温度阈值区间之后,还可以包括:步骤404至步骤407。Therefore, in this embodiment of the present application, it is possible to determine whether the earphone temperature value is within the preset human body temperature threshold interval, and when the earphone temperature value is outside the preset human body temperature threshold interval, it is determined that a The earphone connected to the terminal is in an unworn state. And when the earphone temperature value is located in the preset human body temperature threshold range, as shown in FIG. 4 , in some embodiments of the present application, the above-mentioned determination as to whether the earphone temperature value is located after the preset human body temperature threshold value range, It may also include:steps 404 to 407 .

步骤404,若所述耳机温度值位于所述预设人体温度阈值区间,则获取所述终端的温度传感器检测到的环境温度值,并计算所述耳机温度值与所述环境温度值的差值。Step 404, if the earphone temperature value is in the preset human body temperature threshold range, obtain the ambient temperature value detected by the temperature sensor of the terminal, and calculate the difference between the earphone temperature value and the ambient temperature value .

步骤405,若所述差值小于预设差值阈值,则获取所述耳机的距离传感器检测到的距离值和/或所述耳机的光传感器检测到的光强度值。Step 405: If the difference is less than a preset difference threshold, obtain the distance value detected by the distance sensor of the earphone and/or the light intensity value detected by the light sensor of the earphone.

步骤406,若所述距离值大于预设距离阈值或者所述光强度值大于预设光强度阈值,则确定检测到与所述终端连接的耳机处于未佩戴状态。Step 406, if the distance value is greater than a preset distance threshold or the light intensity value is greater than a preset light intensity threshold, it is determined that the earphone connected to the terminal is detected to be in an unworn state.

步骤407,若所述差值大于或等于所述预设差值阈值,或者,所述距离值小于或等于所述预设距离阈值并且所述光强度值小于或等于所述预设光强度阈值,则确定检测到与所述终端连接的耳机处于正常佩戴状态。Step 407, if the difference is greater than or equal to the preset difference threshold, or the distance value is less than or equal to the preset distance threshold and the light intensity value is less than or equal to the preset light intensity threshold , it is determined that the earphone connected to the terminal is in a normal wearing state.

本申请实施例中,当耳机温度值位于所述预设人体温度阈值区间,并且,耳机温度值与所述环境温度值的差值小于预设差值阈值时,表示终端所处环境的温度值与人体的体温比较接近,即,耳机检测到的耳机温度值有可能是环境温度,也有可能是人体体温,因此,无法仅仅通过判断所述耳机温度值是否位于预设人体温度阈值区间以及判断所述耳机温度值与所述环境温度值的差值是否小于预设差值阈值确定与所述终端连接的耳机的佩戴状态,所以需要获取所述耳机的距离传感器检测到的距离值和/或所述耳机的光传感器检测到的光强度值进行协助确定与所述终端连接的耳机的佩戴状态。In the embodiment of the present application, when the earphone temperature value is located in the preset human body temperature threshold range, and the difference between the earphone temperature value and the ambient temperature value is smaller than the preset difference threshold value, it indicates the temperature value of the environment where the terminal is located It is relatively close to the body temperature of the human body, that is, the temperature value of the earphone detected by the earphone may be the ambient temperature or the body temperature of the human body. Therefore, it is impossible to judge whether the temperature value of the earphone is in the preset human body temperature threshold range and determine the temperature. Whether the difference between the earphone temperature value and the ambient temperature value is less than a preset difference threshold determines the wearing state of the earphone connected to the terminal, so it is necessary to obtain the distance value and/or the distance detected by the distance sensor of the earphone. The light intensity value detected by the light sensor of the earphone is used to assist in determining the wearing state of the earphone connected to the terminal.

由于耳机佩戴在用户耳朵上时,距离传感器检测到的距离值较小,耳机的光传感器检测到的光强度值也应较小,因此,可以在所述距离值大于预设距离阈值或者所述光强度值大于预设光强度阈值时,确定检测到与所述终端连接的耳机处于未佩戴状态;在所述距离值小于或等于所述预设距离阈值并且所述光强度值小于或等于所述预设光强度阈值时,确定检测到与所述终端连接的耳机处于正常佩戴状态。Since the distance value detected by the distance sensor is small when the earphone is worn on the user's ear, the light intensity value detected by the light sensor of the earphone should also be small. Therefore, the distance value may be greater than the preset distance threshold or the When the light intensity value is greater than the preset light intensity threshold, it is determined that the headset connected to the terminal is not worn; when the distance value is less than or equal to the preset distance threshold and the light intensity value is less than or equal to the When the preset light intensity threshold is exceeded, it is determined that the earphone connected to the terminal is in a normal wearing state.

并且,由于耳机温度值与所述环境温度值的差值大于或等于预设差值阈值时,表示终端所处环境的温度值与耳机检测到的耳机温度值相差较大,因而,可以表示耳机检测到的耳机温度值不是环境温度值,进而间接表示耳机检测到的耳机温度值接近人体体温,因此,可以在上述差值大于或等于预设差值阈值时,确定检测到与终端连接的耳机处于正常佩戴状态。Moreover, when the difference between the earphone temperature value and the ambient temperature value is greater than or equal to the preset difference threshold, it indicates that the temperature value of the environment where the terminal is located is quite different from the earphone temperature value detected by the earphone, so it can indicate that the earphone The detected earphone temperature value is not the ambient temperature value, which indirectly means that the earphone temperature value detected by the earphone is close to the body temperature. Therefore, when the above difference is greater than or equal to the preset difference threshold, it can be determined that the earphone connected to the terminal is detected. in normal wearing condition.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为根据本发明,某些步骤可以采用其它顺序进行。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because in accordance with the present invention, certain steps may be performed in other orders.

图5示出了本申请实施例提供的一种视频播放的控制装置500的结构示意图,包括检测单元501、识别单元502和控制单元503。FIG. 5 shows a schematic structural diagram of a videoplayback control device 500 provided by an embodiment of the present application, including adetection unit 501 , anidentification unit 502 , and acontrol unit 503 .

检测单元,用于检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像;a detection unit, configured to detect the wearing state of the earphone connected to the terminal, and acquire the target image collected by the camera of the terminal;

识别单元,用于对所述目标图像进行人脸识别,得到所述目标图像的人脸识别结果;a recognition unit, configured to perform face recognition on the target image to obtain a face recognition result of the target image;

控制单元,用于根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果分别控制所述终端视频画面以及音频内容的播放与暂停。The control unit is configured to respectively control the playing and pausing of the video screen and audio content of the terminal according to the wearing state of the earphone connected to the terminal and the face recognition result of the target image.

在本申请的一些实施方式中,上述控制单元503,还具体用于:In some embodiments of the present application, the above-mentionedcontrol unit 503 is also specifically used for:

若与所述终端连接的耳机处于未佩戴状态,并且所述目标图像中包含目标人脸,则控制所述终端播放视频画面,并控制所述终端暂停播放与所述视频画面对应的音频内容;If the headset connected to the terminal is in an unworn state, and the target image contains a target face, controlling the terminal to play a video image, and controlling the terminal to pause playing audio content corresponding to the video image;

若与所述终端连接的耳机处于未佩戴状态,并且所述目标图像中不包含目标人脸,则控制所述终端暂停播放视频画面,并控制所述终端暂停播放与所述视频画面对应的音频内容;If the headset connected to the terminal is not worn, and the target image does not contain the target face, control the terminal to pause playing the video image, and control the terminal to pause playing the audio corresponding to the video image content;

若与所述终端连接的耳机处于正常佩戴状态,并且所述目标图像中包含目标人脸,则控制所述终端播放视频画面,并控制所述终端播放与所述视频画面对应的音频内容;If the headset connected to the terminal is in a normal wearing state, and the target image contains a target face, controlling the terminal to play a video image, and controlling the terminal to play audio content corresponding to the video image;

若与所述终端连接的耳机处于正常佩戴状态,并且所述目标图像中不包含目标人脸,则控制所述终端播放音频内容,并控制所述终端暂停播放与所述音频内容对应的视频画面。If the headset connected to the terminal is in a normal wearing state, and the target image does not contain the target face, control the terminal to play audio content, and control the terminal to pause playing the video image corresponding to the audio content .

在本申请的一些实施方式中,上述控制单元503,还具体用于:在所述控制所述终端暂停播放视频画面之后,将所述终端的显示亮度调整为最低显示亮度。In some embodiments of the present application, the above-mentionedcontrol unit 503 is further specifically configured to: adjust the display brightness of the terminal to the lowest display brightness after the control of the terminal to pause playing the video picture.

在本申请的一些实施方式中,上述检测单元501,还具体用于:检测所述终端的运动状态是否发生改变;若所述终端的运动状态发生改变,则检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像。In some embodiments of the present application, thedetection unit 501 is further specifically configured to: detect whether the motion state of the terminal changes; if the motion state of the terminal changes, detect the wearing state of the earphone connected to the terminal , and acquire the target image collected by the camera of the terminal.

在本申请的一些实施方式中,上述检测单元501,还具体用于:In some embodiments of the present application, the above-mentioneddetection unit 501 is also specifically used for:

获取所述耳机的温度传感器检测到的耳机温度值;Obtain the earphone temperature value detected by the temperature sensor of the earphone;

判断所述耳机温度值是否位于预设人体温度阈值区间;judging whether the earphone temperature value is within a preset human body temperature threshold range;

若所述耳机温度值位于所述预设人体温度阈值区间之外,则确定检测到与所述终端连接的耳机处于未佩戴状态。If the earphone temperature value is outside the preset human body temperature threshold range, it is determined that the earphone connected to the terminal is detected to be in an unworn state.

在本申请的一些实施方式中,上述检测单元501,还具体用于:在所述判断所述耳机温度值是否位于预设人体温度阈值区间之后,若所述耳机温度值位于所述预设人体温度阈值区间,则获取所述终端的温度传感器检测到的环境温度值,并计算所述耳机温度值与所述环境温度值的差值;若所述差值小于预设差值阈值,则获取所述耳机的距离传感器检测到的距离值和/或所述耳机的光传感器检测到的光强度值;若所述距离值大于预设距离阈值或者所述光强度值大于预设光强度阈值,则确定检测到与所述终端连接的耳机处于未佩戴状态。In some embodiments of the present application, thedetection unit 501 is further specifically configured to: after determining whether the earphone temperature value is within the preset human body temperature threshold range, if the earphone temperature value is within the preset human body temperature threshold If the temperature threshold interval is set, obtain the ambient temperature value detected by the temperature sensor of the terminal, and calculate the difference between the earphone temperature value and the ambient temperature value; if the difference is less than the preset difference threshold, obtain The distance value detected by the distance sensor of the earphone and/or the light intensity value detected by the light sensor of the earphone; if the distance value is greater than the preset distance threshold or the light intensity value is greater than the preset light intensity threshold, Then it is determined that the earphone connected to the terminal is detected to be in an unworn state.

在本申请的一些实施方式中,上述检测单元501,还具体用于:在所述获取所述终端的温度传感器检测到的环境温度值,并计算所述耳机温度值与所述环境温度值的差值之后,若所述差值大于或等于所述预设差值阈值,或者,所述距离值小于或等于所述预设距离阈值并且所述光强度值小于或等于所述预设光强度阈值,则确定检测到与所述终端连接的耳机处于正常佩戴状态。In some embodiments of the present application, the above-mentioneddetection unit 501 is further specifically configured to: obtain the ambient temperature value detected by the temperature sensor of the terminal, and calculate the difference between the earphone temperature value and the ambient temperature value After the difference, if the difference is greater than or equal to the preset difference threshold, or the distance value is less than or equal to the preset distance threshold and the light intensity value is less than or equal to the preset light intensity threshold, it is determined that the headset connected to the terminal is in a normal wearing state.

为描述的方便和简洁,上述描述的视频播放的控制装置500的具体工作过程,可以参考上述图1至图4中描述的方法的对应过程,在此不再赘述。For the convenience and brevity of the description, the specific working process of the videoplayback control device 500 described above may refer to the corresponding processes of the methods described in the above-mentioned FIG. 1 to FIG. 4 , which will not be repeated here.

如图6所示,本申请提供一种用于实现上述视频播放的控制方法的终端,该终端可以包括:处理器61、存储器62、一个或多个输入设备63(图6中仅示出一个)和一个或多个输出设备64(图6中仅示出一个)。处理器61、存储器62、输入设备63和输出设备64通过总线65连接。As shown in FIG. 6 , the present application provides a terminal for implementing the above video playback control method. The terminal may include: aprocessor 61, amemory 62, and one or more input devices 63 (only one is shown in FIG. 6 ). ) and one or more output devices 64 (only one is shown in FIG. 6). Theprocessor 61 , thememory 62 , theinput device 63 and theoutput device 64 are connected by abus 65 .

应当理解,在本申请实施例中,所称处理器61可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiments of the present application, theprocessor 61 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), special-purpose processors An integrated circuit (Application Specific Integrated Circuit, ASIC), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

输入设备63可以包括虚拟键盘、触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备64可以包括显示器、扬声器等。Theinput device 63 may include a virtual keyboard, a touchpad, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, and the like, and theoutput device 64 may include a display, a speaker, and the like.

存储器62可以包括只读存储器和随机存取存储器,并向处理器61提供指令和数据。存储器62的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器62还可以存储设备类型的信息。Memory 62 may include read only memory and random access memory, and provides instructions and data toprocessor 61 . A portion or all ofmemory 62 may also include non-volatile random access memory. For example,memory 62 may also store device type information.

上述存储器62存储有计算机程序,上述计算机程序可在上述处理器61上运行,例如,上述计算机程序为视频播放的控制方法的程序。上述处理器61执行上述计算机程序时实现上述视频播放的控制方法实施例中的步骤,例如图1所示的步骤101至步骤103。或者,上述处理器61执行上述计算机程序时实现上述装置实施例中各单元的功能,例如图5所示单元501至503的功能。The above-mentionedmemory 62 stores a computer program, and the above-mentioned computer program can be executed on the above-mentionedprocessor 61. For example, the above-mentioned computer program is a program of a control method for video playback. When the above-mentionedprocessor 61 executes the above-mentioned computer program, the steps in the above-mentioned embodiment of the control method for video playback are implemented, for example, steps 101 to 103 shown in FIG. 1 . Alternatively, when the above-mentionedprocessor 61 executes the above-mentioned computer program, the functions of each unit in the above-mentioned apparatus embodiment, for example, the functions of theunits 501 to 503 shown in FIG. 5 , are implemented.

上述计算机程序可以被分割成一个或多个模块/单元,上述一个或者多个模块/单元被存储在上述存储器62中,并由上述处理器61执行,以完成本申请。上述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述上述计算机程序在上述进行视频播放的控制的第一终端中的执行过程。例如,上述计算机程序可以被分割成检测单元、识别单元和控制单元,各单元具体功能如下:The above-mentioned computer program can be divided into one or more modules/units, and the above-mentioned one or more modules/units are stored in the above-mentionedmemory 62 and executed by the above-mentionedprocessor 61 to complete the present application. The above-mentioned one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the above-mentioned computer program in the above-mentioned first terminal for controlling video playback. For example, the above computer program can be divided into a detection unit, a recognition unit and a control unit, and the specific functions of each unit are as follows:

检测单元,用于检测与终端连接的耳机的佩戴状态,并获取所述终端的摄像头采集的目标图像;a detection unit, configured to detect the wearing state of the earphone connected to the terminal, and acquire the target image collected by the camera of the terminal;

识别单元,用于对所述目标图像进行人脸识别,得到所述目标图像的人脸识别结果;a recognition unit, configured to perform face recognition on the target image to obtain a face recognition result of the target image;

控制单元,用于根据与所述终端连接的耳机的佩戴状态以及所述目标图像的人脸识别结果分别控制所述终端视频画面以及音频内容的播放与暂停。The control unit is configured to respectively control the playing and pausing of the video screen and audio content of the terminal according to the wearing state of the earphone connected to the terminal and the face recognition result of the target image.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现上述各实施例中的视频播放的控制方法的步骤。Embodiments of the present application provide a computer program product, which, when the computer program product runs on a terminal device, enables the terminal device to implement the steps of the video playback control methods in the foregoing embodiments.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

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

在本申请所提供的实施例中,应该理解到,所揭露的装置/终端和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are only illustrative. For example, the division of the above modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components. May be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

上述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the above-mentioned integrated modules/units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM), random Access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media does not Including electrical carrier signals and telecommunication signals.

以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that the above-mentioned embodiments can still be used for The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the present application. within the scope of protection of the application.

Claims (10)

CN202010302812.7A2020-04-162020-04-16Video playing control method, device, terminal and computer readable storage mediumActiveCN111510785B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010302812.7ACN111510785B (en)2020-04-162020-04-16Video playing control method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010302812.7ACN111510785B (en)2020-04-162020-04-16Video playing control method, device, terminal and computer readable storage medium

Publications (2)

Publication NumberPublication Date
CN111510785Atrue CN111510785A (en)2020-08-07
CN111510785B CN111510785B (en)2022-01-28

Family

ID=71877510

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010302812.7AActiveCN111510785B (en)2020-04-162020-04-16Video playing control method, device, terminal and computer readable storage medium

Country Status (1)

CountryLink
CN (1)CN111510785B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112584083A (en)*2020-11-022021-03-30广州视源电子科技股份有限公司Video playing method, system, electronic equipment and storage medium
CN114257754A (en)*2020-09-212022-03-29Oppo广东移动通信有限公司 Video synthesis method, device, terminal and storage medium
TWI762257B (en)*2021-03-292022-04-21中華電信股份有限公司Method for recommending viewing directions in virtyal reality video and computer readable medium thereof
CN115348466A (en)*2021-05-122022-11-15Oppo广东移动通信有限公司Method for playing program, electronic equipment and storage medium
CN119105728A (en)*2024-10-252024-12-10大连瀚翊文化传媒有限公司 Intelligent control method and system for audio and video player

Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20160142785A1 (en)*2013-11-252016-05-19EchoStar Technologies, L.L.C.Multiuser audiovisual control
CN106020510A (en)*2016-05-172016-10-12广东欧珀移动通信有限公司Control method and device of terminal
CN106161804A (en)*2016-08-312016-11-23维沃移动通信有限公司A kind of audio play control method and mobile terminal
CN106791191A (en)*2017-02-072017-05-31广东小天才科技有限公司Play control method and device
CN107205187A (en)*2017-06-212017-09-26深圳市冠旭电子股份有限公司A kind of method, device and terminal device based on earphone control music
CN107371058A (en)*2017-08-042017-11-21深圳市创维软件有限公司A kind of player method, smart machine and the storage medium of multimedia file sound intermediate frequency data
CN107633853A (en)*2017-08-032018-01-26广东小天才科技有限公司Control method for playing audio and video files and user terminal
US20180048750A1 (en)*2012-06-152018-02-15Muzik, LlcAudio/video wearable computer system with integrated projector
CN108235084A (en)*2018-02-092018-06-29维沃移动通信有限公司A kind of video broadcasting method and mobile terminal
CN108319440A (en)*2017-12-212018-07-24维沃移动通信有限公司Audio-frequency inputting method and mobile terminal
CN108683798A (en)*2018-04-192018-10-19维沃移动通信有限公司 A sound output control method and mobile terminal
CN110401806A (en)*2019-06-212019-11-01努比亚技术有限公司A kind of video call method of mobile terminal, mobile terminal and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20180048750A1 (en)*2012-06-152018-02-15Muzik, LlcAudio/video wearable computer system with integrated projector
US20160142785A1 (en)*2013-11-252016-05-19EchoStar Technologies, L.L.C.Multiuser audiovisual control
CN106020510A (en)*2016-05-172016-10-12广东欧珀移动通信有限公司Control method and device of terminal
CN106161804A (en)*2016-08-312016-11-23维沃移动通信有限公司A kind of audio play control method and mobile terminal
CN106791191A (en)*2017-02-072017-05-31广东小天才科技有限公司Play control method and device
CN107205187A (en)*2017-06-212017-09-26深圳市冠旭电子股份有限公司A kind of method, device and terminal device based on earphone control music
CN107633853A (en)*2017-08-032018-01-26广东小天才科技有限公司Control method for playing audio and video files and user terminal
CN107371058A (en)*2017-08-042017-11-21深圳市创维软件有限公司A kind of player method, smart machine and the storage medium of multimedia file sound intermediate frequency data
CN108319440A (en)*2017-12-212018-07-24维沃移动通信有限公司Audio-frequency inputting method and mobile terminal
CN108235084A (en)*2018-02-092018-06-29维沃移动通信有限公司A kind of video broadcasting method and mobile terminal
CN108683798A (en)*2018-04-192018-10-19维沃移动通信有限公司 A sound output control method and mobile terminal
CN110401806A (en)*2019-06-212019-11-01努比亚技术有限公司A kind of video call method of mobile terminal, mobile terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贾文杰: "基于Android平台的智能旅游系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》*

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114257754A (en)*2020-09-212022-03-29Oppo广东移动通信有限公司 Video synthesis method, device, terminal and storage medium
CN112584083A (en)*2020-11-022021-03-30广州视源电子科技股份有限公司Video playing method, system, electronic equipment and storage medium
WO2022088447A1 (en)*2020-11-022022-05-05广州视源电子科技股份有限公司Video playback method and system, electronic device, and storage medium
CN112584083B (en)*2020-11-022022-05-27广州视源电子科技股份有限公司Video playing method, system, electronic equipment and storage medium
TWI762257B (en)*2021-03-292022-04-21中華電信股份有限公司Method for recommending viewing directions in virtyal reality video and computer readable medium thereof
CN115348466A (en)*2021-05-122022-11-15Oppo广东移动通信有限公司Method for playing program, electronic equipment and storage medium
CN119105728A (en)*2024-10-252024-12-10大连瀚翊文化传媒有限公司 Intelligent control method and system for audio and video player

Also Published As

Publication numberPublication date
CN111510785B (en)2022-01-28

Similar Documents

PublicationPublication DateTitle
CN111510785A (en) Video playback control method, device, terminal and computer-readable storage medium
CN108683798B (en) A sound output control method and mobile terminal
WO2021013137A1 (en)Voice wake-up method and electronic device
CN113723167B (en) Fingerprint recognition method and electronic device
CN108966067B (en)Play control method and related product
KR20180062270A (en)Method for detecting earphone position, storage medium and electronic device therefor
CN109413563A (en) Video sound effect processing method and related products
CN107656718A (en)A kind of audio signal direction propagation method, apparatus, terminal and storage medium
CN106685459B (en) A wearable device operation control method and wearable device
CN108427630B (en)Performance information acquisition method, device, terminal and computer readable storage medium
CN111818385B (en)Video processing method, video processing device and terminal equipment
CN108076300B (en) Video recording processing method, video recording processing device and mobile terminal
CN110933468A (en)Playing method, playing device, electronic equipment and medium
CN110660032A (en) Object shielding method, object shielding device and electronic device
CN114079729B (en) Shooting control method, device, electronic device and storage medium
WO2019015418A1 (en)Unlocking control method and related product
WO2018000764A1 (en)Method and device for automatic audio channel matching, and headphone
CN108549529A (en)Control the method and device of audio output
CN110708630A (en)Method, device and equipment for controlling earphone and storage medium
WO2020113525A1 (en)Playing control method and apparatus, and computer-readable storage medium and electronic device
KR20160023212A (en)Glass type mobile terminal and method for controlling the same
CN109922203A (en)Terminal puts out screen method and apparatus
CN111814497A (en) Translation method, device, wearable device, and computer-readable storage medium
CN109144461B (en) Voice control method, device, electronic device and computer readable medium
CN114079728B (en) Shooting anti-shake method, device, electronic equipment and storage medium

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