Mode switching method of smart television, smart television and storage medium

文档序号:1601730 发布日期:2020-01-07 浏览:9次 中文

阅读说明:本技术 智能电视的模式切换方法、智能电视及存储介质 (Mode switching method of smart television, smart television and storage medium ) 是由 余茂盛 于 2019-10-17 设计创作,主要内容包括:本发明提供一种智能电视的模式切换方法、智能电视及存储介质,智能电视的模式切换方法包括:在检测到当前运行模式为家庭模式并且在该模式下有视频播放时,获取M个视频的播放时长;在M个播放时长内分别获取视频的声音采样数据,从所述声音采样数据中获取N条声音曲线,其中N≤M;根据N条声音曲线判断视频是否为循环播放;若是,则将当前运行模式从家庭模式切换到卖场模式。该发明可将智能电视的家庭模式自动切换为卖场模式,解决了智能电视无法正常播放宣传视频和展示效果差的技术问题,具有能够自动切换成卖场模式的优点。(The invention provides a mode switching method of an intelligent television, the intelligent television and a storage medium, wherein the mode switching method of the intelligent television comprises the following steps: when the current operation mode is detected to be the home mode and videos are played in the mode, the playing time lengths of the M videos are obtained; respectively acquiring sound sampling data of a video within M playing time lengths, and acquiring N sound curves from the sound sampling data, wherein N is less than or equal to M; judging whether the video is played circularly or not according to the N sound curves; if yes, the current operation mode is switched from the family mode to the market mode. The invention can automatically switch the home mode of the smart television into the store mode, solves the technical problems that the smart television cannot normally play the propaganda video and has poor display effect, and has the advantage of being capable of automatically switching into the store mode.)

1. A mode switching method of an intelligent television is characterized by comprising the following steps:

when the current operation mode is detected to be a home mode and videos are played in the home mode, obtaining the playing time lengths of M videos;

respectively acquiring sound sampling data of the video within M playing time lengths, and acquiring N sound curves from the sound sampling data, wherein N is less than or equal to M;

judging whether the video is played circularly or not according to the N sound curves;

if yes, the current operation mode is switched from the family mode to the market mode.

2. The method for switching modes of the smart television as claimed in claim 1, wherein the step of determining whether the video is played circularly according to the N sound curves comprises:

respectively calculating the average sound amplitude of the N sound curves to obtain N average sound amplitude values;

dividing the N average sound amplitude values into N-1 groups, wherein each group comprises two average sound amplitude values, and respectively calculating the difference value of the two average sound amplitude values in the N-1 groups to obtain N-1 similarity degrees;

and judging whether the N-1 similarity degrees obtained by calculation are all smaller than a preset threshold value, and when the N-1 similarity degrees are all smaller than the preset threshold value, judging that the video is played circularly.

3. The method for switching modes of a smart television set as claimed in claim 2, wherein the step of dividing the N average sound amplitude values into N-1 groups, each group containing two average sound amplitude values comprises:

one of the N average sound amplitude values is selected as a reference amplitude value, and the N average sound amplitude values are divided into N-1 groups, wherein one average sound amplitude value contained in each group is the reference amplitude value, and the other average sound amplitude value is a non-reference amplitude value.

4. The method for switching modes of a smart television set as claimed in claim 3, wherein the step of selecting one of the N average sound amplitude values as a reference amplitude value comprises:

and taking the average sound amplitude value of the first collected sound curve as a reference amplitude value.

5. The method for switching modes of a smart television set as claimed in claim 2, wherein the step of dividing the N average sound amplitude values into N-1 groups, each group containing two average sound amplitude values comprises:

and dividing the adjacent average sound amplitude values in pairs into a group to obtain N-1 groups.

6. The method for switching modes of a smart television set as claimed in claim 1, wherein the step of respectively obtaining the sound sample data of the video in the N playing time periods comprises:

and respectively selecting a plurality of sampling time points from the N playing time lengths so as to take the acquired sound amplitude of each sampling time point as sound sampling data.

