CN105045765B - Blinking Index led one kind of measuring method and a user terminal - Google Patents

Blinking Index led one kind of measuring method and a user terminal Download PDF

Info

Publication number
CN105045765B
CN105045765B CN201510395179.XA CN201510395179A CN105045765B CN 105045765 B CN105045765 B CN 105045765B CN 201510395179 A CN201510395179 A CN 201510395179A CN 105045765 B CN105045765 B CN 105045765B
Authority
CN
China
Prior art keywords
variance
target
number
frequency
flicker
Prior art date
Application number
CN201510395179.XA
Other languages
Chinese (zh)
Other versions
CN105045765A (en
Inventor
祝安
李景治
Original Assignee
南方科技大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 南方科技大学 filed Critical 南方科技大学
Priority to CN201510395179.XA priority Critical patent/CN105045765B/en
Publication of CN105045765A publication Critical patent/CN105045765A/en
Application granted granted Critical
Publication of CN105045765B publication Critical patent/CN105045765B/en

Links

Abstract

本发明实施例公开了一种LED灯闪烁指数测量方法及用户终端,其中方法包括:通过摄像头在预设时间段内拍摄预设数量的图片;从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X;对所有的所述数量X求平均值X;利用所述平均值X以及所有的所述数量X计算目标方差S;将所述目标方差S作为闪烁指数进行输出。 Embodiments of the present invention discloses an LED lamp flicker index measuring method and a user terminal, wherein the method comprises: a camera by photographing a preset time period preset number of images; determining from the same position of each captured two pictures obtained, and the pixels are not the same color saturation quantity X; X X averaging all of said number; X, and using the average value of all the calculated target amount of the variance S X; the target as the variance S flashing index for output. 可见,通过本发明实施例能够通过随身携带的用户终端便利地识别LED灯的闪烁指数。 Seen, embodiments of the present invention, the user can be conveniently carried by the portable terminal recognizes the index of the LED lamp blinking.

Description

一种LED灯闪烁指数测量方法及用户终端 An LED lamp flicker index measuring method and a user terminal

技术领域 FIELD

[0001] 本发明涉及电子技术领域,尤其涉及一种LED灯闪烁指数测量方法及用户终端。 [0001] The present invention relates to electronic technologies, and in particular, relates to an LED lamp flicker index measuring method and a user terminal.

背景技术 Background technique

[0002] 随着LED灯的逐渐普及,LED灯可以节约大量电能的同时也带来新的问题。 While [0002] With the increasing popularity of LED lights, LED lights can save a lot of energy but also create new problems. LED灯通常是采用PWM (Pulse Width Modulation,脉冲宽度调制)信号来控制的,P丽信号本身有一定的频率,会造成LED灯闪烁的问题。 LED light is typically a PWM (Pulse Width Modulation, Pulse Width Modulation) control signal, P Li itself has a certain frequency signal, will result in the LED flashing problems. 特别地,Pmi频率越低,LED灯闪烁问题就越严重。 In particular, the lower the frequency Pmi, more serious problem LED flashes. 但是大多数LED灯的闪烁情况是人的肉眼无法识别的。 However, most of the LED lamp flickering is not recognized by the human eye. 而想识别LED灯的闪烁指数(如闪烁频率) 通常又要用专业的仪器来识别。 And want to identify the LED lamp flicker index (e.g., the flicker frequency) usually have to be identified using specialized equipment. 这种专业仪器不仅昂贵也不适合随身携带,因此,使用专业仪器对LED灯的闪烁指数进行测量并不便捷。 This is not only expensive professional equipment suitable to carry, therefore, the use of specialized equipment for the LED lamp blinking index is measured is not convenient.

发明内容 SUMMARY

[0003] 本发明实施例公开了一种LED灯闪烁指数测量方法及用户终端,能够通过随身携带的用户终端便利地识别LED灯的闪烁指数。 Example discloses an LED lamp flicker index measuring method and a user terminal, a user can carry the portable terminal conveniently through the identification of the LED lamp blinking index of [0003] the present invention.

[0004] 本发明实施例公开了一种LED灯闪烁指数测量方法,所述方法包括: [0004] Example embodiments of the present invention discloses an LED lamp flicker index measuring method, the method comprising:

[0005] 通过摄像头在预设时间段内拍摄预设数量的图片; [0005] to shoot the preset number of pictures in a preset period of time through the camera;

[0006] 从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X; [0006] the number of pixels of the same position and the same color saturation is not determined from the pictures taken every two X-obtained;

[0007] 对所有的所述数量X求平均值:Ϋ; [0007] X averaging all of said number: Ϋ;

[0008] 利用所述平均值X以及所有的所述数量X计算目标方差S; Calculating a target variance S [0008] X, and all of using the average value of the number X;

[0009] 将所述目标方差S作为闪烁指数进行输出。 [0009] The variance S of the target output as a flicker index.

[0010] 本发明实施例还公开了一种用户终端,所述用户终端包括: [0010] Example embodiments of the present invention also discloses a user terminal, the user terminal comprising:

[0011] 拍摄模块,用于通过摄像头在预设时间段内拍摄预设数量的图片; [0011] camera module, a camera for a preset time period by a preset number of images captured;

[0012] 确定模块,用于从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X; [0012] determining module, the number of pixels of the same position and the same color saturation is not determined from the pictures taken every two X-obtained;

[0013] 计算模块,用于对所有的所述数量X求平均值 [0013] calculation means for all of the number of X averaging

Figure CN105045765BD00041

[0014] 所述计算模块,还用于利用所述平均值 [0014] The computing module is further configured to use the average value

Figure CN105045765BD00042

以及所有的所述数量X计算目标方差S; And all the variance calculating the target number X S;

[0015] 输出模块,用于将所述目标方差S作为闪烁指数进行输出。 [0015] Output module, the variance for the target S as a flicker index outputs.

[0016] 在本发明实施例中,用户终端通过摄像头在预设时间段内拍摄预设数量的图片之后,将从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X, 并对所有的数量X求平均值 [0016] In an embodiment of the present invention, the user terminal through the camera preset period of time after a predetermined number of captured images, each of two images photographed in the same position is determined, and the color saturation different from the pixel point number X, and X number of averaging all

Figure CN105045765BD00043

> 利用平均值 > Using the mean

Figure CN105045765BD00044

以及所有的数量X计算目标方差S;用户终端将目标方差S作为闪烁指数进行输出。 X and calculating a target quantity of all variance S; S user terminal as a target variance flicker index outputs. 当方差较大时,LED灯闪烁得较快,当方差较小时,LED灯闪烁得越慢。 When large variance, LED lights blink faster, when the variance is small, LED lights flashing slower. 可见,通过本发明实施例能够通过随身携带的用户终端便利地识别LED灯的闪烁指数。 Seen, embodiments of the present invention, the user can be conveniently carried by the portable terminal recognizes the index of the LED lamp blinking.

附图说明 BRIEF DESCRIPTION

[0017] 为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings are briefly introduced as required for use in the embodiments describing the embodiments. Apparently, the drawings in the following description are some embodiments of the present invention. , those of ordinary skill in the art is concerned, without creative efforts, can obtain other drawings based on these drawings.

[0018] 图1是本发明实施例公开的一种LED灯闪烁指数测量方法的流程示意图; [0018] FIG. 1 is an LED lamp according to the present embodiment of the invention disclosed schematic flowchart of a method of flicker index measurement;

[0019] 图2是本发明实施例公开的另一种LED灯闪烁指数测量方法的流程示意图; [0019] FIG. 2 is another schematic view of an LED lamp disclosed embodiment scintillation index measurement flow of the method of the present embodiment of the invention;

[0020] 图3是本发明实施例公开的另一种LED灯闪烁指数测量方法的流程示意图; [0020] FIG. 3 is another embodiment of an LED lamp disclosed schematic flowchart of a method of flicker index measurement embodiment of the present invention;

[0021] 图4是本发明实施例公开的一种用户终端的结构示意图; [0021] FIG. 4 is a schematic structure of a user terminal according to the disclosed embodiment of the present invention;

[0022] 图5是本发明实施例公开的另一种用户终端的结构示意图; [0022] FIG. 5 is a schematic diagram of another embodiment of a user terminal disclosed embodiment of the present invention;

[0023] 图6是本发明实施例公开的另一种用户终端的结构示意图。 [0023] FIG. 6 is a schematic diagram of another embodiment of a user terminal disclosed embodiment of the present invention.

具体实施方式 Detailed ways

[0024] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0024] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are part of the embodiments of the present invention rather than all embodiments . 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0025] 本发明实施例公开了一种LED灯闪烁指数测量方法及用户终端,能够通过随身携带的用户终端便利地识别LED灯的闪烁指数。 Example discloses an LED lamp flicker index measuring method and a user terminal [0025] the present invention, can be carried conveniently by the portable terminal user to identify the index of the LED lamp blinking. 以下分别进行详细说明。 The following are described in detail.

