[go: up one dir, main page]

CN105549724A - User identification method and air conditioning equipment - Google Patents

User identification method and air conditioning equipment Download PDF

Info

Publication number
CN105549724A
CN105549724A CN201510923725.2A CN201510923725A CN105549724A CN 105549724 A CN105549724 A CN 105549724A CN 201510923725 A CN201510923725 A CN 201510923725A CN 105549724 A CN105549724 A CN 105549724A
Authority
CN
China
Prior art keywords
image
air conditioner
environment
pixel
pixels
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
Application number
CN201510923725.2A
Other languages
Chinese (zh)
Other versions
CN105549724B (en
Inventor
陈思应
王彪
周刚
涂小平
李昱兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201510923725.2A priority Critical patent/CN105549724B/en
Publication of CN105549724A publication Critical patent/CN105549724A/en
Application granted granted Critical
Publication of CN105549724B publication Critical patent/CN105549724B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/002Specific input/output arrangements not covered by G06F3/01 - G06F3/16
    • G06F3/005Input arrangements through a video camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radiation Pyrometers (AREA)
  • Image Processing (AREA)

Abstract

本申请提供一种用户识别方法及空调设备,用于解决空调设备在对红外摄像头所采集的图像进行识别处理时工作效率较低的技术问题。该方法包括:通过空调设备中的红外传感器阵列对所述空调设备所处的第一环境进行扫描,获得与所述第一环境对应的第一图像;对所述第一图像进行中值滤波处理,获得与所述第一图像对应的第二图像;根据所述第一图像和所述第二图像确定所述第一环境中的用户的相关信息。

The present application provides a user identification method and air-conditioning equipment, which are used to solve the technical problem that the air-conditioning equipment has low work efficiency when identifying and processing images collected by an infrared camera. The method includes: scanning the first environment where the air conditioner is located by using an infrared sensor array in the air conditioner to obtain a first image corresponding to the first environment; performing median filtering processing on the first image , obtaining a second image corresponding to the first image; determining relevant information of the user in the first environment according to the first image and the second image.

Description

一种用户识别方法及空调设备A user identification method and air conditioning equipment

技术领域technical field

本发明涉及电子技术领域,特别涉及一种用户识别方法及空调设备。The invention relates to the field of electronic technology, in particular to a user identification method and an air conditioner.

背景技术Background technique

随着科学技术的快速发展,消费电子行业正在经历巨大的创新,其中,空调设备已成为人们日常生活中不可缺少的家居设备,其为用户提供了诸多服务,越来越受到人们的追捧。With the rapid development of science and technology, the consumer electronics industry is undergoing great innovations. Among them, air-conditioning equipment has become an indispensable household equipment in people's daily life. It provides users with many services and is increasingly sought after by people.

目前,在用户使用空调设备对空气进行调节过程中,为了获得较好的调节效果,通常需要空调设备获取环境中用户的信息,如用户在环境中所处的位置、用户的数量等等。而在实际应用中,空调设备主要采用红外摄像头对环境进行图像采集,进而通过对图像进行人体识别来确定用户的信息,从而根据获取的信息调整空调设备,如切换工作模式等等,使得空调设备较为智能。At present, in order to obtain a better adjustment effect when users use air-conditioning equipment to adjust the air, it is usually necessary for the air-conditioning equipment to obtain information about users in the environment, such as the location of the users in the environment, the number of users, and so on. In practical applications, air-conditioning equipment mainly uses infrared cameras to collect images of the environment, and then determines the user's information through human body recognition on the images, so as to adjust the air-conditioning equipment according to the acquired information, such as switching working modes, etc., so that the air-conditioning equipment Smarter.

但在对红外摄像头所采集的图像进行识别处理时,算法较为复杂,处理时间较长,使得空调设备的工作效率较低。However, when the image collected by the infrared camera is recognized and processed, the algorithm is more complicated and the processing time is longer, which makes the working efficiency of the air conditioner lower.

发明内容Contents of the invention

本申请提供一种用户识别方法及空调设备,用于解决空调设备在对红外摄像头所采集的图像进行识别处理时工作效率较低的技术问题。The present application provides a user identification method and air-conditioning equipment, which are used to solve the technical problem that the air-conditioning equipment has low work efficiency when identifying and processing images collected by an infrared camera.

一方面,本申请提供一种用户识别方法,包括以下步骤:On the one hand, the present application provides a user identification method, comprising the following steps:

通过空调设备中的红外传感器阵列对所述空调设备所处的第一环境进行扫描,获得与所述第一环境对应的第一图像;Scanning a first environment where the air conditioner is located by using an infrared sensor array in the air conditioner to obtain a first image corresponding to the first environment;

对所述第一图像进行中值滤波处理,获得与所述第一图像对应的第二图像;performing median filtering processing on the first image to obtain a second image corresponding to the first image;

根据所述第一图像和所述第二图像确定所述第一环境中的用户的相关信息。Relevant information of users in the first environment is determined according to the first image and the second image.

另一方面,本申请提供一种空调设备,包括:On the other hand, the present application provides an air conditioner, comprising:

获取模块,用于通过空调设备中的红外传感器阵列对所述空调设备所处的第一环境进行扫描,获得与所述第一环境对应的第一图像;An acquisition module, configured to scan a first environment where the air conditioner is located through an infrared sensor array in the air conditioner, and obtain a first image corresponding to the first environment;

处理模块,用于对所述第一图像进行中值滤波处理,获得与所述第一图像对应的第二图像;A processing module, configured to perform median filtering processing on the first image to obtain a second image corresponding to the first image;

确定模块,用于根据所述第一图像和所述第二图像确定所述第一环境中的用户的相关信息。A determining module, configured to determine relevant information of users in the first environment according to the first image and the second image.

本申请中的上述一个或多个技术方案,至少具有如下一种或多种技术效果:The above-mentioned one or more technical solutions in this application have at least one or more of the following technical effects:

本申请中,采用较为简单快捷的中值滤波方法对第一图像进行处理,缩短了对图像的处理时间,有效提高空调设备的处理效率,从而通过第一图像及第二图像即可确定第一环境中的用户的相关信息,如根据第一图像及第二图像中像素点在滤波前后的变化来确定用户的相对信息,故实现过程较为简单。In this application, the first image is processed using a relatively simple and quick median filter method, which shortens the processing time for the image and effectively improves the processing efficiency of the air conditioner, so that the first image can be determined through the first image and the second image. The relevant information of the user in the environment, for example, determines the relative information of the user according to the changes of the pixels in the first image and the second image before and after filtering, so the implementation process is relatively simple.

此外,由于本申请中采用价格较低的红外传感器阵列进行图像及数据的采集,降低了空调设备的成本。In addition, since the low-priced infrared sensor array is used in the present application to collect images and data, the cost of air-conditioning equipment is reduced.

附图说明Description of drawings

图1为本发明实施例中空调设备中的红外传感器阵列的示意图;Fig. 1 is the schematic diagram of the infrared sensor array in the air conditioner in the embodiment of the present invention;

图2为本发明实施例中用户识别方法的流程图;Fig. 2 is the flowchart of the user identification method in the embodiment of the present invention;

图3为本发明实施例中一个周期内采集数据的排列示意图;Fig. 3 is a schematic diagram of the arrangement of data collected in one cycle in an embodiment of the present invention;

图4为本发明实施例中对像素点进行中值滤波的示意图;4 is a schematic diagram of performing median filtering on pixels in an embodiment of the present invention;

图5为本发明实施例中确定与用户相关的像素点的示意图;FIG. 5 is a schematic diagram of determining pixel points related to a user in an embodiment of the present invention;

图6为本发明实施例中空调设备的结构框图。Fig. 6 is a structural block diagram of an air conditioner in an embodiment of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。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.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

本发明实施例提供的技术方案可以用于但不仅限于空调设备,该空调设备可以是指智能家居中的智能空调,在实际应用中,空调设备可以设置在第一环境中,如第一环境中的任意位置。例如,第一环境可以是客厅、卧室、办公室等,本发明实施例对此不作具体限定。The technical solutions provided by the embodiments of the present invention can be used in but not limited to air conditioners. The air conditioners can refer to smart air conditioners in smart homes. In practical applications, the air conditioners can be set in the first environment, such as the first environment any position. For example, the first environment may be a living room, a bedroom, an office, etc., which is not specifically limited in this embodiment of the present invention.

可选的,空调设备中可以设置有用于进行数据采集的红外传感器阵列,该红外传感器阵列与空调设备中的电机(如步进电机)相连,从而在电机驱动程序控制电机运转时,电机可带动红外传感器阵列进行转动,以便通过红外传感器阵列对第一环境中的不同区域进行扫描。Optionally, an infrared sensor array for data collection can be provided in the air conditioner, and the infrared sensor array is connected with a motor (such as a stepping motor) in the air conditioner, so that when the motor driver controls the motor to run, the motor can drive The infrared sensor array is rotated so that different areas in the first environment are scanned by the infrared sensor array.

通常来说,红外传感器阵列可以是16*4、24*32或1*32等的红外传感器阵列,本发明所属领域的普通技术人员可以根据实际进行设置,本发明实施例不作具体限制。本发明实施例中,以红外传感器阵列为16*4的阵列为例进行说明,其采用的红外传感器可以是低像素非制冷型红外传感器。Generally speaking, the infrared sensor array can be a 16*4, 24*32 or 1*32 infrared sensor array, which can be set by those of ordinary skill in the field of the present invention according to the actual situation, and the embodiment of the present invention makes no specific limitation. In the embodiment of the present invention, an infrared sensor array of 16*4 is taken as an example for illustration, and the infrared sensor used may be a low-pixel uncooled infrared sensor.

如图1所示,为本发明实施例中空调设备中的一种可能的红外传感器阵列。As shown in FIG. 1 , it is a possible infrared sensor array in the air conditioner in the embodiment of the present invention.

当然,空调设备中还可以包括其它工作部件,如处理器、存储器、通信模块等,本发明实施例不作具体限制。Certainly, the air conditioner may also include other working components, such as a processor, a memory, a communication module, etc., which are not specifically limited in this embodiment of the present invention.

下面结合附图介绍本发明提供的方法。The method provided by the present invention will be described below in conjunction with the accompanying drawings.

如图2所示,本发明实施例提供一种用户识别方法,该方法的过程描述如下。As shown in FIG. 2 , an embodiment of the present invention provides a user identification method, and the process of the method is described as follows.

S11:通过空调设备中的红外传感器阵列对空调设备所处的第一环境进行扫描,获得与第一环境对应的第一图像;S11: Scan the first environment where the air conditioner is located by using the infrared sensor array in the air conditioner to obtain a first image corresponding to the first environment;

S12:对第一图像进行中值滤波处理,获得与第一图像对应的第二图像;S12: Perform median filtering processing on the first image to obtain a second image corresponding to the first image;

S13:根据第一图像和第二图像确定第一环境中的用户的相关信息。S13: Determine relevant information of the user in the first environment according to the first image and the second image.

一般来说,红外传感器阵列的扫描范围有限,如12°、16°、20°等,因此,在对第一环境进行扫描时,红外传感器阵列可以进行多次扫描。通常来说,一个红外传感器在横向上的扫描范围可以为4°,在纵向上的扫描范围可以为3.75°,则16*4的红外传感器阵列的扫描范围即为16°。那么,在使用16*4的红外传感器阵列对第一环境中第一区域进行扫描时,若第一区域的两条边缘线相对于空调设备的夹角为112°(该角度通常为用户相对于空调设备的活动区域的角度),则红外传感器阵列需要扫描7个周期才能完成对第一区域的数据采集。Generally speaking, the scanning range of the infrared sensor array is limited, such as 12°, 16°, 20°, etc. Therefore, when scanning the first environment, the infrared sensor array can perform multiple scans. Generally speaking, the scanning range of an infrared sensor in the horizontal direction can be 4°, and the scanning range in the vertical direction can be 3.75°, so the scanning range of a 16*4 infrared sensor array is 16°. Then, when using the 16*4 infrared sensor array to scan the first area in the first environment, if the angle between the two edge lines of the first area relative to the air conditioner is 112° (this angle is usually defined by the user relative to The angle of the active area of the air conditioner), the infrared sensor array needs to scan 7 cycles to complete the data collection of the first area.

可选的,在电机的带动下,空调设备中的红外传感器阵列可以对第一环境进行周期性扫描,例如,在每个周期内,红外传感器阵列在电机的带动下可以按扫描角度1°、1°、1°、13°等逐个进行转动和扫描,并获得每个扫描角度对应的温度值。即在一个周期内,红外传感器阵列由初始位置沿第一方向(顺时针方向或逆时针方向)依次转动1°、1°、1°、及13°,其中,在每次转动后红外传感器阵列都将进行数据采集(本发明实施例中,以采集的数据是温度值为例),获得每个扫描角度对应的温度值,在一个周期内可以获得4组温度值。在完成一个周期的扫描后,进入下一个周期,直到完成对第一环境(或第一环境中的第一区域)的扫描。Optionally, driven by the motor, the infrared sensor array in the air conditioner can periodically scan the first environment. For example, in each cycle, the infrared sensor array can scan at an angle of 1°, 1°, 1°, 13°, etc. are rotated and scanned one by one, and the temperature value corresponding to each scanning angle is obtained. That is, within one cycle, the infrared sensor array rotates 1°, 1°, 1°, and 13° sequentially from the initial position along the first direction (clockwise or counterclockwise), wherein, after each rotation, the infrared sensor array Data collection will be carried out (in the embodiment of the present invention, the collected data is a temperature value as an example), and the temperature value corresponding to each scanning angle can be obtained, and 4 groups of temperature values can be obtained in one cycle. After one cycle of scanning is completed, the next cycle is entered until the scanning of the first environment (or the first area in the first environment) is completed.

可选的,在获得一个周期对应的4组温度值后,可按照预设方式对温度值进行排列,如图3所示,横向标识的数字1、2、3、4分别代表位于红外传感器阵列中的4列红外传感器,在一个周期内,每列红外传感器采集4列温度值。Optionally, after obtaining 4 sets of temperature values corresponding to one cycle, the temperature values can be arranged according to a preset method, as shown in Figure 3, the numbers 1, 2, 3, and 4 marked in the horizontal direction respectively represent the temperature values located in the infrared sensor array There are 4 columns of infrared sensors in the system, and each column of infrared sensors collects 4 columns of temperature values in one cycle.

可选的,第一图像中包括的n个像素点即为与红外传感器阵列对应的像素点。若红外传感器阵列为16*4的红外传感器阵列,即红外传感器阵列包含64个红外传感器,且这些红外传感器按照16行4列的方式进行排列,那么红外传感器阵列扫描1次得到的扫描图像中将包括与红外传感器阵列对应的64个像素点,64个像素点的排列方式与红外传感器阵列的排列方式可以相同。本发明实施例中,红外传感器阵列通过扫描获得的温度值即为相应的像素点对应的初始温度值。Optionally, the n pixels included in the first image are the pixels corresponding to the infrared sensor array. If the infrared sensor array is a 16*4 infrared sensor array, that is, the infrared sensor array contains 64 infrared sensors, and these infrared sensors are arranged in 16 rows and 4 columns, then the scanned image obtained by scanning the infrared sensor array once will be It includes 64 pixels corresponding to the infrared sensor array, and the arrangement of the 64 pixels may be the same as that of the infrared sensor array. In the embodiment of the present invention, the temperature value obtained by scanning the infrared sensor array is the initial temperature value corresponding to the corresponding pixel.

可选的,在获得第一图像后,可对第一图像进行中值滤波处理,并获得处理后的第二图像。Optionally, after the first image is obtained, median filtering may be performed on the first image to obtain a processed second image.

例如,对第一图像进行中值滤波处理,可以是对第一图像中每个像素点进行中值滤波处理。中值滤波是基于排序统计理论的一种能有效抑制噪声的非线性信号处理技术,其基本原理是把数字图像或数字序列中一点的值用该点的一个邻域中各点值的中值代替,让周围的像素值接近的真实值,从而消除孤立的噪声点。本发明实施例中,因第一图像中的像素点在纵向上相对较少,对其处理所产生的效果不够明显,故本发明中可以按照横向方式对数据进行滤波处理,以提高空调设备的处理效率。For example, performing median filtering processing on the first image may be performing median filtering processing on each pixel in the first image. Median filtering is a nonlinear signal processing technology that can effectively suppress noise based on sorting statistics theory. Its basic principle is to use the value of a point in a digital image or digital sequence as the median value of each point in a neighborhood of the point. Instead, let the surrounding pixel values close to the true value, thereby eliminating isolated noise points. In the embodiment of the present invention, because the pixels in the first image are relatively few in the vertical direction, the effect of its processing is not obvious enough, so in the present invention, the data can be filtered in a horizontal manner to improve the performance of the air conditioner. Processing efficiency.

可选的,S12的过程可以是:按照滤波模板对第一图像包含的n个像素点进行中值滤波处理,获得第二图像;其中,第一图像包含的n个像素点中的每个像素点对应于初始温度值(即通过红外传感器阵列采集的温度值),第二图像包含的n个像素点中的每个像素点对应于滤波温度值。Optionally, the process of S12 may be: perform median filter processing on the n pixels contained in the first image according to the filter template to obtain the second image; wherein, each pixel in the n pixels contained in the first image The point corresponds to the initial temperature value (that is, the temperature value collected by the infrared sensor array), and each pixel point in the n pixels contained in the second image corresponds to the filtered temperature value.

在进行中值滤波时,所采用的滤波模板可以是变化的一维滑动模板,该滤波模板对应的滤波窗口的长度范围可以为[3,21]个像素点所占用的区域的长度,宽度为1个像素点所占用的区域的宽度,即,在对像素点滤波过程中,滤波模板可以由1*3(即滤波模板对应的滤波窗口的宽度为一个像素点所占用的区域的宽度,长度为3个像素点所占用的区域的长度,本文后续类似表述均表此意)逐渐变化为1*21的一维滑动模板,其变化为每处理一个像素点,其对应的滤波窗口的长度将增加两个像素点所占的区域的长度,即在第1次求中值时,采用1*3的滤波模块,进行第2次求中值时,采用1*5的滤波模块,第3次求中值时,采用1*7的滤波模板,……,依次类推。When performing median filtering, the filter template used can be a changing one-dimensional sliding template, and the length range of the filter window corresponding to the filter template can be the length of the area occupied by [3, 21] pixels, and the width is The width of the area occupied by 1 pixel, that is, in the process of filtering the pixel, the filter template can be 1*3 (that is, the width of the filter window corresponding to the filter template is the width of the area occupied by a pixel, and the length is the length of the area occupied by 3 pixels, which is expressed in the following similar expressions in this paper) gradually changes to a one-dimensional sliding template of 1*21, and the change is that every time a pixel is processed, the length of the corresponding filtering window will be Increase the length of the area occupied by two pixels, that is, when calculating the median value for the first time, use a 1*3 filter module; when calculating the median value for the second time, use a filter module of 1*5; When calculating the median, use the filter template of 1*7, ..., and so on.

举例来说,对于第一图像中大小为4*16(即4行16列)的一组像素点来说,4行中第i行的第j个像素点对应的滤波温度值即为第i行中由第1个像素点至第2j+1个像素点所形成的滤波窗口中处于中间位置的像素点的初始温度值,即在上述算法中,将第i行中第j+1个像素点对应的初始温度值确定为第j个像素点进行滤波后的滤波温度值,i依次取1至4的整数,j依次取1至16的整数。For example, for a group of pixels with a size of 4*16 (that is, 4 rows and 16 columns) in the first image, the filter temperature value corresponding to the j-th pixel in the i-th row of the 4 rows is the i-th The initial temperature value of the pixel in the middle position in the filter window formed by the 1st pixel to the 2j+1th pixel in the row, that is, in the above algorithm, the j+1th pixel in the i-th row The initial temperature value corresponding to the point is determined as the filtered temperature value of the jth pixel point after filtering, i takes an integer from 1 to 4 in turn, and j takes an integer from 1 to 16 in turn.

如图4所示,其为图像中对某行像素点按照滤波模板进行中值滤波的示意图,图中,位于该行第一位置的像素点1的滤波模板为1*3,其对应的滤波后的温度值即为位于滤波模板中间位置的像素点对应的温度值,即27.86,同理,位于第二位置的像素点2的滤波模板为1*5,其对应的滤波后的温度值即为滤波模板中处于中间位置的像素点的温度值,即27.93,同理,位于第三位置的像素点3对应的滤波后的温度值为27.96。As shown in Figure 4, it is a schematic diagram of performing median filtering on a row of pixels in the image according to the filter template. In the figure, the filter template of pixel 1 at the first position of the row is 1*3, and its corresponding filter The resulting temperature value is the temperature value corresponding to the pixel located in the middle of the filter template, that is, 27.86. Similarly, the filter template of pixel 2 located in the second position is 1*5, and the corresponding filtered temperature value is is the temperature value of the pixel at the middle position in the filtering template, that is, 27.93. Similarly, the filtered temperature value corresponding to pixel 3 at the third position is 27.96.

需要说明的是,在实际应用中,第一图像对应的像素点较多,在按照上述方法对第一图像进行中值滤波时,具体是由第一图像的两侧向中间进行滤波处理,对于像素点来说,即为,将位于每行端点的两个像素点(即位于该行第一位置的像素点和最后位置的像素点)分别作为起始点,并向位于中间位置的像素点逐个地进行中值滤波,当然,相应的滤波模板对应的滤波窗口的长度也由两侧逐渐向中间扩展。It should be noted that in practical applications, the first image corresponds to many pixels. When performing median filtering on the first image according to the above method, the filtering process is performed from both sides of the first image to the middle. For In terms of pixels, that is, the two pixels located at the end points of each row (that is, the pixel at the first position and the pixel at the last position of the row) are respectively used as the starting point, and the pixels at the middle position are moved one by one Median filtering is performed in an efficient manner. Of course, the length of the filtering window corresponding to the corresponding filtering template is also gradually extended from both sides to the middle.

由于滤波模板的最大范围1*21,即每行中排列在第十位置的像素点10将到达对应的滤波窗口的最大长度,即21个像素点所占区域的长度,那么,在对排列在第十一位置的像素点11进行中值滤波时,仍按照滤波模板为1*21进行处理,此时,虽然像素点11的滤波模板的大小与像素点10的滤波模板的大小相同,但所处位置不同,像素点11的滤波模板的起始点为位于相应行中第二位置的像素点2,终止点为像素点22,而像素点10及像素点10之前的像素点各自对应的滤波模板的起始点均为像素点1。因此,在本发明实施例中,可以认为当处理的像素点对应的滤波模板的滤波窗口的长度在达到最大长度后,则将该像素点之后的其它像素点对应的滤波窗口的长度保持不变,但其所处的位置将发生平移,即每往后处理一个像素点,滤波窗口的起始位置将由该行的第一位置往后移动一个位置,从而完成对n个像素点的处理。Since the maximum range of the filter template is 1*21, that is, the pixel points 10 arranged at the tenth position in each row will reach the maximum length of the corresponding filter window, that is, the length of the area occupied by 21 pixel points, then, in the pair arranged in When the pixel point 11 at the eleventh position is subjected to median filtering, it is still processed according to the filter template of 1*21. At this time, although the size of the filter template of pixel point 11 is the same as that of pixel point 10, the The positions are different, the starting point of the filter template of pixel 11 is pixel 2 located in the second position in the corresponding row, the end point is pixel 22, and the corresponding filter templates of pixel 10 and pixels before pixel 10 are respectively The starting point of is pixel 1. Therefore, in the embodiment of the present invention, it can be considered that when the length of the filter window of the filter template corresponding to the processed pixel reaches the maximum length, the length of the filter window corresponding to other pixels after the pixel remains unchanged , but its position will be shifted, that is, every time a pixel is processed later, the starting position of the filter window will be moved back by one position from the first position of the row, thus completing the processing of n pixels.

因此,通过对第一图像包含的n个像素点进行中值滤波所获得的第二图像中包含的n个像素点中的每个像素点可以是对应于滤波温度值。Therefore, each of the n pixel points contained in the second image obtained by performing median filtering on the n pixel points contained in the first image may correspond to a filtered temperature value.

可选的,S13的过程可以包括:根据第一图像与第二图像中像素点的对应关系,分别获得n个初始温度值中的每个初始温度值与n个滤波温度值中对应的滤波温度值的差值,并根据得到的n个差值中大于等于预设阈值的r个差值确定第一环境中的用户的相关信息。Optionally, the process of S13 may include: according to the corresponding relationship between the pixels in the first image and the second image, respectively obtain each of the n initial temperature values and the corresponding filter temperature among the n filter temperature values value, and determine the relevant information of the user in the first environment according to the r difference values greater than or equal to the preset threshold among the obtained n difference values.

其中,预设阈值可以是空调设备中出厂即行设置好的,本发明实施例中,预设阈值可以取1°、1.5°等。Wherein, the preset threshold may be set in the air conditioner at the factory. In the embodiment of the present invention, the preset threshold may be 1°, 1.5°, or the like.

由于用户的人体温度通常要高于环境温度,故第一图像中n个像素点对应的初始温度值中包括与人体对应的温度值及与环境对应的温度值,而通过中值滤波得到的第二图像中的n个像素点对应的滤波温度值较为近似,故根据每个像素点在中值滤波前后的温度值,即可确定每个像素点对应的差值。例如,对于某像素点来说,其在第一图像中(即中值滤波前)对应的初始温度值为28.26,在第二图像中(即中值滤波后)对应的初始温度为28.37,那么,其对应的差值即为28.26-28.37=-0.11。Since the user's body temperature is usually higher than the ambient temperature, the initial temperature values corresponding to the n pixels in the first image include the temperature values corresponding to the human body and the temperature values corresponding to the environment, and the first image obtained through median filtering The filtered temperature values corresponding to n pixels in the two images are relatively similar, so the difference corresponding to each pixel can be determined according to the temperature value of each pixel before and after median filtering. For example, for a certain pixel, its corresponding initial temperature value in the first image (ie before median filtering) is 28.26, and in the second image (ie after median filtering) the corresponding initial temperature is 28.37, then , and the corresponding difference is 28.26-28.37=-0.11.

在获得n个像素点对应的n个差值后,可以确定出大于预设阈值的r个差值,该r个差值对应的r个像素点即为与用户对应的像素点。After obtaining n difference values corresponding to n pixels, r difference values greater than a preset threshold can be determined, and the r pixels corresponding to the r difference values are the pixels corresponding to the user.

可选的,在获得r个差值后,还可将确定r个温度差对应的r个像素点在第一图像或第二图像中的位置,根据r个像素点位置确定处于第一环境中的用户的数量及用户之间的距离,和/或,根据温度与距离之间的对应关系及r个像素点对应的r个初始温度值,确定用户与空调设备之间的距离。Optionally, after obtaining the r differences, the positions of the r pixels corresponding to the r temperature differences in the first image or the second image can also be determined, and the position of the r pixels in the first environment can be determined according to the positions of the r pixels. The number of users and the distance between users, and/or, according to the correspondence between temperature and distance and the r initial temperature values corresponding to r pixel points, determine the distance between the user and the air conditioner.

如图5所示,其为第一图像对应的像素点,图中的“”代表中差值小于预设阈值的像素点,“-”代表差值大于预设阈值的像素点。则“-”所在区域即为用户在第一环境中所处的区域,由图5可知第一环境中包括2个用户,则根据像素点还可以确定2个用户之间的距离。As shown in FIG. 5 , it is the pixel corresponding to the first image. " " in the figure represents a pixel whose median difference is less than a preset threshold, and "-" represents a pixel whose difference is greater than a preset threshold. Then the area where "-" is located is the area where the user is located in the first environment. It can be seen from FIG. 5 that the first environment includes 2 users, and the distance between the 2 users can also be determined according to the pixel points.

进一步,根据温度与距离之间的对应关系,及r个像素点对应的温度值即可计算出用户与空调设备之间的距离,具体计算方式与现有方式相同,此处不在赘述。Further, the distance between the user and the air conditioner can be calculated according to the correspondence between temperature and distance, and the temperature values corresponding to r pixels. The specific calculation method is the same as the existing method, and will not be repeated here.

本发明实施例中,在对第一图像进行中值滤波的过程中,采用变化的滤波模板,避免了在原始中值滤波方法中需要在增加额外的像素点来匹配中值滤波的,运算时间仅需0.5秒,大大加快了运算速度,从而能够快速地区分与用户相关的像素点,使得空调设备的工作效率较高,实现了空调设备的智能化,从而提高用户的体验度。In the embodiment of the present invention, in the process of performing median filtering on the first image, a changed filtering template is used to avoid the need to add additional pixels to match the median filtering in the original median filtering method, and the calculation time is reduced. It only takes 0.5 seconds, which greatly speeds up the calculation speed, so that the pixels related to the user can be quickly distinguished, which makes the air-conditioning equipment more efficient, realizes the intelligence of the air-conditioning equipment, and improves the user experience.

如图6所示,本发明实施例还公开一种空调设备,该空调设备包括:获取模块301、处理模块302和确定模块303。As shown in FIG. 6 , the embodiment of the present invention also discloses an air conditioner, which includes: an acquisition module 301 , a processing module 302 and a determination module 303 .

获取模块301可以用于通过空调设备中的红外传感器阵列对所述空调设备所处的第一环境进行扫描,获得与所述第一环境对应的第一图像;The acquisition module 301 may be configured to scan a first environment where the air conditioner is located through an infrared sensor array in the air conditioner, and obtain a first image corresponding to the first environment;

处理模块302可以用于对所述第一图像进行中值滤波处理,获得与所述第一图像对应的第二图像;The processing module 302 may be configured to perform median filtering processing on the first image to obtain a second image corresponding to the first image;

确定模块303可以用于根据所述第一图像和所述第二图像确定所述第一环境中的用户的相关信息。The determining module 303 may be configured to determine relevant information of users in the first environment according to the first image and the second image.

可选的,所述中值滤波处理采用的滤波模板对应的滤波窗口的长度范围为[3,21]个像素点所占用的区域的长度,宽度为1个像素点所占用的区域的宽度。Optionally, the length of the filtering window corresponding to the filtering template used in the median filtering process is the length of the area occupied by [3, 21] pixels, and the width is the width of the area occupied by 1 pixel.

可选的,所述处理模块302还可以用于:按照所述滤波模板对所述第一图像包含的n个像素点进行中值滤波处理,获得所述第二图像;其中,所述第一图像包含的所述n个像素点中的每个像素点对应于初始温度值,所述第二图像包含的n个像素点中的每个像素点对应于滤波温度值。Optionally, the processing module 302 may also be configured to: perform median filtering processing on the n pixels contained in the first image according to the filtering template to obtain the second image; wherein, the first Each of the n pixels included in the image corresponds to an initial temperature value, and each of the n pixels included in the second image corresponds to a filtered temperature value.

可选的,所述确定模块303可以用于:Optionally, the determining module 303 may be used to:

根据所述第一图像与所述第二图像中像素点的对应关系,分别获得所述n个初始温度值中的每个初始温度值与所述n个滤波温度值中对应的滤波温度值的差值;According to the corresponding relationship between the pixel points in the first image and the second image, the relationship between each initial temperature value in the n initial temperature values and the corresponding filtered temperature value in the n filtered temperature values is respectively obtained. difference;

根据得到的n个差值中大于等于预设阈值的r个差值确定所述第一环境中的用户的相关信息。Determine the relevant information of the user in the first environment according to r difference values greater than or equal to a preset threshold among the obtained n difference values.

可选的,所述确定模块303可以用于:确定所述r个温度差对应的r个像素点在所述第一图像或所述第二图像中的位置,根据所述r个像素点位置确定处于所述第一环境中的用户的数量及用户之间的距离,和/或,根据温度与距离之间的对应关系及所述r个像素点对应的r个初始温度值,确定所述用户与所述空调设备之间的距离。Optionally, the determining module 303 may be configured to: determine the positions of r pixels corresponding to the r temperature differences in the first image or the second image, according to the position of the r pixels Determine the number of users in the first environment and the distance between users, and/or, according to the correspondence between temperature and distance and the r initial temperature values corresponding to the r pixel points, determine the The distance between the user and the air conditioner.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。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)