7. The method for switching modes of the smart television set as claimed in claim 1, wherein the step of obtaining the playing duration of the video comprises:

and acquiring a Source duration field in the Audio attribute of the video, and taking a numerical value corresponding to the Source duration field as the playing duration.

8. The mode switching method of the smart tv as claimed in any one of claims 1 to 7, wherein the step of switching the current operation mode from the home mode to the market mode further comprises, before:

if the video is played circularly, outputting prompt information for switching the family mode to the store mode;

when receiving a confirmation instruction triggered based on the prompt message, executing the step of switching the current operation mode from the family mode to the market mode;

and when a cancel instruction triggered based on the prompt information is received, not executing the operation.

9. An intelligent television, characterized in that the intelligent television comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the mode switching method of the intelligent television according to any one of claims 1 to 8.

10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the mode switching method for the smart tv according to any one of claims 1 to 8.

Technical Field

The invention relates to the field of smart televisions, in particular to a mode switching method of a smart television, the smart television and a storage medium.

Background

The factory running mode of the intelligent television is generally defaulted to a home mode, manual adjustment is needed if the intelligent television is in a market mode with more prominent image display effect, but most sales staff in the market often directly select default settings to finish the startup guide due to insufficient understanding of product settings, and particularly some overseas sales staff do not have specific television sales staff, such as European markets, so that no people pay more attention to whether the intelligent television is in the market mode, and the display effect of the intelligent television in the market sales is actually influenced. On the other hand, in order to meet the energy-saving requirement, the smart television in the home mode generally enters a standby state after a user does not operate for a long time, so that the smart television in the home mode cannot normally play the shop propaganda video.

In view of the above, it is desirable to provide a mode switching method for a smart tv, a smart tv and a storage medium, so as to solve or at least alleviate the above technical drawbacks.

Disclosure of Invention

The invention mainly aims to provide a mode switching method of a smart television, the smart television and a storage medium, and aims to solve the technical problems that the smart television cannot normally play a propaganda video in a store and has poor display effect in the prior art.

In order to achieve the above object, the present invention provides a mode switching method for a smart television, including:

when the current operation mode is detected to be a home mode and videos are played in the home mode, obtaining the playing time lengths of M videos;

respectively acquiring sound sampling data of the video within M playing time lengths, and acquiring N sound curves from the sound sampling data, wherein N is less than or equal to M;

judging whether the video is played circularly or not according to the N sound curves;

if yes, the current operation mode is switched from the family mode to the market mode.

Preferably, the step of judging whether the video is played circularly according to the N sound curves includes:

respectively calculating the average sound amplitude of the N sound curves to obtain N average sound amplitude values;

dividing the N average sound amplitude values into N-1 groups, wherein each group comprises two average sound amplitude values, and respectively calculating the difference value of the two average sound amplitude values in the N-1 groups to obtain N-1 similarity degrees;

and judging whether the N-1 similarity degrees obtained by calculation are all smaller than a preset threshold value, and when the N-1 similarity degrees are all smaller than the preset threshold value, judging that the video is played circularly.

Preferably, the step of dividing the N average sound amplitude values into N-1 groups, each group containing two average sound amplitude values comprises:

one of the N average sound amplitude values is selected as a reference amplitude value, and the N average sound amplitude values are divided into N-1 groups, wherein one average sound amplitude value contained in each group is the reference amplitude value, and the other average sound amplitude value is a non-reference amplitude value.

Preferably, the step of selecting one of the N average sound amplitude values as a reference amplitude value comprises:

and taking the average sound amplitude value of the first collected sound curve as a reference amplitude value.

Preferably, the step of dividing the N average sound amplitude values into N-1 groups, each group containing two average sound amplitude values comprises:

and dividing the adjacent average sound amplitude values in pairs into a group to obtain N-1 groups.

Preferably, the step of respectively acquiring the sound sample data of the video within the N play durations includes:

and respectively selecting a plurality of sampling time points from the N playing time lengths so as to take the acquired sound amplitude of each sampling time point as sound sampling data.