[0026] 请参见图1,图1为本发明实施例公开的一种LED灯闪烁指数测量方法的流程示意图。 [0026] Referring to FIG. 1, FIG. 1 is a schematic flow diagram of an LED lamp disclosed embodiment flicker index measuring method of the embodiment of the invention. 如图1所示,该LED灯闪烁指数测量方法可以包括以下步骤。 1, the flicker index of the LED light measuring method includes the following steps.

[0027] SlOl、通过摄像头在预设时间段内拍摄预设数量的图片。 [0027] SlOl, shoot the preset number of pictures in a preset period of time through the camera.

[0028] 本发明实施例中,由用户终端通过摄像头在预设时间段内拍摄预设数量的图片。 Embodiment [0028] of the present invention, the terminal number of pictures captured at a preset time period preset by the user through the camera. 其中,该用户终端可包括但不限于智能手机、掌上电脑、笔记本电脑和台式电脑等具有拍摄功能的用户终端。 Wherein, the user terminal may include, but are not limited to, smart phones, PDAs, notebook and desktop computers, the user terminal having a photograph function. 该用户终端的操作系统可包括但不限于Android操作系统、IOS操作系统、 Symbian (塞班)操作系统、Black Berry (黑莓)操作系统、Windows Phone8操作系统等等,本发明实施例不做限定。 Operating system of the user terminal may include, but are not limited to, the Android operating system, the IOS operating system, the Symbian (Symbian) operating system, Black Berry (Blackberry) operating system, Windows Phone8 operating system or the like, not limited in embodiments of the present invention.

[0029] 本发明实施例中,当用户想要对LED灯的闪烁指数(闪烁指数用于表征LED灯闪烁的快慢,如可包括闪烁频率)进行测量时,用户可将用户终端的摄像头对准LED灯,并通过用户终端的功能按钮输入用于对LED灯的闪烁指数进行测量的闪烁指数测量指令。 [0029] The embodiments of the present invention, when the user wants to index flashing LED lamp (flicker index for characterizing the LED blinking speed, such as may include a flashing frequency) measurement, the user can align the camera user terminal LED lights, and the input function button by the user terminal for flicker index of the LED lamp blinking index measuring measurement instruction. 当用户终端接收到闪烁指数测量指令之后,将响应该闪烁指数测量指令,通过摄像头在预设时间段内拍摄预设数量的图片。 When the user terminal receives the measurement instruction flicker index, the measurement instruction in response to the flicker index, a preset number of images captured for a preset time through the camera. 其中,预设数量大于1,例如可以为1〇、15或20,本发明实施例不做限定。 Wherein the preset number is greater than 1, for example, it may be 1〇, 15 or 20, not limited in embodiments of the present invention.

[0030] S102、从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X。 [0030] S102, the number of pixels of the same location, and determining the color saturation different from each of the two pictures captured by X.

[0031] 本发明实施例中,用户终端拍摄完预设数量的图片之后,将对拍摄得到的图片进行两两对比,以从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X。 [0031] After embodiment, the user terminal preset number of pictures you have taken embodiment of the present invention, will be captured by the image pairwise comparison, every two images obtained from the same shooting location is determined, and the color saturation is not the same number of pixels of X.

[0032] 举例来说,若用户终端拍摄了3张图片,分别为图片A、图片B和图片C,从3张图片中取出2张图片的组合数为C (3,2),因此,用户终端将进行3次图片的对比,即用户终端将图片A与图片B进行对比,将图片A与图片C进行对比,将图片B与图片C进行对比。 [0032] For example, if the user terminal 3 captured images, images are A, B, and image C pictures, two pictures taken from the picture number 3 is a combination of C (3,2), and therefore, the user the terminal will compare three images, i.e., the user terminal a and the image B to image contrast, the image a and the image contrast C, the image B and image C were compared. 用户终端将两张图片进行对比,以获取两张图片中位置相同、且色彩饱和度不相同的像素点的数量X。 The user terminal comparing the two images, two images to get the same location, and color saturation are not the same number of pixels X. 例如, 用户终端将图片A和图片B进行对比时,若图片A和图片B有10*10个像素点,则用户终端对比图片A的第一排第一列的像素点的色彩饱和度与图片B的第一排第一列的像素点的色彩饱和度是否相同,对比图片A的第一排第二列的像素点的色彩饱和度与图片B的第一排第二列的像素点的色彩饱和度是否相同,…,对比图片A的第十排第十列的像素点的色彩饱和度与图片B的第十排第十列的像素点的色彩饱和度是否相同。 For example, a user terminal A and the image B to image contrast, if the image A and image B have 10 * 10 pixels, the pixels of the user terminal A of the first comparison image row in the first column of the image and color saturation color saturation pixel of the first row of the first column B is the same color pixels of the pixel of the first row second column a picture contrast and color saturation of the picture B of a first row of the second column saturation is the same, ..., color saturation of the pixels of the tenth column of the pixel rows of the tenth image contrast and color saturation of the a B picture is the tenth row of the tenth column are the same. 若用户终端对比图片A的第一排第一列的像素点的色彩饱和度与图片B的第一排第一列的像素点的色彩饱和度不相同,图片A 的第一排第二列的像素点的色彩饱和度与图片B的第一排第二列的像素点的色彩饱和度不相同,则用户终端确定图片A与图片B中位置相同、且色彩饱和度不相同的像素点的数量X为2〇 If the color of pixels in the user terminal A contrast image of a first row of the first column saturation and color saturation pixel of the first row of the first column B pictures are not the same, the second column of the first row of image A pixel color saturation of pixel color saturation and image B in the first row of the second column are not the same, the user terminal determines that the image a and the image B the same location, and color saturation are not the same number of pixels X is 2〇

