WO2015078240A1 - Video control method and user terminal - Google Patents

Video control method and user terminal Download PDF

Info

Publication number
WO2015078240A1
WO2015078240A1 PCT/CN2014/088431 CN2014088431W WO2015078240A1 WO 2015078240 A1 WO2015078240 A1 WO 2015078240A1 CN 2014088431 W CN2014088431 W CN 2014088431W WO 2015078240 A1 WO2015078240 A1 WO 2015078240A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
eyeball
state
video
blink
Prior art date
Application number
PCT/CN2014/088431
Other languages
French (fr)
Chinese (zh)
Inventor
肖振威
Original Assignee
乐视网信息技术(北京)股份有限公司
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 乐视网信息技术(北京)股份有限公司 filed Critical 乐视网信息技术(北京)股份有限公司
Publication of WO2015078240A1 publication Critical patent/WO2015078240A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/012Head tracking input arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/013Eye tracking input arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/4223Cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program

Definitions

  • the present invention relates to the field of mobile terminal technologies, and in particular, to a video control method and a user terminal.
  • An embodiment of the present invention provides a video control method and a user terminal, which continuously determines whether an eyeball image is included in a first image to determine an eyeball state, and then controls video playback according to the determination result, thereby automatically controlling the video according to the viewing state of the user.
  • the function of playing thus achieving the purpose of turning off the playback device in time and saving power.
  • An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera in a process of playing a video, and the method includes:
  • Step a shooting to obtain a first image
  • Step b analyzing the captured first image, and determining whether the first image includes an eyeball image in a blink state
  • Steps a and b are repeatedly executed. If the eye images of the blink state are not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1.
  • the step b includes:
  • the eyeball region it is determined whether or not the eyeball image of the blink state is included.
  • the eyeball region is analyzed using an Adaboost algorithm to obtain an eyeball state, the eyeball state including a blink state and a closed eye state;
  • the analyzing the eyeball region using the Adaboost algorithm to obtain an eyeball state includes:
  • the preset sample library comprising a positive sample set having a blink eye image, and a negative sample set of the closed eye image
  • the eyeball area after the recognition is a blinking eye image
  • obtaining an eyeball state at the time is the blinking state
  • the eyeball state at this time is obtained as the closed eye state.
  • determining that the eye image of the blink state is not included in the first image stops playing the video.
  • An embodiment of the present invention provides a user terminal, including:
  • a collecting unit configured to capture a first image
  • An analyzing unit configured to analyze the captured first image, and determine whether the first image includes an eyeball image in a blink state
  • an execution unit configured to repeatedly perform steps a and b, and if the eye images of the blink state are not included in the N consecutive first images, stop playing the video, where N is an integer greater than 1.
  • the analyzing unit is configured to determine, according to the first image, whether the first image includes a face image; and if the first image includes the face image, determine the face image according to the face image An eyeball region; and at the determined eyeball region, determining whether or not the eyeball image of the blink state is included.
  • the analyzing unit is configured to analyze the eyeball region by using an Adaboost algorithm to obtain an eyeball state, the eyeball state includes a blinking state and a closed eye state; and determining, according to the eyeball state, whether the eyeball of the blinking state is included image.
  • the analyzing unit is configured to perform comparison and recognition on the eyeball region from a preset sample library by using the Adaboost algorithm, where the preset sample library includes a positive sample set with a blink eye image, and a closed eye image a negative sample set; and if the identified eyeball region is a blink eye image, obtaining an eyeball state at the time is the blink state; and if the aligned eyeball region is a closed eye The image is obtained at the time when the state of the eyeball is the closed eye state.
  • the executing unit is configured to determine an eyeball image that does not include the blink state in the first image, and stop playing the video.
  • An embodiment of the present invention provides a video control method and a user terminal, which are applied to a user terminal provided with a camera to analyze whether an eyeball region is included in a first image, and then in a preset sample library, in a process of playing a video. The area is compared, and the image containing no eyeball is obtained. When the image of the N consecutive images is not included, the video is stopped, and the video is automatically controlled according to the viewing state of the user, thereby avoiding the video playing process. Unnecessary power loss.
  • FIG. 1 is a schematic flowchart of a video control method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of a video control method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic structural diagram of a user terminal according to Embodiment 3 of the present invention.
  • the user terminal may be a wireless terminal or a wired terminal, and the wireless terminal may be a device that provides voice and/or data connectivity to the user, a handheld device with wireless connectivity, or other processing device connected to the wireless modem.
  • the wireless terminal can communicate with one or more core networks via a radio access network (eg, RAN, Radio Access Network), which can be a mobile terminal, such as a mobile phone (or "cellular" phone) and with a mobile terminal
  • RAN Radio Access Network
  • the computers for example, can be portable, pocket-sized, handheld, computer-integrated or in-vehicle mobile devices that exchange language and/or data with the wireless access network.
  • An embodiment of the present invention provides a video control method, as shown in FIG. 1, including:
  • the user terminal captures the first image.
  • An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera to compare an eyeball region in a preset sample library by analyzing whether an eyeball region is included in a first image during a video playback process.
  • the image that does not include the eyeball is obtained, and the video is stopped when the eyeball image is not included in the first N images, and the function of automatically controlling the video playback according to the viewing state of the user is realized.
  • the user terminal detects whether the user triggers the specified function button to enable the eyeball detection function, wherein the function button may be a physical button or a virtual The button is intended. If the user terminal detects that the user triggers the specified function button to turn on the eyeball detection function, the camera is used to capture the first image.
  • the user terminal analyzes the captured first image, and determines whether the first image includes an eyeball image in a blink state.
  • the user terminal determines, according to the first image, whether the face image is included in the first image. If the first image does not include the face image, the video is stopped; if the first image includes the face image, the eyeball region is determined according to the face image, and then the eyeball region is analyzed by using the Adaboost algorithm to obtain the eyeball state, wherein the eyeball The state includes a blink state and a closed eye state, and then the user terminal determines whether or not the eyeball image is included according to the eyeball state.
  • Adaboost is an iterative algorithm when the user terminal analyzes the eyeball area.
  • the core idea is to train different classifiers (weak classifiers) for the same training set, and then combine these weak classifiers. To form a stronger final classifier.
  • the eyeball region is first compared from the preset sample library by using the Adaboost algorithm, and the preset sample library includes a positive sample of the blink eye image. Set, as well as a negative sample set of closed eye images. If the eyeball area after the comparison is a blinking eye image, it is determined that the eyeball state is a blinking state at this time; if the aligned eyeball region is a closed eye image, it is determined that the eyeball state is a closed eye state at this time.
  • the user terminal repeatedly performs steps 101 to 102. If the eye images of the blinking state are not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1.
  • the counter in the user terminal starts counting. If no image of the eyeball is included in the first N consecutive images, the value of the counter at this time is N, reaching the critical point at which the triggering of the stop of the video is played, and then the stop playback command is generated and the video is stopped.
  • An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera to obtain a first image by shooting during video playback; and then analyzing the captured first image to determine whether the first image includes ⁇ The eyeball image of the eye state; finally, if the eyeball image of the blinking state is not included in the first N consecutive images, the video is stopped, wherein, N Is an integer greater than 1.
  • the solution analyzes whether the eyeball region is included in the first image, and then compares the eyeball region in the preset sample library to obtain an eyeball image, and stops when the first N images of the first image are not included.
  • the video realizes the function of automatically controlling the video playback according to the viewing state of the user, and avoids unnecessary power loss during video playback.
  • An embodiment of the present invention provides a video control method, as shown in FIG. 2, including:
  • the user terminal establishes a preset sample library.
  • the preset sample library includes a positive sample set having a blink eye image and a negative sample set of the closed eye image.
  • the user terminal collects the test picture set and establishes a preset sample library before the normal operation, and the preset sample library includes a positive sample set with a blink eye image and a negative sample set of the closed eye image, wherein the negative sample
  • the set consists of a picture saved by the human eye image in the closed-eye state of the human face and an image not including the human eye area; the positive sample set is composed of a blink image, and the blink image is from the entire image containing the blink The face image is taken out.
  • the interception method can be used to capture the blink image using the initial size of 30*20 (the unit is the pixel). When the nesting is performed, the center of the rectangle and the geometric center of the eye should be coincident. If the rectangle is not large enough. The length and width of the rectangular frame are enlarged by a ratio of 1:1.2.
  • the user terminal periodically updates the positive sample set and the negative sample set in the preset sample bank to maintain the accuracy when comparing the positive sample set and the negative sample set in the preset sample bank.
  • An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera to compare an eyeball region in a preset sample library by analyzing whether an eyeball region is included in a first image during a video playback process.
  • the image that does not include the eyeball is obtained, and the video is stopped when the eyeball image is not included in the first N images, and the function of automatically controlling the video playback according to the viewing state of the user is realized.
  • the user terminal provided with the camera performs shooting during the process of playing the video to obtain the first image.
  • the user terminal detects whether the user triggers the specified function button to enable the eyeball detection function, wherein the function button may be a physical button or a virtual The button is intended. If the user terminal detects that the user triggers the specified function button to turn on the eyeball detection function, the camera is used to capture the first image.
  • the user terminal determines, according to the first image, whether the first image includes a face image.
  • the user terminal determines, according to the first image, whether the first image includes a face image. If the first image does not include the face image, the video is stopped; if the first image includes the face image, the eyeball region is determined according to the face image, and then the eyeball image is determined at the determined eyeball region.
  • the user terminal determines the eyeball region according to the face image.
  • the user terminal determines the eyeball region according to the face image. Then, using the Adaboost algorithm to analyze the eyeball area, the eyeball state is obtained, and the eyeball state includes the blinking state and the closed eye state. Finally, according to the state of the eyeball, it is judged whether or not the eyeball image is included.
  • the user terminal analyzes an eyeball region by using an Adaboost algorithm to obtain an eyeball state.
  • the eyeball state includes a blinking state and a closed eye state.
  • the user terminal compares the eyeball regions from the preset sample library by using an Adaboost algorithm, and the preset sample library includes a positive sample set having a blink eye image and a negative sample set of the closed eye image;
  • the eyeball area is the blinking eye image, and it is judged that the eyeball state is the blinking state at this time; correspondingly, if the aligned eyeball region is the closed eyed eye image, it is determined that the eyeball state is the closed eye state at this time.
  • the user terminal determines, according to the state of the eyeball, whether or not the eyeball image of the blink state is included.
  • the user terminal uses the Adaboost algorithm to analyze the eyeball region and obtain the eyeball state, it is obtained that the eyeball region in the face image in the first image indicates a blinking state or a closed eye state.
  • the user terminal determines that the eyeball image is included in the first image.
  • the user terminal determines that the eyeball image is not included in the first image.
  • Steps 202 to 206 are repeatedly performed. If the eye images of the blink state are not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1.
  • the counter in the user terminal starts counting. If no image of the eyeball is included in the first N consecutive images, the value of the counter at this time is N, reaching the critical point at which the triggering of the stop of the video is played, and then the stop playback command is generated and the video is stopped.
  • the user falls asleep while watching the video using the mobile phone terminal equipped with the camera, and the camera in the mobile phone terminal performs image acquisition to obtain the first image, and after analyzing by the Adaboost algorithm, it is determined that the user is in the closed eye state, that is, the first image.
  • the eyeball image is not included in the image.
  • the mobile terminal performs image collection and analysis every minute.
  • the video playback stop command is triggered, and then the mobile terminal according to the stop command. Stop playing the video.
  • An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera to obtain a first image by shooting during video playback; and then analyzing the captured first image to determine whether the first image includes ⁇ The eyeball image of the eye state; finally, if the eyeball image of the blinking state is not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1.
  • the solution analyzes whether the eyeball region is included in the first image, and then compares the eyeball region in the preset sample library to obtain an eyeball image, and stops when the first N images of the first image are not included.
  • the video realizes the function of automatically controlling the video playback according to the viewing state of the user, and avoids unnecessary power loss during video playback.
  • An embodiment of the present invention provides a user terminal, as shown in FIG. 3, including:
  • the collecting unit 01 is configured to capture and obtain a first image
  • the analyzing unit 02 is configured to analyze the captured first image, and determine whether the first image includes an eyeball image in a blink state;
  • the executing unit 03 is configured to repeatedly perform the steps a and b, and if the first image of the eye image that does not include the blink state in the first N consecutive images does not include the eyeball image in the blink state, the video is stopped, wherein the video is stopped.
  • N is an integer greater than one.
  • the analyzing unit 02 is configured to determine, according to the first image, whether a face image is included in the first image; and if the first image includes a face image, determine an eyeball region according to the face image; and determine the eyeball At the area, it is judged whether or not the eyeball image of the blinking state is included.
  • the analyzing unit 02 is configured to analyze the eyeball region by using the Adaboost algorithm, obtain an eyeball state, the eyeball state includes a blinking state and a closed eye state, and determine whether the eyeball image of the blinking state is included according to the eyeball state.
  • the analyzing unit 02 is configured to perform an alignment recognition on the eyeball region from the preset sample library by using an Adaboost algorithm, where the preset sample library includes a positive sample set having a blink eye image, and a negative sample set of the closed eye image And if the eyeball area after the recognition is a blinking eye image, the eyeball state is obtained as a blinking state at this time; and if the eyeball region after the recognition is a closed eye image, the eyeball state is closed at this time. Eye state.
  • the first image does not include a face image
  • the executing unit 03 is configured to determine an eyeball image that does not include a blink state in the first image, and stop playing the video.
  • An embodiment of the present invention provides a user terminal, which is applied to a user terminal provided with a camera to obtain a first image by capturing during playing a video; and then analyzing the captured first image to determine whether the first image includes a blink The eyeball image of the state; finally, if the eyeball images of the blinking state are not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1.
  • the solution analyzes whether the eyeball region is included in the first image, and then compares the eyeball region in the preset sample library to obtain an eyeball image, and stops when the first N images of the first image are not included.
  • the video realizes the function of automatically controlling the video playback according to the viewing state of the user, and avoids unnecessary power loss during video playback.
  • the disclosed system, device And methods can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, 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 of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