Preferably, the step of obtaining the playing time length of the video includes:

and acquiring a Source duration field in the Audio attribute of the video, and taking a numerical value corresponding to the Source duration field as the playing duration.

Preferably, before the step of switching the current operation mode from the home mode to the store mode, the method further comprises:

if the video is played circularly, outputting prompt information for switching the family mode to the store mode;

when receiving a confirmation instruction triggered based on the prompt message, executing the step of switching the current operation mode from the family mode to the market mode;

and when a cancel instruction triggered based on the prompt information is received, not executing the operation.

The invention also provides an intelligent television, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the mode switching method of the intelligent television are realized.

The present invention further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the mode switching method for the smart television set as described above.

In the technical scheme, when the current operation mode is detected to be the home mode and a video is played in the mode, the playing time length of the video is obtained; respectively acquiring sound sampling data of the video within N playing time lengths to obtain N sound curves according to the sound sampling data; judging whether the video is played circularly or not according to the N sound curves; if yes, the current operation mode is switched from the family mode to the market mode. The household mode of the smart television can be automatically switched to the store mode, the technical problems that the smart television cannot normally play the propaganda video in the store and the display effect is poor are solved, and the smart television has the advantage that the home mode can be automatically switched to the store mode.

Drawings

Fig. 1 is a schematic diagram of a hardware structure of a smart television provided in the present invention;

fig. 2 is a schematic flowchart of a mode switching method of a smart television according to a first embodiment of the present invention;

fig. 3 is a detailed flowchart of step S30 in the second embodiment of the method for switching modes of the smart television according to the present invention;

fig. 4 is a detailed flowchart of step S30 in the third embodiment of the method for switching modes of the smart television according to the present invention;

fig. 5 is a detailed flowchart of step S30 in the fourth embodiment of the method for switching modes of the smart television according to the present invention.

The implementation, functional features and advantages of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of an intelligent television provided by the present invention.

The smart tv may include components such as a communication module 10, a memory 20, and a processor 30 in a hardware configuration. In the smart television, the processor 30 is connected to the memory 20 and the communication module 10, respectively, the memory 20 stores thereon a computer program, and the computer program is executed by the processor 30 at the same time, and when executed, the steps of the following method embodiments are implemented.

The communication module 10 may be connected to an external communication device through a network. The communication module 10 may receive a request from an external communication device, and may also send a request, an instruction, and information to the external communication device. The external communication device may be a user terminal or other system server, etc.

The memory 20 may be used to store software programs as well as various data. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (for example, detecting whether the current operation mode is a home mode), and the like; the storage data area may include a database, and the storage data area may store data or information created according to the use of the smart tv, and the like. Further, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

The processor 30, which is a control center of the smart tv, connects various parts of the entire smart tv through various interfaces and lines, and performs various functions and processes of the smart tv by running or executing software programs and/or modules stored in the memory 20 and calling data stored in the memory 20, thereby performing overall monitoring of the smart tv. Processor 30 may include one or more processing units; alternatively, the processor 30 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 30.

Although not shown in fig. 1, the smart television may further include a circuit control module, where the circuit control module is used for being connected to a power supply to ensure normal operation of other components. Those skilled in the art will appreciate that the smart television architecture shown in fig. 1 does not constitute a limitation of the smart television, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.

Based on the hardware structure, various embodiments of the method of the invention are provided.

Fig. 2 is a flowchart illustrating a mode switching method of a smart television according to a first embodiment of the present invention. In a first embodiment of the mode switching method for the smart television, the method includes the steps of:

step S10, when detecting that the current operation mode is the home mode and video playing exists in the home mode, acquiring the playing time length of M videos;

after the smart television is started, whether the current Mode is a Home Mode or not is automatically detected, if the current Mode is the Home Mode, whether video playing exists or not is detected, and if the video playing exists, the playing duration of the video is acquired. Specifically, a numerical value corresponding to the Source duration field may be taken as the play duration T from the Source duration field in the Audio attribute of the video. The Source duration field is a resource duration, and the value of the Source duration is a video playing duration, for example, "Source duration: 2min 50s "indicates that the playing time of the video is 2 minutes and 50 seconds.