[0033] 若图片A和图片B有10*10个像素点,若用户终端对比确定图片A与图片B中位置相同、且色彩饱和度不相同的像素点的数量X为100,则说明两张图片拍摄的环境不同,则LED 灯可能正在闪动。 [0033] When the image A and image B have 10 * 10 pixels, if the user terminal A and the comparison image to determine the position B in the same image, and the color saturation is not the same number of pixel X is 100, then the two different pictures taken of the environment, the LED lights might be blinking.

[0034] S103、对所有的数量X求平均值 [0034] S103, X, averaging all of the number of

Figure CN105045765BD00061

[0035] 本发明实施例中,用户终端确定完每两张图片中的位置相同、且色彩饱和度不相同的像素点的数量X之后,将对所有的数量X求取平均值 After embodiment, the user terminal determines that the pixel completely in the same position every two pictures and the color saturation is not the same number as X Embodiment [0035] In the present invention, will all quantities were averaged X

Figure CN105045765BD00062

[0036] 举例来说,若用户终端拍摄了4张图片,则用户终端将确定C (4,2)个数量X (即6个数量X ),若确定的6个数量X的值分别为1 0、2 0、3 0、1 0、2 0、3 0,则平均值 [0036] For example, when the user terminal 4 photographed images, the user terminal will determine the C (4,2) orders of X (i.e., the number of X 6), if the determined value of the quantity X 6 are 1 0,2 0,3 0,1 0,2 0,3 0, the average value

Figure CN105045765BD00063

[0037] S104、利用平均值以及所有的数量X计算目标方差S。 [0037] S104, the variance is calculated using the average value of the target and all the number of X S.

Figure CN105045765BD00064

[0038] 本发明实施例中,用户终端将利用平均值以及所有的数量X计算目标方差S。 [0038] Example embodiments of the present invention, the user terminal will use all mean and variance calculating the target quantity X S. can

Figure CN105045765BD00065

选的,目标方差 Election, the target variance

Figure CN105045765BD00066

,其中,C (η,2)为组合数,η为拍摄的图片数量,Xi为每两张图片中确定的位置相同、且色彩饱和度不相同的像素点的数量X。 Wherein, C (η, 2) is the number of combinations, [eta] is the number of pictures taken, each of two images Xi same position determined, and the color saturation is not the same number of pixels X.

[0039] 例如,若η等于3,则C (η,2)等于3,则用户终端将确定3个数量X,分别为Xl、Χ2和Χ3, 则 [0039] For example, if [eta] is equal to 3, C (η, 2) is equal to 3, the user terminal 3 will determine the number of X, respectively, Xl, X2 and x3, the

Figure CN105045765BD00067

[0040] S105、将目标方差S作为闪烁指数进行输出。 [0040] S105, the target flicker index as the variance S is output.

[0041] 本发明实施例中,用户终端计算得到目标方式S之后,将目标方差S作为闪烁指数进行输出,以使用户可以查看闪烁指数。 After embodiment, the user terminal calculates the target obtained embodiment Embodiment S [0041] the present invention, the variance S of the target output as a flicker index, so that the user can view the flicker index.

[0042] 在实际应用中,方差越大,数据在平均数附近波动较大;方差越小,数据在平均数附近波动较小。 [0042], in practice the greater the variance, the data in the vicinity of volatile average; the smaller the variance, the data fluctuation is small in the vicinity of the average. 因此,本发明实施例中,当方差较大时,LED灯闪烁得较快,当方差较小时, LED灯闪烁得越慢。 Thus, embodiments of the present invention, when a large variance, LED lights blink faster, when the variance is small, LED lights flashing slower.

[0043] 在图1所描述的方法中,用户终端通过摄像头在预设时间段内拍摄预设数量的图片之后,将从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X,并对所有的数量X求平均值:F ,利用平均值J以及所有的数量X计算目标方差S;用户终端将目标方差S作为闪烁指数进行输出。 [0043] In the method described in FIG. 1, each of two images through the camera user terminal preset period of time after a predetermined number of captured images, captured by the determining from the same position and the same color saturation is not the number of pixels of X, and X averaging all quantities: F, the variance S is calculated using the average of the target and all the number of J X; target user terminal flicker index as the variance S is output. 当方差较大时,LED灯闪烁得较快,当方差较小时, LED灯闪烁得越慢。 When large variance, LED lights blink faster, when the variance is small, LED lights flashing slower. 可见,通过本发明实施例能够通过随身携带的用户终端便利地识别LED 灯的闪烁指数。 Seen, embodiments of the present invention, the user can be conveniently carried by the portable terminal recognizes the index of the LED lamp blinking.

[0044] 请参见图2,图2为本发明实施例公开的另一种LED灯闪烁指数测量方法的流程示意图。 [0044] Referring to FIG. 2, FIG. 2 is a schematic flow diagram of another embodiment of the disclosed LED flashes index measuring method of the embodiment of the invention. 如图2所示,该LED灯闪烁指数测量方法可以包括以下步骤。 2, the flicker index measuring method of the LED lamp may comprise the following steps.

[0045] S201、通过摄像头在预设时间段内拍摄预设数量的图片。 [0045] S201, through the camera to shoot the preset number of pictures in a preset period of time.

[0046] S202、从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X。 [0046] S202, the number of pixels of the same location, and determining the color saturation different from each of the two pictures captured by X.

[0047] S203、对所有的数量X求平均值 [0047] S203, X, averaging all of the number of

Figure CN105045765BD00071

,

[0048] S204、利用平均值以及所有的数量X计算目标方差S。 [0048] S204, the variance is calculated using the average value of the target and all the number of X S.

Figure CN105045765BD00072

[0049] S205、将目标方差S作为闪烁指数进行输出。 [0049] S205, the target flicker index as the variance S is output.

[0050] S206、判断目标方差S是否小于预设方差值。 [0050] S206, the target determines the variance S is less than a predetermined variance value.

[0051] 本发明实施例中,在用户终端利用平均值 Embodiment [0051] In the present invention, the user terminal using an average

Figure CN105045765BD00073

以及所有的数量X计算目标方差S之后,用户终端将判断目标方差S是否小于预设方差值。 After all the number X and calculates a target variance S, the user terminal determines the variance S is less than a preset target variance value. 若目标方差S小于预设方差值则执行步骤S207。 If the target is less than a predetermined variance value of the variance S is performed in step S207.

[0052] 本发明实施例中,步骤S206〜步骤S207与步骤S205没有时序之分,可在用户终端将目标方差S作为闪烁指数进行输出之后,执行步骤S206〜步骤S207;也可在用户终端将目标方差S作为闪烁指数进行输出之前,执行步骤S206〜步骤S207,本发明实施例不做限定。 [0052] In an embodiment, step S207 and step S205 a step S206~ no timing points, after the user terminal can be the target output as the variance S flicker index, step S207 to step S206~ present invention; may be the user terminal prior to the target output as the variance S flicker index, step S206~ step S207, the invention is not limited in the present embodiment.

[0053] S207、若目标方差S小于预设方差值,则输出闪烁频率过低的告警信息。 [0053] S207, when the variance S is smaller than the preset target variance value, the output frequency is too low flashing alarms.