1.一种用户识别方法,其特征在于,所述方法包括:1. A user identification method, characterized in that the method comprises: 通过空调设备中的红外传感器阵列对所述空调设备所处的第一环境进行扫描,获得与所述第一环境对应的第一图像;Scanning a first environment where the air conditioner is located by using an infrared sensor array in the air conditioner to obtain a first image corresponding to the first environment; 对所述第一图像进行中值滤波处理,获得与所述第一图像对应的第二图像;performing median filtering processing on the first image to obtain a second image corresponding to the first image; 根据所述第一图像和所述第二图像确定所述第一环境中的用户的相关信息。Relevant information of users in the first environment is determined according to the first image and the second image. 2.如权利要求1所述的方法,其特征在于,所述中值滤波处理采用的滤波模板对应的滤波窗口的长度范围为[3,21]个像素点所占用的区域的长度,宽度为1个像素点所占用的区域的宽度。2. The method according to claim 1, wherein the length range of the filter window corresponding to the filter template used in the median filtering process is the length of the area occupied by [3, 21] pixels, and the width is The width of the area occupied by 1 pixel. 3.如权利要求2所述的方法,其特征在于,对所述第一图像进行中值滤波处理,获得与所述第一图像对应的第二图像,包括:3. The method according to claim 2, wherein performing median filtering on the first image to obtain a second image corresponding to the first image comprises: 按照所述滤波模板对所述第一图像包含的n个像素点进行中值滤波处理,获得所述第二图像;其中,所述第一图像包含的所述n个像素点中的每个像素点对应于初始温度值,所述第二图像包含的n个像素点中的每个像素点对应于滤波温度值。Perform median filter processing on the n pixels included in the first image according to the filter template to obtain the second image; wherein, each pixel in the n pixels included in the first image The point corresponds to the initial temperature value, and each pixel point in the n pixel points included in the second image corresponds to the filtered temperature value. 4.如权利要求3所述的方法,其特征在于,根据所述第一图像和所述第二图像确定所述第一环境中的用户的相关信息,包括:4. The method according to claim 3, wherein determining relevant information of users in the first environment according to the first image and the second image comprises: 根据所述第一图像与所述第二图像中像素点的对应关系,分别获得所述n个初始温度值中的每个初始温度值与所述n个滤波温度值中对应的滤波温度值的差值;According to the corresponding relationship between the pixel points in the first image and the second image, the relationship between each initial temperature value in the n initial temperature values and the corresponding filtered temperature value in the n filtered temperature values is respectively obtained. difference; 根据得到的n个差值中大于等于预设阈值的r个差值确定所述第一环境中的用户的相关信息。Determine the relevant information of the user in the first environment according to r difference values greater than or equal to a preset threshold among the obtained n difference values. 5.如权利要求4所述的方法,其特征在于,根据得到的n个差值中大于等于预设阈值的r个差值确定所述第一环境中的用户的相关信息,包括:5. The method according to claim 4, characterized in that determining the relevant information of the user in the first environment according to the r difference values greater than or equal to a preset threshold among the obtained n difference values comprises: 确定所述r个温度差对应的r个像素点在所述第一图像或所述第二图像中的位置,根据所述r个像素点位置确定处于所述第一环境中的用户的数量及用户之间的距离;和/或determining the positions of r pixels corresponding to the r temperature differences in the first image or the second image, and determining the number and number of users in the first environment according to the positions of the r pixels distance between users; and/or 根据温度与距离之间的对应关系及所述r个像素点对应的r个初始温度值,确定所述用户与所述空调设备之间的距离。The distance between the user and the air conditioner is determined according to the correspondence between the temperature and the distance and the r initial temperature values corresponding to the r pixel points. 6.一种空调设备,其特征在于,所述空调设备包括:6. An air conditioner, characterized in that the air conditioner comprises: 获取模块,用于通过空调设备中的红外传感器阵列对所述空调设备所处的第一环境进行扫描,获得与所述第一环境对应的第一图像;An acquisition module, configured to scan a first environment where the air conditioner is located through an infrared sensor array in the air conditioner, and obtain a first image corresponding to the first environment; 处理模块,用于对所述第一图像进行中值滤波处理,获得与所述第一图像对应的第二图像;A processing module, configured to perform median filtering processing on the first image to obtain a second image corresponding to the first image; 确定模块,用于根据所述第一图像和所述第二图像确定所述第一环境中的用户的相关信息。A determining module, configured to determine relevant information of users in the first environment according to the first image and the second image. 7.如权利要求6所述的空调设备,其特征在于,所述中值滤波处理采用的滤波模板对应的滤波窗口的长度范围为[3,21]个像素点所占用的区域的长度,宽度为1个像素点所占用的区域的宽度。7. The air conditioner according to claim 6, wherein the length range of the filter window corresponding to the filter template used in the median filter process is the length and width of the area occupied by [3, 21] pixels. It is the width of the area occupied by 1 pixel. 8.如权利要求7所述的空调设备,其特征在于,所述处理模块用于:8. The air conditioner according to claim 7, wherein the processing module is used for: 按照所述滤波模板对所述第一图像包含的n个像素点进行中值滤波处理,获得所述第二图像;其中,所述第一图像包含的所述n个像素点中的每个像素点对应于初始温度值,所述第二图像包含的n个像素点中的每个像素点对应于滤波温度值。Perform median filter processing on the n pixels included in the first image according to the filter template to obtain the second image; wherein, each pixel in the n pixels included in the first image The point corresponds to the initial temperature value, and each pixel point in the n pixel points included in the second image corresponds to the filtered temperature value. 9.如权利要求8所述的空调设备,其特征在于,所述确定模块用于:9. The air conditioner according to claim 8, wherein the determination module is used for: 根据所述第一图像与所述第二图像中像素点的对应关系,分别获得所述n个初始温度值中的每个初始温度值与所述n个滤波温度值中对应的滤波温度值的差值;According to the corresponding relationship between the pixel points in the first image and the second image, the relationship between each initial temperature value in the n initial temperature values and the corresponding filtered temperature value in the n filtered temperature values is respectively obtained. difference; 根据得到的n个差值中大于等于预设阈值的r个差值确定所述第一环境中的用户的相关信息。Determine the relevant information of the user in the first environment according to r difference values greater than or equal to a preset threshold among the obtained n difference values. 10.如权利要求9所述的空调设备,其特征在于,所述确定模块用于:10. The air conditioner according to claim 9, wherein the determination module is used for: 确定所述r个温度差对应的r个像素点在所述第一图像或所述第二图像中的位置,根据所述r个像素点位置确定处于所述第一环境中的用户的数量及用户之间的距离;和/或determining the positions of r pixels corresponding to the r temperature differences in the first image or the second image, and determining the number and number of users in the first environment according to the positions of the r pixels distance between users; and/or 根据温度与距离之间的对应关系及所述r个像素点对应的r个初始温度值,确定所述用户与所述空调设备之间的距离。The distance between the user and the air conditioner is determined according to the correspondence between the temperature and the distance and the r initial temperature values corresponding to the r pixel points.
CN201510923725.2A 2015-12-11 2015-12-11 A kind of user identification method and air-conditioning equipment Expired - Fee Related CN105549724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510923725.2A CN105549724B (en) 2015-12-11 2015-12-11 A kind of user identification method and air-conditioning equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510923725.2A CN105549724B (en) 2015-12-11 2015-12-11 A kind of user identification method and air-conditioning equipment

