The present disclosure relates to a field of wearable device technology and, more particularly, to a method and a device for controlling playback.
With the development of science and technology, more and more wearable devices appear, such as smart bracelets, smart glasses and the like. Hence, a problem to be solved is how to utilize hardware features of the wearable devices to facilitate people's daily life.
According to a first aspect of embodiments of the present disclosure, there is provided a method for controlling playback. The method includes: obtaining a video file; determining whether a subject in the video file satisfies a predefined condition of variable speed playback; and in response to determining that the subject satisfies the predefined condition of variable speed playback, playing back the video file at a variable speed.
According to a second aspect of embodiments of the present disclosure, there is provided a device. The device includes: a processor; and a memory configured to store instructions executable by the processor. The processor is configured to obtain a video file, determine whether a subject in the video file satisfies a predefined condition of variable speed playback, and in response to determining that the subject satisfies the predefined condition of variable speed playback, play back the video file at a variable speed.
According to a third aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of a device, cause the device to perform a method for controlling playback. The method includes: obtaining a video file; determining whether a subject in the video file satisfies a predefined condition of variable speed playback; and in response to determining that the subject satisfies the predefined condition of variable speed playback, playing back the video file at a variable speed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise represented. The implementations set forth in the following description of exemplary embodiments do not represent all implementations consistent with the disclosure. Instead, they are merely examples of apparatuses and methods consistent with aspects related to the disclosure as recited in the appended claims.
In step 102, a video file is obtained.
In this embodiment, the wearable device may be smart glasses, and can automatically determine whether to play the video file at a variable speed, by shooting a subject along with conditional judgment, so as to optimize a viewing process of a user.
In one exemplary embodiment, the subject may be shot directly by the smart glasses.
In another exemplary embodiment, the smart glasses may cooperate with another device (such as a smart phone) for shooting a subject.
The video file may be transmitted between the smart glasses and the smart phone in a wireless manner, such as Bluetooth. Of course, any wireless or wired data transmission mode may be applied to the technical solution of the present disclosure which does not limit the transmission mode.
In step 104, it is determined whether the subject in the video file satisfies a predefined condition of variable speed playback.
In exemplary embodiments, there are various ways to determine whether the predefined condition of variable speed playback is satisfied, such as determining based on a motion intensity range, a shooting scene, and the like, which will be described below in detail.
In step 106, if the predefined condition of variable speed playback is satisfied, the video file is played back at a variable speed.
In the above embodiment, in a process of shooting a video of a subject, the subject is analyzed to determine whether a condition of variable speed playback is satisfied, such that the video file can be played back at the variable speed automatically. Therefore, the user can view the subject clearly via automatic slow playback when the subject moves at a relatively fast speed, and can quickly browse the overall motion of the subject via automatic fast playback when the subject moves at a relatively slow speed. As a result, the viewing experience can be improved.
The technical solution of the present disclosure has many implementations concerning determining whether the variable speed playback condition is satisfied in step 104 and the execution of variable speed playback in step 106. In the following, each processing feature will be illustrated respectively.
The following embodiments each take “smart glasses” for example for the convenience of description, but it shall be understood by those skilled in the art that the technical solution of the present disclosure can be applied to other non-wearable devices, so long as the devices have functions of processing information and displaying images (like a displaying screen), and are capable of identifying the subject being shot and determining whether the subject satisfies the condition.
1. Judgment on the Condition of Variable Speed Playback
1.1 Based on Motion Feature Parameters
In step 402, a video shooting function of the smart glasses is activated to execute an operation of shooting a subject.
In step 404, a motion feature parameter of the subject is obtained.
In step 406, it is determined whether a motion intensity of the subject is within a preset intensity range according to the motion feature parameter (i.e., whether the motion intensity is considered normal). If the motion intensity of the subject is within the preset intensity range, step 408 is carried out. In step 408, the video file is not played back or is played back in a normal mode without variable speed. If the motion intensity of the subject is not within the preset intensity range, step 410 is carried out. In step 410, the video file is played back at a variable speed.
In this embodiment, when the motion intensity of the subject is too high, it is possible that the user cannot clearly see the motion of the subject; and when the motion intensity of the subject is too low, it may take a long time for the user to view the entire motion process of the subject. In both cases, the user may not enjoy good viewing experience. By using the method 400, user viewing experience can be improved.
The process of determining the motion intensity of the subject according to the motion feature parameter varies according to a type of the motion feature parameter, which can be at least one of motion speed and motion frequency.
1) Motion Speed
In exemplary embodiments, two conditions, too fast and too slow, exist in terms of the motion speed, and here the condition of “too fast” is taken as an example for describing the process of determining the motion intensity of the subject. The visual persistence time (t) of human eyes generally lasts about 0.1 to 0.4 seconds. When the motion speed of the subject is too high, the motion duration of the subject in the vision field of a user may be less than t. As a result, the user may not view or identify the subject.
Therefore, in order to ensure that the motion intensity of the subject is within the preset intensity range, such that the user may identify and normally view the subject, the duration from the subject entering the vision field of the user to leaving the vision field of the user should be longer than t.
In order to meet the above requirement regarding the duration, both of the actual motion speed of the subject and the shooting distance of the subject should be taken into consideration. For instance,
2) Motion Frequency
In exemplary embodiments, two conditions, too fast and too slow, exist in terms of the motion frequency, and here the condition of “too fast” is taken as an example for describing the process of determining the motion intensity of the subject. Since the visual persistence time (t) of human eyes generally lasts about 0.1 to 0.4 seconds, if the motion frequency of the subject in the vision field of the user is greater than F=25 times per second, the user may not view or identify the subject.
For instance,
It shall be noted that the condition of “too fast” is taken as example for illustration of the motion speed and the motion frequency; similarly, the preset intensity range may have a lower boundary value. That is, when the motion speed or motion frequency is lower than the lower boundary value, it is determined that the motion intensity is too low and the video file needs to be played back fast to optimize the viewing experience. When the lower boundary value is set in terms of the motion speed, the lower boundary value is in positive correlation with the shooting distance.
For instance,
In the embodiment described above, the motion intensity of the subject is determined based on the motion feature parameter, and then, based on the motion intensity, it is determined whether the video file needs to be played back at the variable speed. If the value of the motion feature parameter is lower than the lower boundary value of the preset intensity range, the video file is played back fast; and if the value of the motion feature parameter is greater than the upper boundary value of the preset intensity range, the video file is played back slowly.
1.2 Based on Shooting Scenes
The smart glasses may identify a shooting scene of the video file according to a type of the subject or a type of an action performed by the subject, and may determine whether the subject in the video file satisfies the predefined condition of variable speed playback according to whether the shooting scene belongs to a preset variable speed playback scene.
In this embodiment, scenes that need to be played back at variable speeds are defined in advance as the preset variable speed playback scenes, and the identification feature of each preset variable speed playback scene is set, such as a type of the subject or a type of an action performed by the subject. Hence, the shooting scene of the video file may be determined accordingly.
For example, the car racing shooting scene shown in
Similarly, the snail crawling shooting scene shown in
2. Variable Speed Playback
There are various forms to play back a video file at a variable speed. Several exemplary forms are described in the following, but the present disclosure is not limited thereto.
2.1 Overlapping Playback
From a video image of the video file, play data corresponding to the subject or part of the subject that satisfies the predefined condition of variable speed playback is extracted. Then the extracted play data is played in an overlapping manner when the video file is played back.
It may be known from
It should be noted that, as the description of play data corresponding to part of the subject that satisfies the predefined condition of variable speed playback, since not every subject is the same as the vehicle in
1) From a video image (e.g., a video frame) of the video file, play data corresponding to the subject or part of the subject that satisfies the predefined condition of variable speed playback is extracted. Then the extracted play data is played back slowly in an overlapping manner within a playback region at a preset position when the video file is played back normally.
For example, as shown in
2) From the video image of the video file, play data corresponding to the subject or part of the subject that satisfies the predefined condition of variable speed playback is extracted. An original picture element in the video image corresponding to the play data extracted is erased from the video image, so as to obtain a processed video file. The extracted play data is played back slowly in an overlapping manner when the processed video file is played back normally.
In this embodiment, the original picture element may be directly erased from the video file in order to avoid interference between the extracted picture element extracted and the original picture element, which will not degrade the user viewing experience, since the user expects to see the extracted picture element played back at the variable speed.
2.2 Completely Variable Speed Playback
In an exemplary embodiment, a video image containing the subject may be played back completely at the variable speed.
The present disclosure further provides an embodiment of a device for controlling playback corresponding to the embodiment of the method for controlling playback.
The motion feature parameter includes at least one of motion speed and motion frequency. If the motion feature parameter includes the motion speed, and the motion speed falls within a preset speed range, the motion intensity of the subject is within the preset intensity range. If the motion feature parameter includes the motion frequency, and the motion frequency falls within a preset frequency range, the motion intensity of the subject is within the preset intensity range.
A boundary value of the preset speed range is in positive correlation with a shooting distance of the subject.
It shall be noted that the structures of the parameter obtaining sub-unit 1202A and the parameter determining sub-unit 1202B shown in the embodiment of
It shall be noted that the structure of the partial determining sub-unit 1202C shown in the embodiment of
It shall be noted that the structures of the scene identifying sub-unit 1202D and the scene determining sub-unit 1202E shown in the embodiment of
It shall be noted that the structure of the complete playback sub-unit 1203C shown in the embodiment of
It shall be noted that the structures of the first data extracting sub-unit 1203D and the first overlapping playback sub-unit 1203E shown in the embodiment of
It shall be noted that the structures of the second data extracting sub-unit 1203F and the second overlapping playback sub-unit 1203G shown in the embodiment of
It shall be noted that the structures of the third data extracting sub-unit 1203H, the element erasing sub-unit 1203I and the third overlapping playback sub-unit 1203J shown in the embodiment of
With respect to the devices in the above embodiments, the specific manners for performing operations for individual units therein have been described in detail in the embodiments regarding the methods for controlling playing, which will not be elaborated herein.
The device embodiments substantially correspond to the method embodiments. Therefore, relevant description of the device embodiments may also be found by referring to the method embodiments. The device embodiments described above are only exemplary, in which the units described as separate components may be or may not be physically separate. The components described as the units may be or not be a physical unit, i.e. may be located at the same location or may be distributed at many network elements. It is possible to select part of or all of the units to realize the objective of the present disclosure, which may be understood and implemented by those skilled in the art without paying more creative effort.
Accordingly, the present disclosure further provides a device for controlling playback. The device includes a processor and a memory configured to store instructions executable by the processor. The processor is configured to shoot a subject and generate a corresponding video file; and to determine whether the subject in the video file satisfies a predefined condition of variable speed playback. If the subject in the video file satisfies a predefined condition of variable speed playback, the processor is configured to play back the video file at a variable speed.
Referring to
The processing component 2202 typically controls overall operations of the device 2200, such as the operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 2202 may include one or more processors 2220 to execute instructions to perform all or part of the steps in the above described methods. Moreover, the processing component 2202 may include one or more modules which facilitate the interaction between the processing component 2202 and other components. For instance, the processing component 2202 may include a multimedia module to facilitate the interaction between the multimedia component 2208 and the processing component 2202.
The memory 2204 is configured to store various types of data to support the operation of the device 2200. Examples of such data include instructions for any applications or methods operated on the device 2200, contact data, phonebook data, messages, pictures, video, etc. The memory 2204 may be implemented using any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.
The power component 2206 provides power to various components of the device 2200. The power component 2206 may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of power in the device 2200.
The multimedia component 2208 includes a screen providing an output interface between the device 2200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense a boundary of a touch or swipe action, but also sense a period of time and a pressure associated with the touch or swipe action. In some embodiments, the multimedia component 2208 includes a front camera and/or a rear camera. The front camera and the rear camera may receive an external multimedia datum while the device 2200 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera and the rear camera may be a fixed optical lens system or have focus and optical zoom capability.
The audio component 2210 is configured to output and/or input audio signals. For example, the audio component 2210 includes a microphone (“MIC”) configured to receive an external audio signal when the device 2200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory 2204 or transmitted via the communication component 2216. In some embodiments, the audio component 2210 further includes a speaker to output audio signals.
The I/O interface 2212 provides an interface between the processing component 2202 and peripheral interface modules, such as a keyboard, a click wheel, buttons, and the like. The buttons may include, but are not limited to, a home button, a volume button, a starting button, and a locking button.
The sensor component 2214 includes one or more sensors to provide status assessments of various aspects of the device 2200. For instance, the sensor component 2214 may detect an open/closed status of the device 2200, relative positioning of components, e.g., the display and the keypad, of the device 2200, a change in position of the device 2200 or a component of the device 2200, a presence or absence of user contact with the device 2200, an orientation or an acceleration/deceleration of the device 2200, and a change in temperature of the device 2200. The sensor component 2214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 2214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 2214 may also include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 2216 is configured to facilitate communication, wired or wirelessly, between the device 2200 and other devices. The device 2200 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof In one exemplary embodiment, the communication component 2216 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 2216 further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.
In exemplary embodiments, the device 2200 may be implemented with one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components, for performing the above described methods.
In exemplary embodiments, there is also provided a non-transitory computer-readable storage medium including instructions, such as included in the memory 2204, executable by the processor 2220 in the device 2200, for performing the above-described methods. For example, the non-transitory computer-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device, and the like.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed here. This application is intended to cover any variations, uses, or adaptations of the disclosure following the general principles thereof and including such departures from the present disclosure as come within known or customary practice in the art. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the present disclosure being indicated by the following claims.
It will be appreciated that the present disclosure is not limited to the exact construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. It is intended that the scope of the disclosure only be limited by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201510149222.4 | Mar 2015 | CN | national |
This application is a continuation application of International Application No. PCT/CN2015/088687, filed on Aug. 31, 2015, which is based on and claims priority to Chinese Patent Application No. 201510149222.4, filed on Mar. 31, 2015, the entire contents of all of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2015/088687 | Aug 2015 | US |
Child | 14927590 | US |