[0054] 本发明实施例中,若用户终端判断目标方差S小于预设方差值,则用户终端输出闪烁频率过低的告警信息。 [0054] Example embodiments of the present invention, if the user terminal determines the variance S is smaller than the preset target variance value, the user terminal outputs a low frequency flashing alarm information. 其中,用户终端可输出闪烁频率过低的文字告警信息,或输出闪烁频率过低的语音告警信息,本发明实施例不做限定。 Wherein, the user terminal may output a low frequency flicker alarm text message, or a low frequency output of the scintillator voice alarm information, is not limited in embodiments of the present invention.

[0055] 在实际应用中,若目标方差S较小则说明LED灯的闪烁频率较低,当LED灯的闪烁频率较低时,将对用户眼睛造成较大的伤害。 [0055] In practice, when the variance S is small then the target low flashing frequency of the LED lamp, when the LED light flicker frequency is low, it will cause greater harm to the user's eyes. 因此,本发明实施例通过当目标方差S小于预设方差值时,输出闪烁频率过低的告警信息,可提醒用户LED灯当前闪烁频率过低,使用户知道LED灯当前闪烁频率对眼睛将造成较大伤害,从而能够及时采取眼睛保护措施,提升了用户体验。 Accordingly, embodiments of the present invention by the target when the variance S is less than a predetermined variance value, the output frequency is too low flashing alarm information, can remind the user to blink the LED current frequency is too low, so that the user knows the current LED light will blink frequency of the eyes cause greater damage, it is possible to take timely measures to protect the eyes, enhance the user experience.

[0056] 请参见图3,图3为本发明实施例公开的另一种LED灯闪烁指数测量方法的流程示意图。 [0056] Referring to FIG. 3, FIG. 3 a schematic flow chart of another embodiment of the disclosed LED flashes index measuring method of the embodiment of the present invention. 如图3所示,该LED灯闪烁指数测量方法可以包括以下步骤。 3, the flicker index measuring method of the LED lamp may comprise the following steps.

[0057] S301、通过摄像头在预设时间段内拍摄预设数量的图片。 [0057] S301, through the camera to shoot the preset number of pictures in a preset period of time.

[0058] S302、从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X。 [0058] S302, the number of pixels of the same location, and determining the color saturation different from each of the two pictures captured by X.

[0059] S303、对所有的数量X求平均值 [0059] S303, X, averaging all of the number of

Figure CN105045765BD00074

[0060] S304、利用平均值以及所有的数量X计算目标方差S。 [0060] S304, the variance is calculated using the average value of the target and all the number of X S.

Figure CN105045765BD00075

[0061] S305、将目标方差S作为闪烁指数进行输出。 [0061] S305, the target flicker index as the variance S is output.

[0062] S306、根据预先设定的方差与闪烁频率的对应关系,获取与目标方差S对应的目标闪烁频率。 [0062] S306, the variance of the scintillator according to the correspondence set in advance frequency, obtaining the variance with the target corresponding to the target S flicker frequency.

[0063] 本发明实施例中,用户终端可预先设置方差与闪烁频率的对应关系。 [0063] Example embodiments of the present invention, the user terminal can set the flicker frequency variance corresponding relationship in advance. 当用户终端利用平均值以及所有的数量X计算目标方差S之后,用户终端将根据预先设定的方差与闪 After calculating the target user terminal uses the average of the variance S and the number of all the X, the user terminal based on a preset flash variance

Figure CN105045765BD00081

烁频率的对应关系,获取与目标方差S对应的目标闪烁频率。 Blinking frequency correspondence relationship, the target acquires the variance S corresponding target flicker frequency.

[0064] 本发明实施例中,步骤S306〜步骤S309与步骤S305没有时序之分,可在用户终端将目标方差S作为闪烁指数进行输出之后,执行步骤S306〜步骤S309;也可在用户终端将目标方差S作为闪烁指数进行输出之前,执行步骤S306〜步骤S309,本发明实施例不做限定。 [0064] In an embodiment, the step of step S309 and step S305 S306~ no timing points, after the user terminal can be the target output as the variance S flicker index, step S309 to step S306~ present invention; may be the user terminal prior to the target output as the variance S flicker index, step S306~ step S309, the invention is not limited in the present embodiment.

[0065] S307、输出目标闪烁频率。 [0065] S307, output destination flicker frequency.

[0066] 本发明实施例中,用户终端获取目标闪烁频率之后,将输出目标闪烁频率,以使用户查看目标闪烁频率。 Embodiment [0066] of the present invention, after the target user terminal acquires the flicker frequency, the flicker frequency output destination, to enable the user to view the target flicker frequency.

[0067] S308、判断目标闪烁频率是否小于预设闪烁频率。 [0067] S308, the target determines whether the flicker frequency less than a preset flicker frequency.

[0068] 本发明实施例中,用户终端在获取目标闪烁频率之后,将判断目标闪烁频率是否小于预设闪烁频率。 [0068] Example embodiments of the present invention, the user terminal after acquiring the target flicker frequency, the flicker frequency is judged less than a preset target flicker frequency. 当用户终端判断目标闪烁频率小于预设闪烁频率时,执行步骤S309。 When the user terminal determines the target frequency is less than a preset flicker flicker frequency, step S309.

[0069] S309、若目标闪烁频率小于预设闪烁频率,则输出闪烁频率过低的告警信息。 [0069] S309, when the target frequency is less than the preset flicker flicker frequency, the flicker frequency low output alarm information.

[0070] 本发明实施例中,若用户终端判断目标闪烁频率小于预设闪烁频率,则用户终端输出闪烁频率过低的告警信息。 [0070] The embodiments of the present invention, the user terminal determines if the frequency is less than a predetermined glint flicker frequency, the flicker frequency is too low the user terminal outputs the alarm information. 其中,用户终端可输出闪烁频率过低的文字告警信息,或输出闪烁频率过低的语音告警信息,本发明实施例不做限定。 Wherein, the user terminal may output a low frequency flicker alarm text message, or a low frequency output of the scintillator voice alarm information, is not limited in embodiments of the present invention.

[0071] 在实际应用中,当LED灯的闪烁频率较低时,将对用户眼睛造成较大的伤害。 [0071] In practice, when the LED light flicker frequency is low, it would cause greater damage to the user's eyes. 因此, 本发明实施例通过当目标闪烁频率小于预设闪烁频率时,输出闪烁频率过低的告警信息, 可提醒用户LED灯当前闪烁频率过低,使用户知道LED灯当前闪烁频率对眼睛将造成较大伤害,从而能够及时采取眼睛保护措施,提升了用户体验。 Thus, embodiments of the present invention will flicker when the target frequency is less than a preset flicker frequency, flicker frequency low output alarm information, can remind the user to blink the LED current frequency is too low, so that the user knows the LED current will cause flicker frequency of the eye greater damage, it is possible to take timely measures to protect the eyes, enhance the user experience.

[0072] 请参阅图4,图4是本发明实施例公开的一种用户终端的结构示意图。 [0072] Please refer to FIG. 4, FIG. 4 is a schematic structure of a user terminal according to the disclosed embodiment of the present invention. 其中,图4所示的用户终端可以包括拍摄模块401、确定模块402、计算模块403和输出模块404。 Wherein the user terminal shown in FIG. 4 may include a camera module 401, a determining module 402, calculation module 403 and output module 404. 其中: among them:

