CN102984477A - Processing method and device for video and audio information and television - Google Patents
Processing method and device for video and audio information and television Download PDFInfo
- Publication number
- CN102984477A CN102984477A CN201210558779XA CN201210558779A CN102984477A CN 102984477 A CN102984477 A CN 102984477A CN 201210558779X A CN201210558779X A CN 201210558779XA CN 201210558779 A CN201210558779 A CN 201210558779A CN 102984477 A CN102984477 A CN 102984477A
- Authority
- CN
- China
- Prior art keywords
- value
- position value
- reference value
- current
- video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
本发明涉及一种视音频信息的处理方法、装置和电视机。该方法包括:对当前时刻的目标对象进行检测,获取目标对象在当前时刻的当前位置值;对当前位置值进行加权处理,得到目标对象的当前加权位置值;将所述当前加权位置值与参考值进行对比,所述参考值包括最大位置值、最小位置值和参考位置值;当所述当前加权位置值位于所述最大位置值和所述最小位置值之间时,根据所述当前加权位置值和所述参考位置值,获取对应的视音频参数的调节因子;根据视音频参数的调节因子,对视音频信息进行调节处理。本发明实施例实现了对电视机的视音频信息自动进行处理,减小了电视机的视音频信息的处理复杂度。
The invention relates to a video and audio information processing method, device and television. The method includes: detecting the target object at the current moment to obtain the current position value of the target object at the current moment; performing weighting processing on the current position value to obtain the current weighted position value of the target object; combining the current weighted position value with the reference The reference value includes a maximum position value, a minimum position value and a reference position value; when the current weighted position value is between the maximum position value and the minimum position value, according to the current weighted position value value and the reference position value to obtain the adjustment factor of the corresponding video and audio parameter; according to the adjustment factor of the video and audio parameter, the video and audio information is adjusted. The embodiment of the present invention realizes the automatic processing of the video and audio information of the TV, and reduces the processing complexity of the video and audio information of the TV.
Description
技术领域technical field
本发明涉及电视技术领域,尤其涉及一种视音频信息的处理方法、装置及电视机。The invention relates to the technical field of television, in particular to a method and device for processing video and audio information and a television.
背景技术Background technique
随着电视技术的快速发展,电视机视频、音频的可调节项也越来越多。电视机在迅速发展的同时,也出现了一些应用上的弊端。例如,电视机视频和音频的调节菜单的菜单项非常多,用户需要使用这些菜单项进行电视视音频效果的调节,一般用户不明白这些菜单对应的功能,往往在调节过程中得不到想要的视音频效果。With the rapid development of TV technology, there are more and more adjustable items for TV video and audio. While TV sets are developing rapidly, there are also some disadvantages in application. For example, there are many menu items in the TV video and audio adjustment menu. Users need to use these menu items to adjust the TV video and audio effects. Generally, users do not understand the functions corresponding to these menus, and often cannot get what they want during the adjustment process. video and audio effects.
现有技术下,调节电视的视音频的方法通常为打开视音频调节窗口,通过相应的菜单项对电视的图像显示或音量大小进行设置。目前使用的音频调节的菜单项有左声道、右声道、平衡、音量等;图像调节的菜单项有图像亮度、图像对比度、色彩饱和度等,由此可以看出,现有技术下的视音频调节方法使得电视视音频信息的处理比较复杂,降低了用户的体验效果。In the prior art, the method for adjusting the video and audio of the TV is usually to open the video and audio adjustment window, and set the image display or volume of the TV through corresponding menu items. The menu items of audio frequency adjustment currently used include left channel, right channel, balance, volume, etc.; the menu items of image adjustment include image brightness, image contrast, color saturation, etc. The video and audio adjustment method makes the processing of TV video and audio information more complicated, and reduces the experience effect of the user.
发明内容Contents of the invention
本发明实施例提供了一种视音频信息的处理方法、装置和电视机,可以实现对电视机的视音频信息自动进行处理,减小了电视机的视音频信息的处理复杂度。Embodiments of the present invention provide a video and audio information processing method, device, and television, which can automatically process the video and audio information of the television, and reduce the processing complexity of the video and audio information of the television.
第一方面,本发明实施例提供了一种视音频信息的处理方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for processing video and audio information, the method comprising:
对当前时刻的目标对象进行检测,获取所述目标对象在当前时刻的当前位置值;Detecting the target object at the current moment, and obtaining the current position value of the target object at the current moment;
对所述当前位置值进行加权处理,得到所述目标对象的当前加权位置值;performing weighting processing on the current position value to obtain the current weighted position value of the target object;
将所述当前加权位置值与参考值进行对比,所述参考值包括最大位置值、最小位置值和参考位置值;comparing the current weighted position value with reference values, the reference values comprising a maximum position value, a minimum position value and a reference position value;
当所述当前加权位置值位于所述最大位置值和所述最小位置值之间时,根据所述当前加权位置值和所述参考位置值,获取对应的视音频参数的调节因子;When the current weighted position value is between the maximum position value and the minimum position value, according to the current weighted position value and the reference position value, the adjustment factor of the corresponding video and audio parameter is obtained;
根据所述视音频参数的调节因子,对视音频信息进行调节处理。The video and audio information is adjusted according to the adjustment factor of the video and audio parameter.
在第一种可能的实现方式中,所述获取对应的视音频参数的调节因子之后还包括:将所述当前加权位置值存储为需要比对的所述参考位置值。In a first possible implementation manner, after acquiring the adjustment factor of the corresponding video and audio parameter, the method further includes: storing the current weighted position value as the reference position value to be compared.
结合第一方面,在第二种可能的实现方式中,所述获取对应的视音频参数的调节因子包括:利用所述加权当前位置所对应的视音频参数的调节因子函数,计算得到视音频参数的调节因子。With reference to the first aspect, in a second possible implementation manner, the obtaining the adjustment factor of the corresponding video and audio parameter includes: using the adjustment factor function of the video and audio parameter corresponding to the weighted current position to calculate the video and audio parameter adjustment factor.
结合第一方面,在第三种可能的实现方式中,所述根据所述视音频参数的调节因子,对视音频信息进行调节处理包括:将所述视音频参数的调节因子转换为所述视音频参数的调节量;根据所述视音频参数的调节量,对视音频信息进行调节处理。With reference to the first aspect, in a third possible implementation manner, the adjusting the video and audio information according to the adjustment factor of the video and audio parameter includes: converting the adjustment factor of the video and audio parameter into the video and audio parameter The adjustment amount of the audio parameter; according to the adjustment amount of the video and audio parameter, the video and audio information is adjusted.
结合第一方面,在第四种可能的实现方式中,所述将所述当前加权位置值与参考值进行对比之后还包括:当所述当前加权位置值不大于所述最小位置值时,如果所述参考值表征的所述目标对象处于极近状态,并且所述参考值的记录时间不为空,则计算所述极近状态的持续时间;所述极近状态的持续时间超过预设的时间阈值时,显示休眠或关闭的提示信息。With reference to the first aspect, in a fourth possible implementation manner, after comparing the current weighted position value with a reference value, it further includes: when the current weighted position value is not greater than the minimum position value, if The target object represented by the reference value is in a close state, and the recording time of the reference value is not empty, then calculate the duration of the close state; the duration of the close state exceeds the preset When the time threshold is reached, a prompt message for hibernation or shutdown will be displayed.
结合第一方面的第四种可能的实现方式,在第五种可能的实现方式中,所述将所述当前加权位置值与参考值进行对比之后还包括:当所述当前加权位置值不大于所述最小位置值时,如果所述参考值表征的所述目标对象不处于极近状态,并且所述参考值的记录时刻为空,则将所述当前时刻存储为所述参考值的记录时刻。With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, after comparing the current weighted position value with a reference value, it further includes: when the current weighted position value is not greater than When the minimum position value is used, if the target object represented by the reference value is not in a very close state, and the recording time of the reference value is empty, then store the current time as the recording time of the reference value .
结合第一方面,在第六种可能的实现方式中,所述将所述当前加权位置值与参考值进行对比之后还包括:当所述当前加权位置值不小于所述最大位置值时,如果所述参考值表征的所述目标对象处于极远状态,并且所述参考值的记录时间不为空,则计算所述极远状态的持续时间;所述极远状态的持续时间超过预设的时间阈值时,显示休眠或关闭的提示信息。With reference to the first aspect, in a sixth possible implementation manner, after comparing the current weighted position value with a reference value, the method further includes: when the current weighted position value is not less than the maximum position value, if The target object represented by the reference value is in an extremely distant state, and the recording time of the reference value is not empty, then calculate the duration of the extremely distant state; the duration of the extremely distant state exceeds the preset When the time threshold is reached, a prompt message for hibernation or shutdown will be displayed.
结合第一方面的第六种可能的实现方式,在第七种可能的实现方式中,所述将所述当前加权位置值与参考值进行对比之后还包括:当所述当前加权位置值所述最大位置值时,如果所述参考值表征的所述目标对象不处于极远状态,并且所述参考值的记录时刻为空,则将所述当前时刻存储为所述参考值的记录时刻。With reference to the sixth possible implementation manner of the first aspect, in a seventh possible implementation manner, after comparing the current weighted position value with a reference value, it further includes: when the current weighted position value When the maximum position value is reached, if the target object represented by the reference value is not in an extremely far state, and the recording time of the reference value is empty, the current time is stored as the recording time of the reference value.
结合第一方面的第一种、第二种、第三种、第四种、第五种、第六种、第七种可能的实现方式,在第八种可能的实现方式中,所述视音频参数包括亮度参数、对比度参数、色彩饱和度参数、音量参数中的一种或多种。In combination with the first, second, third, fourth, fifth, sixth, and seventh possible implementations of the first aspect, in the eighth possible implementation, the visual The audio parameters include one or more of brightness parameters, contrast parameters, color saturation parameters, and volume parameters.
第二方面,本发明实施例提供了一种视音频信息的处理装置,所述装置包括:In a second aspect, an embodiment of the present invention provides an apparatus for processing video and audio information, the apparatus comprising:
获取单元,用于对当前时刻的目标对象进行检测,获取所述目标对象在当前时刻的当前位置值;An acquisition unit, configured to detect the target object at the current moment, and acquire the current position value of the target object at the current moment;
处理单元,用于对所述当前位置值进行加权处理,得到所述目标对象的当前加权位置值;a processing unit, configured to perform weight processing on the current position value to obtain the current weighted position value of the target object;
对比单元,用于将所述当前加权位置值与参考值进行对比,所述参考值包括最大位置值、最小位置值和参考位置值;a comparison unit, configured to compare the current weighted position value with a reference value, the reference value including a maximum position value, a minimum position value and a reference position value;
第一计算单元,用于当所述当前加权位置值位于所述最大位置值和所述最小位置值之间时,根据所述当前加权位置值和所述参考位置值,获取对应的视音频参数的调节因子;A first calculation unit, configured to obtain corresponding video and audio parameters according to the current weighted position value and the reference position value when the current weighted position value is between the maximum position value and the minimum position value the adjustment factor;
调节单元,用于根据所述视音频参数的调节因子,对视音频信息进行调节处理。The adjustment unit is configured to perform adjustment processing on the video and audio information according to the adjustment factor of the video and audio parameter.
在第一种可能的实现方式中,所述装置还包括:第一存储单元,用于将所述当前加权位置值存储为需要比对的所述参考位置值。In a first possible implementation manner, the device further includes: a first storage unit, configured to store the current weighted position value as the reference position value that needs to be compared.
结合第二方面,在第二种可能的实现方式中,所述第一计算单元具体用于:利用所述加权当前位置所对应的视音频参数的调节因子函数,计算得到视音频参数的调节因子。With reference to the second aspect, in a second possible implementation manner, the first calculation unit is specifically configured to: calculate the adjustment factor of the video and audio parameter by using the adjustment factor function of the video and audio parameter corresponding to the weighted current position .
结合第二方面,在第三种可能的实现方式中,所述调节单元具体用于:将所述视音频参数的调节因子转换为所述视音频参数的调节量;根据所述视音频参数的调节量,对视音频信息进行调节处理。With reference to the second aspect, in a third possible implementation manner, the adjustment unit is specifically configured to: convert the adjustment factor of the video and audio parameter into an adjustment amount of the video and audio parameter; Adjustment amount, adjust the video and audio information.
结合第二方面,在第四种可能的实现方式中,所述装置还包括:第二计算单元,用于当所述当前加权位置值不大于所述最小位置值时,如果所述参考值表征的所述目标对象处于极近状态,并且所述参考值的记录时间不为空,则计算所述极近状态的持续时间;关闭单元,用于所述极近状态的持续时间超过预设的时间阈值时,显示休眠或关闭的提示信息。With reference to the second aspect, in a fourth possible implementation manner, the device further includes: a second calculation unit, configured to, when the current weighted position value is not greater than the minimum position value, if the reference value represents The target object is in the close state, and the recording time of the reference value is not empty, then calculate the duration of the close state; close the unit, for the duration of the close state exceeds the preset When the time threshold is reached, a prompt message for hibernation or shutdown will be displayed.
结合第二方面的第四种可能的实现方式,在第五种可能的实现方式中,所述装置还包括:第二存储单元,用于当所述当前加权位置值不大于所述最小位置值时,如果所述参考值表征的所述目标对象不处于极近状态,并且所述参考值的记录时刻为空,则将所述当前时刻存储为所述参考值的记录时刻。With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner, the device further includes: a second storage unit configured to, when the current weighted position value is not greater than the minimum position value , if the target object represented by the reference value is not in a very close state, and the recording time of the reference value is empty, the current time is stored as the recording time of the reference value.
结合第二方面的第五种可能的实现方式,在第六种可能的实现方式中,所述第二计算单元还用于,当所述当前加权位置值不小于所述最大位置值时,如果所述参考值表征的所述目标对象处于极远状态,并且所述参考值的记录时间不为空,则计算所述极远状态的持续时间;所述关闭单元还用于,所述极远状态的持续时间超过预设的时间阈值时,显示休眠或关闭的提示信息。With reference to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, the second calculation unit is further configured to, when the current weighted position value is not less than the maximum position value, if The target object represented by the reference value is in an extremely distant state, and the recording time of the reference value is not empty, then calculate the duration of the extremely distant state; the closing unit is also used for, the extremely distant When the duration of the state exceeds the preset time threshold, a prompt message for hibernation or shutdown is displayed.
结合第二方面的第六种可能的实现方式,在第七种可能的实现方式中,所述第二存储单元还用于,当所述当前加权位置值所述最大位置值时,如果所述参考值表征的所述目标对象不处于极远状态,并且所述参考值的记录时刻为空,则将所述当前时刻存储为所述参考值的记录时刻。With reference to the sixth possible implementation manner of the second aspect, in a seventh possible implementation manner, the second storage unit is further configured to, when the current weighted position value is the maximum position value, if the If the target object represented by the reference value is not in an extremely distant state, and the recording time of the reference value is empty, then the current time is stored as the recording time of the reference value.
结合第二方面的第一种、第二种、第三种、第四种、第五种、第六种、第七种可能的实现方式,在第八种可能的实现方式中,所述视音频参数包括亮度参数、对比度参数、色彩饱和度参数、音量参数中的一种或多种。In combination with the first, second, third, fourth, fifth, sixth, and seventh possible implementations of the second aspect, in the eighth possible implementation, the visual The audio parameters include one or more of brightness parameters, contrast parameters, color saturation parameters, and volume parameters.
第三方面,本发明实施例提供了一种电视机,所述电视机包括上述视音频信息的处理装置。In a third aspect, an embodiment of the present invention provides a TV, the TV includes the above-mentioned apparatus for processing video and audio information.
本发明实施例提供的视音频信息的处理方法、装置和电视机,通过对当前时刻的目标对象进行检测,获取所述目标对象在当前时刻的当前位置值;对所述当前位置值进行加权处理,得到所述目标对象的当前加权位置值;将所述当前加权位置值与参考值进行对比,所述参考值包括最大位置值、最小位置值和参考位置值;当所述当前加权位置值位于所述最大位置值和所述最小位置值之间时,根据所述当前加权位置值和所述参考位置值,获取对应的视音频参数的调节因子;根据所述视音频参数的调节因子,对视音频信息进行调节处理。由此实现了对电视机的视音频进行自动调整,减小了电视机的视音频信息的处理复杂度。The video and audio information processing method, device and television provided by the embodiments of the present invention obtain the current position value of the target object at the current time by detecting the target object at the current moment; perform weighting processing on the current position value , to obtain the current weighted position value of the target object; compare the current weighted position value with a reference value, the reference value includes a maximum position value, a minimum position value and a reference position value; when the current weighted position value is at When the maximum position value is between the minimum position value, according to the current weighted position value and the reference position value, the adjustment factor of the corresponding video and audio parameter is obtained; according to the adjustment factor of the video and audio parameter, the The video and audio information is adjusted and processed. Thus, the automatic adjustment of the video and audio information of the TV is realized, and the processing complexity of the video and audio information of the TV is reduced.
附图说明Description of drawings
图1为本发明实施例提供的一种视音频信息的处理方法流程图;FIG. 1 is a flowchart of a method for processing video and audio information provided by an embodiment of the present invention;
图2为本发明实施例提供的又一视音频信息的处理方法流程图;FIG. 2 is a flow chart of another video and audio information processing method provided by an embodiment of the present invention;
图3为本发明实施例提供的一种视音频信息的处理装置示意图;FIG. 3 is a schematic diagram of a video and audio information processing device provided by an embodiment of the present invention;
图4为本发明实施例提供的一种电视机示意图。Fig. 4 is a schematic diagram of a TV provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例提供的视音频信息的处理方法、装置和电视机在实际应用时,作为一种新的视音频信息的处理方法可应用于电视机视音频信息的处理场景。用户调节电视机的视音频信息的方法有多种,例如,通过按电视机上的按键进行声音或图像效果的调节,或通过遥控器来遥控调节电视机的声音或图像的效果等。本发明实施例提供了一种新的视音频信息的处理方法,即电视机通过检测目标空间内人的位置变化来自动调节电视机的视音频信息。The video and audio information processing method, device and TV set provided by the embodiments of the present invention can be used as a new video and audio information processing method in the scene of TV video and audio information processing in actual application. There are many ways for the user to adjust the video and audio information of the TV set, for example, by pressing a button on the TV set to adjust the sound or image effect, or by using a remote controller to remotely adjust the sound or image effect of the TV set. The embodiment of the present invention provides a new method for processing video and audio information, that is, the TV automatically adjusts the video and audio information of the TV by detecting the position change of a person in the target space.
本发明实施例针对现有技术的缺陷,提供了一种视音频信息的处理方法、装置和电视机。电视机对当前时刻的目标对象进行检测,获取所述目标对象在当前时刻的当前位置值;对所述当前位置值进行加权处理,得到所述目标对象的当前加权位置值;将所述当前加权位置值与参考值进行对比,所述参考值包括最大位置值、最小位置值和参考位置值;当所述当前加权位置值位于所述最大位置值和所述最小位置值之间时,根据所述当前加权位置值和所述参考位置值,获取对应的视音频参数的调节因子;根据所述视音频参数的调节因子,对视音频信息进行调节处理。由此实现了对电视机的视音频进行自动调整,减小了电视机的视音频信息的处理复杂度。The embodiments of the present invention aim at the defects of the prior art, and provide a video and audio information processing method, device and television. The television detects the target object at the current moment, and obtains the current position value of the target object at the current moment; performs weighting processing on the current position value to obtain the current weighted position value of the target object; The position value is compared with a reference value, and the reference value includes a maximum position value, a minimum position value and a reference position value; when the current weighted position value is between the maximum position value and the minimum position value, according to the The current weighted position value and the reference position value are used to obtain the adjustment factor of the corresponding video and audio parameter; according to the adjustment factor of the video and audio parameter, the video and audio information is adjusted. Thus, the automatic adjustment of the video and audio information of the TV is realized, and the processing complexity of the video and audio information of the TV is reduced.
图1为本发明实施例提供的一种视音频信息的处理方法流程图。本实施例的执行主体是电视机,其中描述了电视机通过当前时刻的目标对象的位置值与与参考值的对比结果来自动调节电视机的视音频信息的方法流程。如图1所示,本实施例包括以下步骤:FIG. 1 is a flow chart of a method for processing video and audio information provided by an embodiment of the present invention. The implementation subject of this embodiment is a TV, which describes the method flow for the TV to automatically adjust the video and audio information of the TV by comparing the position value of the target object at the current moment with the reference value. As shown in Figure 1, this embodiment includes the following steps:
步骤101,电视机对当前时刻的目标对象进行检测,获取所述目标对象在当前时刻的当前位置值。Step 101 , the TV detects the target object at the current moment, and acquires the current position value of the target object at the current moment.
电视机中内置了人体检测传感器和距离测量传感器,人体检测传感器通过检测人体发出的红外线,可以检测到当前时刻内存在人,即目标对象的区域,而距离测量传感器则可以测量该目标对象距离电视机的位置值。The human body detection sensor and the distance measurement sensor are built into the TV. The human body detection sensor can detect the presence of a person at the current moment by detecting the infrared rays emitted by the human body, that is, the area of the target object, and the distance measurement sensor can measure the distance between the target object and the TV Machine position value.
当然,在一个指定的空间内,可能存在一个或多个目标对象,人体检测传感器可以通过检测人体发出的红外线而检测到指定的空间内的所有目标对象,其中,指定的空间可以是以电视机为圆心的一个扇形区域的空间。Of course, in a designated space, there may be one or more target objects, and the human body detection sensor can detect all target objects in the designated space by detecting the infrared rays emitted by the human body. The space of a fan-shaped area with the center as the circle.
步骤102,电视机对所述当前位置值进行加权处理,得到所述目标对象的当前加权位置值。
电视机获取到所有目标对象在当前时刻的位置值后,可以使用加权公式对所有目标对象在当前时刻的位置值进行加权处理,从而得到所述目标对象的当前加权位置值d。After the television obtains the position values of all target objects at the current moment, the weighting formula may be used to perform weighting processing on the position values of all target objects at the current moment, so as to obtain the current weighted position value d of the target object.
步骤103,电视机将所述当前加权位置值与参考值进行对比,所述参考值包括最大位置值、最小位置值和参考位置值。
在本发明实施例中,所述参考位置值可以为预先设置的参照值,或者历史某次视音频调整中得到的加权位置值,比如可以使用上一次视音频调解中获得的加权位置值作为本次视音频调节中使用的参考位置值。将当前加权位置值与参考位置值进行对比,可根据当前时刻的加权位置值与参考位置值的大小关系来对视音频进行调整。In the embodiment of the present invention, the reference position value can be a preset reference value, or a weighted position value obtained in a certain historical video and audio adjustment, for example, the weighted position value obtained in the last video and audio mediation can be used as this The reference position value used in secondary AV adjustments. By comparing the current weighted position value with the reference position value, the video and audio can be adjusted according to the magnitude relationship between the weighted position value at the current moment and the reference position value.
在本发明实施例中,参考值包括:最大位置值d_max、最小位置值d_min和参考位置值d_last。其中,最大位置值为预设的一个最大位置参考值,最小位置值为预设的一个最小位置参考值,而参考位置值为上一次检测到的目标对象的位置值。In the embodiment of the present invention, the reference values include: a maximum position value d_max, a minimum position value d_min, and a reference position value d_last. Wherein, the maximum position value is a preset maximum position reference value, the minimum position value is a preset minimum position reference value, and the reference position value is the position value of the last detected target object.
除此之外,参考值还可以包括:d_near(参考值所表征的目标对象是否处于极近状态,该值可取值0或1,分别表示目标对象处于极近状态和不处于极近状态),d_far(参考值所表征的目标对象是否处于极远状态,该值可取值0或1,分别表示目标对象处于极远状态和不处于极远状态),d_lastTime(参考值的设定时刻),duration(当前状态的持续时间)、最大位置值d_max和最小位置值d_min,以及(是否处于休眠提示状态),prompt_info_index(休眠提示信息索引,用于根据i s_sleep_prompt的值来索引要显示在电视机屏幕上的内容,如果is_sleep_prompt的值为1,则表示要将电视机设置为休眠状态,此时可以根据该prompt_info_index参数索引要显示的提示信息)。In addition, the reference value can also include: d_near (whether the target object represented by the reference value is in a very close state, this value can take a value of 0 or 1, respectively indicating that the target object is in a very close state or not in a very close state) , d_far (whether the target object represented by the reference value is in the extremely far state, this value can take a value of 0 or 1, respectively indicating that the target object is in the extremely far state and not in the extremely far state), d_lastTime (the setting time of the reference value) , duration (the duration of the current state), the maximum position value d_max and the minimum position value d_min, and (whether in the sleep prompt state), prompt_info_index (sleep prompt information index, used to index according to the value of is_sleep_prompt to be displayed on the TV For the content on the screen, if the value of is_sleep_prompt is 1, it means that the TV is set to sleep, and the prompt information to be displayed can be indexed according to the prompt_info_index parameter).
其中,如果目标对象处于极近状态,则设置d_near为True,否则设为false;如果目标对象处于极远状态,则设置d_far为True,否则设为false;如果上一次测量时目标对象处于极近状态或极远状态,则设置d_lastTime为上一次测量目标对象的时刻,否则将d_lastTime设置为空;duration的值为上一次记录的持续时间加上当前时刻与上一次测量目标对象的时刻的差值,即duration+=(当前时刻-d_lastTime)。Among them, if the target object is in a very close state, set d_near to True, otherwise set to false; if the target object is in a very far state, set d_far to True, otherwise set to false; if the target object was very close in the last measurement state or extreme state, set d_lastTime to the last time the target object was measured, otherwise set d_lastTime to null; the value of duration is the duration of the last record plus the difference between the current time and the last time the target object was measured , namely duration+=(current time-d_lastTime).
步骤104,当所述当前加权位置值位于所述最大位置值和所述最小位置值之间时,电视机根据所述当前加权位置值和所述参考位置值,获取对应的视音频参数的调节因子。
经过步骤103的对比操作,得到的对比结果可能为下面4种中的一种:d_min<d<d_last<d_max,d_min<d_last<d<d_max,d<=d_min,d>=d_max。After the comparison operation in
获取当前加权位置值对应的视音频参数的调节因子包括:利用所述加权当前位置所对应的视音频参数的调节因子函数,计算得到视音频参数的调节因子。Acquiring the adjustment factor of the video and audio parameter corresponding to the current weighted position value includes: calculating the adjustment factor of the video and audio parameter by using the adjustment factor function of the video and audio parameter corresponding to the weighted current position.
当d_min<d<d_last<d_max或d_min<d_last<d<d_max时,可以利用预先构建的视音频参数的调节因子函数,计算各个视音频参数的调节因子,形成视音频参数调节矩阵。其中,调节因子函数可以为当前加权位置值和参考位置值的差值的函数。When d_min<d<d_last<d_max or d_min<d_last<d<d_max, the adjustment factor of each video and audio parameter can be calculated by using the pre-built adjustment factor function of the video and audio parameter to form a video and audio parameter adjustment matrix. Wherein, the adjustment factor function may be a function of the difference between the current weighted position value and the reference position value.
具体地,当d_min<d<d_last<d_max时,可以先计算出当前加权位置值和参考位置值的差值Δd=d-d_last。根据亮度参数的调节因子函数luma_step=fun_luma(Δd),可以得到亮度参数的调节因子luma_step;根据对比度参数的调节因子函数contrast_step=fun_contrast(Δd),可以得到对比度参数的调节因子contrast_step;根据色彩饱和度参数的调节因子函数saturation_step=fun_saturation(Δd),可以得到色彩饱和度的调节因子saturation_step;根据音量参数的调节因子函数volume_step=fun_volume(Δd),可以得到音量的调节因子volume_step。另外,将is_sleep_prompt置为false,prompt_info_index置为空。Specifically, when d_min<d<d_last<d_max, the difference Δd=d−d_last between the current weighted position value and the reference position value may be calculated first. According to the adjustment factor function luma_step=fun_luma(Δd) of the brightness parameter, the adjustment factor luma_step of the brightness parameter can be obtained; according to the adjustment factor function contrast_step=fun_contrast(Δd) of the contrast parameter, the adjustment factor contrast_step of the contrast parameter can be obtained; according to the color saturation The adjustment factor function saturation_step=fun_saturation(Δd) of the parameter can obtain the adjustment factor saturation_step of the color saturation; according to the adjustment factor function volume_step=fun_volume(Δd) of the volume parameter, the adjustment factor volume_step of the volume can be obtained. In addition, set is_sleep_prompt to false and prompt_info_index to empty.
具体地,当d_min<d_last<d<d_max时,可以先计算出当前加权位置值和参考位置值的差值Δd=d-d_last。根据亮度参数的调节因子函数luma_step=fun_luma(Δd),可以得到亮度参数的调节因子luma_step;根据对比度参数的调节因子函数contrast_step=fun_contrast(Δd),可以得到对比度参数的调节因子contrast_step;根据色彩饱和度参数的调节因子函数saturation_step=fun_saturation(Δd),可以得到色彩饱和度的调节因子;根据音量参数的调节因子函数volume_step=fun_volume(Δd),可以得到音量的调节因子volume_step。另外,将is_sleep_prompt置为false,prompt_info_index置为空。Specifically, when d_min<d_last<d<d_max, the difference Δd=d−d_last between the current weighted position value and the reference position value may be calculated first. According to the adjustment factor function luma_step=fun_luma(Δd) of the brightness parameter, the adjustment factor luma_step of the brightness parameter can be obtained; according to the adjustment factor function contrast_step=fun_contrast(Δd) of the contrast parameter, the adjustment factor contrast_step of the contrast parameter can be obtained; according to the color saturation The adjustment factor function saturation_step=fun_saturation(Δd) of the parameter can obtain the adjustment factor of the color saturation; according to the adjustment factor function volume_step=fun_volume(Δd) of the volume parameter, the adjustment factor volume_step of the volume can be obtained. In addition, set is_sleep_prompt to false and prompt_info_index to empty.
当d<=d_min时,可以通过判断上一次记录的参考值是否处于极近状态,即d_last是否不大于最小位置值d_min,如果上一次记录的参考值表征的所述目标对象处于极近状态,则更新持续时间duration,并且判断更新后的duration是否大于预设的时间阈值,如果大于,则显示休眠或关闭的提示信息。如果当前时刻的d<=d_min,但是上一次记录的参考值不处于极近状态,则将当前时刻保存为d_lastTime。When d<=d_min, it can be judged whether the last recorded reference value is in a very close state, that is, whether d_last is not greater than the minimum position value d_min, if the target object represented by the last recorded reference value is in a very close state, Then update the duration duration, and judge whether the updated duration is greater than a preset time threshold, and if it is greater, display a sleep or shutdown prompt message. If d<=d_min at the current moment, but the reference value recorded last time is not in a very close state, save the current moment as d_lastTime.
当d>=d_max时,可以判断上一次记录的参考值所表征的目标对象是否处于极远状态,即d_last是否不小于最大位置值d_max,如果上一次记录的参考值表征的所述目标对象处于极远状态,则更新持续时间duration,并且判断更新后的duration是否大于预设的时间阈值,如果大于,则显示休眠或关闭的提示信息。如果当前时刻的d>=d_max,但是上一次记录的参考值表征的目标对象不处于极远状态,则将当前时刻保存为d_lastTime。When d>=d_max, it can be judged whether the target object represented by the reference value recorded last time is in an extreme state, that is, whether d_last is not less than the maximum position value d_max, if the target object represented by the reference value recorded last time is in In the extremely far state, update the duration duration, and judge whether the updated duration is greater than the preset time threshold, and if it is greater, display a sleep or shutdown prompt message. If d>=d_max at the current moment, but the target object represented by the reference value recorded last time is not in the extremely far state, save the current moment as d_lastTime.
其中,视音频参数调节矩阵中包括视音频参数的调节因子和休眠或关闭的提示信息,完整的调节矩阵如下:T={luma_step,contrast_step,volume_step,is_sleep_prompt,prompt_info_index};当然,随着技术的进步,音频、视频的参数有可能会升级,但总的处理过程是一样的。Among them, the video and audio parameter adjustment matrix includes the adjustment factors of video and audio parameters and the prompt information of sleep or shutdown. The complete adjustment matrix is as follows: T={luma_step, contrast_step, volume_step, is_sleep_prompt, prompt_info_index}; Of course, with the advancement of technology , the parameters of audio and video may be upgraded, but the overall process is the same.
本特征的技术特点在于通过当前加权位置值和参考位置值的区别,来获得对于亮度、色度和音量的调节幅度。所述当前位置值和参考位置值的区别实际上就是表征了观众或者说目标对象的位置相对于前次识别的“变化量”或者可以表征该变化量的值,进而可以根据此变化量或者表征该变化量的值对亮度、色度、音量来进行调节。在本发明实施例中,是通过对加权位置值和参考位置值简单做差的方法来获得该变化量或者说获得可以表征该变化量的值,但是,在实际应用中,完全可以采用其他的一维或者二维计算函数,以所述当前加权位置值和参考位置值为参数获得与二者对应的调节因子。此外,在可选择的实施例中,The technical feature of this feature is to obtain the adjustment range for brightness, chroma and volume through the difference between the current weighted position value and the reference position value. The difference between the current position value and the reference position value is actually a representation of the "change" of the position of the audience or the target object relative to the previous recognition or a value that can represent the change, and then can be based on this change or representation. The value of the variation is adjusted for brightness, chroma, and volume. In the embodiment of the present invention, the amount of change is obtained by simply making a difference between the weighted position value and the reference position value, or a value that can characterize the amount of change is obtained. However, in practical applications, other methods can be used. A one-dimensional or two-dimensional calculation function, using the current weighted position value and the reference position value as parameters to obtain adjustment factors corresponding to the two. Furthermore, in an alternative embodiment,
在本发明实施例中,是通过做差的方法来获得当前位置值和参考位置值之间的逻辑关系,在实际应用中,也可以根据其他的算法公式来然后根据预设的调节因子函数来计算亮度、色度和音量的调节幅度。In the embodiment of the present invention, the logical relationship between the current position value and the reference position value is obtained by making a difference. In practical applications, it can also be calculated according to other algorithmic formulas and then according to the preset adjustment factor function. Computes adjustments for brightness, chroma, and volume.
步骤105,电视机根据所述视音频参数的调节因子,对视音频信息进行调节处理。In
根据所述视音频参数的调节因子,对视音频信息进行调节处理包括:将所述视音频参数的调节因子转换为所述视音频参数的调节量;根据所述视音频参数的调节量,对视音频信息进行调节处理。According to the adjustment factor of the video and audio parameter, adjusting the video and audio information includes: converting the adjustment factor of the video and audio parameter into the adjustment amount of the video and audio parameter; according to the adjustment amount of the video and audio parameter, The video and audio information is adjusted and processed.
通过步骤104得到视音频参数的调节因子后,电视控制器对调节因子进行转换,转换为电视机可以使用的视音频参数的调节量,并且根据视音频参数的调节量,对电视的视音频信息做智能的调节处理,如加大音量、增加亮度、进入休眠提示等。After the adjustment factor of the video and audio parameter is obtained by
需要说明的是,如果is_sleep_prompt为true,则电视机需要进行休眠提示,并进行倒计时;prompt_info_index是需要显示的休眠提示的信息索引,例如:在距离过近时,有害身体健康,建议休眠或关闭,而在距离过远时,无法正常观看,建议休眠或关闭。当然,本发明实施例可以定制化为更多的信息索引选项,对信息索引选项并不做限制。如果is_sleep_prompt如果为false,且当前已经处于休眠提示状态,则取消休眠提示,关闭提示信息。It should be noted that if is_sleep_prompt is true, the TV needs a sleep prompt and a countdown; prompt_info_index is the information index of the sleep prompt that needs to be displayed, for example: when the distance is too close, it is harmful to health, it is recommended to sleep or turn off, When the distance is too far, it cannot be viewed normally, and it is recommended to sleep or close it. Certainly, the embodiment of the present invention can be customized into more information indexing options, and there is no limitation on the information indexing options. If is_sleep_prompt is false and is currently in the sleep prompt state, cancel the sleep prompt and close the prompt information.
需要说明的是,本实施例中的视音频参数可以为亮度参数、图像对比度参数、色彩饱和度参数、音量参数中的一种或多种,也可以为其他的可以调节图像显示效果和声音效果的参数,本实施例中只是以亮度参数、对比度参数、色彩饱和度参数、音量参数进行举例说明,不用于限制本发明的保护范围。It should be noted that the video and audio parameters in this embodiment can be one or more of brightness parameters, image contrast parameters, color saturation parameters, and volume parameters, or other parameters that can adjust image display effects and sound effects. Parameters, in this embodiment, brightness parameters, contrast parameters, color saturation parameters, and volume parameters are used as examples for illustration, and are not used to limit the scope of protection of the present invention.
由此,本实施例根据目标对象的位置的变化量,计算电视机的视音频参数的调节因子,并根据该视音频参数的调节因子进行视音频信息的自动调整,减小了电视机的视音频信息的处理复杂度。Thus, this embodiment calculates the adjustment factor of the video and audio parameters of the TV according to the variation of the position of the target object, and automatically adjusts the video and audio information according to the adjustment factor of the video and audio parameters, thereby reducing the video and audio parameters of the TV. The processing complexity of audio information.
上述实施例简单描述了电视机通过当前时刻目标对象的位置值与与参考值的对比结果来自动调节电视机的视音频的方法流程,下述实施例详细描述电视机自动调节电视机的视音频的方法流程。The above-mentioned embodiments simply describe the method flow of the TV automatically adjusting the video and audio of the TV by comparing the position value of the target object at the current moment with the reference value. The following embodiments describe in detail the automatic adjustment of the video and audio of the TV. method flow.
图2为本发明实施例提供的又一视音频信息的处理方法流程图。本实施例的执行主体是电视机,其中详细描述了电视机通过当前时刻目标对象的位置值与与参考值的对比结果来自动调节电视机的视音频的方法流程。如图2所示,本实施例包括以下步骤:FIG. 2 is a flow chart of another video and audio information processing method provided by an embodiment of the present invention. The implementation subject of this embodiment is a TV set, which describes in detail the flow of the method for the TV set to automatically adjust the video and audio of the TV set by comparing the position value of the target object at the current moment with the reference value. As shown in Figure 2, this embodiment includes the following steps:
步骤201,电视机对当前时刻的目标对象进行检测,获取所述目标对象在当前时刻的当前位置值。In step 201, the television detects the target object at the current moment, and acquires the current position value of the target object at the current moment.
电视机中内置了人体检测传感器和距离测量传感器,人体检测传感器通过检测人体发出的10μm的红外线,可以检测到当前时刻内存在人,即目标对象的区域,而距离测量传感器则可以测量该目标对象相对电视机的位置值。这里的人体检测传感器可以为焦电型MP运动传感器NaPiOn,焦电型MP运动传感器NaPiOn是目前最小的一种红外线人体检测传感器,可以通过检测人体发出的10μm的红外线来检测人体。当然了,本实施例中也可以使用其他能够检测到人体的传感器,本发明对此不做限定。距离测量传感器可以为BannerQT50U超长距离超声波位移传感器,Banner QT50U超长距离超声波位移传感器可以非常精确地测量出人体距离电视的距离,即目标对象的位置值。The human body detection sensor and the distance measurement sensor are built into the TV. The human body detection sensor can detect the presence of a person at the current moment by detecting the 10μm infrared rays emitted by the human body, that is, the area of the target object, and the distance measurement sensor can measure the target object. Position value relative to the TV. The human body detection sensor here can be the pyroelectric MP motion sensor NaPiOn. The pyroelectric MP motion sensor NaPiOn is currently the smallest infrared human body detection sensor, which can detect the human body by detecting the 10μm infrared rays emitted by the human body. Certainly, other sensors capable of detecting the human body may also be used in this embodiment, which is not limited in the present invention. The distance measurement sensor can be a Banner QT50U ultra-long-distance ultrasonic displacement sensor. The Banner QT50U ultra-long-distance ultrasonic displacement sensor can very accurately measure the distance between the human body and the TV, that is, the position value of the target object.
当然,在一个指定的空间内,可能存在一个或多个目标对象,人体检测传感器可以通过检测人体发出的红外线而检测到指定的空间内的所有目标对象,其中,指定的空间可以是以电视机为圆心的一个扇形区域的空间。Of course, in a designated space, there may be one or more target objects, and the human body detection sensor can detect all target objects in the designated space by detecting the infrared rays emitted by the human body. The space of a fan-shaped area with the center as the circle.
人体感应传感器的获取目标对象,以及目标对象的位置值的具体方法为:在要检测的扇形区域的空间中设置N个采集区域,依次检测第i(i=1,2,......,N)个采集区域内是否存在目标对象si.has_human,如果是,则测量该目标对象的距离si.distance,得到对应第i(i=1,2,......,N)个采集区域的信号量si(has_human,distance),形成信号量序列S={s1,s2,...sN}。The specific method of obtaining the target object and the position value of the target object by the human body induction sensor is as follows: set N collection areas in the space of the fan-shaped area to be detected, and detect the i-th (i=1, 2, ..... ., N) Whether there is a target object si.has_human in the collection areas, if yes, measure the distance si.distance of the target object, and obtain the corresponding i (i=1, 2, ..., N) The semaphore si(has_human, distance) of each acquisition area forms a semaphore sequence S={s1, s2,...sN}.
步骤202,电视机对所述当前位置值进行加权处理,得到所述目标对象的当前加权位置值。
对所得到的信号量序列S={s1,s2,...sN}使用加权公式进行加权处理,得到当前加权位置值。The obtained semaphore sequence S={s1, s2, . . . sN} is weighted using a weighting formula to obtain the current weighted position value.
步骤203,电视机将所述当前加权位置值与参考值进行对比,所述参考值包括最大位置值、最小位置值和参考位置值。In
在本发明实施例中,所述参考位置值可以为预先设置的参照值,或者历史某次视音频调整中得到的加权位置值,比如可以使用上一次视音频调解中获得的加权位置值作为本次视音频调节中使用的参考位置值。将当前加权位置值与参考位置值进行对比,可以得到当前加权位置值与参考位置值的大小关系。In the embodiment of the present invention, the reference position value can be a preset reference value, or a weighted position value obtained in a certain historical video and audio adjustment, for example, the weighted position value obtained in the last video and audio mediation can be used as this The reference position value used in secondary AV adjustments. By comparing the current weighted position value with the reference position value, the magnitude relationship between the current weighted position value and the reference position value can be obtained.
在本发明实施例中,参考值包括:最大位置值d_max、最小位置值d_min和参考位置值d_last。其中,最大位置值为预设的一个最大位置参考值,最小位置值为预设的一个最小位置参考值,而参考位置值为上一次检测到的目标对象的位置值。除此之外,参考值还可以包括:d_near(参考值所表征的目标对象是否处于极近状态,该值可取值0或1,分别表示目标对象处于极近状态和不处于极近状态),d_far(参考值所表征的目标对象是否处于极远状态,该值可取值0或1,分别表示目标对象处于极远状态和不处于极远状态),d_lastTime(参考值的设定时刻),duration(当前状态的持续时间)、最大位置值d_max和最小位置值d_min,以及(是否处于休眠提示状态),prompt_info_index(休眠提示信息索引,用于根据is_sleep_prompt的值来索引要显示在电视机屏幕上的内容,如果is_sleep_prompt的值为1,则表示要将电视机设置为休眠状态,此时可以根据该prompt_info_index参数索引要显示的提示信息)。其中,如果目标对象处于极近状态,则设置d_near为True,否则设为false;如果目标对象处于极远状态,则设置d_far为True,否则设为false;如果上一次测量时目标对象处于极近状态或极远状态,则设置d_lastTime为上一次测量目标对象的时刻,否则设置为空;duration的值为上一次记录的持续时间加上当前时刻与上一次测量目标对象的时刻的差值,即duration+=(当前时刻-d_lastTime)。In the embodiment of the present invention, the reference values include: a maximum position value d_max, a minimum position value d_min, and a reference position value d_last. Wherein, the maximum position value is a preset maximum position reference value, the minimum position value is a preset minimum position reference value, and the reference position value is the position value of the last detected target object. In addition, the reference value can also include: d_near (whether the target object represented by the reference value is in a very close state, this value can take a value of 0 or 1, respectively indicating that the target object is in a very close state or not in a very close state) , d_far (whether the target object represented by the reference value is in the extremely far state, this value can take a value of 0 or 1, respectively indicating that the target object is in the extremely far state and not in the extremely far state), d_lastTime (the setting time of the reference value) , duration (the duration of the current state), the maximum position value d_max and the minimum position value d_min, and (whether in the sleep prompt state), prompt_info_index (sleep prompt information index, used to index according to the value of is_sleep_prompt to be displayed on the TV screen If the value of is_sleep_prompt is 1, it means that the TV is set to sleep, and the prompt information to be displayed can be indexed according to the prompt_info_index parameter). Among them, if the target object is in a very close state, set d_near to True, otherwise set to false; if the target object is in a very far state, set d_far to True, otherwise set to false; if the target object was very close in the last measurement state or extreme state, set d_lastTime to be the last time the target object was measured, otherwise set it to null; the value of duration is the duration of the last record plus the difference between the current time and the last time the target object was measured, that is duration+=(current time-d_lastTime).
由于目标对象距离电视太远或太近时,可能不适合观看电视节目,考虑到这一情况,参考值还可以包括一个最大位置值d_max和一个最小位置值d_min,在将所述当前加权位置值与参考值进行对比时,还要将当前加权位置值与该最大位置值d_max和最小位置值d_min进行对比。When the target object is too far or too close to the TV, it may not be suitable for watching TV programs. Considering this situation, the reference value can also include a maximum position value d_max and a minimum position value d_min, and the current weighted position value When comparing with the reference value, the current weighted position value is also compared with the maximum position value d_max and the minimum position value d_min.
步骤204,当所述当前加权位置值位于所述最大位置值和所述最小位置值之间时,根据所述当前加权位置值和参考位置值,获取视音频参数的调节因子。Step 204, when the current weighted position value is between the maximum position value and the minimum position value, according to the current weighted position value and a reference position value, an adjustment factor of the video and audio parameter is acquired.
获取所述当前加权位置值视音频参数的调节因子包括:利用所述加权当前位置所对应的视音频参数的调节因子函数,计算得到视音频参数的调节因子。Acquiring the adjustment factor of the video and audio parameter of the current weighted position value includes: calculating the adjustment factor of the video and audio parameter by using the adjustment factor function of the video and audio parameter corresponding to the weighted current position.
具体地,当d_min<d<d_last<d_max时,可以先计算出当前加权位置值和参考位置值的差值Δd=d-d_last。根据亮度参数的调节因子函数luma_step=fun_luma(Δd),可以得到亮度参数的调节因子luma_step;根据对比度参数的调节因子函数contrast_step=fun_contrast(Δd),可以得到对比度参数的调节因子contrast_step;根据色彩饱和度参数的调节因子函数saturation_step=fun_saturation(Δd),可以得到色彩饱和度的调节因子saturation_step;根据音量参数的调节因子函数volume_step=fun_volume(Δd),可以得到音量的调节因子volume_step。Specifically, when d_min<d<d_last<d_max, the difference Δd=d−d_last between the current weighted position value and the reference position value may be calculated first. According to the adjustment factor function luma_step=fun_luma(Δd) of the brightness parameter, the adjustment factor luma_step of the brightness parameter can be obtained; according to the adjustment factor function contrast_step=fun_contrast(Δd) of the contrast parameter, the adjustment factor contrast_step of the contrast parameter can be obtained; according to the color saturation The adjustment factor function saturation_step=fun_saturation(Δd) of the parameter can obtain the adjustment factor saturation_step of the color saturation; according to the adjustment factor function volume_step=fun_volume(Δd) of the volume parameter, the adjustment factor volume_step of the volume can be obtained.
具体地,当d_min<d_last<d<d_max时,可以先计算出当前加权位置值和参考位置值的差值Δd=d-d_last。根据亮度参数的调节因子函数luma_step=fun_luma(Δd),可以得到亮度参数的调节因子luma_step;根据对比度参数的调节因子函数contrast_step=fun_contrast(Δd),可以得到对比度参数的调节因子contrast_step;根据色彩饱和度参数的调节因子函数saturation_step=fun_saturation(Δd),可以得到色彩饱和度的调节因子;根据音量参数的调节因子函数volume_step=fun_volume(Δd),可以得到音量的调节因子volume_step。Specifically, when d_min<d_last<d<d_max, the difference Δd=d−d_last between the current weighted position value and the reference position value may be calculated first. According to the adjustment factor function luma_step=fun_luma(Δd) of the brightness parameter, the adjustment factor luma_step of the brightness parameter can be obtained; according to the adjustment factor function contrast_step=fun_contrast(Δd) of the contrast parameter, the adjustment factor contrast_step of the contrast parameter can be obtained; according to the color saturation The adjustment factor function saturation_step=fun_saturation(Δd) of the parameter can obtain the adjustment factor of the color saturation; according to the adjustment factor function volume_step=fun_volume(Δd) of the volume parameter, the adjustment factor volume_step of the volume can be obtained.
本特征的技术特点在于通过当前加权位置值和参考位置值的区别,来获得对于亮度、色度和音量的调节幅度。所述当前位置值和参考位置值的区别实际上就是表征了观众或者说目标对象的位置相对于前次识别的“变化量”或者可以表征该变化量的值,进而可以根据此变化量或者表征该变化量的值对亮度、色度、音量来进行调节。在本发明实施例中,是通过对加权位置值和参考位置值简单做差的方法来获得该变化量或者说获得可以表征该变化量的值,但是,在实际应用中,完全可以采用其他的一维或者二维计算函数,以所述当前加权位置值和参考位置值为参数获得与二者对应的调节因子。此外,在可选择的实施例中,The technical feature of this feature is to obtain the adjustment range for brightness, chroma and volume through the difference between the current weighted position value and the reference position value. The difference between the current position value and the reference position value is actually a representation of the "change" of the position of the audience or the target object relative to the previous recognition or a value that can represent the change, and then can be based on this change or representation. The value of the variation is adjusted for brightness, chroma, and volume. In the embodiment of the present invention, the amount of change is obtained by simply making a difference between the weighted position value and the reference position value, or a value that can characterize the amount of change is obtained. However, in practical applications, other methods can be used. A one-dimensional or two-dimensional calculation function, using the current weighted position value and the reference position value as parameters to obtain adjustment factors corresponding to the two. Furthermore, in an alternative embodiment,
在本发明实施例中,是通过做差的方法来获得当前位置值和参考位置值之间的逻辑关系,在实际应用中,也可以根据其他的算法公式来然后根据预设的调节因子函数来计算亮度、色度和音量的调节幅度。In the embodiment of the present invention, the logical relationship between the current position value and the reference position value is obtained by making a difference. In practical applications, it can also be calculated according to other algorithmic formulas and then according to the preset adjustment factor function. Computes adjustments for brightness, chroma, and volume.
步骤205,根据所述视音频参数的调节因子,对视音频信息进行调节处理。Step 205, perform adjustment processing on the video and audio information according to the adjustment factor of the video and audio parameter.
根据所述视音频参数的调节因子,对视音频信息进行调节处理包括:将所述视音频参数的调节因子转换为所述视音频参数的调节量;根据所述视音频参数的调节量,对视音频信息进行调节处理。According to the adjustment factor of the video and audio parameter, adjusting the video and audio information includes: converting the adjustment factor of the video and audio parameter into the adjustment amount of the video and audio parameter; according to the adjustment amount of the video and audio parameter, The video and audio information is adjusted and processed.
当d<=d_min时,可以判断上一次记录的参考值是否处于极近状态。When d<=d_min, it can be judged whether the last recorded reference value is in a very close state.
根据参考值中的d_near的取值,可以判断参考值所表征的目标对象是否处于极近状态。如果d_near的取值为true,则说明参考值表征的目标对象处于极近状态,否则说明参考值表征的目标对象不处于极近状态。According to the value of d_near in the reference value, it can be judged whether the target object represented by the reference value is in a very close state. If the value of d_near is true, it means that the target object represented by the reference value is in a very close state; otherwise, it means that the target object represented by the reference value is not in a very close state.
步骤206,当前加权位置值不大于所述最小位置值时,如果参考值表征的所述目标对象处于极近状态,并且所述参考值的记录时间不为空,则计算所述极近状态的持续时间;所述极近状态的持续时间超过预设的时间阈值时,显示休眠或关闭的提示信息。Step 206, when the current weighted position value is not greater than the minimum position value, if the target object represented by the reference value is in a very close state, and the recording time of the reference value is not empty, then calculate the Duration: when the duration of the extremely close state exceeds a preset time threshold, a prompt message for sleep or shutdown is displayed.
如果上一次记录的参考值表征的所述目标对象处于极近状态,则更新持续时间duration,并且判断更新后的duration是否大于预设的时间阈值,如果大于,则显示休眠或关闭的提示信息。显示休眠或关闭的提示信息是为了由用户自己决定是否使电视机进入关闭或者休眠状态。当然了,这里也可以设置直接关电视机或者使电视机进入休眠状态。If the target object represented by the last recorded reference value is in a very close state, then update the duration duration, and judge whether the updated duration is greater than a preset time threshold, and if so, display a sleep or shutdown prompt message. The purpose of displaying the prompt information of hibernation or shutdown is for the user to decide whether to make the TV enter the shutdown or hibernation state. Of course, it can also be set to directly turn off the TV or put the TV into sleep mode.
步骤207,当前加权位置值不大于所述最小位置值时,如果所述参考值表征的目标对象不处于极近状态,并且所述参考值的记录时间为空,则将所述当前时刻存储为所述参考值的记录时刻。Step 207, when the current weighted position value is not greater than the minimum position value, if the target object represented by the reference value is not in a very close state, and the recording time of the reference value is empty, store the current moment as The recording time of the reference value.
如果上一次记录的参考值表征的目标对象不处于极近状态,则将当前时刻保存为d_lastTime。以便于作为下一次的参考值。还要将持续时间duration设置为0。If the target object represented by the reference value recorded last time is not in a very close state, save the current moment as d_lastTime. In order to be used as a reference value for the next time. Also set the duration to 0.
步骤208,当前加权位置值不小于所述最大位置值时,判断参考值表征的目标对象是否处于极远状态。Step 208, when the current weighted position value is not less than the maximum position value, it is judged whether the target object represented by the reference value is in an extremely far state.
当d>=d_max时,可以判断上一次记录的参考值是否处于极远状态。When d>=d_max, it can be judged whether the last recorded reference value is in an extreme state.
如果参考值中的d_far为true,则判断参考值表征的所述目标对象处于极远状态,否则判断参考值表征的所述目标对象不处于极远状态。If d_far in the reference value is true, it is judged that the target object represented by the reference value is in the extremely far state, otherwise it is judged that the target object represented by the reference value is not in the extremely far state.
步骤209,当前加权位置值不小于所述最大位置值时,如果参考值表征的所述目标对象处于极远状态,并且所述参考值的记录时间不为空,则计算所述极远状态的持续时间;所述极远状态的持续时间超过预设的时间阈值时,显示休眠或关闭的提示信息。Step 209, when the current weighted position value is not less than the maximum position value, if the target object represented by the reference value is in the extremely far state, and the recording time of the reference value is not empty, then calculate the Duration: when the duration of the extremely remote state exceeds a preset time threshold, a prompt message for sleep or shutdown is displayed.
当d>=d_max时,可以判断上一次记录的参考值是否处于极远状态,如果上一次记录的参考值表征的所述目标对象处于极远状态,则更新持续时间duration,并且判断更新后的duration是否大于预设的时间阈值,如果大于,则显示休眠或关闭的提示信息。显示休眠或关闭的提示信息是为了由用户自己决定是否使电视机进入关闭或者休眠状态。当然了,这里也可以设置直接关电视机或者使电视机进入休眠状态。When d>=d_max, it can be judged whether the last recorded reference value is in the extremely far state, if the target object represented by the last recorded reference value is in the extremely far state, then update the duration duration, and judge the updated Whether the duration is greater than the preset time threshold, and if it is greater, a prompt message for hibernation or shutdown will be displayed. The purpose of displaying the prompt information of hibernation or shutdown is for the user to decide whether to make the TV enter the shutdown or hibernation state. Of course, it can also be set to directly turn off the TV or put the TV into sleep mode.
步骤210,当前加权位置值不小于所述预设的最大位置值时,如果所述参考值表征的目标对象不处于极远状态,并且所述参考值的记录时刻为空,则将所述当前时刻存储为所述参考值的记录时刻。Step 210, when the current weighted position value is not less than the preset maximum position value, if the target object represented by the reference value is not in an extremely far state, and the recording time of the reference value is empty, the current The time is stored as the recording time of the reference value.
当d>=d_max时,可以判断上一次记录的参考值是否处于极远状态,如果上一次记录的参考值不处于极远状态,则将当前时刻保存为d_lastTime。以便于作为下一次的参考值。When d>=d_max, it can be judged whether the last recorded reference value is in the extremely far state, and if the last recorded reference value is not in the extremely far state, then save the current time as d_lastTime. In order to be used as a reference value for the next time.
步骤211,将当前加权位置值存储为需要比对的所述参考位置值。
根据步骤204到步骤210的计算,计算出视音频参数的调节因子之后,可以保存当前加权位置值作为下一次检测的参考位置值d_last;如果当前加权位置值不大于最小位置值,则将d_near的值保存为true,否则将d_near的值保存为false;如果当前加权位置值不小于最大位置值,则将d_far保存为true,否则将d_far的值保存为false;如果当前加权位置值小于等于最小位置值或者大于等于最大位置值,则将当前时刻保存为d_lastTime,否则将d_lastTime保存为空;如果当前加权位置值小于等于最小位置值或者大于等于最大位置值,则将duration+(当前时刻-d_lastTime)保存为duration。According to the calculation from step 204 to step 210, after calculating the adjustment factor of the video and audio parameters, the current weighted position value can be saved as the reference position value d_last of the next detection; if the current weighted position value is not greater than the minimum position value, then the value of d_near Save the value as true, otherwise save the value of d_near as false; if the current weighted position value is not less than the maximum position value, save d_far as true, otherwise save the value of d_far as false; if the current weighted position value is less than or equal to the minimum position value or greater than or equal to the maximum position value, save the current time as d_lastTime, otherwise, save d_lastTime as empty; if the current weighted position value is less than or equal to the minimum position value or greater than or equal to the maximum position value, save duration+(current time-d_lastTime) for duration.
由此,便实现了将当前时刻的上述位置数据保存为下一次检测和调节视音频参数的参考值。Thus, it is realized that the above position data at the current moment is saved as a reference value for the next detection and adjustment of video and audio parameters.
步骤212,根据所述视音频参数的调节因子,对视音频信息进行调节处理。
通过上述步骤得到视音频参数的调节因子后,电视控制器可以使用将调节因子转换为电视控制器可以使用的调节量,以便电视机根据该调节量,对电视机的视音频信息进行相应的调节,如增大音量,增加亮度,进入关闭提示等。After the adjustment factor of the video and audio parameters is obtained through the above steps, the TV controller can convert the adjustment factor into an adjustment amount that the TV controller can use, so that the TV can adjust the video and audio information of the TV according to the adjustment amount , such as increasing volume, increasing brightness, entering shutdown prompts, etc.
由此,本实施例根据目标对象的位置的变化量,计算电视机的视音频参数的调节因子,并根据该视音频参数的调节因子进行视音频信息的自动调整,减小了电视机的视音频信息的处理复杂度。Thus, this embodiment calculates the adjustment factor of the video and audio parameters of the TV according to the variation of the position of the target object, and automatically adjusts the video and audio information according to the adjustment factor of the video and audio parameters, thereby reducing the video and audio parameters of the TV. The processing complexity of audio information.
相应地,本发明实施例还提供了一种视音频信息的处理装置。图3为本发明实施例提供的一种视音频信息的处理装置示意图。如图3所示,本实施例包括以下单元:Correspondingly, the embodiment of the present invention also provides an apparatus for processing video and audio information. Fig. 3 is a schematic diagram of an apparatus for processing video and audio information provided by an embodiment of the present invention. As shown in Figure 3, this embodiment includes the following units:
获取单元301,用于对当前时刻的目标对象进行检测,获取所述目标对象在当前时刻的当前位置值。The
电视机中内置了人体检测传感器,用来获取当前时刻的目标对象;电视机中还内置了距离测量传感器,用来测量当前时刻的目标对象的位置值。这里目标对象是指人。A human body detection sensor is built in the TV to obtain the target object at the current moment; a distance measurement sensor is also built in the TV to measure the position value of the target object at the current moment. The target audience here refers to people.
处理单元302,用于对所述当前位置值进行加权处理,得到所述目标对象的当前加权位置值。The
获取到目标对象及其位置值后,可以对目标对象的位置值进行加权处理,获取当前加权位置值,用以与参考位置值进行对比。After the target object and its position value are obtained, the position value of the target object can be weighted to obtain the current weighted position value for comparison with the reference position value.
对比单元303,用于将所述当前加权位置值与参考值进行对比,所述参考值包括最大位置值、最小位置值和参考位置值。The
在本发明实施例中,所述参考位置值可以为预先设置的参照值,或者历史某次视音频调整中得到的加权位置值,比如可以使用上一次视音频调解中获得的加权位置值作为本次视音频调节中使用的参考位置值。将当前加权位置值与参考位置值进行对比,可以得到当前加权位置值与参考位置值的大小关系。In the embodiment of the present invention, the reference position value can be a preset reference value, or a weighted position value obtained in a certain historical video and audio adjustment, for example, the weighted position value obtained in the last video and audio mediation can be used as this The reference position value used in secondary AV adjustments. By comparing the current weighted position value with the reference position value, the magnitude relationship between the current weighted position value and the reference position value can be obtained.
在本发明实施例中,参考值包括:最大位置值d_max、最小位置值d_min和参考位置值d_last。其中,最大位置值为预设的一个最大位置参考值,最小位置值为预设的一个最小位置参考值,而参考位置值为上一次检测到的目标对象的位置值。In the embodiment of the present invention, the reference values include: a maximum position value d_max, a minimum position value d_min, and a reference position value d_last. Wherein, the maximum position value is a preset maximum position reference value, the minimum position value is a preset minimum position reference value, and the reference position value is the position value of the last detected target object.
除此之外,参考值还可以包括:d_near(参考值所表征的目标对象是否处于极近状态,该值可取值0或1,分别表示目标对象处于极近状态和不处于极近状态),d_far(参考值所表征的目标对象是否处于极远状态,该值可取值0或1,分别表示目标对象处于极远状态和不处于极远状态),d_lastTime(参考值的设定时刻),duration(当前状态的持续时间)、最大位置值d_max和最小位置值d_min,以及(是否处于休眠提示状态),prompt_info_index(休眠提示信息索引,用于根据is_sleep_prompt的值来索引要显示在电视机屏幕上的内容,如果is_sleep_prompt的值为1,则表示要将电视机设置为休眠状态,此时可以根据该prompt_info_index参数索引要显示的提示信息)。In addition, the reference value can also include: d_near (whether the target object represented by the reference value is in a very close state, this value can take a value of 0 or 1, respectively indicating that the target object is in a very close state or not in a very close state) , d_far (whether the target object represented by the reference value is in the extremely far state, this value can take a value of 0 or 1, respectively indicating that the target object is in the extremely far state and not in the extremely far state), d_lastTime (the setting time of the reference value) , duration (the duration of the current state), the maximum position value d_max and the minimum position value d_min, and (whether in the sleep prompt state), prompt_info_index (sleep prompt information index, used to index according to the value of is_sleep_prompt to be displayed on the TV screen If the value of is_sleep_prompt is 1, it means that the TV is set to sleep, and the prompt information to be displayed can be indexed according to the prompt_info_index parameter).
在将所述当前加权位置值与参考值进行对比时,还要将当前加权位置值与该最大位置值d_max和最小位置值d_min进行对比。When comparing the current weighted position value with the reference value, the current weighted position value is also compared with the maximum position value d_max and the minimum position value d_min.
第一计算单元304,用于当所述当前加权位置值位于所述最大位置值和所述最小位置值之间时,根据所述当前加权位置值和所述参考位置值,获取对应的视音频参数的调节因子。The
第一计算单元具体304用于:根据所述加权当前位置和参考位置值,获取对应的视音频参数的调节因子函数,计算得到视音频参数的调节因子.The
当d_min<d<d_last<d_max或d_min<d_last<d<d_max时,可以利用预先构建的视音频参数的调节因子函数,计算各个视音频参数的调节因子,形成视音频参数调节矩阵。其中,调节因子函数为当前时刻的加权位置值和参考位置值的差值的函数。When d_min<d<d_last<d_max or d_min<d_last<d<d_max, the adjustment factor of each video and audio parameter can be calculated by using the pre-built adjustment factor function of the video and audio parameter to form a video and audio parameter adjustment matrix. Wherein, the adjustment factor function is a function of the difference between the weighted position value and the reference position value at the current moment.
本特征的技术特点在于通过当前加权位置值和参考位置值的区别,来获得对于亮度、色度和音量的调节幅度。所述当前位置值和参考位置值的区别实际上就是表征了观众或者说目标对象的位置相对于前次识别的“变化量”或者可以表征该变化量的值,进而可以根据此变化量或者表征该变化量的值对亮度、色度、音量来进行调节。在本发明实施例中,是通过对加权位置值和参考位置值简单做差的方法来获得该变化量或者说获得可以表征该变化量的值,但是,在实际应用中,完全可以采用其他的一维或者二维计算函数,以所述当前加权位置值和参考位置值为参数获得与二者对应的调节因子。此外,在可选择的实施例中,The technical feature of this feature is to obtain the adjustment range for brightness, chroma and volume through the difference between the current weighted position value and the reference position value. The difference between the current position value and the reference position value is actually a representation of the "change" of the position of the audience or the target object relative to the previous recognition or a value that can represent the change, and then can be based on this change or representation. The value of the variation is adjusted for brightness, chroma, and volume. In the embodiment of the present invention, the amount of change is obtained by simply making a difference between the weighted position value and the reference position value, or a value that can characterize the amount of change is obtained. However, in practical applications, other methods can be used. A one-dimensional or two-dimensional calculation function, using the current weighted position value and the reference position value as parameters to obtain adjustment factors corresponding to the two. Furthermore, in an alternative embodiment,
在本发明实施例中,是通过做差的方法来获得当前位置值和参考位置值之间的逻辑关系,在实际应用中,也可以根据其他的算法公式来然后根据预设的调节因子函数来计算亮度、色度和音量的调节幅度。In the embodiment of the present invention, the logical relationship between the current position value and the reference position value is obtained by making a difference. In practical applications, it can also be calculated according to other algorithmic formulas and then according to the preset adjustment factor function. Computes adjustments for brightness, chroma, and volume.
调节单元305,用于根据所述视音频参数的调节因子,对视音频信息进行调节处理。The
调节单元305具体用于:将所述视音频参数的调节因子转换为所述视音频参数的调节量;根据所述视音频参数的调节量,对视音频信息进行调节处理。The
优选地,本发明实施例还包括:第一存储单元306,用于将所述当前加权位置值存储为需要比对的所述参考位置值。Preferably, the embodiment of the present invention further includes: a
优选地,本发明实施例还包括:第二计算单元307,用于当所述当前加权位置值不大于所述最小位置值时,如果所述参考值表征的所述目标对象处于极近状态,并且所述参考值的记录时间不为空,则计算所述极近状态的持续时间。Preferably, the embodiment of the present invention further includes: a
第二计算单元307还用于,当所述当前加权位置值不小于所述最大位置值时,如果所述参考值表征的所述目标对象处于极远状态,并且所述参考值的记录时间不为空,则计算所述极远状态的持续时间。The
关闭单元308,用于所述极近状态的持续时间超过预设的时间阈值时,显示休眠或关闭的提示信息。The
关闭单元308还用于,所述极远状态的持续时间超过预设的时间阈值时,显示休眠或关闭的提示信息。The
优选地,本发明实施例还包括:第二存储单元309,当所述当前加权位置值不大于所述最小位置值时,如果所述参考值表征的所述目标对象不处于极近状态,并且所述参考值的记录时刻为空,则将所述当前时刻存储为所述参考值的记录时刻。Preferably, this embodiment of the present invention further includes: a
第二存储单元309还用于,当所述当前加权位置值所述最大位置值时,如果所述参考值表征的所述目标对象不处于极远状态,并且所述参考值的记录时刻为空,则将所述当前时刻存储为所述参考值的记录时刻。The
需要说明的是,本实施例中的视音频参数可以为亮度参数、图像对比度参数、色彩饱和度参数、音量参数中的一种或多种,也可以为其他的可以调节图像显示效果和声音效果的参数,本实施例中只是以亮度参数、对比度参数、色彩饱和度参数、音量参数进行举例说明,不用于限制本发明的保护范围。It should be noted that the video and audio parameters in this embodiment can be one or more of brightness parameters, image contrast parameters, color saturation parameters, and volume parameters, or other parameters that can adjust image display effects and sound effects. Parameters, in this embodiment, brightness parameters, contrast parameters, color saturation parameters, and volume parameters are used as examples for illustration, and are not used to limit the scope of protection of the present invention.
由此,本实施例根据目标对象的位置的变化量,计算电视机的视音频参数的调节因子,并根据该视音频参数的调节因子进行视音频信息的自动调整,减小了电视机的视音频信息的处理复杂度。Thus, this embodiment calculates the adjustment factor of the video and audio parameters of the TV according to the variation of the position of the target object, and automatically adjusts the video and audio information according to the adjustment factor of the video and audio parameters, thereby reducing the video and audio parameters of the TV. The processing complexity of audio information.
相应地,本发明实施例还提供了一种电视机。图4为本发明实施例提供的一种电视机示意图。如图4所示,本实施例包括以下部件:人体检测传感器401、距离测量传感器402、分析器403、处理器404、控制器405、存储器406。Correspondingly, the embodiment of the present invention also provides a TV. Fig. 4 is a schematic diagram of a TV provided by an embodiment of the present invention. As shown in FIG. 4 , this embodiment includes the following components: a human
人体检测传感器401,用于对当前时刻的目标对象进行检测,并将当前时刻的目标对象信息发送至距离测量传感器402。The human
距离测量传感器402,用于从人体检测传感器401接收当前时刻的目标对象信息,并获取所述目标对象在当前时刻的当前位置值,将所述目标对象在当前时刻的当前位置值传输给分析器403。The
分析器403,用于从从距离测量传感器402接收目标对象在当前时刻的位置值,对所述当前位置值进行加权处理,得到当前加权位置值d,并将当前加权位置值传输至处理器404。
处理器404,用于从分析器403接收计算出的当前加权位置值,并从存储器406中获取存储的参考值,将当前加权位置值与参考值进行对比;根据对比结果,利用对应的视音频参数的调节因子函数,计算视音频参数的调节因子,并将调节因子传输至控制器405。The
在本发明实施例中,参考值包括:最大位置值d_max、最小位置值d_min和参考位置值d_last。其中,最大位置值为预设的一个最大位置参考值,最小位置值为预设的一个最小位置参考值,而参考位置值为上一次检测到的目标对象的位置值。In the embodiment of the present invention, the reference values include: a maximum position value d_max, a minimum position value d_min, and a reference position value d_last. Wherein, the maximum position value is a preset maximum position reference value, the minimum position value is a preset minimum position reference value, and the reference position value is the position value of the last detected target object.
除此之外,参考值还可以包括:d_near(参考值所表征的目标对象是否处于极近状态,该值可取值0或1,分别表示目标对象处于极近状态和不处于极近状态),d_far(参考值所表征的目标对象是否处于极远状态,该值可取值0或1,分别表示目标对象处于极远状态和不处于极远状态),d_lastTime(参考值的设定时刻),duration(当前状态的持续时间)、最大位置值d_max和最小位置值d_min,以及(是否处于休眠提示状态),prompt_info_index(休眠提示信息索引,用于根据is_sleep_prompt的值来索引要显示在电视机屏幕上的内容,如果is_sleep_prompt的值为1,则表示要将电视机设置为休眠状态,此时可以根据该prompt_info_index参数索引要显示的提示信息)。In addition, the reference value can also include: d_near (whether the target object represented by the reference value is in a very close state, this value can take a value of 0 or 1, respectively indicating that the target object is in a very close state or not in a very close state) , d_far (whether the target object represented by the reference value is in the extremely far state, this value can take a value of 0 or 1, respectively indicating that the target object is in the extremely far state and not in the extremely far state), d_lastTime (the setting time of the reference value) , duration (the duration of the current state), the maximum position value d_max and the minimum position value d_min, and (whether in the sleep prompt state), prompt_info_index (sleep prompt information index, used to index according to the value of is_sleep_prompt to be displayed on the TV screen If the value of is_sleep_prompt is 1, it means that the TV is set to sleep, and the prompt information to be displayed can be indexed according to the prompt_info_index parameter).
当d_min<d<d_last<d_max或d_min<d_last<d<d_max时,处理器404具体用于利用预先构建的视音频参数的调节因子函数,计算各个视音频参数的调节因子,形成视音频参数调节矩阵。其中,调节因子函数为当前加权位置值和参考位置值的差值的函数。When d_min<d<d_last<d_max or d_min<d_last<d<d_max, the
具体地,当d_min<d<d_last<d_max时,可以先计算出当前加权位置值和参考位置值的差值Δd=d-d_last。根据亮度参数的调节因子函数luma_step=fun_luma(Δd),可以得到亮度参数的调节因子luma_step;根据对比度参数的调节因子函数contrast_step=fun_contrast(Δd),可以得到对比度参数的调节因子contrast_step;根据色彩饱和度参数的调节因子函数saturation_step=fun_saturation(Δd),可以得到色彩饱和度的调节因子saturation_step;根据音量参数的调节因子函数volume_step=fun_volume(Δd),可以得到音量的调节因子volume_step。Specifically, when d_min<d<d_last<d_max, the difference Δd=d−d_last between the current weighted position value and the reference position value may be calculated first. According to the adjustment factor function luma_step=fun_luma(Δd) of the brightness parameter, the adjustment factor luma_step of the brightness parameter can be obtained; according to the adjustment factor function contrast_step=fun_contrast(Δd) of the contrast parameter, the adjustment factor contrast_step of the contrast parameter can be obtained; according to the color saturation The adjustment factor function saturation_step=fun_saturation(Δd) of the parameter can obtain the adjustment factor saturation_step of the color saturation; according to the adjustment factor function volume_step=fun_volume(Δd) of the volume parameter, the adjustment factor volume_step of the volume can be obtained.
具体地,当d_min<d_last<d<d_max时,可以先计算出当前加权位置值和参考位置值的差值Δd=d-d_last。根据亮度参数的调节因子函数luma_step=fun_luma(Δd),可以得到亮度参数的调节因子luma_step;根据对比度参数的调节因子函数contrast_step=fun_contrast(Δd),可以得到对比度参数的调节因子contrast_step;根据色彩饱和度参数的调节因子函数saturation_step=fun_saturation(Δd),可以得到色彩饱和度的调节因子;根据音量参数的调节因子函数volume_step=fun_volume(Δd),可以得到音量的调节因子volume_step。Specifically, when d_min<d_last<d<d_max, the difference Δd=d−d_last between the current weighted position value and the reference position value may be calculated first. According to the adjustment factor function luma_step=fun_luma(Δd) of the brightness parameter, the adjustment factor luma_step of the brightness parameter can be obtained; according to the adjustment factor function contrast_step=fun_contrast(Δd) of the contrast parameter, the adjustment factor contrast_step of the contrast parameter can be obtained; according to the color saturation The adjustment factor function saturation_step=fun_saturation(Δd) of the parameter can obtain the adjustment factor of the color saturation; according to the adjustment factor function volume_step=fun_volume(Δd) of the volume parameter, the adjustment factor volume_step of the volume can be obtained.
当d<=d_min时,处理器404可以判断上一次记录的参考值所表征的目标对象是否处于极近状态,即d_last是否不大于最小位置值d_min,如果上一次记录的参考值表征的所述目标对象处于极近状态,则更新持续时间duration,并且判断更新后的duration是否大于预设的时间阈值,如果大于,则显示休眠或关闭的提示信息。如果当前时刻的d<=d_min,但是上一次记录的参考值不处于极近状态,则将当前时刻保存为d_lastTime。When d<=d_min, the
当d>=d_max时,处理器404可以判断上一次记录的参考值表征的目标对象是否处于极远状态,即d_last是否不小于最大位置值d_max,如果上一次记录的参考值表征的所述目标对象处于极远状态,则更新持续时间duration,并且判断更新后的duration是否大于预设的时间阈值,如果大于,则显示休眠或关闭的提示信息。如果当前时刻的d>=d_max,但是上一次记录的参考值表征的目标对象不处于极远状态,则将当前时刻保存为d_lastTime。When d>=d_max, the
控制器405,用于从处理器404接收调节因子或关闭提示信息,并将该调节因子或关闭提示信息转换为电视机可以使用的视音频参数的调节量,根据该调节量,对电视机的视音频的输出信息进行智能的调节处理。The
存储器406,用于存储参考值等相关信息。The
由此,本发明实施例提供的电视机实现了根据目标对象的位置变化,智能调节视音频信息的输出,减小了电视机的视音频信息的处理复杂度。Thus, the television set provided by the embodiment of the present invention can intelligently adjust the output of video and audio information according to the position change of the target object, and reduce the processing complexity of the video and audio information of the TV set.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should further realize that the units and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (19)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210558779.XA CN102984477B (en) | 2012-12-20 | 2012-12-20 | Processing method and device for video and audio information and television |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210558779.XA CN102984477B (en) | 2012-12-20 | 2012-12-20 | Processing method and device for video and audio information and television |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102984477A true CN102984477A (en) | 2013-03-20 |
CN102984477B CN102984477B (en) | 2015-07-08 |
Family
ID=47858172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210558779.XA Expired - Fee Related CN102984477B (en) | 2012-12-20 | 2012-12-20 | Processing method and device for video and audio information and television |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102984477B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1210648A (en) * | 1996-02-09 | 1999-03-10 | 松下电器产业株式会社 | television receiver |
CN101072293A (en) * | 2006-05-09 | 2007-11-14 | 深圳Tcl新技术有限公司 | Device and method for automatically regulating television screen display |
US20110316881A1 (en) * | 2010-06-24 | 2011-12-29 | Sony Corporation | Display device |
CN102563299A (en) * | 2010-12-23 | 2012-07-11 | 康佳集团股份有限公司 | Method and device for rotating electric base of television |
-
2012
- 2012-12-20 CN CN201210558779.XA patent/CN102984477B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1210648A (en) * | 1996-02-09 | 1999-03-10 | 松下电器产业株式会社 | television receiver |
CN101072293A (en) * | 2006-05-09 | 2007-11-14 | 深圳Tcl新技术有限公司 | Device and method for automatically regulating television screen display |
US20110316881A1 (en) * | 2010-06-24 | 2011-12-29 | Sony Corporation | Display device |
CN102563299A (en) * | 2010-12-23 | 2012-07-11 | 康佳集团股份有限公司 | Method and device for rotating electric base of television |
Also Published As
Publication number | Publication date |
---|---|
CN102984477B (en) | 2015-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110177221B (en) | High dynamic range image capturing method and device | |
CN109361865B (en) | Shooting method and terminal | |
US9990171B2 (en) | Audio device and method for automatically adjusting volume thereof | |
JP6068384B2 (en) | Video processing method and apparatus based on collected information | |
EP3192231B1 (en) | Dynamic video streaming based on viewer activity and visual acuity | |
WO2019120016A1 (en) | Image processing method and apparatus, storage medium, and electronic device | |
CN104318912B (en) | Method and device for detecting environmental light brightness | |
EP3554070A1 (en) | Photograph-capture method, apparatus, terminal, and storage medium | |
CN106782544A (en) | Interactive voice equipment and its output intent | |
CN106293059B (en) | Control method and control device | |
KR20180070264A (en) | Obtaining method for Panning shot image and Electronic device supporting the same | |
US10567721B2 (en) | Using a light color sensor to improve a representation of colors in captured image data | |
US20120188289A1 (en) | Projector with luminance adjusting function and method thereof | |
US9347828B1 (en) | Method for detecting ambient light brightness and apparatus for achieving the method | |
EP2830306B1 (en) | Image photographing apparatus and photographing method thereof | |
TWI656521B (en) | Display device and method for adjusting display parameters thereof | |
CN111447497A (en) | Intelligent playing device and energy-saving control method thereof | |
CN108040240A (en) | The method, apparatus and mobile terminal of a kind of blank level adjustment | |
CN103686009B (en) | Method and device for intelligent perception on television | |
KR102351496B1 (en) | Image processing apparatus and method for operating thereof | |
CN115291678B (en) | Electronic equipment, and identification method and system for looking up electronic equipment | |
KR101533642B1 (en) | Method and apparatus for processing image based on detected information | |
CN107422703B (en) | Equipment control method and device | |
KR20070116714A (en) | Personal setting, parental control, power saving control method and system of television with digital video camera | |
CN105718033A (en) | Fatigue detection system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150708 Termination date: 20181220 |