It should be noted that, the current operation mode may be detected through the system settings of the smart television, for example, whether a sleep setting exists or not, or whether a display color, brightness, and sound frequency are acquired, and whether the home mode is determined according to the acquired display color, brightness, and sound frequency. It can be understood that the home mode is the best state for the user to use at home after purchasing, and the mode has softer color, more appropriate brightness and sound, and is the best mode for the user to watch everyday. In addition, in order to meet the requirement of energy saving, the television is generally set to automatically enter a standby state after the user does not operate for a long time in a home mode (Shop with Demo). The shopping mall mode is used in a shopping mall environment, in order to attract the attention of consumers, the colors of a television in the shopping mall mode are rich and bright, the sound is larger than that of a normal family, meanwhile, in order to achieve a better propaganda effect, the purchasing desire of the consumers is hooked up, some specifically made propaganda videos can be played in a circulating mode in the shopping mall mode to introduce own special functions, the shopping mall mode is different from the family mode, no operation is performed for a long time, and the television cannot automatically enter a standby state. Corresponding to the difference setting, the current operation mode of the smart television can be considered as a home mode when the sleep setting exists in the current operation mode, and otherwise, the current operation mode is a market mode. Or when the brightness and the sound both exceed the corresponding threshold values, the mode is considered as a store mode, and the mode is considered as a family mode.

Step S20, acquiring sound sampling data of the video within M playing time lengths respectively, and acquiring N sound curves from the sound sampling data, wherein N is less than or equal to M;

each playing time corresponds to one sound curve, M sound sampling data can be obtained from M playing times to obtain M sound curves, then N sound curves are selected from the M sound curves, and obviously, N is less than or equal to M. N is an integer greater than or equal to 2, N playing durations correspond to N sound curves, where the N playing durations may be continuous N playing durations, or may be discontinuous, and may be conveniently determined according to how to acquire or select sound sampling data.

Optionally, the main body for acquiring the sound sampling data may be a television terminal, and a processor of the television terminal acquires the sound sampling data to obtain a sound curve; the main body for acquiring the sound sampling data can also be a server, and the server acquires the video played by the television, then samples the video to acquire the sound sampling data so as to acquire a sound curve, and feeds the sound curve back to the smart television. Wherein, when the processor of the television acquires the sound sampling data, the steps may be: and respectively selecting a plurality of sampling time points from the N playing time lengths so as to take the acquired sound amplitude of each sampling time point as sound sampling data.

The plurality of sampling time points may be time points spaced at the same time, such as sound sampling data may be collected at 5s intervals, i.e. 5s, 10s, 15s, 25s. It may also be collected at time points of a set time, such as once at 20s, 60s, 80s, 140 s. It should be noted that, regardless of the collection method, the time point of collecting the sound sample data each time should be the same. That is, each sound curve is to capture sound amplitude values for 5s, 10s, 15s, 25s.. or each sound curve is to capture sound amplitude values for 20s, 60s, 80s, 140 s. To ensure the accuracy of acquiring the sound sampling data, the acquisition time points should be at least 3.

Alternatively, the sound amplitude of the video may be sampled every Δ T (T/. DELTA.t may be an integer, so that the sound amplitude of the video end time can be collected), and then the sampling results within one playing time period T are M (1), M (2), M (3) … M (T/. DELTA.t), and the sampled data of T/. DELTA.t may form a sound curve S1 by linear fitting or finite element fitting, so that within N playing time periods, N sound curves may be obtained, where:

S1=[M(1),M(2),M(3)…M(T/△t)]

S2=[M2(1),M2(2),M2(3)…M2(T/△t)]

S3=[M3(1),M3(2),M3(3)…M3(T/△t)]

Sn=[Mn(1),Mn(2),Mn(3)…Mn(T/△t)]

step S30, judging whether the video is played circularly according to the N sound curves;