[0073] 拍摄模块401,用于通过摄像头在预设时间段内拍摄预设数量的图片。 [0073] The camera module 401 for photographing a preset number of images for a preset time through the camera.

[0074] 本发明实施例中,由用户终端的拍摄模块401通过摄像头在预设时间段内拍摄预设数量的图片。 Embodiment [0074] of the present invention, a predetermined number of image 401 photographed in the photographing module by a preset period of time the user terminal through the camera. 其中,该用户终端可包括但不限于智能手机、掌上电脑、笔记本电脑和台式电脑等具有拍摄功能的用户终端。 Wherein, the user terminal may include, but are not limited to, smart phones, PDAs, notebook and desktop computers, the user terminal having a photograph function. 该用户终端的操作系统可包括但不限于Android操作系统、IOS操作系统、Symbian (塞班)操作系统、Black Berry (黑莓)操作系统、Windows Phone8 操作系统等等,本发明实施例不做限定。 Operating system of the user terminal may include, but are not limited to, the Android operating system, the IOS operating system, the Symbian (Symbian) operating system, Black Berry (Blackberry) operating system, Windows Phone8 operating system or the like, not limited in embodiments of the present invention.

[0075] 本发明实施例中,当用户想要对LED灯的闪烁指数(闪烁指数用于表征LED灯闪烁的快慢,如可包括闪烁频率)进行测量时,用户可将用户终端的摄像头对准LED灯,并通过用户终端的功能按钮输入用于对LED灯的闪烁指数进行测量的闪烁指数测量指令。 [0075] The embodiments of the present invention, when the user wants to index flashing LED lamp (flicker index for characterizing the LED blinking speed, such as may include a flashing frequency) measurement, the user can align the camera user terminal LED lights, and the input function button by the user terminal for flicker index of the LED lamp blinking index measuring measurement instruction. 当用户终端接收到闪烁指数测量指令之后,拍摄模块401将响应该闪烁指数测量指令,通过摄像头在预设时间段内拍摄预设数量的图片。 When the user terminal receives the measurement instruction flicker index, the photographing module 401 will respond to the flicker index measurement instruction, a preset number of images captured for a preset time through the camera. 其中,预设数量大于1,例如可以为1〇、15或20,本发明实施例不做限定。 Wherein the preset number is greater than 1, for example, it may be 1〇, 15 or 20, not limited in embodiments of the present invention.

[0076] 确定模块402,用于从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X。 [0076] The determining module 402, the number of pixels of the same location, and determining the color saturation different from each of the two pictures captured by X.

[0077] 本发明实施例中,拍摄模块401拍摄完预设数量的图片之后,确定模块402将对拍摄得到的图片进行两两对比,以从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X。 Embodiment [0077] In the present invention, the photographing module 401 after completing a predetermined number of captured images, image determination module 402 will be captured by pairwise comparison, every two pictures obtained from the same shooting location is determined, and the number of different color saturation of the pixel X.

[0078] 举例来说,若拍摄模块401拍摄了3张图片,分别为图片A、图片B和图片C,从3张图片中取出2张图片的组合数为C (3,2),因此,确定模块402将进行3次图片的对比,即确定模块402将图片A与图片B进行对比,将图片A与图片C进行对比,将图片B与图片C进行对比。 [0078] For example, if the imaging module 401 image shot 3, respectively, image A, image B and image C, the number of combinations of the two images from three images for C (3,2), and therefore, determination module 402 will compare three images, i.e., the image determination module 402 a and image B are compared, the image a and image contrast C, the image B and image C were compared. 确定模块402将两张图片进行对比,以获取两张图片中位置相同、且色彩饱和度不相同的像素点的数量X。 Number determination module 402 will compare two images, two images to get the same location, and color saturation of the pixel is not the same point X. 例如,确定模块402将图片A和图片B进行对比时,若图片A和图片B有10* 10个像素点,则确定模块402对比图片A的第一排第一列的像素点的色彩饱和度与图片B的第一排第一列的像素点的色彩饱和度是否相同,对比图片A的第一排第二列的像素点的色彩饱和度与图片B的第一排第二列的像素点的色彩饱和度是否相同,…,对比图片A的第十排第十列的像素点的色彩饱和度与图片B的第十排第十列的像素点的色彩饱和度是否相同。 For example, determining module 402 when the image A and image B are compared, if the image A and image B have 10 * 10 pixels, a pixel color saturation point of the first row of the first column of images A comparison module 402 is determined color saturation is the same as the first column of pixels in the first row of the picture B, the first row of the second column of pixels in the second column of the first row a comparative image and color saturation of image pixels B the color saturation is the same, ..., color saturation of the pixels of the tenth column of the pixel rows of the tenth image contrast and color saturation of the a B picture is the tenth row of the tenth column are the same. 若确定模块402对比图片A的第一排第一列的像素点的色彩饱和度与图片B的第一排第一列的像素点的色彩饱和度不相同,图片A的第一排第二列的像素点的色彩饱和度与图片B的第一排第二列的像素点的色彩饱和度不相同,则确定模块402确定图片A与图片B中位置相同、且色彩饱和度不相同的像素点的数量X为2。 Color saturation of the pixel if the pixel of image A comparison module 402 determines a first row of the first column of B pictures with color saturation of the first row of the first column are not the same, the second column of the first row of image A color saturation of the pixels of the pixel color saturation and image B in the first row of the second column are not the same, the determining module 402 determines the position of the image a and the image B are the same, and the color saturation of the pixel is not the same X is the number 2.

[0079] 若图片A和图片B有10*10个像素点,若确定模块402对比确定图片A与图片B中位置相同、且色彩饱和度不相同的像素点的数量X为100,则说明两张图片拍摄的环境不同,则LED灯可能正在闪动。 [0079] When the image A and image B have 10 * 10 pixels, if the module 402 comparison determines the same position in image A and image B, and the color saturation is not the same as the number of pixel X is 100 OK, then the two pictures of different shooting environment, the LED lights might be blinking.

[0080] 计算模块403,用于对所有的所述数量X求平均值 [0080] The calculation module 403, for all of the number of X averaging

Figure CN105045765BD00091

[0081] 本发明实施例中,确定模块402确定完每两张图片中的位置相同、且色彩饱和度不相同的像素点的数量X之后,计算模块403将对所有的数量X求取平均值 Embodiment, after completion determining module 402 determines the same position in each of two images, and the color saturation is not the same number of X pixels embodiment [0081] of the present invention, the calculation module 403 will all quantities were averaged X

Figure CN105045765BD00092

.

[0082] 举例来说,若拍摄模块401拍摄了4张图片,则确定模块402将确定C (4,2)个数量X (即6个数量X),若确定的6个数量X的值分别为10、20、30、10、20、30,则平均值 [0082] For example, if the imaging module 401 took four pictures, the determining module 402 determines the C (4,2) orders of X (i.e., the number of X 6), if the determined value of the quantity X 6 respectively is 10,20,30,10,20,30, the average value

Figure CN105045765BD00093

[0083] 所述计算模块403,还用于利用所述平均值 [0083] The calculation module 403 is further configured to use the average value

Figure CN105045765BD00094

:以及所有的所述数量X计算目标方差S0 : The number of X and all the variance calculation target S0