Provided are a video control method and a user terminal, which relate to the technical field of mobile terminals, and judge an eyeball state to control the playing of a video by way of continuously analyzing whether a first image contains an eyeball image, thereby realizing a function of automatically controlling the playing of the video according to the watching state of a user. The method comprises: step a, conducting shooting to obtain a first image; step b: analyzing the shot first image, and judging whether the first image contains an eyeball image at an eye opening state; and repeatedly executing steps a and b, and if N continuous first images do not contain eyeball images at the eye opening state, stopping playing a video, where N is an integer which is greater than 1.

Description

一种视频控制方法及用户终端Video control method and user terminal
本申请要求于2013年11月27日提交中国专利局、申请号为2013106141969,发明名称为“一种视频控制方法及用户终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 2013106141969, entitled "A Video Control Method and User Terminal" on November 27, 2013, the entire contents of which are incorporated herein by reference. in.
技术领域Technical field
本发明涉及移动终端技术领域,尤其涉及一种视频控制方法及用户终端。The present invention relates to the field of mobile terminal technologies, and in particular, to a video control method and a user terminal.
背景技术Background technique
随着移动终端智能化时代的到来,移动终端的配置越来越强大,功能越来越齐全,越来越多的用户通过移动终端进行视频播放,在不同的地点浏览下载的视频或个人录制的视频,以享受移动终端带来的智能化体验。With the advent of the era of intelligent mobile terminals, the configuration of mobile terminals is becoming more and more powerful, and the functions are more and more complete. More and more users play video through mobile terminals, and browse downloaded videos or personal recordings in different locations. Video to enjoy the intelligent experience brought by mobile terminals.
然而,由于现有技术对视频的播放控制,需要进入到视频播放器的控制界面,才能对进行视频暂停、视频播放、视频切换、视频快进或视频快退的操作。以视频暂停为例,当对具有触摸屏的移动终端进行播放控制时,用户需要按触摸屏上视频的播放界面,从而进入到视频的控制界面,再通查找相应暂停按键,以完成视频的暂停操作。例如用户突然离开或者在观看视频的过程中睡着,终端设备无法获取用户已经不需要视频播放的信息,仍然继续播放,造成电池电量的浪费。However, due to the prior art playback control of the video, it is necessary to enter the control interface of the video player to perform operations such as video pause, video playback, video switching, video fast forward or video fast rewind. Taking video pause as an example, when playing control on a mobile terminal with a touch screen, the user needs to press the play interface of the video on the touch screen to enter the control interface of the video, and then find the corresponding pause button to complete the pause operation of the video. For example, if the user suddenly leaves or falls asleep during the watching of the video, the terminal device cannot obtain the information that the user does not need the video to play, and continues to play, resulting in waste of battery power.
因此,有必要提供一种能根据用户的观看状态来自动控制视频播放的方法及其终端设备来克服上述缺陷。Therefore, it is necessary to provide a method and an end device capable of automatically controlling video playback according to a user's viewing state to overcome the above drawbacks.
发明内容Summary of the invention
本发明的实施例提供一种视频控制方法及用户终端,通过连续分析第一图像中是否包含眼球图像判断眼球状态,进而根据判断结果控制视频的播放,实现了根据用户的观看状态来自动控制视频播放的功能,从而达到及时关闭播放设备,节约电能的目的。An embodiment of the present invention provides a video control method and a user terminal, which continuously determines whether an eyeball image is included in a first image to determine an eyeball state, and then controls video playback according to the determination result, thereby automatically controlling the video according to the viewing state of the user. The function of playing, thus achieving the purpose of turning off the playback device in time and saving power.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
本发明的实施例提供一种视频控制方法,应用于设置有摄像头的用户终端在播放视频的过程中,所述方法包括: An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera in a process of playing a video, and the method includes:
步骤a:拍摄获得第一图像;Step a: shooting to obtain a first image;
步骤b:分析拍摄的所述第一图像,判断所述第一图像中是否包含睁眼状态的眼球图像;Step b: analyzing the captured first image, and determining whether the first image includes an eyeball image in a blink state;
重复执行步骤a、b,若连续N张第一图像中均不包含所述睁眼状态的眼球图像,则停止播放所述视频,其中,N为大于1的整数。Steps a and b are repeatedly executed. If the eye images of the blink state are not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1.
所述步骤b包括:The step b includes:
根据所述第一图像,判断所述第一图像中是否包含人脸图像;Determining, according to the first image, whether the face image is included in the first image;
若所述第一图像中包含所述人脸图像,则根据所述人脸图像确定眼球区域;If the face image is included in the first image, determining an eyeball region according to the face image;
在确定的所述眼球区域处,判断是否包含所述睁眼状态的眼球图像。At the determined eyeball region, it is determined whether or not the eyeball image of the blink state is included.
所述在确定的所述眼球区域处,判断是否包含所述睁眼状态的眼球图像包括:The determining, at the determined eyeball region, whether the eyeball image including the blink state is included:
使用Adaboost算法分析所述眼球区域,获得眼球状态,所述眼球状态包括睁眼状态和闭眼状态;The eyeball region is analyzed using an Adaboost algorithm to obtain an eyeball state, the eyeball state including a blink state and a closed eye state;
根据所述眼球状态,判断是否包含所述睁眼状态的眼球图像。Based on the state of the eyeball, it is determined whether or not the eyeball image of the blink state is included.
所述使用Adaboost算法分析所述眼球区域,获得眼球状态包括:The analyzing the eyeball region using the Adaboost algorithm to obtain an eyeball state includes:
使用所述Adaboost算法从预置样本库中对所述眼球区域进行比对识别,所述预置样本库包括有睁眼眼睛图像的正样本集,以及闭眼眼睛图像的负样本集;Aligning the eyeball region from a preset sample library using the Adaboost algorithm, the preset sample library comprising a positive sample set having a blink eye image, and a negative sample set of the closed eye image;
若比对识别后的所述眼球区域为睁眼眼睛图像,则获得此时眼球状态为所述睁眼状态;If the eyeball area after the recognition is a blinking eye image, obtaining an eyeball state at the time is the blinking state;
若比对识别后的所述眼球区域为闭眼眼睛图像,则获得此时眼球状态为所述闭眼状态。If the eyeball region after the recognition is a closed eye image, the eyeball state at this time is obtained as the closed eye state.
若所述第一图像中不包含所述人脸图像,则确定第一图像中不包含所述睁眼状态的眼球图像,停止播放所述视频。If the face image is not included in the first image, determining that the eye image of the blink state is not included in the first image stops playing the video.
本发明的实施例提供一种用户终端,包括:An embodiment of the present invention provides a user terminal, including:
采集单元,用于拍摄获得第一图像; a collecting unit, configured to capture a first image;
分析单元,用于分析拍摄的所述第一图像,判断所述第一图像中是否包含睁眼状态的眼球图像;An analyzing unit, configured to analyze the captured first image, and determine whether the first image includes an eyeball image in a blink state;
执行单元,用于重复执行步骤a、b,若连续N张第一图像中均不包含所述睁眼状态的眼球图像,则停止播放所述视频,其中,N为大于1的整数。And an execution unit, configured to repeatedly perform steps a and b, and if the eye images of the blink state are not included in the N consecutive first images, stop playing the video, where N is an integer greater than 1.
所述分析单元,用于根据所述第一图像,判断所述第一图像中是否包含人脸图像;以及若所述第一图像中包含所述人脸图像,则根据所述人脸图像确定眼球区域;以及在确定的所述眼球区域处,判断是否包含所述睁眼状态的眼球图像。The analyzing unit is configured to determine, according to the first image, whether the first image includes a face image; and if the first image includes the face image, determine the face image according to the face image An eyeball region; and at the determined eyeball region, determining whether or not the eyeball image of the blink state is included.
所述分析单元,用于使用Adaboost算法分析所述眼球区域,获得眼球状态,所述眼球状态包括睁眼状态和闭眼状态;以及根据所述眼球状态,判断是否包含所述睁眼状态的眼球图像。The analyzing unit is configured to analyze the eyeball region by using an Adaboost algorithm to obtain an eyeball state, the eyeball state includes a blinking state and a closed eye state; and determining, according to the eyeball state, whether the eyeball of the blinking state is included image.
所述分析单元,用于使用所述Adaboost算法从预置样本库中对所述眼球区域进行比对识别,所述预置样本库包括有睁眼眼睛图像的正样本集,以及闭眼眼睛图像的负样本集;以及若比对识别后的所述眼球区域为睁眼眼睛图像,则获得此时眼球状态为所述睁眼状态;以及若比对识别后的所述眼球区域为闭眼眼睛图像,则获得此时眼球状态为所述闭眼状态。The analyzing unit is configured to perform comparison and recognition on the eyeball region from a preset sample library by using the Adaboost algorithm, where the preset sample library includes a positive sample set with a blink eye image, and a closed eye image a negative sample set; and if the identified eyeball region is a blink eye image, obtaining an eyeball state at the time is the blink state; and if the aligned eyeball region is a closed eye The image is obtained at the time when the state of the eyeball is the closed eye state.
若所述第一图像中不包含所述人脸图像,则If the face image is not included in the first image,
所述执行单元,用于确定第一图像中不包含所述睁眼状态的眼球图像,停止播放所述视频。The executing unit is configured to determine an eyeball image that does not include the blink state in the first image, and stop playing the video.
本发明的实施例提供一种视频控制方法及用户终端,应用于设置有摄像头的用户终端在播放视频的过程中,通过分析第一图像中是否包含眼球区域,进而在预置样本库中对眼球区域进行比对,获得不包含眼球图像,当获取连续N张第一图像中均不包含眼球图像时停止播放视频,实现了根据用户的观看状态来自动控制视频播放的功能,避免视频播放过程中不必要的电量损耗。An embodiment of the present invention provides a video control method and a user terminal, which are applied to a user terminal provided with a camera to analyze whether an eyeball region is included in a first image, and then in a preset sample library, in a process of playing a video. The area is compared, and the image containing no eyeball is obtained. When the image of the N consecutive images is not included, the video is stopped, and the video is automatically controlled according to the viewing state of the user, thereby avoiding the video playing process. Unnecessary power loss.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员 来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only Are some embodiments of the invention, to those of ordinary skill in the art In other words, other drawings can be obtained from these drawings without any creative work.
图1为本发明实施例一的视频控制方法流程示意图;1 is a schematic flowchart of a video control method according to Embodiment 1 of the present invention;
图2为本发明实施例二的视频控制方法流程示意图;2 is a schematic flowchart of a video control method according to Embodiment 2 of the present invention;
图3为本发明实施例三的用户终端结构示意图。FIG. 3 is a schematic structural diagram of a user terminal according to Embodiment 3 of the present invention.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本发明。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration and description, reference However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the invention.
用户终端,可以是无线终端也可以是有线终端,无线终端可以是指向用户提供语音和/或数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经无线接入网(例如,RAN,Radio Access Network)与一个或多个核心网进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。The user terminal may be a wireless terminal or a wired terminal, and the wireless terminal may be a device that provides voice and/or data connectivity to the user, a handheld device with wireless connectivity, or other processing device connected to the wireless modem. The wireless terminal can communicate with one or more core networks via a radio access network (eg, RAN, Radio Access Network), which can be a mobile terminal, such as a mobile phone (or "cellular" phone) and with a mobile terminal The computers, for example, can be portable, pocket-sized, handheld, computer-integrated or in-vehicle mobile devices that exchange language and/or data with the wireless access network.
实施例一Embodiment 1
本发明的实施例提供一种视频控制方法,如图1所示,包括:An embodiment of the present invention provides a video control method, as shown in FIG. 1, including:
101、用户终端拍摄获得第一图像。101. The user terminal captures the first image.
本发明实施例提供一种视频控制方法,应用于设置有摄像头的用户终端在播放视频的过程中,通过分析第一图像中是否包含眼球区域,进而在预置样本库中对眼球区域进行比对,获得不包含眼球图像,当获取连续N张第一图像中均不包含眼球图像时停止播放视频,实现了根据用户的观看状态来自动控制视频播放的功能。An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera to compare an eyeball region in a preset sample library by analyzing whether an eyeball region is included in a first image during a video playback process. The image that does not include the eyeball is obtained, and the video is stopped when the eyeball image is not included in the first N images, and the function of automatically controlling the video playback according to the viewing state of the user is realized.
具体的,在用户观看视频之前,用户终端检测用户是否触发指定的功能按键开启眼球检测功能,其中,上述的功能按键可以为物理按键或者虚 拟按键。若用户终端检测到用户触发指定的功能按键开启眼球检测功能,则利用摄像头进行拍摄获得第一图像。Specifically, before the user views the video, the user terminal detects whether the user triggers the specified function button to enable the eyeball detection function, wherein the function button may be a physical button or a virtual The button is intended. If the user terminal detects that the user triggers the specified function button to turn on the eyeball detection function, the camera is used to capture the first image.
102、用户终端分析拍摄的第一图像,判断第一图像中是否包含睁眼状态的眼球图像。102. The user terminal analyzes the captured first image, and determines whether the first image includes an eyeball image in a blink state.
具体的,用户终端根据第一图像,判断第一图像中是否包含人脸图像。若第一图像中不包含人脸图像,则停止播放视频;若第一图像中包含人脸图像,则根据人脸图像确定眼球区域,进而使用Adaboost算法分析眼球区域,获得眼球状态,其中上述眼球状态包括睁眼状态和闭眼状态,然后用户终端根据眼球状态,判断是否包含眼球图像。Specifically, the user terminal determines, according to the first image, whether the face image is included in the first image. If the first image does not include the face image, the video is stopped; if the first image includes the face image, the eyeball region is determined according to the face image, and then the eyeball region is analyzed by using the Adaboost algorithm to obtain the eyeball state, wherein the eyeball The state includes a blink state and a closed eye state, and then the user terminal determines whether or not the eyeball image is included according to the eyeball state.
其中,在用户终端分析眼球区域时,用到Adaboost算法,Adaboost是一种迭代算法,其核心思想是针对同一个训练集训练不同的分类器(弱分类器),然后把这些弱分类器集合起来,构成一个更强的最终分类器。Among them, Adaboost is an iterative algorithm when the user terminal analyzes the eyeball area. The core idea is to train different classifiers (weak classifiers) for the same training set, and then combine these weak classifiers. To form a stronger final classifier.
进一步地,用户终端在使用Adaboost算法分析眼球区域,获得此时眼球状态时,首先使用Adaboost算法从预置样本库中对眼球区域进行比对,预置样本库包括有睁眼眼睛图像的正样本集,以及闭眼眼睛图像的负样本集。若比对后的眼球区域为睁眼眼睛图像,则判断此时眼球状态为睁眼状态;若比对后的眼球区域为闭眼眼睛图像,则判断此时眼球状态为闭眼状态。Further, when the user terminal analyzes the eyeball region by using the Adaboost algorithm and obtains the eyeball state at this time, the eyeball region is first compared from the preset sample library by using the Adaboost algorithm, and the preset sample library includes a positive sample of the blink eye image. Set, as well as a negative sample set of closed eye images. If the eyeball area after the comparison is a blinking eye image, it is determined that the eyeball state is a blinking state at this time; if the aligned eyeball region is a closed eye image, it is determined that the eyeball state is a closed eye state at this time.
103、用户终端重复执行步骤101至102,若连续N张第一图像中均不包含睁眼状态的眼球图像,则停止播放视频,其中,N为大于1的整数。103. The user terminal repeatedly performs steps 101 to 102. If the eye images of the blinking state are not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1.
具体的,用户终端在拍摄获得第一图像并分析拍摄的第一图像,判断第一图像中是否包含眼球图像之后,若判断第一图像中不包含眼球图像时,用户终端内的计数器开始计数,若连续N张第一图像中均不包含眼球图像,计数器此时的值为N,到达触发停止播放视频的临界点,于是生成停止播放指令并停止播放视频。Specifically, after the user terminal captures the first image and analyzes the captured first image, and determines whether the eyeball image is included in the first image, if it is determined that the first image does not include the eyeball image, the counter in the user terminal starts counting. If no image of the eyeball is included in the first N consecutive images, the value of the counter at this time is N, reaching the critical point at which the triggering of the stop of the video is played, and then the stop playback command is generated and the video is stopped.
本发明的实施例提供一种视频控制方法,应用于设置有摄像头的用户终端在播放视频的过程中,通过拍摄获得第一图像;然后分析拍摄的第一图像,判断第一图像中是否包含睁眼状态的眼球图像;最后判断若连续N张第一图像中均不包含睁眼状态的眼球图像,则停止播放视频,其中,N 为大于1的整数。该方案通过分析第一图像中是否包含眼球区域,进而在预置样本库中对眼球区域进行比对,获得不包含眼球图像,当获取连续N张第一图像中均不包含眼球图像时停止播放视频,实现了根据用户的观看状态来自动控制视频播放的功能,避免视频播放过程中不必要的电量损耗。An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera to obtain a first image by shooting during video playback; and then analyzing the captured first image to determine whether the first image includes 睁The eyeball image of the eye state; finally, if the eyeball image of the blinking state is not included in the first N consecutive images, the video is stopped, wherein, N Is an integer greater than 1. The solution analyzes whether the eyeball region is included in the first image, and then compares the eyeball region in the preset sample library to obtain an eyeball image, and stops when the first N images of the first image are not included. The video realizes the function of automatically controlling the video playback according to the viewing state of the user, and avoids unnecessary power loss during video playback.
实施例二Embodiment 2
本发明的实施例提供一种视频控制方法,如图2所示,包括:An embodiment of the present invention provides a video control method, as shown in FIG. 2, including:
201、用户终端建立预置样本库。201. The user terminal establishes a preset sample library.
其中,上述预置样本库包括有睁眼眼睛图像的正样本集,以及闭眼眼睛图像的负样本集。Wherein, the preset sample library includes a positive sample set having a blink eye image and a negative sample set of the closed eye image.
具体的,用户终端在正常运行前收集测试图片集并建立预置样本库,上述预置样本库包括有睁眼眼睛图像的正样本集,以及闭眼眼睛图像的负样本集,其中,负样本集由截取人脸中闭眼状态的人眼图像保存下来的图片和不包含人眼区域的图像组成;正样本集由睁眼的图片组成,该睁眼的图片是从包含睁眼图像的整幅人脸图片截取出来的,截取方法可以为使用初始大小30*20(单位是像素)的去套取睁眼图像,套取时要使矩形框中心和眼睛几何中心重合,如果矩形框不够大就以1:1.2的比例放大矩形框的长和宽。Specifically, the user terminal collects the test picture set and establishes a preset sample library before the normal operation, and the preset sample library includes a positive sample set with a blink eye image and a negative sample set of the closed eye image, wherein the negative sample The set consists of a picture saved by the human eye image in the closed-eye state of the human face and an image not including the human eye area; the positive sample set is composed of a blink image, and the blink image is from the entire image containing the blink The face image is taken out. The interception method can be used to capture the blink image using the initial size of 30*20 (the unit is the pixel). When the nesting is performed, the center of the rectangle and the geometric center of the eye should be coincident. If the rectangle is not large enough. The length and width of the rectangular frame are enlarged by a ratio of 1:1.2.
另外,用户终端会定期更新预置样本库中的正样本集和负样本集以保持根据预置样本库中的正样本集和负样本集进行比对时的准确性。In addition, the user terminal periodically updates the positive sample set and the negative sample set in the preset sample bank to maintain the accuracy when comparing the positive sample set and the negative sample set in the preset sample bank.
本发明实施例提供一种视频控制方法,应用于设置有摄像头的用户终端在播放视频的过程中,通过分析第一图像中是否包含眼球区域,进而在预置样本库中对眼球区域进行比对,获得不包含眼球图像,当获取连续N张第一图像中均不包含眼球图像时停止播放视频,实现了根据用户的观看状态来自动控制视频播放的功能。An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera to compare an eyeball region in a preset sample library by analyzing whether an eyeball region is included in a first image during a video playback process. The image that does not include the eyeball is obtained, and the video is stopped when the eyeball image is not included in the first N images, and the function of automatically controlling the video playback according to the viewing state of the user is realized.
202、设置有摄像头的用户终端在播放视频的过程中进行拍摄获得第一图像。202. The user terminal provided with the camera performs shooting during the process of playing the video to obtain the first image.
具体的,在用户观看视频之前,用户终端检测用户是否触发指定的功能按键开启眼球检测功能,其中,上述的功能按键可以为物理按键或者虚 拟按键。若用户终端检测到用户触发指定的功能按键开启眼球检测功能,则利用摄像头进行拍摄获得第一图像。Specifically, before the user views the video, the user terminal detects whether the user triggers the specified function button to enable the eyeball detection function, wherein the function button may be a physical button or a virtual The button is intended. If the user terminal detects that the user triggers the specified function button to turn on the eyeball detection function, the camera is used to capture the first image.
203、用户终端根据第一图像,判断第一图像中是否包含人脸图像。203. The user terminal determines, according to the first image, whether the first image includes a face image.
具体的,具体的,用户终端根据第一图像,判断第一图像中是否包含人脸图像。若第一图像中不包含人脸图像,则停止播放视频;若第一图像中包含人脸图像,则根据人脸图像确定眼球区域,进而在确定的眼球区域处,判断是否包含眼球图像。Specifically, specifically, the user terminal determines, according to the first image, whether the first image includes a face image. If the first image does not include the face image, the video is stopped; if the first image includes the face image, the eyeball region is determined according to the face image, and then the eyeball image is determined at the determined eyeball region.
204、若第一图像中包含人脸图像,用户终端则根据人脸图像确定眼球区域。204. If the first image includes a face image, the user terminal determines the eyeball region according to the face image.
具体的,若第一图像中包含人脸图像,用户终端则根据人脸图像确定眼球区域。然后使用Adaboost算法分析眼球区域,获得眼球状态,眼球状态包括睁眼状态和闭眼状态。最后再根据眼球状态,判断是否包含眼球图像。Specifically, if the first image includes a face image, the user terminal determines the eyeball region according to the face image. Then, using the Adaboost algorithm to analyze the eyeball area, the eyeball state is obtained, and the eyeball state includes the blinking state and the closed eye state. Finally, according to the state of the eyeball, it is judged whether or not the eyeball image is included.
205、用户终端使用Adaboost算法分析眼球区域,获得眼球状态。205. The user terminal analyzes an eyeball region by using an Adaboost algorithm to obtain an eyeball state.
其中,上述眼球状态包括睁眼状态和闭眼状态。Wherein, the eyeball state includes a blinking state and a closed eye state.
具体的,用户终端使用Adaboost算法从预置样本库中对眼球区域进行比对,预置样本库包括有睁眼眼睛图像的正样本集,以及闭眼眼睛图像的负样本集;若比对后的眼球区域为睁眼眼睛图像,则判断此时眼球状态为睁眼状态;相应的,若比对后的眼球区域为闭眼眼睛图像,则判断此时眼球状态为闭眼状态。Specifically, the user terminal compares the eyeball regions from the preset sample library by using an Adaboost algorithm, and the preset sample library includes a positive sample set having a blink eye image and a negative sample set of the closed eye image; The eyeball area is the blinking eye image, and it is judged that the eyeball state is the blinking state at this time; correspondingly, if the aligned eyeball region is the closed eyed eye image, it is determined that the eyeball state is the closed eye state at this time.
206、用户终端根据眼球状态,判断是否包含睁眼状态的眼球图像。206. The user terminal determines, according to the state of the eyeball, whether or not the eyeball image of the blink state is included.
具体的,在用户终端使用Adaboost算法分析眼球区域,获得眼球状态之后,得到第一图片中人脸图像内的眼球区域指示的为睁眼状态或者为闭眼状态。Specifically, after the user terminal uses the Adaboost algorithm to analyze the eyeball region and obtain the eyeball state, it is obtained that the eyeball region in the face image in the first image indicates a blinking state or a closed eye state.
若得到第一图片中人脸图像内的眼球区域指示的为睁眼状态,用户终端判断第一图像内包含眼球图像。If it is obtained that the eyeball region in the face image in the first picture indicates the blinking state, the user terminal determines that the eyeball image is included in the first image.
若得到第一图片中人脸图像内的眼球区域指示的为闭眼状态,用户终端判断第一图像内不包含眼球图像。 If it is determined that the eyeball region in the face image in the first picture indicates a closed eye state, the user terminal determines that the eyeball image is not included in the first image.
207、重复执行步骤202至206,若连续N张第一图像中均不包含睁眼状态的眼球图像,则停止播放视频,其中,N为大于1的整数。207. Steps 202 to 206 are repeatedly performed. If the eye images of the blink state are not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1.
具体的,用户终端在拍摄获得第一图像并分析拍摄的第一图像,判断第一图像中是否包含眼球图像之后,若判断第一图像中不包含眼球图像时,用户终端内的计数器开始计数,若连续N张第一图像中均不包含眼球图像,计数器此时的值为N,到达触发停止播放视频的临界点,于是生成停止播放指令并停止播放视频。Specifically, after the user terminal captures the first image and analyzes the captured first image, and determines whether the eyeball image is included in the first image, if it is determined that the first image does not include the eyeball image, the counter in the user terminal starts counting. If no image of the eyeball is included in the first N consecutive images, the value of the counter at this time is N, reaching the critical point at which the triggering of the stop of the video is played, and then the stop playback command is generated and the video is stopped.
示例性的,用户在使用配置有摄像头的手机终端观看视频时睡着,手机终端内的摄像头进行图像采集获得第一图像,利用Adaboost算法分析后,判断此时用户为闭眼状态即第一图像中不包含眼球图像,进一步地,手机终端每一分钟进行图像采集并分析,当获取连续5张第一图像中均不包含眼球图像时,触发视频播放的停止指令,进而手机终端根据该停止指令停止播放视频。Exemplarily, the user falls asleep while watching the video using the mobile phone terminal equipped with the camera, and the camera in the mobile phone terminal performs image acquisition to obtain the first image, and after analyzing by the Adaboost algorithm, it is determined that the user is in the closed eye state, that is, the first image. The eyeball image is not included in the image. Further, the mobile terminal performs image collection and analysis every minute. When the first five images are not included in the image, the video playback stop command is triggered, and then the mobile terminal according to the stop command. Stop playing the video.
本发明的实施例提供一种视频控制方法,应用于设置有摄像头的用户终端在播放视频的过程中,通过拍摄获得第一图像;然后分析拍摄的第一图像,判断第一图像中是否包含睁眼状态的眼球图像;最后判断若连续N张第一图像中均不包含睁眼状态的眼球图像,则停止播放视频,其中,N为大于1的整数。该方案通过分析第一图像中是否包含眼球区域,进而在预置样本库中对眼球区域进行比对,获得不包含眼球图像,当获取连续N张第一图像中均不包含眼球图像时停止播放视频,实现了根据用户的观看状态来自动控制视频播放的功能,避免视频播放过程中不必要的电量损耗。An embodiment of the present invention provides a video control method, which is applied to a user terminal provided with a camera to obtain a first image by shooting during video playback; and then analyzing the captured first image to determine whether the first image includes 睁The eyeball image of the eye state; finally, if the eyeball image of the blinking state is not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1. The solution analyzes whether the eyeball region is included in the first image, and then compares the eyeball region in the preset sample library to obtain an eyeball image, and stops when the first N images of the first image are not included. The video realizes the function of automatically controlling the video playback according to the viewing state of the user, and avoids unnecessary power loss during video playback.
实施例三Embodiment 3
本发明的实施例提供一种用户终端,如图3所示,包括:An embodiment of the present invention provides a user terminal, as shown in FIG. 3, including:
采集单元01,用于拍摄获得第一图像;The collecting unit 01 is configured to capture and obtain a first image;
分析单元02,用于分析拍摄的第一图像,判断第一图像中是否包含睁眼状态的眼球图像;The analyzing unit 02 is configured to analyze the captured first image, and determine whether the first image includes an eyeball image in a blink state;
执行单元03,用于重复执行步骤a、b,若连续N张第一图像中均不包含睁眼状态的眼球图像第一图像中均不包含睁眼状态的眼球图像,则停止播放视频,其中,N为大于1的整数。 The executing unit 03 is configured to repeatedly perform the steps a and b, and if the first image of the eye image that does not include the blink state in the first N consecutive images does not include the eyeball image in the blink state, the video is stopped, wherein the video is stopped. , N is an integer greater than one.
进一步地,分析单元02,用于根据第一图像,判断第一图像中是否包含人脸图像;以及若第一图像中包含人脸图像,则根据人脸图像确定眼球区域;以及在确定的眼球区域处,判断是否包含睁眼状态的眼球图像。Further, the analyzing unit 02 is configured to determine, according to the first image, whether a face image is included in the first image; and if the first image includes a face image, determine an eyeball region according to the face image; and determine the eyeball At the area, it is judged whether or not the eyeball image of the blinking state is included.
进一步地,分析单元02,用于使用Adaboost算法分析眼球区域,获得眼球状态,眼球状态包括睁眼状态和闭眼状态;以及根据眼球状态,判断是否包含睁眼状态的眼球图像。Further, the analyzing unit 02 is configured to analyze the eyeball region by using the Adaboost algorithm, obtain an eyeball state, the eyeball state includes a blinking state and a closed eye state, and determine whether the eyeball image of the blinking state is included according to the eyeball state.
进一步地,分析单元02,用于使用Adaboost算法从预置样本库中对眼球区域进行比对识别,预置样本库包括有睁眼眼睛图像的正样本集,以及闭眼眼睛图像的负样本集;以及若比对识别后的眼球区域为睁眼眼睛图像,则获得此时眼球状态为睁眼状态;以及若比对识别后的眼球区域为闭眼眼睛图像,则获得此时眼球状态为闭眼状态。Further, the analyzing unit 02 is configured to perform an alignment recognition on the eyeball region from the preset sample library by using an Adaboost algorithm, where the preset sample library includes a positive sample set having a blink eye image, and a negative sample set of the closed eye image And if the eyeball area after the recognition is a blinking eye image, the eyeball state is obtained as a blinking state at this time; and if the eyeball region after the recognition is a closed eye image, the eyeball state is closed at this time. Eye state.
进一步地,若第一图像中不包含人脸图像,则Further, if the first image does not include a face image, then
执行单元03,用于确定第一图像中不包含睁眼状态的眼球图像,停止播放视频。The executing unit 03 is configured to determine an eyeball image that does not include a blink state in the first image, and stop playing the video.
本发明的实施例提供一种用户终端,应用于设置有摄像头的用户终端在播放视频的过程中,通过拍摄获得第一图像;然后分析拍摄的第一图像,判断第一图像中是否包含睁眼状态的眼球图像;最后判断若连续N张第一图像中均不包含睁眼状态的眼球图像,则停止播放视频,其中,N为大于1的整数。该方案通过分析第一图像中是否包含眼球区域,进而在预置样本库中对眼球区域进行比对,获得不包含眼球图像,当获取连续N张第一图像中均不包含眼球图像时停止播放视频,实现了根据用户的观看状态来自动控制视频播放的功能,避免视频播放过程中不必要的电量损耗。An embodiment of the present invention provides a user terminal, which is applied to a user terminal provided with a camera to obtain a first image by capturing during playing a video; and then analyzing the captured first image to determine whether the first image includes a blink The eyeball image of the state; finally, if the eyeball images of the blinking state are not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1. The solution analyzes whether the eyeball region is included in the first image, and then compares the eyeball region in the preset sample library to obtain an eyeball image, and stops when the first N images of the first image are not included. The video realizes the function of automatically controlling the video playback according to the viewing state of the user, and avoids unnecessary power loss during video playback.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be clearly understood by those skilled in the art that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置 和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, device And methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, 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 of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (10)

  1. 一种视频控制方法,其特征在于,应用于设置有摄像头的用户终端在播放视频的过程中,所述方法包括:A video control method is characterized in that, in a process of playing a video by a user terminal provided with a camera, the method includes:
    步骤a:拍摄获得第一图像;Step a: shooting to obtain a first image;
    步骤b:分析拍摄的所述第一图像,判断所述第一图像中是否包含睁眼状态的眼球图像;Step b: analyzing the captured first image, and determining whether the first image includes an eyeball image in a blink state;
    重复执行步骤a、b,若连续N张第一图像中均不包含所述睁眼状态的眼球图像,则停止播放所述视频,其中,N为大于1的整数。Steps a and b are repeatedly executed. If the eye images of the blink state are not included in the N consecutive first images, the video is stopped, where N is an integer greater than 1.
  2. 根据权利要求1所述的方法,其特征在于,所述步骤b包括:The method of claim 1 wherein said step b comprises:
    根据所述第一图像,判断所述第一图像中是否包含人脸图像;Determining, according to the first image, whether the face image is included in the first image;
    若所述第一图像中包含所述人脸图像,则根据所述人脸图像确定眼球区域;If the face image is included in the first image, determining an eyeball region according to the face image;
    在确定的所述眼球区域处,判断是否包含所述睁眼状态的眼球图像。At the determined eyeball region, it is determined whether or not the eyeball image of the blink state is included.
  3. 根据权利要求2所述的方法,其特征在于,所述在确定的所述眼球区域处,判断是否包含所述睁眼状态的眼球图像包括:The method according to claim 2, wherein said determining, at said determined area of said eyeball, whether or not said eyeball image comprising said blinked state comprises:
    使用Adaboost算法分析所述眼球区域,获得眼球状态,所述眼球状态包括睁眼状态和闭眼状态;The eyeball region is analyzed using an Adaboost algorithm to obtain an eyeball state, the eyeball state including a blink state and a closed eye state;
    根据所述眼球状态,判断是否包含所述睁眼状态的眼球图像。Based on the state of the eyeball, it is determined whether or not the eyeball image of the blink state is included.
  4. 根据权利要求3所述的方法,其特征在于,所述使用Adaboost算法分析所述眼球区域,获得眼球状态包括:The method according to claim 3, wherein the analyzing the eyeball region using the Adaboost algorithm to obtain an eyeball state comprises:
    使用所述Adaboost算法从预置样本库中对所述眼球区域进行比对识别,所述预置样本库包括有睁眼眼睛图像的正样本集,以及闭眼眼睛图像的负样本集;Aligning the eyeball region from a preset sample library using the Adaboost algorithm, the preset sample library comprising a positive sample set having a blink eye image, and a negative sample set of the closed eye image;
    若比对识别后的所述眼球区域为睁眼眼睛图像,则获得此时眼球状态为所述睁眼状态;If the eyeball area after the recognition is a blinking eye image, obtaining an eyeball state at the time is the blinking state;
    若比对识别后的所述眼球区域为闭眼眼睛图像,则获得此时眼球状态为所述闭眼状态。If the eyeball region after the recognition is a closed eye image, the eyeball state at this time is obtained as the closed eye state.
  5. 根据权利要求2所述的方法,其特征在于,若所述第一图像中不包含所述人脸图像,则确定第一图像中不包含所述睁眼状态的眼球图像,停止播放所述视频。 The method according to claim 2, wherein if the face image is not included in the first image, determining that the first image does not include the eyeball image of the blink state, and stopping playing the video .
  6. 一种用户终端,其特征在于,包括:A user terminal, comprising:
    采集单元,用于拍摄获得第一图像;a collecting unit, configured to capture a first image;
    分析单元,用于分析拍摄的所述第一图像,判断所述第一图像中是否包含睁眼状态的眼球图像;An analyzing unit, configured to analyze the captured first image, and determine whether the first image includes an eyeball image in a blink state;
    执行单元,用于重复执行步骤a、b,若连续N张第一图像中均不包含所述睁眼状态的眼球图像,则停止播放所述视频,其中,N为大于1的整数。And an execution unit, configured to repeatedly perform steps a and b, and if the eye images of the blink state are not included in the N consecutive first images, stop playing the video, where N is an integer greater than 1.
  7. 根据权利要求6所述的用户终端,其特征在于,The user terminal according to claim 6, wherein
    所述分析单元,用于根据所述第一图像,判断所述第一图像中是否包含人脸图像;以及若所述第一图像中包含所述人脸图像,则根据所述人脸图像确定眼球区域;以及在确定的所述眼球区域处,判断是否包含所述睁眼状态的眼球图像。The analyzing unit is configured to determine, according to the first image, whether the first image includes a face image; and if the first image includes the face image, determine the face image according to the face image An eyeball region; and at the determined eyeball region, determining whether or not the eyeball image of the blink state is included.
  8. 根据权利要求7所述的用户终端,其特征在于,A user terminal according to claim 7, wherein
    所述分析单元,用于使用Adaboost算法分析所述眼球区域,获得眼球状态,所述眼球状态包括睁眼状态和闭眼状态;以及根据所述眼球状态,判断是否包含所述睁眼状态的眼球图像。The analyzing unit is configured to analyze the eyeball region by using an Adaboost algorithm to obtain an eyeball state, the eyeball state includes a blinking state and a closed eye state; and determining, according to the eyeball state, whether the eyeball of the blinking state is included image.
  9. 根据权利要求8所述的用户终端,其特征在于,A user terminal according to claim 8, wherein
    所述分析单元,用于使用所述Adaboost算法从预置样本库中对所述眼球区域进行比对识别,所述预置样本库包括有睁眼眼睛图像的正样本集,以及闭眼眼睛图像的负样本集;以及若比对识别后的所述眼球区域为睁眼眼睛图像,则获得此时眼球状态为所述睁眼状态;以及若比对识别后的所述眼球区域为闭眼眼睛图像,则获得此时眼球状态为所述闭眼状态。The analyzing unit is configured to perform comparison and recognition on the eyeball region from a preset sample library by using the Adaboost algorithm, where the preset sample library includes a positive sample set with a blink eye image, and a closed eye image a negative sample set; and if the identified eyeball region is a blink eye image, obtaining an eyeball state at the time is the blink state; and if the aligned eyeball region is a closed eye The image is obtained at the time when the state of the eyeball is the closed eye state.
  10. 根据权利要求7所述的用户终端,其特征在于,若所述第一图像中不包含所述人脸图像,则The user terminal according to claim 7, wherein if the face image is not included in the first image,
    所述执行单元,用于确定第一图像中不包含所述睁眼状态的眼球图像,停止播放所述视频。 The executing unit is configured to determine an eyeball image that does not include the blink state in the first image, and stop playing the video.