and step S40, if yes, switching the current operation mode from the family mode to the market mode.

It should be noted that, because the video playing performed in the marketplace is cyclic, it can be determined according to the characteristics whether the playing environment of the smart television actually in the home mode is in the marketplace, if the playing environment is cyclic, the smart television is considered to be in the marketplace, and the operation mode needs to be adjusted from the home mode to the marketplace mode, so that the smart television meets the requirements of substantial display and brightness. If the video is not played circularly, the adjustment of the running mode is not needed.

In the embodiment, the home mode of the smart television can be automatically switched to the store mode when the operation mode is determined to be the home mode and the smart television is in the store, so that the technical problems that the smart television cannot normally play the propaganda video and is poor in display effect are solved, and the smart television has the advantage of being automatically switched to the store mode.

There are various embodiments for determining whether the video is played in a loop from the N sound curves, and two of them will be described below, but the present invention is not limited thereto.

Based on the first embodiment, a second embodiment of the mode switching method for the smart television of the present invention is provided, and referring to fig. 3, in this embodiment, the step S30 of determining whether the video is played in a loop according to the N sound curves includes:

step S31, calculating average sound amplitude of the N sound curves respectively to obtain N average sound amplitude values;

the average sound amplitude of each sound curve is calculated as follows:

Figure BDA0002237460290000072

Figure BDA0002237460290000073

Figure BDA0002237460290000074

the expression of the above calculation formula is to add the sound amplitude values of each point of the acquired sound sampling data, and then divide by the total number of the acquired sound sampling data to obtain the average sound amplitude of each sound curve. The N sound curves yield N average sound amplitude values.

S32, dividing the N average sound amplitude values into N-1 groups, wherein each group comprises two average sound amplitude values, and respectively calculating the difference value of the two average sound amplitude values in the N-1 groups to obtain N-1 similarity;

s33, judging whether the calculated N-1 similarity degrees are all smaller than a preset threshold value, and when the N-1 similarity degrees are all smaller than the preset threshold value, judging that the video is played circularly.

It can be understood that the videos played by the smart tv in a marketplace environment are generally the same or have a small difference, and here, whether the videos are the same or similar can be evaluated through similarity. Optionally, a threshold Δ d of similarity may be preset, an absolute value of a difference obtained by subtracting two average sound amplitude values in each group is used as the similarity, N-1 similarities are obtained, and if all the values of N-1 similarities are smaller than Δ d, it may be determined that the video is played in a loop. According to the scheme, the similarity is calculated and a preset threshold value is combined to provide a refinement scheme for evaluating whether the video is played circularly or not, so that whether the environment where the television is located is a store or not is accurately helped.

Referring to fig. 4, a third embodiment of the mode switching method for the smart television according to the present invention is proposed based on the second embodiment, in this embodiment, the step S32 divides the N average sound amplitude values into N-1 groups, each group includes two average sound amplitude values, and calculates the difference between the two average sound amplitude values in the N-1 groups, respectively, so as to obtain N-1 similarities, including:

step S321, selecting one of the N average sound amplitude values as a reference amplitude value, and dividing the N average sound amplitude values into N-1 groups, where one average sound amplitude value included in each group is the reference amplitude value, and the other average sound amplitude value is a non-reference amplitude value.

It should be noted that, when one is selected as the reference amplitude value, any one of the N average sound amplitude values may be selected as the reference amplitude value, so that each group includes the reference amplitude value, and each of the N average sound amplitude values should be included in the other N-1 groups to ensure that each average sound amplitude value participates in the calculation. For example, the average sound amplitude value of the kth sound curve Sk may be selected as the reference amplitude value, and the other N-1 average sound amplitude values (average sound amplitude values other than Sk) may be associated with each other

Figure BDA0002237460290000081

After subtraction, taking an absolute value to obtain similarity data delta S1, delta S2 and delta S3 … delta Sn, judging whether the delta S1, the delta S2 and the delta S3 … delta Sn are all smaller than delta d, if so, indicating that the difference value of the average sound amplitude of the N curves is within a preset threshold value, and judging that the video is played circularly; if not, the video is not played circularly. By setting a reference amplitude value, a reference standard can be provided for the judgment of the circular playing, and the consistency of the standard is ensured.