[0084] 本发明实施例中,计算模块403将利用平均值以及所有的数量X计算目标方差S。 [0084] The embodiments of the present invention, the calculation module 403 will use all of the mean and variance calculating the target quantity X S.

Figure CN105045765BD00095

可选的,目标方差 Optionally, the target variance

Figure CN105045765BD00096

,其中,C (η,2)为组合数,η为拍摄的图片数量,Xi为每两张图片中确定的位置相同、且色彩饱和度不相同的像素点的数量X。 Wherein, C (η, 2) is the number of combinations, [eta] is the number of pictures taken, each of two images Xi same position determined, and the color saturation is not the same number of pixels X.

[0085] 例如,若η等于3,则C (η,2)等于3,则用户终端将确定3个数量X,分别为Xl、Χ2和Χ3, 则 [0085] For example, if [eta] is equal to 3, C (η, 2) is equal to 3, the user terminal 3 will determine the number of X, respectively, Xl, X2 and x3, the

Figure CN105045765BD00097

[0086] 输出模块404,用于将所述目标方差S作为闪烁指数进行输出。 [0086] Output module 404, the target for the variance S is output as a flicker index.

[0087] 本发明实施例中,计算模块403计算得到目标方式S之后,输出模块404将目标方差S作为闪烁指数进行输出,以使用户可以查看闪烁指数。 After embodiment, the calculation module 403 calculates a target obtained embodiment Embodiment S [0087] the present invention, the output module 404 as a target variance S flicker index output, so that the user can view the flicker index.

[0088] 在实际应用中,方差越大,数据在平均数附近波动较大;方差越小,数据在平均数附近波动较小。 [0088], in practice the greater the variance, the data in the vicinity of volatile average; the smaller the variance, the data fluctuation is small in the vicinity of the average. 因此,本发明实施例中,当方差较大时,LED灯闪烁得较快,当方差较小时, LED灯闪烁得越慢。 Thus, embodiments of the present invention, when a large variance, LED lights blink faster, when the variance is small, LED lights flashing slower.

[0089] 请一并参阅图5,图5是本发明实施例公开的另一种用户终端的结构示意图。 [0089] Referring to FIG. 5, FIG. 5 is a schematic view of another embodiment of a user terminal disclosed embodiment of the present invention. 其中, 图5所示的用户终端是由图4所示的用户终端进行优化得到的。 Wherein the user terminal shown in FIG. 5 is obtained by optimizing the user terminal 4 shown in FIG. 与图4所示的用户终端相比较,图5所示的用户终端除包括图4所示的用户终端的所有模块外,还可以包括第一判断模块405。 Compared with the user terminal shown in FIG. 4, the user terminal shown in FIG. 5 includes all modules except the user terminal shown in FIG. 4, but also may include a first determining module 405. 其中: among them:

[0090] 第一判断模块405,用于在所述计算模块403利用所述平均值X以及所有的所述数量X计算目标方差S之后,判断所述目标方差S是否小于预设方差值;当所述第一判断模块405判断所述目标方差S小于所述预设方差值时,触发所述输出模块404输出闪烁频率过低的告警信息。 [0090] a first determining module 405, the computing module 403 is used after the use of the average value X and the number of all the variance S X calculates a target, the target is determined the variance is less than a predetermined variance value S; when the first determination module 405 determines the variance S less than the preset target variance value, the trigger output module 404 outputs low frequency flicker alarm information.

[0091] 本发明实施例中,输出模块404可输出闪烁频率过低的文字告警信息,或输出闪烁频率过低的语音告警信息,本发明实施例不做限定。 Embodiment [0091] embodiment of the present invention, the output module 404 may output a low frequency flicker alarm text message, or a low frequency output of the scintillator voice alarm information, is not limited in embodiments of the present invention.

[0092] 在实际应用中,若目标方差S较小则说明LED灯的闪烁频率较低,当LED灯的闪烁频率较低时,将对用户眼睛造成较大的伤害。 [0092] In practice, when the variance S is small then the target low flashing frequency of the LED lamp, when the LED light flicker frequency is low, it will cause greater harm to the user's eyes. 因此,本发明实施例通过当目标方差S小于预设方差值时,输出闪烁频率过低的告警信息,可提醒用户LED灯当前闪烁频率过低,使用户知道LED灯当前闪烁频率对眼睛将造成较大伤害,从而能够及时采取眼睛保护措施,提升了用户体验。 Accordingly, embodiments of the present invention by the target when the variance S is less than a predetermined variance value, the output frequency is too low flashing alarm information, can remind the user to blink the LED current frequency is too low, so that the user knows the current LED light will blink frequency of the eyes cause greater damage, it is possible to take timely measures to protect the eyes, enhance the user experience.

[0093] 请一并参阅图6,图6是本发明实施例公开的另一种用户终端的结构示意图。 [0093] Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a user terminal of another embodiment of the disclosed embodiment of the present invention. 其中, 图6所示的用户终端是由图4所示的用户终端进行优化得到的。 Wherein the user terminal shown in FIG. 6 is obtained by optimizing the user terminal 4 shown in FIG. 与图4所示的用户终端相比较,图6所示的用户终端除包括图4所示的用户终端的所有模块外,还可以包括获取模块406 和第二判断模块407。 Compared with the user terminal shown in FIG. 4, the user terminal shown in FIG. 6 in addition to all of the modules comprising a user terminal shown in FIG. 4, the obtaining module 406 may also include a second determining module 407. 其中: among them:

[0094] 获取模块406,用于在所述计算模块403利用所述平均值X以及所有的所述数量X 计算目标方差S之后,根据预先设定的方差与闪烁频率的对应关系,获取与所述目标方差S 对应的目标闪烁频率。 [0094] The acquisition module 406, after calculating the target for the variance S is calculated in module 403 using the average value X and the number of all the X, according to the correspondence variance flicker frequency set in advance, and the acquisition said target corresponding to a target variance S flicker frequency.

[0095] 本发明实施例中,用户终端可预先设置方差与闪烁频率的对应关系。 [0095] Example embodiments of the present invention, the user terminal can set the flicker frequency variance corresponding relationship in advance. 当计算模块403利用平均值X以及所有的数量X计算目标方差S之后,获取模块406将根据预先设定的方差与闪烁频率的对应关系,获取与目标方差S对应的目标闪烁频率。 After the calculation module 403 calculates the variance S using the average value of the target X and all the number X, the acquiring module 406 based on the correspondence variance flicker frequency set in advance, the target acquires the variance S corresponding target flicker frequency.

[0096] 所述输出模块404,还用于输出所述目标闪烁频率。 [0096] The output module 404 is further configured to output the target blinking frequency.

[0097] 第二判断模块407,用于在所述获取模块406根据预先设定的方差与闪烁频率的对应关系,获取与所述目标方差S对应的目标闪烁频率之后,判断所述目标闪烁频率是否小于预设闪烁频率;当所述第二判断模块407所述目标闪烁频率小于所述预设闪烁频率时,触发所述输出模块404输出闪烁频率过低的告警信息。 [0097] The second determination module 407, configured to, after the acquiring module 406 based on the correspondence variance flicker frequency set in advance, obtaining the variance S of the target object corresponding to the flicker frequency, the flicker frequency of the target is determined is smaller than a predetermined blink frequency; when the second determination module 407 of the target frequency is less than the preset flicker flicker frequency, the output module 404 outputs the trigger frequency is too low flashing alarms.