PCT/CN2014/088431 2013-11-27 2014-10-11 Video control method and user terminal WO2015078240A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310614196.9A CN103618944A (en) 2013-11-27 2013-11-27 Method for controlling video and user terminal
CN201310614196.9 2013-11-27

Publications (1)

Publication Number Publication Date
WO2015078240A1 true WO2015078240A1 (en) 2015-06-04

Family

ID=50169648

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088431 WO2015078240A1 (en) 2013-11-27 2014-10-11 Video control method and user terminal

Country Status (2)

Country Link
CN (1) CN103618944A (en)
WO (1) WO2015078240A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150208125A1 (en) * 2014-01-22 2015-07-23 Lenovo (Singapore) Pte. Ltd. Automated video content display control using eye detection

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618944A (en) * 2013-11-27 2014-03-05 乐视网信息技术(北京)股份有限公司 Method for controlling video and user terminal
CN104320688A (en) * 2014-10-15 2015-01-28 小米科技有限责任公司 Video play control method and device
CN104768065A (en) * 2015-03-13 2015-07-08 上海优思通信科技有限公司 Electronic device video playing control method
CN106210780B (en) * 2016-07-15 2019-03-05 武汉斗鱼网络科技有限公司 Watch the processing method and system of idle live stream when network direct broadcasting
CN106713983A (en) * 2017-01-03 2017-05-24 广东小天才科技有限公司 Video playing control method and device
CN107679546A (en) * 2017-08-17 2018-02-09 平安科技(深圳)有限公司 Face image data acquisition method, device, terminal device and storage medium
CN109195015A (en) * 2018-08-21 2019-01-11 北京奇艺世纪科技有限公司 A kind of video playing control method and device
CN109618200A (en) * 2018-12-24 2019-04-12 上海闻泰电子科技有限公司 VR video playing control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629999A (en) * 2012-04-05 2012-08-08 邓中良 Automatic bedtime television shutdown service based on eye state identification technology
CN102880289A (en) * 2012-08-20 2013-01-16 广东步步高电子工业有限公司 Control system and method for playing and pausing videos by detecting point of regard of eyeballs
CN103324283A (en) * 2013-05-23 2013-09-25 广东欧珀移动通信有限公司 Method and terminal for controlling video playing based on face recognition
CN103618944A (en) * 2013-11-27 2014-03-05 乐视网信息技术(北京)股份有限公司 Method for controlling video and user terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200806029A (en) * 2006-07-14 2008-01-16 Asustek Comp Inc Display system and control method thereof
CN101639894B (en) * 2009-08-31 2013-03-20 华南理工大学 Method for detecting train driver behavior and fatigue state on line and detection system thereof
CN102779499B (en) * 2011-05-12 2015-11-04 同济大学 Display power-economizing method
CN103281064B (en) * 2013-04-19 2016-08-24 四川长虹电器股份有限公司 A kind of realize the method and device that household electrical appliances are energy-conservation
CN103257877A (en) * 2013-05-06 2013-08-21 苏州三星电子电脑有限公司 Automatic sleep control system of display device and control method thereof
CN103400122A (en) * 2013-08-20 2013-11-20 江苏慧视软件科技有限公司 Method for recognizing faces of living bodies rapidly

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629999A (en) * 2012-04-05 2012-08-08 邓中良 Automatic bedtime television shutdown service based on eye state identification technology
CN102880289A (en) * 2012-08-20 2013-01-16 广东步步高电子工业有限公司 Control system and method for playing and pausing videos by detecting point of regard of eyeballs
CN103324283A (en) * 2013-05-23 2013-09-25 广东欧珀移动通信有限公司 Method and terminal for controlling video playing based on face recognition
CN103618944A (en) * 2013-11-27 2014-03-05 乐视网信息技术(北京)股份有限公司 Method for controlling video and user terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150208125A1 (en) * 2014-01-22 2015-07-23 Lenovo (Singapore) Pte. Ltd. Automated video content display control using eye detection
US10667007B2 (en) * 2014-01-22 2020-05-26 Lenovo (Singapore) Pte. Ltd. Automated video content display control using eye detection