Publications (2)

Publication Number Publication Date
CN105549724A true CN105549724A (en) 2016-05-04
CN105549724B CN105549724B (en) 2018-09-04

Family

ID=55828951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510923725.2A Expired - Fee Related CN105549724B (en) 2015-12-11 2015-12-11 A kind of user identification method and air-conditioning equipment

Country Status (1)

Country Link
CN (1) CN105549724B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109611906A (en) * 2018-12-04 2019-04-12 宁波吉吉娃电子科技有限公司 Schema adaptation mechanism

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070130182A1 (en) * 2005-12-01 2007-06-07 Microsoft Corporation Data ecosystem awareness
CN104279705A (en) * 2014-10-08 2015-01-14 广东美的制冷设备有限公司 Air conditioner control method, air conditioner control system and air conditioner
CN105066323A (en) * 2015-07-15 2015-11-18 四川长虹电器股份有限公司 Recognizing method and air conditioner

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070130182A1 (en) * 2005-12-01 2007-06-07 Microsoft Corporation Data ecosystem awareness
CN104279705A (en) * 2014-10-08 2015-01-14 广东美的制冷设备有限公司 Air conditioner control method, air conditioner control system and air conditioner
CN105066323A (en) * 2015-07-15 2015-11-18 四川长虹电器股份有限公司 Recognizing method and air conditioner

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109611906A (en) * 2018-12-04 2019-04-12 宁波吉吉娃电子科技有限公司 Schema adaptation mechanism