[0098] 本发明实施例中,输出模块404可输出闪烁频率过低的文字告警信息,或输出闪烁频率过低的语音告警信息,本发明实施例不做限定。 [0098] embodiment, the output module 404 may output a low frequency flicker alarm text message, or a low frequency output of the scintillator voice alarm information, embodiments of the present invention is not limited in embodiments of the present invention.

[0099] 在实际应用中,当LED灯的闪烁频率较低时,将对用户眼睛造成较大的伤害。 [0099] In practice, when the LED light flicker frequency is low, it would cause greater damage to the user's eyes. 因此, 本发明实施例通过当目标闪烁频率小于预设闪烁频率时,输出闪烁频率过低的告警信息, 可提醒用户LED灯当前闪烁频率过低,使用户知道LED灯当前闪烁频率对眼睛将造成较大伤害,从而能够及时采取眼睛保护措施,提升了用户体验。 Thus, embodiments of the present invention will flicker when the target frequency is less than a preset flicker frequency, flicker frequency low output alarm information, can remind the user to blink the LED current frequency is too low, so that the user knows the LED current will cause flicker frequency of the eye greater damage, it is possible to take timely measures to protect the eyes, enhance the user experience.

[0100] 在图4〜图6所描述的用户终端中,拍摄模块通过摄像头在预设时间段内拍摄预设数量的图片之后,确定模块将从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X,并由计算模块对所有的数量X求平均值X,利用平均值歹以及所有的数量X计算目标方差S;输出模块将目标方差S作为闪烁指数进行输出。 [0100] In the user terminal 6 described in FIG. 4 ~ Fig, captured by the camera module after a preset period of time a predetermined number of captured images, two pictures of each determination module determines that the position obtained from the photographing, and the color saturation is not the same number of pixels X, is calculated by averaging module X X All the number, the variance S is calculated using the target average number of bad and all X; target output module scintillation index as the variance S output. 当方差较大时,LED 灯闪烁得较快,当方差较小时,LED灯闪烁得越慢。 When large variance, LED lights blink faster, when the variance is small, LED lights flashing slower. 可见,通过本发明实施例能够通过随身携带的用户终端便利地识别LED灯的闪烁指数。 Seen, embodiments of the present invention, the user can be conveniently carried by the portable terminal recognizes the index of the LED lamp blinking.

[0101] 需要说明的是,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。 [0101] Incidentally, in the above embodiment, the description of the various embodiments have different emphases, not described in detail a portion of the embodiments, reference may be described in other embodiments. 其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。 Secondly, those skilled in the art should also understand that the embodiments are described in the specification are exemplary embodiments, actions and modules involved are not necessarily required by the present invention.

[0102] 本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。 [0102] The procedure of Example of the present invention may be implemented in a method according to actual needs to adjust the order, deletion and merger.

[0103] 本发明实施例用户终端中模块可以根据实际需要进行合并、划分和删减。 [0103] Example embodiment of a user terminal module of the present invention may be combined according to actual needs, division and deletion.

[0104] 本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,R0M)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。 [0104] Those of ordinary skill in the art can appreciate that various embodiments of the method of the above-described embodiments all or part of the steps may be relevant hardware command terminal apparatus by a program, the program may be stored in a computer-readable storage medium, The storage medium may include: flash disk, read only memory (Read-Only memory, R0M), random access (random access memory, RAM), magnetic disk, or optical disk.

[0105] 以上对本发明实施例公开的一种LED灯闪烁指数测量方法及用户终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 An LED lamp of the present disclosure [0105] the above embodiment of the present invention, flicker index measuring method and a user terminal described in detail herein through specific examples of the principles and embodiments of the invention are set forth in description of the above embodiment only to assist in understanding the method and core ideas of the present invention; Meanwhile, those of ordinary skill in the art, according to the idea of ​​the present invention, there are changes in the specific embodiments and application scope of, the above, the present specification shall not be construed as limiting the present invention.

Claims (8)

