CN102340584B - Method and device for adjusting sound volume - Google Patents
Method and device for adjusting sound volume Download PDFInfo
- Publication number
- CN102340584B CN102340584B CN201010234473.XA CN201010234473A CN102340584B CN 102340584 B CN102340584 B CN 102340584B CN 201010234473 A CN201010234473 A CN 201010234473A CN 102340584 B CN102340584 B CN 102340584B
- Authority
- CN
- China
- Prior art keywords
- volume
- angle
- sensing unit
- controllable active
- light sensing
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000001105 regulatory effect Effects 0.000 claims description 12
- 230000000052 comparative effect Effects 0.000 claims 7
- 230000007547 defect Effects 0.000 abstract description 4
- 230000003542 behavioural effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 7
- 230000001678 irradiating effect Effects 0.000 description 5
- 241001422033 Thestylus Species 0.000 description 4
- 230000001965 increasing effect Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 2
- 230000001154 acute effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000023077 detection of light stimulus Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Abstract
Description
技术领域 technical field
本发明涉及通信技术领域,尤其涉及一种音量调节方法与装置。The present invention relates to the technical field of communications, in particular to a volume adjustment method and device.
背景技术 Background technique
在现有技术中,当用户利用终端对终端的音量进行调节时,一般可以采用两种调节方式:接触式调节方式和非接触式调节方式。In the prior art, when the user uses the terminal to adjust the volume of the terminal, generally two adjustment methods can be used: a contact adjustment method and a non-contact adjustment method.
接触式调节方式,即通过用户与终端的接触,来实现对音量的调节,比如,用户可以通过触摸笔或手指在具有感应式触摸屏的终端屏幕上点击和滑动来实现对音量的调节操作。非接触式调节方式,即用户无需用手指或通过触摸笔等器件接触终端,而是通过向终端提供终端所能远距离感应的信息,使终端能根据感应到的信息,实现对音量的调节。The touch adjustment method realizes the adjustment of the volume through the contact between the user and the terminal. For example, the user can use a touch pen or finger to click and slide on the terminal screen with an inductive touch screen to realize the volume adjustment operation. Non-contact adjustment mode, that is, the user does not need to touch the terminal with fingers or touch pens, but provides the terminal with information that the terminal can sense remotely, so that the terminal can adjust the volume according to the sensed information.
针对非接触式调节方式,已有方法提出通过利用终端的摄像头捕获用户做出的手势信息,从而依照不同的手势信息,实现对音量的调节。该方法的具体流程如图1所示,摄像头1和摄像头2如同用户的两个眼睛,它们之间间隔一定的距离,摄像头1、2采集包含用户做出的手势信息在内的图像信息,并从采集到的图像信息中对手势信息进行识别与跟踪,然后,对手势信息进行三维重建并输出给终端中的音量调节执行应用程序编程接口API,以完成对音量的调节。该方法的缺陷在于,需要在终端上设置多个摄像头捕获手势信息,导致终端占用空间较大,而且在较暗的环境下,并需提供光源进行照明,否则无法实现对手势信息的捕获。Regarding the non-contact adjustment method, existing methods propose to use a camera of a terminal to capture gesture information made by a user, so as to adjust the volume according to different gesture information. The specific process of this method is shown in Figure 1. Camera 1 and
由对现有技术提供的上述方案的介绍可知,现有技术提供的非接触式调节方式存在着易受环境因素影响,在较差的环境下难以准确捕获用户的行为信息,从而无法作出精确的音量调节的缺陷。From the introduction of the above solutions provided by the prior art, it can be seen that the non-contact adjustment method provided by the prior art is easily affected by environmental factors, and it is difficult to accurately capture user behavior information in a poor environment, so that it is impossible to make accurate adjustments. Flaws in volume adjustment.
发明内容 Contents of the invention
本发明提供一种音量调节方法与装置,用以解决现有技术提供的非接触式调节方式存在的在较差的环境下难以准确捕获用户的行为信息,从而无法作出精确的音量调节的缺陷。The present invention provides a volume adjustment method and device to solve the defect of the non-contact adjustment method provided by the prior art that it is difficult to accurately capture the user's behavior information in a poor environment, so that precise volume adjustment cannot be made.
本发明采用以下技术方案:The present invention adopts following technical scheme:
一种音量调节方法,包括:待调节音量的终端利用设置在所述终端上的光线感应单元,对照射在所述光线感应单元上的可控有源光线进行探测;以及确定探测到的可控有源光线相对于所述光线感应单元的角度的大小信息,并根据所述角度的大小信息,对音量进行调节。A volume adjustment method, comprising: a terminal to be adjusted uses a light sensing unit arranged on the terminal to detect the controllable active light irradiated on the light sensing unit; and determining the detected controllable active light information about the angle of the active light relative to the light sensing unit, and adjust the volume according to the information about the angle.
较佳地,所述可控有源光线为横截面为圆形的平行可控有源光束,以及确定探测到的可控有源光线相对于所述光线感应单元的角度的大小信息具体为:Preferably, the controllable active light beam is a parallel controllable active light beam with a circular cross section, and the information for determining the angle of the detected controllable active light beam relative to the light sensing unit is specifically:
确定所述圆形的直径长度值;当确定探测到的所述可控有源光束照射在所述光线感应单元上的截面为椭圆形时,确定所述椭圆形的长轴长度值;根据所述长轴长度值以及所述直径长度值,确定所述可控有源光束相对于所述光线感应单元的角度的大小信息。Determine the diameter length value of the circle; when it is determined that the detected section of the controllable active light beam irradiated on the light sensing unit is an ellipse, determine the long axis length value of the ellipse; according to the The length value of the major axis and the value of the diameter length determine the size information of the angle of the controllable active light beam relative to the light sensing unit.
较佳地,所述角度为当所述光线感应单元所在平面按照顺时针方向旋转到与所述可控有源光线平行的位置时,所述平面绕过的最小角度;以及根据所述可控有源光线相对于所述光线感应单元的角度的大小信息,对音量进行调节,具体包括:Preferably, the angle is the minimum angle that the plane bypasses when the plane where the light sensing unit is located is rotated clockwise to a position parallel to the controllable active light; and according to the controllable The size information of the angle of the active light relative to the light sensing unit is used to adjust the volume, specifically including:
确定所述最小角度与九十度的角度之差,并根据所述角度之差与预设的对音量进行调节的最小单位角度,确定所述角度之差所包含的最小单位角度的个数;确定所述最小单位角度所对应的预设音量最小调节档位,并根据所述个数,将所述个数乘以所述最小调节档位所得到的乘积值确定为需对音量进行调节的档位;比较所述最小角度与九十度的大小关系,并根据比较结果,按照确定的所述档位,对音量进行调节。determining the difference between the minimum angle and an angle of ninety degrees, and determining the number of minimum unit angles included in the angle difference according to the angle difference and the preset minimum unit angle for adjusting the volume; Determine the preset volume minimum adjustment gear corresponding to the minimum unit angle, and determine the product value obtained by multiplying the number by the minimum adjustment gear according to the number as the volume that needs to be adjusted gear position; compare the size relationship between the minimum angle and ninety degrees, and adjust the volume according to the determined gear position according to the comparison result.
较佳地,根据比较结果,按照确定的所述档位,对音量进行调节,具体包括:在比较结果为所述最小角度大于九十度时,将音量上调确定的所述档位;在比较结果为所述最小角度小于九十度时,将音量下调确定的所述档位。Preferably, according to the comparison result, the volume is adjusted according to the determined gear position, which specifically includes: when the comparison result is that the minimum angle is greater than ninety degrees, increasing the volume to the determined gear position; As a result, when the minimum angle is less than ninety degrees, the volume is lowered by the determined gear.
较佳地,所述光线感应单元为光线感应触摸屏,以及所述可控有源光线由与所述终端对应的触摸笔发出。Preferably, the light sensing unit is a light sensing touch screen, and the controllable active light is emitted by a touch pen corresponding to the terminal.
较佳地,所述可控有源光线为激光光线或红外线。Preferably, the controllable active light is laser light or infrared light.
一种音量调节装置,包括:光线感应单元,用于对照射在所述光线感应单元上的可控有源光线进行探测;确定单元,用于确定光线感应单元探测到的可控有源光线相对于所述光线感应单元的角度的大小信息;音量调节单元,用于根据确定单元确定的角度的大小信息,对音量进行调节。A volume adjustment device, comprising: a light sensing unit, used to detect the controllable active light irradiated on the light sensing unit; a determination unit, used to determine the controllable active light detected by the light sensing unit relative to Information on the size of the angle of the light sensing unit; a volume adjustment unit, configured to adjust the volume according to the information on the size of the angle determined by the determining unit.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
本发明实施例通过利用设置在终端上的光线感应单元对照射在光线感应单元上的可控有源光线进行探测,从而根据探测到的可控有源光线相对于光线感应单元的角度的大小信息来实现对音量进行调节,由于可控有源光束一般难以受到环境因素的干扰,因此,这样的非接触式调节方式在较差的环境下也能准确地捕获到可控有源光线,从而进一步实现利用可控有源光线与光线感应单元的角度的大小信息来精确地对音量进行调节。In the embodiment of the present invention, the controllable active light irradiated on the light sensing unit is detected by using the light sensing unit arranged on the terminal, so that according to the angle information of the detected controllable active light relative to the light sensing unit To realize the adjustment of the volume, since the controllable active light beam is generally difficult to be disturbed by environmental factors, such a non-contact adjustment method can accurately capture the controllable active light in a poor environment, thereby further Accurately adjust the volume by using the size information of the angle between the controllable active light and the light sensing unit.
附图说明 Description of drawings
图1为现有技术中提供的通过捕获手势信息调节音量的具体流程示意图;FIG. 1 is a schematic flow chart of adjusting the volume by capturing gesture information provided in the prior art;
图2为本发明实施例提供的一种音量调节的方法的具体流程示意图;FIG. 2 is a schematic flowchart of a volume adjustment method provided by an embodiment of the present invention;
图3为可控有源光束平行照射在光线感应单元和倾斜地照射在光线感应单元上的示意图;Fig. 3 is a schematic diagram of a controllable active light beam irradiating on the light sensing unit in parallel and obliquely on the light sensing unit;
图4a为圆锥形可控有源光束照射在设置有LCD屏幕上形成以点O为圆心的一个圆形照射范围的示意图;Fig. 4a is a schematic diagram of a conical controllable active light beam irradiating on an LCD screen to form a circular irradiation range with point O as the center;
图4b为圆锥形可控有源光束照射在设置有LCD屏幕上形成以点O1、O2为中心的一个椭圆形照射范围的示意图;Fig. 4b is a schematic diagram of an elliptical irradiation range centered on points O1 and O2 formed by conical controllable active light beams irradiating on an LCD screen;
图4c为本发明实施例提供的音量调节方法的步骤23的一种具体执行过程示意图;Fig. 4c is a schematic diagram of a specific execution process of
图5为本发明实施例提供的一种音量调节装置的具体结构示意图。Fig. 5 is a schematic structural diagram of a volume adjustment device provided by an embodiment of the present invention.
具体实施方式 Detailed ways
为了解决现有技术提供的非接触式调节方式存在的在较差的环境下难以准确捕获用户的行为信息,从而无法作出精确的音量调节的缺陷,本发明实施例提供了一种音量调节的方案,通过设置有光线感应单元的终端对可控有源光线进行探测,从而根据探测到的可控有源光线相对于所述光线感应单元的角度的大小信息,实现非接触式的音量调节。具体地,本发明实施例首先提供一种音量调节的方法,该方法的具体流程示意图如图2所示,包括以下步骤:In order to solve the defect of the non-contact adjustment method provided by the prior art that it is difficult to accurately capture the user's behavior information in a poor environment, so that it is impossible to make precise volume adjustments, the embodiment of the present invention provides a solution for volume adjustment Detecting the controllable active light through the terminal provided with the light sensing unit, so as to realize non-contact volume adjustment according to the angle information of the detected controllable active light relative to the light sensing unit. Specifically, the embodiment of the present invention firstly provides a volume adjustment method, the specific flowchart of the method is shown in Figure 2, including the following steps:
步骤21,待调节音量的终端利用设置在该终端上的光线感应单元,对照射在光线感应单元上的可控有源光线进行探测,在本发明实施例中,采用的可控有源光线可以但不限于为激光光线或者红外线等;Step 21: The terminal whose volume is to be adjusted uses the light sensing unit installed on the terminal to detect the controllable active light irradiated on the light sensing unit. In the embodiment of the present invention, the controllable active light used can be But not limited to laser light or infrared rays;
步骤22,确定探测到的可控有源光线相对于光线感应单元的角度的大小信息;
步骤23,根据确定的角度的大小信息,对音量进行调节。
在本发明实施例中,可控有源光线可以为从光源发出的横截面为圆形的锥形可控有源光束,也可以为平行可控有源光束,以可控有源光线为横截面为圆形的平行可控有源光束为例,确定探测到的可控有源光线相对于光线感应单元的角度的大小信息的过程具体可以包括以下步骤:In the embodiment of the present invention, the controllable active light beam can be a conical controllable active light beam with a circular cross section emitted from the light source, or it can be a parallel controllable active light beam. Taking a parallel controllable active beam with a circular cross-section as an example, the process of determining the size information of the detected controllable active light relative to the angle of the light sensing unit may specifically include the following steps:
首先,终端确定该平行可控有源光束的圆形横截面的直径长度值,其中,确定该直径长度值的方式有多种,当光线感应单元为光线感应触摸屏,而可控有源光线为与该终端对应的触摸笔发出时,就可以预先设置该触摸笔所发出的可控有源光束的圆形横截面的直径长度值为一个固定值,并通过与终端约定的方式,将该固定值与该终端进行约定,从而使终端能够获知直径长度值,或者,终端也可以通过检测的方式来确定该直径长度值,比如,当光线感应单元检测到可控有源光束照射在光线感应单元上的截面为圆形时,确定该圆形的直径长度;First, the terminal determines the diameter and length of the circular cross-section of the parallel controllable active light beam. There are multiple ways to determine the diameter and length. When the stylus corresponding to the terminal is sent out, the diameter and length of the circular cross-section of the controllable active light beam emitted by the stylus can be preset as a fixed value, and the fixed value can be fixed by means of an agreement with the terminal. The value is agreed with the terminal, so that the terminal can know the diameter and length value, or the terminal can also determine the diameter and length value through detection, for example, when the light sensing unit detects that the controllable active beam is irradiated on the light sensing unit When the section above is a circle, determine the diameter and length of the circle;
然后,当确定探测到的可控有源光束照射在光线感应单元上的截面为椭圆形时,确定椭圆形的长轴长度值;Then, when it is determined that the cross-section of the detected controllable active light beam irradiated on the light sensing unit is an ellipse, determine the length value of the major axis of the ellipse;
最后,根据确定的长轴长度值以及直径长度值,确定可控有源光束相对于光线感应单元的角度的大小信息。比如,以可控有源光线为横截面为圆形的平行可控有源光束为例,可控有源光束平行照射在光线感应单元和倾斜地照射在光线感应单元上的示意图如图3所示。在该图3中,垂直照射的平行可控有源光束用直线表示,而倾斜照射的平行可控有源光束用虚线表示,其中,平行可控有源光束的横截面圆形的直径为a,而当该平行可控有源光束倾斜照射在光线感应单元使得照射在光线感应单元上的截面为椭圆形时,该椭圆形的长轴长度值是能够通过光线感应单元对光线的探测而确定出的,假设确定出的椭圆形的长轴长度值为图3中所示的b。根据图3可知,按照本发明实施例提供的方法,需要确定的是角度β的值,而角度β与角度α之间存在如下式[1]所示的关系:Finally, according to the determined long axis length value and the diameter length value, determine the size information of the angle of the controllable active light beam relative to the light sensing unit. For example, taking the controllable active light beam as an example of a parallel controllable active light beam with a circular cross section, the schematic diagram of the controllable active light beam irradiating on the light sensing unit in parallel and obliquely on the light sensing unit is shown in Figure 3 Show. In this figure 3, the vertically irradiated parallel steerable active beam is represented by a straight line, while the obliquely irradiated parallel steerable active beam is represented by a dotted line, wherein the diameter of the cross-sectional circle of the parallel steerable active beam is a , and when the parallel controllable active light beam irradiates obliquely on the light sensing unit so that the cross-section irradiated on the light sensing unit is an ellipse, the length of the major axis of the ellipse can be determined by the detection of light by the light sensing unit Assuming that the major axis length of the determined ellipse is b as shown in FIG. 3 . According to Fig. 3, it can be seen that according to the method provided by the embodiment of the present invention, what needs to be determined is the value of the angle β, and there is a relationship between the angle β and the angle α as shown in the following formula [1]:
β=180°-α [1]β=180°-α [1]
由于角度α可以看做是图3中所示的直角三角形中的一个角,而该直角三角形中,还存在如下式[2]所示的关系:Since the angle α can be regarded as an angle in the right triangle shown in Figure 3, and in the right triangle, there is also the relationship shown in the following formula [2]:
根据上式[1]、[2],可以得到下式[3]:According to the above formulas [1] and [2], the following formula [3] can be obtained:
从而根据该式[3],就计算得到了角度β的值。Thus, according to the formula [3], the value of the angle β is calculated.
当然,本发明实施例仅以可控有源光线为横截面为圆形的平行可控有源光束这一比较简单的情况为例,来说明如何确定探测到的可控有源光线相对于光线感应单元的角度的大小信息,本领域技术人员能够理解,平行可控有源光束的横截面也可以不为圆形,或者可控有源光束也可以不为平行可控有源光束,而针对这样的可控有源光束,也是能够通过上述类似的方法计算出探测到的可控有源光线相对于光线感应单元的角度的大小信息的,在此不再赘述。Of course, the embodiment of the present invention only takes the relatively simple case that the controllable active light beam is a parallel controllable active light beam with a circular cross-section as an example to illustrate how to determine the detected controllable active light beam relative to the light beam. For information about the size of the angle of the sensing unit, those skilled in the art can understand that the cross-section of the parallel controllable active beam may not be circular, or the controllable active beam may not be a parallel controllable active beam, but for Such a controllable active light beam can also calculate the size information of the angle of the detected controllable active light beam relative to the light sensing unit through the above-mentioned similar method, which will not be repeated here.
此外,上述实例中,是通过对角度β大小的确定,来实现对音量的调节,而事实上,也可以直接通过对角度α大小的确定,来实现对音量的调节。这两种情况的实现过程比较类似,因此也不再赘述。In addition, in the above example, the adjustment of the volume is realized by determining the size of the angle β, but in fact, the adjustment of the volume can also be realized directly by determining the size of the angle α. The implementation process of these two cases is relatively similar, so it will not be repeated here.
针对本方案的具体实施方式,发明人进行了多次试验:For the specific implementation of this program, the inventor has carried out several tests:
当利用触摸笔作为光源发出圆锥形可控有源光束照射在设置有光线感应触摸液晶显示器(LCD)屏幕的终端上时,会形成图4a所示的以点O为圆心的一个圆形照射范围(在图4a中,虚线用以表示触摸笔发出的可控有源光线),而当改变光束的照射位置时,则圆锥形可控有源光束在照射在该LCD屏幕上时,会形成图4b所示的以点O1或O2为中心的一个椭圆形照射范围。When the stylus is used as the light source to emit a conical controllable active light beam to irradiate the terminal equipped with a light-sensitive touch liquid crystal display (LCD) screen, a circular irradiation range with point O as the center shown in Figure 4a will be formed. (In Fig. 4a, the dotted line is used to represent the controllable active light emitted by the stylus), and when the irradiation position of the light beam is changed, the conical controllable active light beam will form a pattern when it is irradiated on the LCD screen. 4b shows an elliptical irradiation range centered on point O1 or O2.
以位于该圆锥形可控有源光束中心位置的光线为例,当可控有源光束垂直照射在LCD屏幕上时,按照顺时针旋转方向,LCD屏幕所在平面相对于中心位置处的光线所在位置之间的最小角度为90°;而当可控有源光束斜向上照射在LCD屏幕上时,按照顺时针旋转方向,LCD屏幕所在平面相对于中心位置处的光线所在位置之间的最小角度为大于90°的钝角(即图4b中的夹角1);当可控有源光束斜向下照射在LCD屏幕上时,按照顺时针旋转方向,LCD屏幕所在平面相对于中心位置处的光线所在位置之间的最小角度为小于90°的锐角(即图4b中的夹角2)。Taking the light at the center of the conical controllable active beam as an example, when the controllable active beam is vertically irradiated on the LCD screen, according to the clockwise rotation direction, the position of the light on the plane of the LCD screen relative to the center position The minimum angle between them is 90°; and when the controllable active light beam irradiates obliquely on the LCD screen, according to the clockwise rotation direction, the minimum angle between the plane where the LCD screen is located and the position of the light at the center position is An obtuse angle greater than 90° (that is, the angle 1 in Figure 4b); when the controllable active light beam is irradiated obliquely downward on the LCD screen, according to the clockwise rotation direction, the plane where the LCD screen is located is relative to the light at the center position The smallest angle between positions is an acute angle less than 90° (
通过上述分析,本发明实施例中,可以考虑依照上述最小角度与90°角度的大小关系,确定对音量进行调节的档位。仍然以可控有源光线为横截面为圆形的平行可控有源光束为例,可以定义上述最小角度为当光线感应单元所在平面按照顺时针方向旋转到与可控有源光线平行的位置时,该平面绕过的最小角度。则本发明实施例提供的音量调节方法的步骤23的具体执行过程可以包含如图4c所示的下述步骤:Through the above analysis, in the embodiment of the present invention, it may be considered to determine the gear for adjusting the volume according to the above-mentioned relationship between the minimum angle and the 90° angle. Still taking the controllable active light beam as an example of a parallel controllable active light beam with a circular cross section, the above minimum angle can be defined as when the plane where the light sensing unit is located rotates clockwise to a position parallel to the controllable active light beam , the minimum angle that the plane goes around. Then the specific execution process of
步骤41,确定上述定义的最小角度与90°的角度之差,并根据确定的该角度之差以及预设的对音量进行调节的最小单位角度,确定该角度之差所包含的最小单位角度的个数,比如,当最小角度为120°时,则120°与90°的角度之差为30°,而若预设的对音量进行调节的最小单位角度为10°,则30°所包含的最小单位角度的个数为3个;
步骤42,确定最小单位角度所对应的预设音量最小调节档位,并根据步骤41中确定的个数,将该个数乘以最小调节档位所得到的乘积值确定为需对音量进行调节的档位,比如,若上述最小单位角度10°对应的预设音量最小调节档位为1档(根据实际情况,1档可能对应于10或者20分贝的音量等等),则需对音量进行调节的档位应该为3×1=3档;
步骤43,比较最小角度与90°的大小关系,并根据比较结果,按照确定的档位,对音量进行调节。
在本发明实施例中,可以将可控有源光束斜向上照射在光线感应单元的情况确定为将音量进行上调的情况,也可以将将可控有源光束斜向上照射在光线感应单元的情况确定为将音量进行下调的情况,但一般地,为了符合用户的使用习惯,优先采用将可控有源光束斜向上照射在光线感应单元的情况确定为将音量进行上调的情况,即在上述步骤43中,在比较结果为最小角度大于90°时,将音量上调确定的档位;而在比较结果为最小角度小于90°时,将音量下调确定的档位。In the embodiment of the present invention, the situation in which the controllable active light beam is irradiated obliquely on the light sensing unit can be determined as the situation in which the volume is raised, and the situation in which the controllable active light beam is irradiated obliquely on the light sensing unit It is determined that the volume is lowered, but in general, in order to meet the user's usage habits, the situation of irradiating the controllable active light beam obliquely upward on the light sensing unit is determined as the situation of increasing the volume, that is, in the above steps In 43, when the comparison result is that the minimum angle is greater than 90°, the volume is increased by a certain gear; and when the comparison result is that the minimum angle is less than 90°, the volume is lowered by a certain gear.
相应地,本发明实施例还提供一种音量调节装置,用以解决现有技术提供的非接触式调节方式存在的在较差的环境下难以准确捕获用户的行为信息,从而无法作出精确的音量调节的缺陷。本发明实施例提供的该装置的具体结构示意图如图5所示,包括以下功能单元:Correspondingly, the embodiment of the present invention also provides a volume adjustment device, which is used to solve the problem that it is difficult to accurately capture the user's behavior information in a poor environment in the non-contact adjustment method provided by the prior art, so that it is impossible to make an accurate volume adjustment. Regulatory defects. The specific structural diagram of the device provided by the embodiment of the present invention is shown in Figure 5, including the following functional units:
光线感应单元51,用于对照射在光线感应单元51上的可控有源光线进行探测;A light sensing unit 51, configured to detect the controllable active light irradiated on the light sensing unit 51;
确定单元52,用于确定光线感应单元51探测到的可控有源光线相对于光线感应单元51的角度的大小信息;A determining unit 52, configured to determine the size information of the controllable active light detected by the light sensing unit 51 relative to the angle of the light sensing unit 51;
音量调节单元53,用于根据确定单元52确定的角度的大小信息,对音量进行调节。The volume adjusting unit 53 is configured to adjust the volume according to the angle size information determined by the determining unit 52 .
在本发明实施例中,当可控有源光线为横截面为圆形的平行可控有源光束时,确定单元52的功能可以由以下功能模块来实现:In the embodiment of the present invention, when the controllable active light beam is a parallel controllable active light beam with a circular cross section, the function of the determination unit 52 can be realized by the following functional modules:
直径长度值确定模块,用于确定平行可控有源光束的圆形横截面的直径长度值;A diameter length value determination module, used to determine the diameter length value of the circular cross-section of the parallel controllable active light beam;
长轴长度值确定模块,用于当确定探测到的可控有源光束照射在光线感应单元上的截面为椭圆形时,确定椭圆形的长轴长度值;The major axis length value determination module is used to determine the major axis length value of the ellipse when it is determined that the detected controllable active light beam irradiated on the light sensing unit has an elliptical cross section;
角度大小确定模块,用于根据长轴长度值确定模块确定的长轴长度值以及直径长度值确定模块确定的直径长度值,确定可控有源光束相对于光线感应单元的角度的大小信息。The angle size determination module is used to determine the size information of the angle of the controllable active light beam relative to the light sensing unit according to the major axis length value determined by the major axis length value determination module and the diameter length value determined by the diameter length value determination module.
较佳地,若将可控有源光束相对于光线感应单元的角度定义为当光线感应单元所在平面按照顺时针方向旋转到与可控有源光线平行的位置时,该平面绕过的最小角度,则上述音量调节单元53可以进一步划分为以下功能模块,包括:Preferably, if the angle of the controllable active beam relative to the light sensing unit is defined as the minimum angle that the plane circumvents when the plane where the light sensing unit is located is rotated clockwise to a position parallel to the controllable active light , then the above-mentioned volume adjustment unit 53 can be further divided into the following functional modules, including:
个数确定模块,用于确定该最小角度与90°的角度之差,并根据角度之差与预设的对音量进行调节的最小单位角度,确定该角度之差所包含的最小单位角度的个数;The number determination module is used to determine the difference between the minimum angle and the angle of 90°, and determine the number of the minimum unit angle contained in the angle difference according to the angle difference and the preset minimum unit angle for adjusting the volume. number;
档位确定模块,用于确定最小单位角度所对应的预设音量最小调节档位,并根据个数确定模块确定的个数,将确定的个数乘以最小调节档位所得到的乘积值确定为需对音量进行调节的档位;The gear determination module is used to determine the preset volume minimum adjustment gear corresponding to the minimum unit angle, and according to the number determined by the number determination module, the product value obtained by multiplying the determined number by the minimum adjustment gear is determined It is the position where the volume needs to be adjusted;
比较模块,用于比较最小角度与90°的大小关系;Comparison module, used to compare the size relationship between the minimum angle and 90°;
音量调节模块,用于根据比较模块得到的比较结果,按照档位确定模块确定的档位,对音量进行调节。The volume adjustment module is used to adjust the volume according to the gear position determined by the gear position determination module according to the comparison result obtained by the comparison module.
进一步地,对应于音量调节模块功能的一种实现方式,在本发明实施例中,还可以进一步将音量调节模块划分为以下功能子模块,包括:Furthermore, corresponding to an implementation of the function of the volume adjustment module, in the embodiment of the present invention, the volume adjustment module can be further divided into the following functional sub-modules, including:
音量上调子模块,用于在比较模块得到的比较结果为最小角度大于90°时,将音量上调确定的档位;音量下调子模块,用于在比较模块得到的比较结果为最小角度小于90°时,将音量下调确定的档位。The volume up sub-module is used to adjust the volume up to a determined gear when the comparison result obtained by the comparison module is that the minimum angle is greater than 90°; the volume down sub-module is used to obtain the comparison result obtained by the comparison module when the minimum angle is less than 90° , turn down the volume by a certain level.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010234473.XA CN102340584B (en) | 2010-07-20 | 2010-07-20 | Method and device for adjusting sound volume |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010234473.XA CN102340584B (en) | 2010-07-20 | 2010-07-20 | Method and device for adjusting sound volume |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102340584A CN102340584A (en) | 2012-02-01 |
CN102340584B true CN102340584B (en) | 2013-09-18 |
Family
ID=45516078
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010234473.XA Active CN102340584B (en) | 2010-07-20 | 2010-07-20 | Method and device for adjusting sound volume |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102340584B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104601126B (en) * | 2015-01-14 | 2017-11-07 | 小米科技有限责任公司 | The method and apparatus for adjusting volume |
CN104597795A (en) * | 2015-01-30 | 2015-05-06 | 成都上生活网络科技有限公司 | Non-contact type volume adjusting device and method |
CN105979358A (en) * | 2016-05-05 | 2016-09-28 | 青岛海信电器股份有限公司 | Volume adjusting method and apparatus and smart terminal |
CN108476555B (en) * | 2016-10-31 | 2021-05-11 | 华为技术有限公司 | Audio processing method and terminal device |
CN107231479A (en) * | 2017-06-05 | 2017-10-03 | 努比亚技术有限公司 | Call control method, mobile terminal and computer-readable recording medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101295994A (en) * | 2007-04-26 | 2008-10-29 | 鸿富锦精密工业(深圳)有限公司 | mobile communication device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3659701B2 (en) * | 1995-08-09 | 2005-06-15 | 三菱電機株式会社 | Angle detection method and angle detection apparatus |
-
2010
- 2010-07-20 CN CN201010234473.XA patent/CN102340584B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101295994A (en) * | 2007-04-26 | 2008-10-29 | 鸿富锦精密工业(深圳)有限公司 | mobile communication device |
Non-Patent Citations (1)
Title |
---|
JP特开平9-49733A 1997.02.18 |
Also Published As
Publication number | Publication date |
---|---|
CN102340584A (en) | 2012-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6315354B2 (en) | Frequency conversion in touch sensor | |
CN102340584B (en) | Method and device for adjusting sound volume | |
JP6487935B2 (en) | System and method for identifying user, hand, and object by orthogonal signaling touch | |
EP2766797B1 (en) | Improved multi-touch detection in a touch system | |
TWI498785B (en) | Touch sensor apparatus and touch point detection method | |
US7755026B2 (en) | Generating signals representative of sensed light that is associated with writing being done by a user | |
US11644901B2 (en) | Method and device for detecting a user input on the basis of a gesture | |
US20150131852A1 (en) | Object position determination | |
US20110298753A1 (en) | Optical touch panel and touch display panel and touch input method thereof | |
US20070103440A1 (en) | Optical tracker | |
CN100555179C (en) | A kind of based on cmos digital imageing sensor locating device and localization method | |
JP2017509955A (en) | Dynamic allocation of possible channels in touch sensors | |
JP2017507406A (en) | Apparatus and method for operating with reduced sensitivity in a touch sensing device | |
US20070103441A1 (en) | Optical tracker for tracking surface-independent movements | |
CN104142739B (en) | Laser point tracking system and method based on optical mouse sensing array | |
US20160334937A1 (en) | Optical touch device and sensing method thereof | |
CN103902109A (en) | Touch screen, display panel and display device | |
WO2018098771A1 (en) | Method for determining azimuthal angle or posture, touch input device, touch panel, and system | |
CN104457709A (en) | Distance detection method of and electronic equipment | |
CN203870596U (en) | Touch screen, display panel and display device | |
CN106033257B (en) | A kind of control method and device | |
US20160132143A1 (en) | Optical touch module and touch detecting method thereof | |
CN105988640A (en) | Optical touch device and touch detection method thereof | |
TW201007520A (en) | 3-dimensional interactive display and method for detecting 3-dimensional coordinates thereof | |
CN103529956A (en) | Pointing device and rotation processing 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 |