Also Published As

Publication number Publication date
CN105549724B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN109614922B (en) Dynamic and static gesture recognition method and system
CN107146198B (en) Intelligent photo cutting method and device
JP6688277B2 (en) Program, learning processing method, learning model, data structure, learning device, and object recognition device
EP3168810A1 (en) Image generating method and apparatus
CN112534469B (en) Image detection method, image detection device, image detection equipment and medium
CN111091075A (en) Face recognition method and device, electronic equipment and storage medium
CN101339661B (en) A real-time human-computer interaction method and system based on handheld device motion detection
CN106845338B (en) Pedestrian detection method and system in video stream
CN113378641A (en) Gesture recognition method based on deep neural network and attention mechanism
CN103116754A (en) Batch image segmentation method and batch image segmentation system based on recognition models
CN111898525B (en) Construction method of smoke identification model, and method and device for detecting smoke
CN110443148A (en) A kind of action identification method, system and storage medium
US9400924B2 (en) Object recognition method and object recognition apparatus using the same
CN111240217B (en) State detection method and device, electronic equipment and storage medium
CN109261528A (en) Express delivery sorting method and device based on binocular vision
CN110321908A (en) Image-recognizing method, terminal device and computer readable storage medium
CN117274563A (en) A photovoltaic panel position and orientation recognition method, device and installation robot
CN114170652A (en) A face image detection method and device, terminal device and storage medium
CN117197110A (en) Image recognition methods and devices, storage media and electronic equipment
CN105549724B (en) A kind of user identification method and air-conditioning equipment
CN102955947B (en) A kind of device and method thereof for being used to determine image definition
CN115147932A (en) Static gesture recognition method and system based on deep learning
CN105335717B (en) Face identification system based on the analysis of intelligent mobile terminal video jitter
CN105526671A (en) User identification method and air conditioning equipment
CN110826455A (en) A target recognition method and image processing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180904

CF01 Termination of patent right due to non-payment of annual fee