1. 一种LED灯闪烁指数测量方法,其特征在于,所述方法包括: 通过摄像头在预设时间段内对准LED灯拍摄预设数量的图片,其中,所述预设数量大于1; 从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X; 对所有的所述数量X求平均值无; 利用所述平均值X以及所有的所述数量X计算目标方差S,所述目标方差 1. An LED lamp flicker index measuring method, characterized in that, said method comprising: aligning a camera preset period of time a predetermined number of LED light captured image, wherein said predetermined number is greater than 1; from each of two images photographed in the same position is determined, and the color saturation is not the same number of pixel X; all without averaging the number X; X, and using the average value of all of said quantity X calculating a target variance S, the variance of the target
Figure CN105045765BC00021
,其中,C (η,2)为组合数,η为拍摄的图片数量,Xi为每两张图片中确定的位置相同、且色彩饱和度不相同的像素点的数量X; 将所述目标方差S作为闪烁指数进行输出。 Wherein, C (η, 2) is the number of combinations, [eta] is the number of pictures taken, each of two images Xi same position determined, and the color saturation is not the same number of X-pixels; the target variance S as a flicker index outputs.
2. 根据权利要求1所述的方法,其特征在于,所述利用所述平均值以及所有的所述数量X计算目标方差S之后,所述方法还包括: 判断所述目标方差S是否小于预设方差值; 若所述目标方差S小于所述预设方差值,则输出闪烁频率过低的告警信息。 After 2. The method according to claim 1, characterized in that the variance S of the target is calculated using the average value and the number of all of X, said method further comprising: determining the variance S is less than a predetermined target provided variance; target if the variance of S is smaller than the predetermined variance value, the output frequency is too low flashing alarms.
3. 根据权利要求1所述的方法,其特征在于,所述利用所述平均值1以及所有的所述数量X计算目标方差S之后,所述方法还包括: 根据预先设定的方差与闪烁频率的对应关系,获取与所述目标方差S对应的目标闪烁频率; 输出所述目标闪烁频率。 3. The method according to claim 1, characterized in that, after using the average value of the number 1 and all the X calculates a target variance S, the method further comprising: based on a preset variance scintillation frequency correspondence relationship, obtaining the target object and the variance corresponding to the flicker frequency S; blinking frequency of the target output.
4. 根据权利要求3所述的方法,其特征在于,所述根据预先设定的方差与闪烁频率的对应关系,获取与所述目标方差S对应的目标闪烁频率之后,所述方法还包括: 判断所述目标闪烁频率是否小于预设闪烁频率; 若所述目标闪烁频率小于所述预设闪烁频率,则输出闪烁频率过低的告警信息。 After 4. The method according to claim 3, characterized in that the variance of the scintillator according to the correspondence set in advance frequency, obtaining the variance S of the target object corresponding to the flicker frequency, the method further comprising: determining whether the target frequency is less than a preset flicker flicker frequency; when the frequency is less than the preset target flicker flicker frequency, the flicker frequency low output alarm information.
5. —种用于LED灯闪烁指数测量的用户终端,其特征在于,所述用户终端包括: 拍摄模块,用于通过摄像头在预设时间段内对准LED灯拍摄预设数量的图片,其中,预设数量大于1; 确定模块,用于从拍摄得到的每两张图片中确定位置相同、且色彩饱和度不相同的像素点的数量X; 计算模块,用于对所有的所述数量X求平均值所述计算模块,还用于利用所述平均值无以及所有的所述数量X计算目标方差S,所述目标方差 5. - kind of the user terminal for the LED blinks index measurement, wherein the user terminal comprises: photographing means for photographing the alignment LED lamp preset number of pictures in a preset time period through the camera, wherein , is greater than a preset number; determining module, the number of pixels of the same location, and determining the color saturation different from each of the two pictures captured by X; calculating module, for all of the number of X averaging the computing module is further configured to use the average value of the number of all the non-X and calculates a target variance S, the variance of the target
Figure CN105045765BC00022
其中,C (η,2)为组合数,η为拍摄的图片数量,Xi为每两张图片中确定的位置相同、且色彩饱和度不相同的像素点的数量X; 输出模块,用于将所述目标方差S作为闪烁指数进行输出。 Wherein, C (η, 2) is the number of combinations, [eta] is the number of pictures taken, each of two images Xi same position determined, and the color saturation is not the same number of X-pixels; an output module for the the variance S of the target output as a flicker index.
6. 根据权利要求5所述的用户终端,其特征在于,所述用户终端还包括: 第一判断模块,用于在所述计算模块利用所述平均值X以及所有的所述数量X计算目标方差S之后,判断所述目标方差S是否小于预设方差值;当所述第一判断模块判断所述目标方差S小于所述预设方差值时,触发所述输出模块输出闪烁频率过低的告警信息。 The user terminal according to claim 5, wherein the user terminal further comprises: a first determining module, for calculating the computing module with the average number of X and all the target X after the variance S, the target is determined the variance is less than a predetermined variance value S; when the first judging module determines that the variance S is smaller than the preset target variance value, triggering the flicker frequency output through the output module low alarms.
7. 根据权利要求5所述的用户终端,其特征在于,所述用户终端还包括: 获取模块,用于在所述计算模块利用所述平均值万以及所有的所述数量X计算目标方差S之后,根据预先设定的方差与闪烁频率的对应关系,获取与所述目标方差S对应的目标闪烁频率; 所述输出模块,还用于输出所述目标闪烁频率。 The user terminal according to claim 5, wherein the user terminal further comprises: an obtaining module, a target for calculating the variance S is calculated using the average value of ten thousand module and all of said number X is Thereafter, according to the correspondence variance flicker frequency set in advance, obtaining the variance S of the target object corresponding to the blinking frequency; the output module is further configured to output the target blinking frequency.
8. 根据权利要求7所述的用户终端,其特征在于,所述用户终端还包括: 第二判断模块,用于在所述获取模块根据预先设定的方差与闪烁频率的对应关系,获取与所述目标方差S对应的目标闪烁频率之后,判断所述目标闪烁频率是否小于预设闪烁频率;当所述第二判断模块所述目标闪烁频率小于所述预设闪烁频率时,触发所述输出模块输出闪烁频率过低的告警信息。 8. The user terminal according to claim 7, wherein said user terminal further comprises: a second determining module configured in accordance with the correspondence relationship obtaining module variance flicker frequency set in advance, acquires after the target object corresponding to the variance S flicker frequency, it is determined whether the frequency is less than a preset target flicker flicker frequency; when the second determining module of the target frequency is less than the preset flicker flicker frequency, the trigger output low frequency module outputs flashing alarm information.
CN201510395179.XA 2015-07-06 2015-07-06 Blinking Index led one kind of measuring method and a user terminal CN105045765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510395179.XA CN105045765B (en) 2015-07-06 2015-07-06 Blinking Index led one kind of measuring method and a user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510395179.XA CN105045765B (en) 2015-07-06 2015-07-06 Blinking Index led one kind of measuring method and a user terminal

Publications (2)

Publication Number Publication Date
CN105045765A CN105045765A (en) 2015-11-11
CN105045765B true CN105045765B (en) 2017-11-28

Family

ID=54452323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510395179.XA CN105045765B (en) 2015-07-06 2015-07-06 Blinking Index led one kind of measuring method and a user terminal

Country Status (1)

Country Link
CN (1) CN105045765B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525747A (en) * 2003-02-26 2004-09-01 松下电器产业株式会社 Flicker detecting method and flicker detecting apparatus
CN101267495A (en) * 2007-03-14 2008-09-17 松下电器产业株式会社 Phase adjustment device, phase adjustment method and digital camera
WO2011056242A1 (en) * 2009-11-06 2011-05-12 Neofocal Systems, Inc. System and method for lighting power and control system
CN102461160A (en) * 2009-06-09 2012-05-16 谷歌股份有限公司 Detection and suppression of flicker in a sequence of images
CN103856721A (en) * 2012-12-04 2014-06-11 三星泰科威株式会社 Apparatus and method for calculating flicker-evaluation value

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9148250B2 (en) * 2012-06-30 2015-09-29 Intel Corporation Methods and arrangements for error correction in decoding data from an electromagnetic radiator

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525747A (en) * 2003-02-26 2004-09-01 松下电器产业株式会社 Flicker detecting method and flicker detecting apparatus
CN101267495A (en) * 2007-03-14 2008-09-17 松下电器产业株式会社 Phase adjustment device, phase adjustment method and digital camera
CN102461160A (en) * 2009-06-09 2012-05-16 谷歌股份有限公司 Detection and suppression of flicker in a sequence of images
WO2011056242A1 (en) * 2009-11-06 2011-05-12 Neofocal Systems, Inc. System and method for lighting power and control system
CN103856721A (en) * 2012-12-04 2014-06-11 三星泰科威株式会社 Apparatus and method for calculating flicker-evaluation value

Also Published As

Publication number Publication date
CN105045765A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN101175187B (en) Image storage device, imaging device, image storage method
US20130314511A1 (en) Image capture device controlled according to image capture quality and related image capture method thereof
CN105100627A (en) Shooting control method and terminal
CN109688320A (en) The convenient Intelligent target for capturing consecutive image
US20140168054A1 (en) Automatic page turning of electronically displayed content based on captured eye position data
CN101674411B (en) Image capturing apparatus, method of determining presence or absence of image area, and recording medium
CN104618640A (en) Photographing method and device
KR20150099302A (en) Electronic device and control method of the same
CN103916589A (en) Method for running camera and electronic device thereof
EP3154254A1 (en) Processing method and system for automatic photographing based on eyeball tracking technique
US20150124155A1 (en) Quick Automatic Focusing Method and Image Acquisition Apparatus
CN103297696B (en) Photographing method, and the terminal apparatus
CN103685940A (en) Method for recognizing shot photos by facial expressions
CN104660911A (en) Rapid photographing method and device
CN104580924A (en) Flashlight power adjusting method and terminal
CN104349033A (en) Self-timer light supplement method, self-timer light supplement device and electronic equipment
CN103617432B (en) A scenario recognition method and apparatus
WO2010128579A1 (en) Electron camera, image processing device, and image processing method
US20160094770A1 (en) Image Processing Method and Apparatus, and Terminal
CN105007420A (en) Focusing method and mobile terminal
CN104539844A (en) Terminal
CN103179348A (en) Shooting method and system for mobile terminals and mobile terminal
US9621806B2 (en) Image capturing method, apparatus, and electronic device
US20130154947A1 (en) Determining a preferred screen orientation based on known hand positions
EP3079010B1 (en) Photographing method for dual-camera device and dual-camera device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01