As a preferred implementation of the above embodiment, the average sound amplitude value of one sound curve S1 acquired first is used as the reference amplitude value.

Selecting

Figure BDA0002237460290000082

Is a basic value, and other N-1 average sound amplitude values are allowed to follow one by oneAnd after subtraction, obtaining absolute values to obtain similarity data delta S1, delta S2 and delta S3 … delta Sn, judging whether the delta S1, the delta S2 and the delta S3 … delta Sn are all smaller than delta d, and if so, judging that the video is played circularly. It is more convenient to select a sound curve that is collected first, and compared with other average sound amplitudes, the initial setting that is more likely to be carried out by the salesperson is more reference basis.

Referring again to fig. 5, a fourth embodiment of the mode switching method for the smart television according to the present invention is proposed based on the second embodiment, and the step S32 divides the N average sound amplitude values into N-1 groups, each group includes two average sound amplitude values, and calculates the difference between the two average sound amplitude values in the N-1 groups respectively, so as to obtain N-1 similarities includes:

s3201, dividing the average sound amplitude values adjacent to each other in the N average sound amplitude values into a group to obtain N-1 groups.

Specifically, Δ S1, Δ S2, Δ S3 … Δ Sn are calculated by:

Figure BDA0002237460290000091

Figure BDA0002237460290000092

Figure BDA0002237460290000094

that is, an iterative subtraction form in the mathematical expression is adopted, the former average sound amplitude value is sequentially subtracted from the latter average sound amplitude value, and the absolute value of the subtraction of the two is used as the similarity. Then, it is determined whether Δ S1, Δ S2, and Δ S3 … Δ Sn are all smaller than Δ d, and if so, it is determined that the video is played in a loop. Those skilled in the art will appreciate that since the similarity is obtained by subtracting two sound curve values from each other, N is equal to or greater than 3. Through comparing the average amplitude values of every two adjacent sounds, the similarity of all adjacent videos can be evaluated, and then whether the whole playing process is the circular playing or not is determined, the technical problem that the propaganda videos cannot be played normally and the display effect is poor is solved, and the intelligent television has the advantage that the mode can be automatically switched to the shop mode

A fifth embodiment of the mode switching method for a smart tv according to the present invention is provided based on the first embodiment, and before the step of switching the current operation mode from the home mode to the store mode, the method further includes:

if the video is played circularly, outputting prompt information for switching the family mode to the store mode;

when receiving a confirmation instruction triggered based on the prompt message, executing the step of switching the current operation mode from the family mode to the market mode;

and when a cancel instruction triggered based on the prompt information is received, not executing the operation.

When the video is judged to be circularly played, a prompt message for switching the intelligent television to the market mode is output, and when a confirmation instruction triggered based on the prompt message is received, the step of controlling the intelligent television to be switched to the market mode to operate is executed; or if no confirmation instruction or cancellation instruction is received within the preset time length of outputting the prompt information, executing a step of controlling the intelligent television to switch to a market mode for operation. In addition, if the user scene when the played video is detected to be played in a circulating mode is a home, the user can trigger a cancel instruction based on the displayed prompt information, the smart television does not execute the operation, and can stay in the home mode to operate continuously without influencing the normal use of the home user.

In addition, the invention also provides a computer readable storage medium, on which a computer program is stored. The computer-readable storage medium may be a Memory in the terminal, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, and the computer-readable storage medium includes several pieces of information for enabling the terminal to perform the method according to the embodiments of the present invention.

In the above technical solutions, the above are only preferred embodiments of the present invention, and the technical scope of the present invention is not limited thereby, and all the technical concepts of the present invention include the claims of the present invention, which are directly or indirectly applied to other related technical fields by using the equivalent structural changes made in the content of the description and the drawings of the present invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种视频中批量植入内容信息的方法和系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类