Also Published As

Publication number Publication date
CN103618944A (en) 2014-03-05

Similar Documents

Publication Publication Date Title
WO2015078240A1 (en) Video control method and user terminal
WO2017181769A1 (en) Facial recognition method, apparatus and system, device, and storage medium
CN106453962B (en) Camera shooting control method of double-screen intelligent terminal
CN109976506B (en) Awakening method of electronic equipment, storage medium and robot
WO2020259073A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN108399349B (en) Image recognition method and device
WO2016177154A1 (en) Method and device for switching operation mode of mobile terminal
WO2017177768A1 (en) Information processing method, terminal, and computer storage medium
CN108712603B (en) Image processing method and mobile terminal
WO2017088470A1 (en) Image classification method and device
US20170161553A1 (en) Method and electronic device for capturing photo
JP2016531362A (en) Skin color adjustment method, skin color adjustment device, program, and recording medium
CN108259758B (en) Image processing method, image processing apparatus, storage medium, and electronic device
CN104143078A (en) Living body face recognition method and device and equipment
WO2019011098A1 (en) Unlocking control method and relevant product
US11151398B2 (en) Anti-counterfeiting processing method, electronic device, and non-transitory computer-readable storage medium
WO2017088360A1 (en) Method and device for powering off terminal
US10893203B2 (en) Photographing method and apparatus, and terminal device
TW202009761A (en) Identification method and apparatus and computer-readable storage medium
KR20160043523A (en) Method, and device for video browsing
WO2019062347A1 (en) Facial recognition method and related product
WO2019011106A1 (en) State control method and related product
EP2712176B1 (en) Method and apparatus for photography
CN106774827B (en) Projection interaction method, projection interaction device and intelligent terminal
CN105138956A (en) Face detection method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14865599

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14865599

Country of ref document: EP

Kind code of ref document: A1