CN114187524B - Household air conditioner identification method, device, equipment, storage medium and product - Google Patents

Household air conditioner identification method, device, equipment, storage medium and product Download PDF

Info

Publication number
CN114187524B
CN114187524B CN202210140021.8A CN202210140021A CN114187524B CN 114187524 B CN114187524 B CN 114187524B CN 202210140021 A CN202210140021 A CN 202210140021A CN 114187524 B CN114187524 B CN 114187524B
Authority
CN
China
Prior art keywords
building
household air
street
air conditioners
height
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210140021.8A
Other languages
Chinese (zh)
Other versions
CN114187524A (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.)
Institute of Geographic Sciences and Natural Resources of CAS
Original Assignee
Institute of Geographic Sciences and Natural Resources of CAS
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 Institute of Geographic Sciences and Natural Resources of CAS filed Critical Institute of Geographic Sciences and Natural Resources of CAS
Priority to CN202210140021.8A priority Critical patent/CN114187524B/en
Publication of CN114187524A publication Critical patent/CN114187524A/en
Application granted granted Critical
Publication of CN114187524B publication Critical patent/CN114187524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30242Counting objects in image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The present disclosure provides a method, apparatus, device, storage medium and product for identifying a home air conditioner, the method comprising: acquiring an identification request; acquiring a remote sensing image corresponding to the area identifier according to the identification request, and determining the outline and height of each building in the area to be identified according to the remote sensing image; according to the identification request, obtaining a street view picture corresponding to the area identification, and determining the number of household air conditioners corresponding to each street building in the street view picture; determining the outline and the height of the buildings along the street in the remote sensing image according to the position information of the buildings along the street; determining the mapping relation between the number of the household air conditioners and the outline and the height; calculating the number of target household air conditioners corresponding to each building according to the outline and the height corresponding to each building; and determining the sum of the target household air conditioner quantity corresponding to each building as the total quantity of the household air conditioners in the area to be identified. The accurate extraction of the using amount and the spatial distribution condition of the urban household air conditioner is emphatically solved, and the using and surveying efficiency of the household air conditioner is effectively improved.

Description

家用空调识别方法、装置、设备、存储介质及产品Household air conditioner identification method, device, equipment, storage medium and product

技术领域technical field

本公开涉及图像处理领域,尤其涉及一种家用空调识别方法、装置、设备、存储介质及产品。The present disclosure relates to the field of image processing, and in particular, to a method, device, device, storage medium and product for identifying a household air conditioner.

背景技术Background technique

气候变化加剧了极端高温灾害对人类生命安全的风险威胁,家用空调是居民应对极端温度事件的有效手段,也是夏季高温期间电力能源消耗的重要方式。准确掌握家用空调数量及其空间分布对于科学调度能源、节能减排、提高居民应对极端温度灾害等都具有重要意义。但是目前空调使用数量和空间分布数据非常欠缺,如何实现对家用空调使用数据以及空间分布进行确定成为了亟待解决的问题。Climate change has exacerbated the risk and threat of extreme high temperature disasters to human life safety. Household air conditioners are an effective means for residents to cope with extreme temperature events, and also an important way to consume electricity and energy during high temperature in summer. Accurately grasping the number of household air conditioners and their spatial distribution is of great significance for scientifically dispatching energy, saving energy and reducing emissions, and improving residents' response to extreme temperature disasters. However, at present, the data on the usage quantity and spatial distribution of air conditioners are very lacking, and how to determine the usage data and spatial distribution of household air conditioners has become an urgent problem to be solved.

现有的家用空调识别方法目前一般都是以传统的人力抽样调查和用户调查为主,样本点较少,调查结果有较大的不确定性,且调查较耗时费力,且传统识别方法难以准确掌握空调数量的空间分布规律。The existing household air conditioner identification methods are generally based on traditional human sample surveys and user surveys. There are few sample points, and the survey results have greater uncertainty. The survey is time-consuming and labor-intensive, and traditional identification methods are difficult to achieve. Accurately grasp the spatial distribution law of the number of air conditioners.

发明内容SUMMARY OF THE INVENTION

本公开提供一种家用空调识别方法、装置、设备、存储介质及产品,用于解决现有的家用空调使用数据以及空间分布的确定方法准确性不高、较为耗费人力资源且效率较低的技术问题。The present disclosure provides a method, device, equipment, storage medium and product for identifying household air conditioners, which are used to solve the problems that the existing methods for determining the use data and spatial distribution of household air conditioners are not accurate, consume human resources and have low efficiency. question.

本公开的第一个方面是提供一种家用空调识别方法,包括:A first aspect of the present disclosure is to provide a method for identifying a household air conditioner, including:

获取识别请求,其中,所述识别请求包括待识别区域的区域标识;Obtaining an identification request, wherein the identification request includes an area identifier of the area to be identified;

根据所述识别请求,获取与所述区域标识对应的遥感影像,根据所述遥感影像确定所述待识别区域内各建筑物的轮廓,以及根据所述遥感影像确定各建筑物的高度;According to the identification request, obtain a remote sensing image corresponding to the area identifier, determine the outline of each building in the to-be-identified area according to the remote sensing image, and determine the height of each building according to the remote sensing image;

根据所述识别请求,获取与所述区域标识对应的至少一张街景图片,根据所述至少一张街景图片确定所述街景图片内各沿街建筑物对应的家用空调数量;Acquire at least one street view picture corresponding to the area identifier according to the identification request, and determine the number of household air conditioners corresponding to buildings along the street in the street view picture according to the at least one street view picture;

针对各沿街建筑物,根据所述沿街建筑物的位置信息确定所述沿街建筑物在所述遥感影像中的轮廓以及高度;For each building along the street, determine the outline and height of the building along the street in the remote sensing image according to the location information of the building along the street;

根据各沿街建筑物对应的轮廓、高度以及家用空调数量,确定所述家用空调数量与轮廓、高度之间的映射关系;Determine the mapping relationship between the number of household air conditioners and the contour and height according to the corresponding contour, height and the number of household air conditioners of the buildings along the street;

针对所述待识别区域内各建筑物,根据所述各建筑物对应的轮廓以及高度计算各建筑物对应的目标家用空调数量;For each building in the to-be-identified area, calculate the number of target household air conditioners corresponding to each building according to the contour and height corresponding to each building;

将各建筑物对应的目标家用空调数量的和确定为所述待识别区域内的家用空调总量。The sum of the number of target household air conditioners corresponding to each building is determined as the total amount of household air conditioners in the to-be-identified area.

本公开的第二个方面是提供一种家用空调识别装置,包括:A second aspect of the present disclosure is to provide a household air conditioner identification device, comprising:

获取模块,用于获取识别请求,其中,所述识别请求包括待识别区域的区域标识;an acquisition module, configured to acquire an identification request, wherein the identification request includes an area identifier of the area to be identified;

遥感影像处理模块,用于根据所述识别请求,获取与所述区域标识对应的遥感影像,根据所述遥感影像确定所述待识别区域内各建筑物的轮廓,以及根据所述遥感影像确定各建筑物的高度;The remote sensing image processing module is configured to obtain a remote sensing image corresponding to the area identifier according to the identification request, determine the outline of each building in the to-be-identified area according to the remote sensing image, and determine each building according to the remote sensing image. the height of the building;

街景图片处理模块,用于根据所述识别请求,获取与所述区域标识对应的至少一张街景图片,根据所述至少一张街景图片确定所述街景图片内各沿街建筑物对应的家用空调数量;A street view picture processing module, configured to obtain at least one street view picture corresponding to the area identifier according to the identification request, and determine the number of household air conditioners corresponding to each street building in the street view picture according to the at least one street view picture ;

匹配模块,用于针对各沿街建筑物,根据所述沿街建筑物的位置信息确定所述沿街建筑物在所述遥感影像中的轮廓以及高度;a matching module for determining, for each building along the street, the outline and height of the building along the street in the remote sensing image according to the location information of the building along the street;

确定模块,用于根据各沿街建筑物对应的轮廓、高度以及家用空调数量,确定所述家用空调数量与轮廓、高度之间的映射关系;A determination module, configured to determine the mapping relationship between the number of household air conditioners and the outline and height according to the corresponding contours, heights and the number of household air conditioners of buildings along the street;

计算模块,用于针对所述待识别区域内各建筑物,根据所述各建筑物对应的轮廓以及高度计算各建筑物对应的目标家用空调数量;a calculation module, configured to calculate the number of target household air conditioners corresponding to each building according to the contour and height corresponding to each building for each building in the to-be-identified area;

处理模块,用于将各建筑物对应的目标家用空调数量的和确定为所述待识别区域内的家用空调总量。The processing module is configured to determine the sum of the number of target household air conditioners corresponding to each building as the total amount of household air conditioners in the to-be-identified area.

本公开的第三个方面是提供一种电子设备,包括:存储器,处理器;A third aspect of the present disclosure is to provide an electronic device, including: a memory, and a processor;

存储器;用于存储所述处理器可执行指令的存储器;memory; memory for storing instructions executable by the processor;

其中,所述处理器用于调用所述存储器中的程序指令执行如第一方面所述的家用空调识别方法。Wherein, the processor is configured to invoke the program instructions in the memory to execute the method for identifying a household air conditioner according to the first aspect.

本公开的第四个方面是提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如第一方面所述的家用空调识别方法。A fourth aspect of the present disclosure is to provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, are used to implement the first aspect Home air conditioner identification method.

本公开的第五个方面是提供一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现如第一方面所述的家用空调识别方法。A fifth aspect of the present disclosure is to provide a computer program product, including a computer program that, when executed by a processor, implements the method for identifying a household air conditioner according to the first aspect.

本公开提供的家用空调识别方法、装置、设备、存储介质及产品,通过利用高分辨率卫星遥感影像与互联网地图街景图片信息、基于深度学习和空间统计方法的高效精准的家用空调空间统计调查方法,着重解决城市家用空调使用量及其空间分布状况准确提取,有效提升家用空调使用调查效率,也进一步提升城镇居民和管理部门应对极端高温事件、合理调度电力能源等的管控水平。The household air conditioner identification method, device, equipment, storage medium and product provided by the present disclosure, by using high-resolution satellite remote sensing images and Internet map street view picture information, an efficient and accurate household air conditioner spatial statistical survey method based on deep learning and spatial statistical methods , focusing on the accurate extraction of urban household air-conditioning usage and its spatial distribution, effectively improving the efficiency of household air-conditioning use investigations, and further improving the management and control level of urban residents and management departments in responding to extreme high temperature events and rationally dispatching electric energy.

附图说明Description of drawings

为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present disclosure or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present disclosure, those of ordinary skill in the art can also obtain other drawings according to these drawings.

图1为本公开基于的系统架构示意图;1 is a schematic diagram of a system architecture on which the present disclosure is based;

图2为本公开实施例一提供的家用空调识别方法的流程示意图;2 is a schematic flowchart of a method for identifying a household air conditioner according to Embodiment 1 of the present disclosure;

图3为本公开实施例提供的待识别区域内建筑物的轮廓示意图;3 is a schematic outline diagram of a building in a to-be-identified area provided by an embodiment of the present disclosure;

图4为本公开实施例二提供的家用空调识别方法的流程示意图;4 is a schematic flowchart of a method for identifying a household air conditioner according to Embodiment 2 of the present disclosure;

图5为本公开实施例三提供的家用空调识别方法的流程示意图;5 is a schematic flowchart of a method for identifying a household air conditioner according to Embodiment 3 of the present disclosure;

图6A为本公开实施例提供的卫星与太阳处于异侧的结构示意图;6A is a schematic structural diagram of a satellite and the sun on different sides according to an embodiment of the present disclosure;

图6B为本公开实施例提供的太阳与卫星处于同侧的结构示意图;6B is a schematic structural diagram of the sun and the satellite being on the same side according to an embodiment of the present disclosure;

图7为本公开实施例四提供的家用空调识别方法的流程示意图;7 is a schematic flowchart of a method for identifying a household air conditioner according to Embodiment 4 of the present disclosure;

图8为本公开实施例五提供的家用空调识别装置的结构示意图;8 is a schematic structural diagram of a household air conditioner identification device provided in Embodiment 5 of the present disclosure;

图9为本公开实施例六提供的电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device according to Embodiment 6 of the present disclosure.

具体实施方式Detailed ways

为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments These are some, but not all, embodiments of the present disclosure. All other embodiments obtained based on the embodiments in the present disclosure fall within the protection scope of the present disclosure.

针对上述提及的在现有的测试方法中,由于测试用的数据列表中存储有大量的重复信息,而导致的测试用例在测试过程中对数据列表对数据列表的数据信息利用率较低,不便于对数据列表的维护和管理的问题的维护和管理的问题,本公开提供了一种家用空调识别方法、装置、设备、存储介质及产品。In view of the above-mentioned existing test methods, since a large amount of repeated information is stored in the data list used for testing, the test case has a low utilization rate of the data information of the data list to the data list during the test process. To solve the problem of inconvenient maintenance and management of the data list, the present disclosure provides a household air conditioner identification method, device, device, storage medium and product.

需要说明的是,本公开提供家用空调识别方法、装置、设备、存储介质及产品可运用在对各中应用软件进行测试的场景中。It should be noted that the present disclosure provides a household air conditioner identification method, device, device, storage medium, and product that can be used in scenarios where application software is tested.

空调使用是城市居民应对极端高温的主要措施,但是目前空调使用数量和空间分布数据非常欠缺,空调使用调查仍采用传统的人工手段、通过抽样调查估算得出的统计数据,调查手段落后、调查数据不确定性较大、家用空调使用的空间分布规律不清。The use of air conditioners is the main measure for urban residents to cope with extreme high temperatures, but the current data on the number and spatial distribution of air conditioners is very lacking. The survey on air conditioner use still uses traditional manual methods and statistical data estimated through sampling surveys. The survey methods are backward and the survey data The uncertainty is large, and the spatial distribution of household air conditioners is unclear.

在解决上述技术问题的过程中,发明人通过研究发现,高分辨率遥感影像包含着地表目标丰富的形状结构和纹理信息,使其成为城市研究的重要数据源,如高分辨率航空遥感影像、卫星遥感影像、无人机遥感图像、雷达影像等都被广范应用于提取城市建筑物轮廓。而城市街景图片也包含了更多精细的信息,近些年也逐渐应用于城市信息提取,如交通信号灯、路侧建筑物、路灯、行道数提取等方面。可以利用高分辨率卫星遥感影像与互联网地图街景图片信息、基于深度学习和空间统计方法的高效精准的家用空调空间统计调查方法,着重解决城市家用空调使用量及其空间分布状况准确提取,有效提升家用空调使用调查效率,也进一步提升城镇居民和管理部门应对极端高温事件、合理调度电力能源等的管控水平。In the process of solving the above technical problems, the inventor found through research that high-resolution remote sensing images contain rich shape structure and texture information of surface targets, making them an important data source for urban research, such as high-resolution aerial remote sensing images, Satellite remote sensing images, UAV remote sensing images, radar images, etc. are widely used to extract the outline of urban buildings. Urban street view images also contain more detailed information, and in recent years, they have been gradually applied to urban information extraction, such as traffic lights, roadside buildings, street lights, and the number of streets. It can use high-resolution satellite remote sensing images and Internet map street view image information, efficient and accurate household air-conditioning spatial statistical survey methods based on deep learning and spatial statistical methods, focusing on solving the accurate extraction of urban household air-conditioning usage and its spatial distribution, effectively improving The efficiency of surveys on the use of household air conditioners has also further improved the management and control level of urban residents and management departments in responding to extreme high temperature events and rationally dispatching power and energy.

图1为本公开基于的系统架构示意图,如图1所示,本公开基于的系统架构至少包括:终端设备11、服务器12、遥感影像数据服务器13以及街景图片数据服务器14。其中,服务器12中设置有家用空调识别装置,该家用空调识别装置可以采用C/C++、Java、Shell或Python等语言编写;终端设备11则可例如台式电脑、平板电脑等。遥感影像数据服务器13可为云端服务器或服务器集群,其内存储有多个区域的遥感影像。街景图片数据服务器14可为云端服务器或服务器集群,其内存储有多个区域的街景图像。FIG. 1 is a schematic diagram of the system architecture on which the present disclosure is based. As shown in FIG. 1 , the system architecture on which the present disclosure is based at least includes: a terminal device 11 , a server 12 , a remote sensing image data server 13 and a street view image data server 14 . The server 12 is provided with a household air conditioner identification device, which can be written in languages such as C/C++, Java, Shell, or Python; the terminal device 11 can be, for example, a desktop computer, a tablet computer, or the like. The remote sensing image data server 13 may be a cloud server or a server cluster, which stores remote sensing images of multiple regions. The street view image data server 14 may be a cloud server or a server cluster, which stores street view images of multiple regions.

图2为本公开实施例一提供的家用空调识别方法的流程示意图,如图2所示,该方法包括:FIG. 2 is a schematic flowchart of a method for identifying a household air conditioner provided in Embodiment 1 of the present disclosure. As shown in FIG. 2 , the method includes:

步骤201、获取识别请求,其中,所述识别请求包括待识别区域的区域标识。Step 201: Obtain an identification request, wherein the identification request includes an area identifier of the area to be identified.

本实施例的执行主体为家用空调识别装置,该家用空调识别装置可耦合于服务器中,该服务器能够与终端设备通信连接,从而能够根据用户在终端设备上触发的识别请求对待识别区域内的家用空调数量进行识别。The executive body of this embodiment is a household air conditioner identification device. The household air conditioner identification device can be coupled to a server, and the server can be communicatively connected with a terminal device, so as to be able to identify households in the identified area according to an identification request triggered by the user on the terminal device. Identify the number of air conditioners.

在本实施方式中,为了实现对城市家用空调使用量及其空间分布状况的准确提取,进一步提升城镇居民和管理部门应对极端高温事件、合理调度电力能源等的管控水平。家用空调识别装置可以获取识别请求,其中,该识别请求可以为用户在终端设备上触发的。该识别请求中具体可以包括待识别区域的区域标识。例如,其可以为小区标识、社区标识等。In this embodiment, in order to achieve accurate extraction of the usage of urban household air conditioners and their spatial distribution, the management and control level of urban residents and management departments in dealing with extreme high temperature events and rationally dispatching electric energy is further improved. The household air conditioner identification device may acquire an identification request, where the identification request may be triggered by a user on a terminal device. The identification request may specifically include the area identifier of the area to be identified. For example, it may be a cell identity, a community identity, or the like.

步骤202、根据所述识别请求,获取与所述区域标识对应的遥感影像,根据所述遥感影像确定所述待识别区域内各建筑物的轮廓,以及根据所述遥感影像确定各建筑物的高度。Step 202: Acquire a remote sensing image corresponding to the area identifier according to the identification request, determine the outline of each building in the to-be-identified area according to the remote sensing image, and determine the height of each building according to the remote sensing image .

在本实施方式中,家用空调一般都在建筑物外侧设置有空调外挂机,可以通过对建筑物外侧的空调外挂机进行识别,实现待识别区域内空调数量的统计。由于高分辨率遥感影像包含着地表目标丰富的形状结构和纹理信息,因此,可以通过遥感影像实现对待识别区域内各建筑物的轮廓等信息。In this embodiment, household air conditioners are generally provided with air conditioner plug-in units outside the building, and the number of air conditioners in the area to be identified can be counted by identifying the air conditioner plug-in units outside the building. Since high-resolution remote sensing images contain rich shape structure and texture information of surface targets, information such as the contours of buildings in the area to be identified can be realized through remote sensing images.

具体地,在获取到识别请求之后,可以根据该识别请求获取区域标识对应的遥感影像。其中,该遥感影像中还包括各建筑物对应的位置信息等内容。对该遥感影像进行图像识别操作,以确定待识别区域内各建筑物的轮廓以及各建筑物的高度。Specifically, after the identification request is obtained, the remote sensing image corresponding to the area identifier may be obtained according to the identification request. Wherein, the remote sensing image also includes content such as position information corresponding to each building. An image recognition operation is performed on the remote sensing image to determine the outline of each building in the area to be recognized and the height of each building.

步骤203、根据所述识别请求,获取与所述区域标识对应的至少一张街景图片,根据所述至少一张街景图片确定所述街景图片内各沿街建筑物对应的家用空调数量。Step 203: Acquire at least one street view picture corresponding to the area identifier according to the identification request, and determine the number of home air conditioners corresponding to each street building in the street view picture according to the at least one street view picture.

在本实施方式中,城市街景图片也包含了更多精细的信息,例如,其可以包括交通信号灯、路灯、沿街建筑物等内容。结合深度学习方法以及街景图片,能够实现对沿街建筑物上设置的空调外挂机的识别。In this embodiment, the city street view picture also includes more detailed information, for example, it may include traffic lights, street lights, buildings along the street, and the like. Combined with deep learning methods and street view pictures, it is possible to identify the air conditioners installed on buildings along the street.

具体地,在获取到识别请求之后,可以根据该识别请求获取区域标识对应的至少一张街景图片。通过深度学习的方式对街景图片进行识别,以确定街景图片内沿街建筑物一侧家用空调的数量。进一步地,针对沿街建筑物另外三侧的空调外挂机数量,可以通过人工进行识别以及统计。将深度学习识别到的数量以及人工识别的数量的和确定为各沿街建筑物对应的家用空调数量。Specifically, after the identification request is obtained, at least one street view picture corresponding to the area identifier may be obtained according to the identification request. The street view image is recognized by means of deep learning to determine the number of household air conditioners on the side of the building along the street in the street view image. Further, the number of external air conditioners on the other three sides of the building along the street can be manually identified and counted. The sum of the number identified by deep learning and the number identified manually is determined as the number of household air conditioners corresponding to each building along the street.

步骤204、针对各沿街建筑物,根据所述沿街建筑物的位置信息确定所述沿街建筑物在所述遥感影像中的轮廓以及高度。Step 204: For each building along the street, determine the outline and height of the building along the street in the remote sensing image according to the location information of the building along the street.

在本实施方式中,街景图片中的沿街建筑物具有位置信息,可以根据该位置信息与遥感影像中建筑物的位置信息进行比对,以确定各街景建筑物在遥感影像中的轮廓以及高度。In this embodiment, the buildings along the street in the street view picture have location information, and the location information can be compared with the location information of the buildings in the remote sensing image to determine the outline and height of each street view building in the remote sensing image.

步骤205、根据各沿街建筑物对应的轮廓、高度以及家用空调数量,确定所述家用空调数量与轮廓、高度之间的映射关系。Step 205: Determine the mapping relationship between the number of household air conditioners, the outline, and the height according to the corresponding outline and height of each building along the street, and the number of household air conditioners.

在分别确定各沿街建筑物对应的轮廓、高度以及家用空调数量之后,可以建立家用空调数量与轮廓、高度之间的映射关系。其中,该沿街建筑物对应的轮廓包括其在遥感影像中的长度以及宽度。After respectively determining the contour, height and quantity of household air conditioners corresponding to each building along the street, a mapping relationship between the quantity of household air conditioners and the contour and height can be established. The contour corresponding to the building along the street includes its length and width in the remote sensing image.

步骤206、针对所述待识别区域内各建筑物,根据所述各建筑物对应的轮廓以及高度计算各建筑物对应的目标家用空调数量。Step 206: For each building in the to-be-identified area, calculate the number of target household air conditioners corresponding to each building according to the contour and height corresponding to each building.

在本实施方式中,在获得待识别区域内各建筑物的轮廓、高度以及家用空调数量与轮廓、高度之间的映射关系之后,针对待识别区域内的每一建筑,可以分别计算该建筑物对应的目标家用空调数量。其中,该映射关系具体可以为家用空调数量与轮廓、高度之间的映射关系之间的算法关系。In this embodiment, after obtaining the contour and height of each building in the area to be identified and the mapping relationship between the number of household air conditioners and the contour and height, for each building in the area to be identified, the building can be calculated separately The corresponding target number of household air conditioners. The mapping relationship may specifically be an algorithmic relationship between the mapping relationship between the number of household air conditioners and the contour and height.

步骤207、将各建筑物对应的目标家用空调数量的和确定为所述待识别区域内的家用空调总量。Step 207: Determine the sum of the target household air conditioners corresponding to each building as the total amount of household air conditioners in the to-be-identified area.

在本实施方式中,分别计算获得每一建筑物对应的目标家用空调数量之后,可以将各建筑物对应的目标家用空调数量的和确定为待识别区域内的家用空调总量。In this embodiment, after calculating and obtaining the target number of household air conditioners corresponding to each building, the sum of the target number of household air conditioners corresponding to each building can be determined as the total number of household air conditioners in the area to be identified.

可选地,通过对高分辨率卫星遥感影像与街景图片进行识别操作,从而能够实现对各建筑物中家用空调的分布情况的识别。Optionally, by performing a recognition operation on a high-resolution satellite remote sensing image and a street view picture, the distribution of the household air conditioners in each building can be recognized.

本实施例提供的家用空调识别方法,通过利用高分辨率卫星遥感影像与互联网地图街景图片信息、基于深度学习和空间统计方法的高效精准的家用空调空间识别方法,着重解决城市家用空调使用量及其空间分布状况准确提取,有效提升家用空调使用调查效率,也进一步提升城镇居民和管理部门应对极端高温事件、合理调度电力能源等的管控水平。The household air conditioner identification method provided in this embodiment focuses on solving the problem of urban household air conditioner usage and consumption by using high-resolution satellite remote sensing images and Internet map street view picture information, and an efficient and accurate household air conditioner space identification method based on deep learning and spatial statistics methods. The accurate extraction of its spatial distribution can effectively improve the efficiency of household air-conditioning use investigations, and further improve the management and control level of urban residents and management departments in responding to extreme high temperature events and rationally dispatching electric energy.

进一步地,在实施例一的基础上,所述沿街建筑物包括第一沿街建筑物以及第二沿街建筑物,所述第一沿街建筑物对应的家用空调数量为第一家用空调数量,所述第二沿街建筑物对应的家用空调数量为第二家用空调数量;其中,所述第一沿街建筑物与第二沿街建筑物形状不同;步骤205包括:Further, on the basis of Embodiment 1, the buildings along the street include a first building along the street and a second building along the street, the number of household air conditioners corresponding to the first building along the street is the number of first household air conditioners, and the The number of household air conditioners corresponding to the second building along the street is the number of second household air conditioners; wherein, the shape of the first building along the street and the building along the second street are different; Step 205 includes:

针对第一沿街建筑物对应的轮廓、高度以及家用空调数量,确定所述第一沿街建筑物对应的第一家用空调数量与轮廓、高度之间的映射关系。For the contour, height, and quantity of household air conditioners corresponding to the first building along the street, a mapping relationship between the quantity of the first household air conditioner corresponding to the first building along the street and the contour and height is determined.

针对第二沿街建筑物对应的轮廓、高度以及家用空调数量,确定所述第二沿街建筑物对应的第二家用空调数量与轮廓、高度之间的映射关系。For the contour, height and quantity of household air conditioners corresponding to the second building along the street, a mapping relationship between the quantity of the second household air conditioner corresponding to the second building along the street and the contour and height is determined.

在本实施方式中,待识别区域内的沿街建筑物可以根据其不同的形状划分为第一沿街建筑物与第二沿街建筑物,其中,第一沿街建筑物与第二沿街建筑物形状不同。相应地,待识别区域内的建筑物可以根据其不同的形状划分为第一建筑物以及第二建筑物。其中,第一建筑物/第一沿街建筑物具体可以为塔楼,第二建筑物/第二沿街建筑物具体可以为板楼。In this embodiment, the buildings along the street in the to-be-identified area can be divided into the first building along the street and the second building along the street according to their different shapes, wherein the first building along the street and the second building along the street have different shapes. Correspondingly, the buildings in the to-be-identified area can be divided into a first building and a second building according to their different shapes. Wherein, the first building/the first building along the street may specifically be a tower building, and the second building/the second building along the street may specifically be a slab building.

由于塔楼和板楼具有不同的形状,因此,其对应的家用空调数量也有所不同,因此,可以针对不同类型的建筑物,构建不同的空调数量与轮廓、高度之间的映射关系。Since towers and slabs have different shapes, the corresponding number of household air conditioners are also different. Therefore, different mapping relationships between the number of air conditioners, contours and heights can be constructed for different types of buildings.

具体地,针对第一沿街建筑物对应的轮廓、高度以及家用空调数量,确定第一沿街建筑物对应的第一家用空调数量与轮廓、高度之间的映射关系。其中,该第一家用空调数量与轮廓、高度之间的映射关系具体可以如公式1所示。Specifically, with respect to the contour, height, and quantity of household air conditioners corresponding to the first building along the street, a mapping relationship between the quantity of the first household air conditioner corresponding to the first building along the street, the contour, and the height is determined. Wherein, the mapping relationship between the number of the first household air conditioner and the contour and height can be specifically shown in formula 1.

第一家用空调数量= f第一沿街建筑物(楼层高度、楼栋轮廓长度和宽度)(1)Number of air conditioners for the first household = f Buildings along the first street (floor height, building outline length and width) (1)

针对第二沿街建筑物对应的轮廓、高度以及家用空调数量,确定第二沿街建筑物对应的第二家用空调数量与轮廓、高度之间的映射关系。其中,该第二家用空调数量与轮廓、高度之间的映射关系具体可以如公式2所示。For the contour, height, and quantity of household air conditioners corresponding to the second building along the street, a mapping relationship between the quantity of the second household air conditioner corresponding to the second building along the street and the contour and height is determined. Wherein, the mapping relationship between the number of the second household air conditioner and the contour and height may be specifically as shown in formula 2.

第二家用空调数量= f第二沿街建筑物(楼层高度、楼栋轮廓长度和宽度) (2)Number of second household air conditioners = f second buildings along the street (floor height, building outline length and width) (2)

图3为本公开实施例提供的待识别区域内建筑物的轮廓示意图,如图3所示,该待识别区域内具体可以包括塔楼31以及板楼32,其中,该塔楼31与板楼32具有不同的轮廓形状。FIG. 3 is a schematic outline diagram of a building in a to-be-identified area provided by an embodiment of the present disclosure. As shown in FIG. 3 , the to-be-identified area may specifically include a tower building 31 and a slab building 32 , wherein the tower building 31 and the slab building 32 have Different outline shapes.

进一步地,在实施例一的基础上,步骤206包括:Further, on the basis of Embodiment 1, step 206 includes:

针对所述待识别区域内各建筑物,分别计算所述建筑物与第一沿街建筑物之间的第一相似度,以及所述建筑物与第二沿街建筑物之间的第二相似度。For each building in the to-be-identified area, the first similarity between the building and the first building along the street and the second similarity between the building and the second building along the street are calculated respectively.

根据所述第一相似度以及所述第二相似度将所述各建筑物分类为第一建筑物以及第二建筑物。The buildings are classified into a first building and a second building according to the first similarity and the second similarity.

针对各第一建筑物,根据所述第一建筑物对应的轮廓以及高度、第一家用空调数量与轮廓、高度之间的映射关系计算所述第一建筑物对应的家用空调数量。For each first building, the number of household air conditioners corresponding to the first building is calculated according to the outline and height corresponding to the first building, and the mapping relationship between the number of first household air conditioners and the outline and height.

针对各第二建筑物,根据所述第二建筑物对应的轮廓以及高度、第二家用空调数量与轮廓、高度之间的映射关系计算所述第二建筑物对应的家用空调数量。For each second building, the number of household air conditioners corresponding to the second building is calculated according to the contour and height corresponding to the second building, and the mapping relationship between the number of second household air conditioners and the contour and height.

在本实施例中,待识别区域内的建筑物可以根据其不同的形状划分为第一建筑物以及第二建筑物。可以根据各建筑物与第一沿街建筑物、第二沿街建筑物之间的相似度来实现对建筑物的分类。可以理解的是,若该建筑物与第一沿街建筑物的相似度高于第二沿街建筑物的相似度,则可以表征该建筑物为第一建筑物。反之亦然。In this embodiment, the buildings in the to-be-identified area may be divided into a first building and a second building according to their different shapes. The buildings can be classified according to the similarity between each building and the first and second buildings along the street. It can be understood that, if the similarity between the building and the first building along the street is higher than the similarity between the second building along the street, the building can be characterized as the first building. vice versa.

具体地,针对待识别区域内各建筑物,分别计算建筑物与第一沿街建筑物之间的第一相似度,以及建筑物与第二沿街建筑物之间的第二相似度。其中,具体可以采用分形维数实现对相似度的计算。分形维数是一种度量形状相似度的一种很好方法,具有旋转、平移、尺度不变性,与人的视觉感知较为一致,而且依据分形维数的特征,它本身顾及要素局部结构和整体自相似性。Specifically, for each building in the area to be identified, the first similarity between the building and the first building along the street, and the second similarity between the building and the second building along the street are calculated respectively. Specifically, the fractal dimension can be used to calculate the similarity. Fractal dimension is a good method to measure shape similarity. It has rotation, translation and scale invariance, which is more consistent with human visual perception. According to the characteristics of fractal dimension, it takes into account the local structure and overall structure of elements. self-similarity.

在完成分类之后,针对每一类型的建筑物,可以分别根据上述映射关系,实现对该建筑物对应的家用空调数量的计算。具体地,针对各第一建筑物,根据第一建筑物对应的轮廓以及高度、第一家用空调数量与轮廓、高度之间的映射关系计算第一建筑物对应的家用空调数量。针对各第二建筑物,根据第二建筑物对应的轮廓以及高度、第二家用空调数量与轮廓、高度之间的映射关系计算第二建筑物对应的家用空调数量。After the classification is completed, for each type of building, the number of household air conditioners corresponding to the building can be calculated according to the above-mentioned mapping relationship. Specifically, for each first building, the number of home air conditioners corresponding to the first building is calculated according to the contour and height corresponding to the first building, and the mapping relationship between the number of first home air conditioners and the contour and height. For each second building, the number of home air conditioners corresponding to the second building is calculated according to the contour and height corresponding to the second building, and the mapping relationship between the number of second home air conditioners and the contour and height.

进一步地,在实施例一的基础上,步骤207包括:Further, on the basis of Embodiment 1, step 207 includes:

分别计算第一建筑物对应的目标家用空调数量的第一数量和,以及第二建筑物对应的目标家用空调数量的第二数量和。Calculate the first sum of the number of target household air conditioners corresponding to the first building and the second sum of the number of target household air conditioners corresponding to the second building, respectively.

将所述第一数量和以及所述第二数量和的总和确定为所述待识别区域内的家用空调总量。The sum of the first sum and the second sum is determined as the total amount of household air conditioners in the area to be identified.

在本实施例中,针对待识别区域内的每一建筑物,在完成分类之后,可以分别计算第一建筑物对应的目标家用空调数量的第一数量和,以及第二建筑物对应的目标家用空调数量的第二数量和。将第一数量和以及第二数量和的总和确定为待识别区域内的家用空调总量。In this embodiment, for each building in the area to be identified, after the classification is completed, the first sum of the number of target household air conditioners corresponding to the first building and the target household air conditioner corresponding to the second building can be calculated respectively. The second number and the number of air conditioners. The sum of the first sum and the second sum is determined as the total amount of household air conditioners in the area to be identified.

可选地,为了提高家用空调识别的效率,在完成建筑物的分类之后,可以简单的统计各类建筑物的数量,并确定各类建筑物对应的家用空调的平均值,将该平均值确定为建筑物对应的家用空调数量,根据各类建筑物的数量以及对应的空调数量,实现对待识别区域内的家用空调总量的计算。Optionally, in order to improve the efficiency of household air conditioner identification, after the classification of buildings is completed, the number of various types of buildings can be simply counted, and the average value of the household air conditioners corresponding to various types of buildings can be determined, and the average value can be determined. For the number of household air conditioners corresponding to the building, according to the number of various types of buildings and the corresponding number of air conditioners, the calculation of the total amount of household air conditioners in the area to be identified is realized.

具体地,可以采用公式3实现对待识别区域内全部家用空调数量的计算:Specifically, formula 3 can be used to calculate the number of all household air conditioners in the area to be identified:

待识别区域空调数量=

Figure 793327DEST_PATH_IMAGE001
The number of air conditioners in the area to be identified =
Figure 793327DEST_PATH_IMAGE001

本实施例提供的家用空调识别方法,通过根据建筑物的形状,对建筑物进行分类,针对不同的类别,设置不同的空调数量与建筑物轮廓、高度的映射关系,从而能够进一步地提高家用空调识别的准确度。The method for identifying a household air conditioner provided in this embodiment can further improve the household air conditioner by classifying the building according to the shape of the building, and setting different mapping relationships between the number of air conditioners and the outline and height of the building for different categories. recognition accuracy.

图4为本公开实施例二提供的家用空调识别方法的流程示意图,在实施例一的基础上,如图4所示,步骤202包括:4 is a schematic flowchart of a method for identifying a household air conditioner provided in Embodiment 2 of the present disclosure. On the basis of Embodiment 1, as shown in FIG. 4 , step 202 includes:

步骤401、对所述遥感影像进行图像处理操作,获得处理后的遥感影像,其中,图像处理操作包括几何校正操作和/或图像融合操作。Step 401: Perform an image processing operation on the remote sensing image to obtain a processed remote sensing image, wherein the image processing operation includes a geometric correction operation and/or an image fusion operation.

步骤402、将所述处理后的遥感影像输入至预设的轮廓提取模型,获得所述各建筑物的轮廓。Step 402: Input the processed remote sensing image into a preset contour extraction model to obtain the contours of the buildings.

在本实施例中,在获取到遥感影像之后,首先可以对遥感影像进行图像处理操作,获得处理后的遥感影像。具体地,图像处理操作包括几何校正操作和/或图像融合操作。遥感影像中所获取的地物图像信息与真实地物的组合、大小、尺度和方向不一致,需要进行几何校正,遥感图像的正射校正模型较多如通用的多项式校正模型等。高分遥感影像融合主要是将具有多光谱波段影像和更高分辨率的全色波段影像数据进行变换融合,以提高图像的信息量和可用度。其中,可以采用任意一种遥感影像融合方式实现对遥感影像的融合操作,本公开对此不做限制。In this embodiment, after the remote sensing image is acquired, an image processing operation may be performed on the remote sensing image first to obtain the processed remote sensing image. Specifically, image processing operations include geometric correction operations and/or image fusion operations. The combination, size, scale and direction of the ground object image information obtained from the remote sensing images are inconsistent with the real ground objects, and geometric correction is required. There are many orthorectification models for remote sensing images, such as the general polynomial correction model. High-resolution remote sensing image fusion mainly transforms and fuses multi-spectral imagery and higher-resolution panchromatic imagery data to improve the information and availability of images. Wherein, any remote sensing image fusion method can be used to realize the fusion operation of the remote sensing images, which is not limited in the present disclosure.

进一步地,获取到处理后的遥感影像之后,可以将处理后的遥感影像输入至预设的轮廓提取模型。该轮廓提取模型能够对遥感影像中的建筑物的轮廓进行提取,从而在将处理后的遥感影像输入至预设的轮廓提取模型之后,能够获得各建筑物的轮廓。Further, after obtaining the processed remote sensing image, the processed remote sensing image can be input into a preset contour extraction model. The contour extraction model can extract the contours of buildings in the remote sensing images, so that the contours of each building can be obtained after the processed remote sensing images are input into the preset contour extraction model.

进一步地,在上述任一实施例的基础上,步骤402之前,还包括:Further, on the basis of any of the above-mentioned embodiments, before step 402, it also includes:

获取第一训练数据集,其中,所述第一训练数据集中包括多张标注后的遥感影像以及标注后的遥感影像对应的第一标注信息,所述第一标注信息为遥感影像内的建筑物轮廓。Obtain a first training data set, wherein the first training data set includes a plurality of marked remote sensing images and first marking information corresponding to the marked remote sensing images, and the first marking information is a building in the remote sensing image contour.

采用第一训练数据集对预设的第一待训练模型进行迭代训练操作,直至所述第一待训练模型收敛,获得所述轮廓提取模型。An iterative training operation is performed on the preset first model to be trained by using the first training data set until the first model to be trained converges, and the contour extraction model is obtained.

在本实施例中,在通过轮廓提取模型进行建筑物轮廓提取之前,可以预先进行轮廓提取模型的训练操作。具体地,可以获取第一训练数据集,其中,第一训练数据集中包括多张标注后的遥感影像以及标注后的遥感影像对应的第一标注信息,第一标注信息为遥感影像内的建筑物轮廓。通过该第一训练数据集对预设的第一待训练模型进行迭代训练操作,根据第一待训练模型的损失值不断地对第一待训练模型的参数进行调节,直至第一待训练模型收敛,获得轮廓提取模型。In this embodiment, before the contour extraction of the building is performed by using the contour extraction model, the training operation of the contour extraction model may be performed in advance. Specifically, a first training data set may be obtained, wherein the first training data set includes a plurality of marked remote sensing images and first marking information corresponding to the marked remote sensing images, where the first marking information is buildings in the remote sensing images contour. An iterative training operation is performed on the preset first model to be trained through the first training data set, and the parameters of the first model to be trained are continuously adjusted according to the loss value of the first model to be trained until the first model to be trained converges , to obtain the contour extraction model.

本实施例提供的家用空调识别方法,通过对遥感影像进行图像处理操作,将处理后的遥感影像输入至预设的轮廓提取模型进行建筑物轮廓的提取,从而能够精准地实现对遥感影像中建筑物轮廓的获取,为后续家用空调数量的识别提供了基础。In the method for identifying a home air conditioner provided in this embodiment, by performing image processing operations on remote sensing images, the processed remote sensing images are input into a preset contour extraction model to extract building contours, so that building contours in remote sensing images can be accurately extracted. The acquisition of the object contour provides a basis for the subsequent identification of the number of household air conditioners.

图5为本公开实施例三提供的家用空调识别方法的流程示意图,在上述任一实施例的基础上,如图5所示,步骤202包括:FIG. 5 is a schematic flowchart of a method for identifying a household air conditioner provided in Embodiment 3 of the present disclosure. On the basis of any of the above embodiments, as shown in FIG. 5 , step 202 includes:

步骤501、针对所述各建筑物的轮廓,确定所述建筑物对应的阴影尺寸信息。Step 501: Determine shadow size information corresponding to the buildings according to the outlines of the buildings.

步骤502、确定拍摄所述遥感影像时卫星与太阳之间的位置关系。Step 502: Determine the positional relationship between the satellite and the sun when the remote sensing image is captured.

步骤503、根据所述位置关系以及所述阴影尺寸信息计算所述建筑物的高度。Step 503: Calculate the height of the building according to the positional relationship and the shadow size information.

在本实施例中,由于不同高度的建筑物对应的家用空调的数量有所不同。可以理解的是,越高的建筑物理论上对应有越多的家用空调的数量。因此,为了精准地实现对家用空调数量的识别,还需要计算各建筑物对应的高度。In this embodiment, the number of household air conditioners corresponding to buildings of different heights is different. It can be understood that a taller building should theoretically have a larger number of household air conditioners. Therefore, in order to accurately identify the number of household air conditioners, it is also necessary to calculate the height corresponding to each building.

具体地,阴影长度计算是利用阴影反演建筑物高度的关键。针对所述各建筑物的轮廓,可以确定建筑物对应的阴影尺寸信息。该阴影尺寸信息具体可以是从遥感影像中提取到的。本公开在测量阴影长度时,是按照太阳方位角方向进行的,已经考虑了太阳方位角的影响,不考虑卫星方位角对试验结果造成的影响。Specifically, the shadow length calculation is the key to inverting the building height using shadows. For the outlines of the buildings, shadow size information corresponding to the buildings can be determined. Specifically, the shadow size information may be extracted from remote sensing images. In the present disclosure, the shadow length is measured according to the direction of the sun azimuth angle, the influence of the sun azimuth angle has been considered, and the influence of the satellite azimuth angle on the test results is not considered.

图6A为本公开实施例提供的卫星与太阳处于异侧的结构示意图,如图6A所示,太阳61处于建筑物62的左侧,而卫星63处于建筑物62的右侧。图6B为本公开实施例提供的太阳与卫星处于同侧的结构示意图,如图6B所示,太阳64、卫星65均位于建筑物66的左侧。如图6A-6B所示,由于卫星与太阳在位置关系不同时,阴影尺寸也有所不同,因此,为了提高计算的建筑物高度的准确性,还需要确定拍摄遥感影像时卫星与太阳之间的位置关系。根据位置关系以及阴影尺寸信息计算建筑物的高度。FIG. 6A is a schematic structural diagram of the satellite and the sun on different sides according to an embodiment of the present disclosure. As shown in FIG. 6A , the sun 61 is on the left side of the building 62 , and the satellite 63 is on the right side of the building 62 . FIG. 6B is a schematic structural diagram of the sun and the satellite on the same side according to an embodiment of the present disclosure. As shown in FIG. 6B , the sun 64 and the satellite 65 are both located on the left side of the building 66 . As shown in Figures 6A-6B, since the positional relationship between the satellite and the sun is different, the shadow size is also different. Therefore, in order to improve the accuracy of the calculated building height, it is also necessary to determine the distance between the satellite and the sun when the remote sensing image is taken. Positional relationship. Calculate the height of the building based on the positional relationship and shadow size information.

进一步地,所述位置关系包括拍摄遥感影像时卫星与太阳处于同一侧,所述阴影尺寸信息包括所述遥感影像中所述建筑物阴影的长度、沿太阳照射方向上所述建筑物阴影的长度、太阳高度角以及卫星高度角;在上述任一实施例的基础上,步骤503包括:Further, the positional relationship includes that the satellite and the sun are on the same side when the remote sensing image is taken, and the shadow size information includes the length of the shadow of the building in the remote sensing image, and the length of the shadow of the building along the direction of sun irradiation. , the sun elevation angle and the satellite elevation angle; on the basis of any of the above embodiments, step 503 includes:

根据所述遥感影像中所述建筑物阴影的长度、沿太阳照射方向上所述建筑物阴影的长度、太阳高度角以及卫星高度角,以及预设的第一建筑物高度算法计算所述建筑物的高度。The building is calculated according to the length of the shadow of the building in the remote sensing image, the length of the shadow of the building along the direction of sun irradiation, the sun elevation angle and the satellite elevation angle, and a preset first building height algorithm the height of.

在本实施例中,位置关系具体可以包括拍摄遥感影像时卫星与太阳处于同一侧,阴影尺寸信息具体可以包括遥感影像中建筑物阴影的长度、沿太阳照射方向上建筑物阴影的长度、太阳高度角以及卫星高度角。可以根据该位置信息、阴影尺寸信息以及预设的第一建筑物高度算法计算所述建筑物的高度。In this embodiment, the positional relationship may specifically include that the satellite is on the same side as the sun when the remote sensing image is taken, and the shadow size information may specifically include the length of the shadow of the building in the remote sensing image, the length of the shadow of the building along the direction of sun irradiation, and the height of the sun. angle and satellite altitude. The height of the building may be calculated according to the position information, shadow size information and a preset first building height algorithm.

其中,第一建筑物高度算法可以如公式4-5所示:Among them, the first building height algorithm can be as shown in formula 4-5:

A = S–B = H/tanθ–H/tanω (4)A = S–B = H/tanθ–H/tanω (4)

H = A tanθtanω/ (tanω–tanθ) (5)H = A tanθtanω/ (tanω–tanθ) (5)

其中,H为建筑物高度;S为高分遥感影像上沿太阳照射方向上的建筑物阴影的长度;A为影像上阴影的长度;θ为太阳高度角;ω为卫星高度角。Among them, H is the height of the building; S is the length of the shadow of the building along the direction of the sun on the high-resolution remote sensing image; A is the length of the shadow on the image; θ is the sun elevation angle; ω is the satellite elevation angle.

进一步地,所述位置关系包括拍摄遥感影像时卫星与太阳处于异侧,所述阴影尺寸信息包括所述遥感影像中所述建筑物阴影的长度、沿太阳照射方向上所述建筑物阴影的长度、太阳高度角以及卫星高度角;在上述任一实施例的基础上,步骤503包括:Further, the positional relationship includes that the satellite and the sun are on different sides when the remote sensing image is taken, and the shadow size information includes the length of the shadow of the building in the remote sensing image, and the length of the shadow of the building along the direction of sun irradiation. , the sun elevation angle and the satellite elevation angle; on the basis of any of the above embodiments, step 503 includes:

根据所述遥感影像中所述建筑物阴影的长度、沿太阳照射方向上所述建筑物阴影的长度、太阳高度角以及卫星高度角,以及预设的第二建筑物高度算法计算所述建筑物的高度。The building is calculated according to the length of the shadow of the building in the remote sensing image, the length of the shadow of the building along the direction of sun irradiation, the sun elevation angle and the satellite elevation angle, and a preset second building height algorithm. the height of.

在本实施例中,位置关系具体可以包括拍摄遥感影像时卫星与太阳处于同一侧,阴影尺寸信息具体可以包括遥感影像中建筑物阴影的长度、沿太阳照射方向上建筑物阴影的长度、太阳高度角以及卫星高度角。可以根据该位置信息、阴影尺寸信息以及预设的第二建筑物高度算法计算所述建筑物的高度。In this embodiment, the positional relationship may specifically include that the satellite is on the same side as the sun when the remote sensing image is taken, and the shadow size information may specifically include the length of the shadow of the building in the remote sensing image, the length of the shadow of the building along the direction of sun irradiation, and the height of the sun. angle and satellite altitude. The height of the building may be calculated according to the position information, shadow size information and a preset second building height algorithm.

其中,第二建筑物高度算法可以如公式6-7所示:Wherein, the second building height algorithm can be as shown in formula 6-7:

A = S–B = H/tanθ–H/tanω (6)A = S–B = H/tanθ–H/tanω (6)

H = A tanθ (7)H = A tanθ (7)

其中,H为建筑物高度;S为高分遥感影像上沿太阳照射方向上的建筑物阴影的长度;A为影像上阴影的长度;θ为太阳高度角;ω为卫星高度角。Among them, H is the height of the building; S is the length of the shadow of the building along the direction of the sun on the high-resolution remote sensing image; A is the length of the shadow on the image; θ is the sun elevation angle; ω is the satellite elevation angle.

本实施例提供的家用空调识别方法,通过针对卫星与太阳不同的位置关系,采用不同的算法实现对建筑物高度的计算,从而能够提高计算获得的建筑物高度的准确性,进而能够提高识别到的建筑物的家用空调数量的准确性。The method for identifying a home air conditioner provided in this embodiment uses different algorithms to calculate the height of the building according to the different positional relationships between the satellite and the sun, so that the accuracy of the calculated height of the building can be improved, and the identification of the height of the building can be improved. The accuracy of the number of domestic air conditioners in the building.

图7为本公开实施例四提供的家用空调识别方法的流程示意图,在上述任一实施例的基础上,如图7所示,步骤203包括:FIG. 7 is a schematic flowchart of a method for identifying a household air conditioner according to Embodiment 4 of the present disclosure. On the basis of any of the above embodiments, as shown in FIG. 7 , step 203 includes:

步骤701、针对各街景图片,将所述街景图片输入至预设的家用空调识别模型中,获得所述街景图片内沿街建筑物对应的家用空调数量。Step 701: For each street view picture, input the street view picture into a preset household air conditioner identification model, and obtain the number of household air conditioners corresponding to the buildings along the street in the street view picture.

步骤702、计算至少一张街景图片内沿街建筑物对应的家用空调数量的均值,将所述均值确定为待识别区域内沿街建筑物对应的家用空调数量。Step 702: Calculate the average value of the number of household air conditioners corresponding to the buildings along the street in the at least one street view picture, and determine the average value as the number of household air conditioners corresponding to the buildings along the street in the area to be identified.

在本实施例中,可以通过网络爬虫抓取研究调查区域的百度街景图片。针对各街景图片,将街景图片输入至预设的家用空调识别模型中,获得街景图片内沿街建筑物对应的家用空调数量。具体地,可以采用任意一种能够进行图像识别的网络模型作为家用空调识别模型进行家用空调的识别操作,本公开对此不做限制。样本点楼栋空调数量可作为该小区或区域楼栋的空调调查采样的样本点,路边多个沿街建筑物的空调数的平均可被认为是该小区的各建筑物的空调数量的平均。因此,可以计算至少一张街景图片内沿街建筑物对应的家用空调数量的均值,将所述均值确定为待识别区域内沿街建筑物对应的家用空调数量。In this embodiment, the Baidu Street View pictures of the research and investigation area can be captured by a web crawler. For each street view picture, the street view picture is input into a preset household air conditioner identification model, and the number of household air conditioners corresponding to the buildings along the street in the street view picture is obtained. Specifically, any network model capable of image recognition can be used as the household air conditioner recognition model to perform the recognition operation of the household air conditioner, which is not limited in the present disclosure. The number of air conditioners in the building at the sample point can be used as the sample point for the air conditioner survey sampling of the buildings in the community or area. Therefore, the average value of the number of household air conditioners corresponding to the buildings along the street in the at least one street view picture can be calculated, and the average value is determined as the number of household air conditioners corresponding to the buildings along the street in the area to be identified.

通过采用家用空调识别模型对街景图片中的家用空调进行识别,从而在识别家用空调数量的基础上,还能够对家用空调在建筑物中的空间分布进行准确识别。例如能够识别出各建筑物中家用空调的空间分布位置。By using the household air conditioner recognition model to identify the household air conditioners in the street view pictures, on the basis of identifying the number of household air conditioners, the spatial distribution of the household air conditioners in the building can also be accurately identified. For example, the spatial distribution positions of household air conditioners in each building can be identified.

进一步地,在上述任一实施例的基础上,步骤602之前,还包括:Further, on the basis of any of the above embodiments, before step 602, the method further includes:

获取第二训练数据集,所述第二训练数据集中包括多张标注后的沿街建筑物图片以及标注后的沿街建筑物图片对应的第二标注信息,所述第二标注信息为沿街建筑物图片内的家用空调信息。Acquiring a second training data set, the second training data set includes a plurality of labeled pictures of buildings along the street and second label information corresponding to the pictures of buildings along the street after labeling, and the second label information is the pictures of buildings along the street Home air conditioner information inside.

采用第二训练数据集对预设的第二待训练模型进行迭代训练操作,直至所述第二待训练模型收敛,获得所述家用空调识别模型。An iterative training operation is performed on a preset second model to be trained by using the second training data set until the second model to be trained converges, and the household air conditioner identification model is obtained.

在本实施例中,在通过家用空调识别模型进行家用空调数量的识别之前,首先需要进行家用空调识别模型的训练操作。具体地,可以获取第二训练数据集,所述第二训练数据集中包括多张标注后的沿街建筑物图片以及标注后的沿街建筑物图片对应的第二标注信息,所述第二标注信息为沿街建筑物图片内的家用空调信息。采用第二训练数据集对预设的第二待训练模型进行迭代训练操作,根据第二待训练模型的损失值不断地对第二待训练模型的参数进行调节,直至所述第二待训练模型收敛,获得所述家用空调识别模型。In this embodiment, before identifying the number of home air conditioners by using the home air conditioner identification model, a training operation of the home air conditioner identification model needs to be performed first. Specifically, a second training data set may be obtained, and the second training data set includes a plurality of labeled pictures of buildings along the street and second label information corresponding to the labeled pictures of buildings along the street, where the second label information is: Home air conditioner information in pictures of buildings along the street. Use the second training data set to perform an iterative training operation on the preset second model to be trained, and continuously adjust the parameters of the second model to be trained according to the loss value of the second model to be trained, until the second model to be trained Convergence to obtain the household air conditioner identification model.

本实施例提供的家用空调识别方法,通过将街景图片与深度学习相结合,从而能够准确地实现对沿街建筑物对应的家用空调的数量的识别。The method for recognizing household air conditioners provided in this embodiment can accurately recognize the number of household air conditioners corresponding to buildings along the street by combining street view pictures with deep learning.

图8为本公开实施例五提供的家用空调识别装置的结构示意图,如图8所示,该装置包括:获取模块81、遥感影像处理模块82、街景图片处理模块83、匹配模块84、确定模块85、计算模块86以及处理模块88。其中,获取模块81,用于获取识别请求,其中,所述识别请求包括待识别区域的区域标识。遥感影像处理模块82,用于根据所述识别请求,获取与所述区域标识对应的遥感影像,根据所述遥感影像确定所述待识别区域内各建筑物的轮廓,以及根据所述遥感影像确定各建筑物的高度。街景图片处理模块83,用于根据所述识别请求,获取与所述区域标识对应的至少一张街景图片,根据所述至少一张街景图片确定所述街景图片内各沿街建筑物对应的家用空调数量。匹配模块84,用于针对各沿街建筑物,根据所述沿街建筑物的位置信息确定所述沿街建筑物在所述遥感影像中的轮廓以及高度。确定模块85,用于根据各沿街建筑物对应的轮廓、高度以及家用空调数量,确定所述家用空调数量与轮廓、高度之间的映射关系。计算模块86,用于针对所述待识别区域内各建筑物,根据所述各建筑物对应的轮廓以及高度计算各建筑物对应的目标家用空调数量。处理模块87,用于将各建筑物对应的目标家用空调数量的和确定为所述待识别区域内的家用空调总量。FIG. 8 is a schematic structural diagram of a household air conditioner identification device provided in Embodiment 5 of the present disclosure. As shown in FIG. 8 , the device includes: an acquisition module 81 , a remote sensing image processing module 82 , a street view image processing module 83 , a matching module 84 , and a determination module 85 , a computing module 86 and a processing module 88 . The obtaining module 81 is configured to obtain an identification request, wherein the identification request includes an area identifier of the area to be identified. The remote sensing image processing module 82 is configured to obtain a remote sensing image corresponding to the area identification according to the identification request, determine the outline of each building in the to-be-identified area according to the remote sensing image, and determine according to the remote sensing image height of each building. The street view picture processing module 83 is configured to obtain at least one street view picture corresponding to the area identifier according to the identification request, and determine the home air conditioner corresponding to each street building in the street view picture according to the at least one street view picture quantity. The matching module 84 is configured to, for each building along the street, determine the outline and height of the building along the street in the remote sensing image according to the position information of the building along the street. The determination module 85 is configured to determine the mapping relationship between the number of household air conditioners and the outline and height according to the corresponding outline and height of each building along the street and the number of household air conditioners. The calculation module 86 is configured to, for each building in the to-be-identified area, calculate the number of target household air conditioners corresponding to each building according to the contour and height corresponding to each building. The processing module 87 is configured to determine the sum of the number of target household air conditioners corresponding to each building as the total amount of household air conditioners in the area to be identified.

进一步地,在实施例五的基础上,所述沿街建筑物包括第一沿街建筑物以及第二沿街建筑物,所述第一沿街建筑物对应的家用空调数量为第一家用空调数量,所述第二沿街建筑物对应的家用空调数量为第二家用空调数量;其中,所述第一沿街建筑物与第二沿街建筑物形状不同。所述确定模块用于:针对第一沿街建筑物对应的轮廓、高度以及家用空调数量,确定所述第一沿街建筑物对应的第一家用空调数量与轮廓、高度之间的映射关系;Further, on the basis of Embodiment 5, the buildings along the street include a first building along the street and a second building along the street, the number of household air conditioners corresponding to the first building along the street is the number of first household air conditioners, and the The number of household air conditioners corresponding to the second building along the street is the number of second household air conditioners; wherein, the shape of the first building along the street and the building along the second street are different. The determining module is used for: determining the mapping relationship between the number of the first household air conditioners corresponding to the first building along the street, the contour and the height, with respect to the contour, height and the number of household air conditioners corresponding to the first building along the street;

针对第二沿街建筑物对应的轮廓、高度以及家用空调数量,确定所述第二沿街建筑物对应的第二家用空调数量与轮廓、高度之间的映射关系。For the contour, height and quantity of household air conditioners corresponding to the second building along the street, a mapping relationship between the quantity of the second household air conditioner corresponding to the second building along the street and the contour and height is determined.

进一步地,在实施例五的基础上,所述确定模块用于:针对所述待识别区域内各建筑物,分别计算所述建筑物与第一沿街建筑物之间的第一相似度,以及所述建筑物与第二沿街建筑物之间的第二相似度。根据所述第一相似度以及所述第二相似度将所述各建筑物分类为第一建筑物以及第二建筑物。针对各第一建筑物,根据所述第一建筑物对应的轮廓以及高度、第一家用空调数量与轮廓、高度之间的映射关系计算所述第一建筑物对应的家用空调数量。针对各第二建筑物,根据所述第二建筑物对应的轮廓以及高度、第二家用空调数量与轮廓、高度之间的映射关系计算所述第二建筑物对应的家用空调数量。Further, on the basis of Embodiment 5, the determining module is configured to: for each building in the to-be-identified area, respectively calculate the first similarity between the building and the first building along the street, and The second similarity between the building and the second building along the street. The buildings are classified into a first building and a second building according to the first similarity and the second similarity. For each first building, the number of household air conditioners corresponding to the first building is calculated according to the outline and height corresponding to the first building, and the mapping relationship between the number of first household air conditioners and the outline and height. For each second building, the number of household air conditioners corresponding to the second building is calculated according to the contour and height corresponding to the second building, and the mapping relationship between the number of second household air conditioners and the contour and height.

进一步地,在实施例五的基础上,所述确定模块用于:分别计算第一建筑物对应的目标家用空调数量的第一数量和,以及第二建筑物对应的目标家用空调数量的第二数量和。Further, on the basis of Embodiment 5, the determining module is used to calculate the first sum of the target number of household air conditioners corresponding to the first building, and the second sum of the target number of household air conditioners corresponding to the second building. quantity and.

将所述第一数量和以及所述第二数量和的总和确定为所述待识别区域内的家用空调总量。The sum of the first sum and the second sum is determined as the total amount of household air conditioners in the area to be identified.

进一步地,在上述任一实施例的基础上,所述遥感影像处理模块用于:对所述遥感影像进行图像处理操作,获得处理后的遥感影像,其中,图像处理操作包括几何校正操作和/或图像融合操作;Further, on the basis of any of the above embodiments, the remote sensing image processing module is configured to: perform an image processing operation on the remote sensing image to obtain a processed remote sensing image, wherein the image processing operation includes a geometric correction operation and/or or image fusion operation;

将所述处理后的遥感影像输入至预设的轮廓提取模型,获得所述各建筑物的轮廓。The processed remote sensing images are input into a preset contour extraction model to obtain the contours of the buildings.

进一步地,在上述任一实施例的基础上,所述遥感影像处理模块用于:获取第一训练数据集,其中,所述第一训练数据集中包括多张标注后的遥感影像以及标注后的遥感影像对应的第一标注信息,所述第一标注信息为遥感影像内的建筑物轮廓;采用第一训练数据集对预设的第一待训练模型进行迭代训练操作,直至所述第一待训练模型收敛,获得所述轮廓提取模型。Further, on the basis of any of the above-mentioned embodiments, the remote sensing image processing module is used to: obtain a first training data set, wherein the first training data set includes a plurality of marked remote sensing images and marked remote sensing images. First labeling information corresponding to the remote sensing image, the first labeling information is the outline of the building in the remote sensing image; using the first training data set to perform an iterative training operation on the preset first model to be trained until the first model to be trained The training model converges, and the contour extraction model is obtained.

进一步地,在上述任一实施例的基础上,所述遥感影像处理模块用于:针对所述各建筑物的轮廓,确定所述建筑物对应的阴影尺寸信息。确定拍摄所述遥感影像时卫星与太阳之间的位置关系。根据所述位置关系以及所述阴影尺寸信息计算所述建筑物的高度。Further, on the basis of any of the above-mentioned embodiments, the remote sensing image processing module is configured to: determine the shadow size information corresponding to the buildings according to the outlines of the buildings. Determine the positional relationship between the satellite and the sun when the remote sensing image is captured. The height of the building is calculated according to the positional relationship and the shadow size information.

进一步地,在上述任一实施例的基础上,所述位置关系包括拍摄遥感影像时卫星与太阳处于同一侧,所述阴影尺寸信息包括所述遥感影像中所述建筑物阴影的长度、沿太阳照射方向上所述建筑物阴影的长度、太阳高度角以及卫星高度角。所述遥感影像处理模块用于:根据所述遥感影像中所述建筑物阴影的长度、沿太阳照射方向上所述建筑物阴影的长度、太阳高度角以及卫星高度角,以及预设的第一建筑物高度算法计算所述建筑物的高度。Further, on the basis of any of the above-mentioned embodiments, the positional relationship includes that the satellite and the sun are on the same side when the remote sensing image is taken, and the shadow size information includes the length of the shadow of the building in the remote sensing image, the length of the shadow along the sun The length of the shadow of the building in the direction of illumination, the sun elevation angle and the satellite elevation angle. The remote sensing image processing module is configured to: according to the length of the shadow of the building in the remote sensing image, the length of the shadow of the building along the direction of sun irradiation, the sun elevation angle and the satellite elevation angle, and a preset first A building height algorithm calculates the height of the building.

进一步地,在上述任一实施例的基础上,所述位置关系包括拍摄遥感影像时卫星与太阳处于异侧,所述阴影尺寸信息包括所述遥感影像中所述建筑物阴影的长度、沿太阳照射方向上所述建筑物阴影的长度、太阳高度角以及卫星高度角。所述遥感影像处理模块用于:根据所述遥感影像中所述建筑物阴影的长度、沿太阳照射方向上所述建筑物阴影的长度、太阳高度角以及卫星高度角,以及预设的第二建筑物高度算法计算所述建筑物的高度。Further, on the basis of any of the above-mentioned embodiments, the positional relationship includes that the satellite and the sun are on different sides when the remote sensing image is taken, and the shadow size information includes the length of the shadow of the building in the remote sensing image, the distance along the sun The length of the shadow of the building in the direction of illumination, the sun elevation angle and the satellite elevation angle. The remote sensing image processing module is used for: according to the length of the shadow of the building in the remote sensing image, the length of the shadow of the building along the direction of sun irradiation, the sun elevation angle and the satellite elevation angle, and a preset second A building height algorithm calculates the height of the building.

进一步地,在上述任一实施例的基础上,所述街景图片处理模块用于:针对各街景图片,将所述街景图片输入至预设的家用空调识别模型中,获得所述街景图片内沿街建筑物对应的家用空调数量。计算至少一张街景图片内沿街建筑物对应的家用空调数量的均值,将所述均值确定为待识别区域内沿街建筑物对应的家用空调数量。Further, on the basis of any of the above-mentioned embodiments, the street view picture processing module is used to: for each street view picture, input the street view picture into a preset household air conditioner identification model, and obtain the street view pictures in the street along the street. The number of home air conditioners corresponding to the building. Calculate the average value of the number of household air conditioners corresponding to the buildings along the street in the at least one street view picture, and determine the average value as the number of household air conditioners corresponding to the buildings along the street in the area to be identified.

进一步地,在上述任一实施例的基础上,所述街景图片处理模块用于:获取第二训练数据集,所述第二训练数据集中包括多张标注后的沿街建筑物图片以及标注后的沿街建筑物图片对应的第二标注信息,所述第二标注信息为沿街建筑物图片内的家用空调信息;Further, on the basis of any of the above-mentioned embodiments, the street view image processing module is used to: obtain a second training data set, and the second training data set includes a plurality of marked pictures of buildings along the street and marked pictures of buildings. second labeling information corresponding to the pictures of buildings along the street, where the second labeling information is household air conditioner information in the pictures of buildings along the street;

采用第二训练数据集对预设的第二待训练模型进行迭代训练操作,直至所述第二待训练模型收敛,获得所述家用空调识别模型。An iterative training operation is performed on a preset second model to be trained by using the second training data set until the second model to be trained converges, and the household air conditioner identification model is obtained.

本公开又一实施例还提供了一种电子设备,包括:处理器和存储器;Yet another embodiment of the present disclosure also provides an electronic device, including: a processor and a memory;

所述存储器存储计算机执行指令;the memory stores computer-executable instructions;

所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如上述任一实施例所述的家用空调识别方法。The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method for identifying a household air conditioner according to any one of the foregoing embodiments.

图9为本公开实施例六提供的电子设备的结构示意图,如图9所示,该电子设备900可以为终端设备或服务器。其中,终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,简称PDA)、平板电脑(Portable Android Device,简称PAD)、便携式多媒体播放器(Portable Media Player,简称PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图9示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 9 is a schematic structural diagram of an electronic device according to Embodiment 6 of the present disclosure. As shown in FIG. 9 , the electronic device 900 may be a terminal device or a server. The terminal device may include, but is not limited to, such as a mobile phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (Personal Digital Assistant, PDA for short), a tablet computer (Portable Android Device, PAD for short), a portable multimedia player (Portable Media Player, PMP for short), mobile terminals such as in-vehicle terminals (eg, in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 9 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.

如图9所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(Read Only Memory ,简称ROM)902中的程序或者从存储装置908加载到随机访问存储器(Random Access Memory ,简称RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有电子设备900操作所需的各种程序和数据。处理装置901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in FIG. 9 , the electronic device 900 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 901 , which may be stored in a read-only memory (Read Only Memory, ROM for short) 902 according to a program or from a storage device 908 is a program loaded into a random access memory (Random Access Memory, RAM for short) 903 to execute various appropriate actions and processes. In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are also stored. The processing device 901 , the ROM 902 , and the RAM 903 are connected to each other through a bus 904 . An input/output (I/O) interface 905 is also connected to bus 904 .

通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(Liquid CrystalDisplay ,简称LCD)、扬声器、振动器等的输出装置907;包括例如磁带、硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图9示出了具有各种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices can be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD) Output device 907 , speaker, vibrator, etc.; storage device 908 including, for example, magnetic tape, hard disk, etc.; and communication device 909 . The communication means 909 may allow the electronic device 900 to communicate wirelessly or by wire with other devices to exchange data. While FIG. 9 shows an electronic device 900 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908被安装,或者从ROM 902被安装。在该计算机程序被处理装置901执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 909 , or from the storage device 908 , or from the ROM 902 . When the computer program is executed by the processing device 901, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.

本公开又一实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上述任一实施例所述的家用空调识别方法。Yet another embodiment of the present disclosure further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the implementation of any of the foregoing embodiments is implemented. The method for identifying household air conditioners.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

本公开又一实施例还提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一实施例所述的家用空调识别方法。Yet another embodiment of the present disclosure further provides a computer program product, including a computer program that, when executed by a processor, implements the method for recognizing a household air conditioner according to any of the foregoing embodiments.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, causes the electronic device to execute the methods shown in the above-mentioned embodiments.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LocalArea Network ,简称LAN)或广域网(Wide Area Network ,简称WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it can be connected to an external computer (eg using an internet service provider to connect via the internet).

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述各实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, but not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present disclosure. scope.

Claims (10)

1. A household air conditioner identification method is characterized by comprising the following steps:
acquiring an identification request, wherein the identification request comprises an area identifier of an area to be identified;
acquiring a remote sensing image corresponding to the area identifier according to the identification request, determining the outline of each building in the area to be identified according to the remote sensing image, and determining the height of each building according to the remote sensing image;
acquiring at least one street view picture corresponding to the area identifier according to the identification request, and determining the number of household air conditioners corresponding to each street building in the street view picture according to the at least one street view picture;
determining the outline and the height of each buildings along the street in the remote sensing image according to the position information of the buildings along the street;
determining the mapping relation between the number of the household air conditioners and the profile and the height according to the profile and the height corresponding to each buildings along the street and the number of the household air conditioners;
aiming at each building in the area to be identified, calculating the number of target household air conditioners corresponding to each building according to the outline and height corresponding to each building;
and determining the sum of the target household air conditioner quantity corresponding to each building as the total quantity of the household air conditioners in the area to be identified.
2. The method of claim 1, wherein the buildings along the street comprise a first building along the street and a second building along the street, the first building along the street corresponding to the number of the household air conditioners being a first number of the household air conditioners, and the second building along the street corresponding to the number of the household air conditioners being a second number of the household air conditioners; the first buildings and the second buildings are different in shape;
the determining the mapping relation between the number of the household air conditioners and the profile and the height according to the profile and the height corresponding to each buildings along the street and the number of the household air conditioners comprises the following steps:
determining the mapping relation between the number of first household air conditioners corresponding to a first buildings along the street and the profile and the height of the first household air conditioners according to the profile and the height of the first buildings along the street and the number of the household air conditioners;
and determining the mapping relation between the second household air conditioner quantity corresponding to the second buildings along the street and the profile and the height of the second household air conditioner quantity corresponding to the second buildings along the street.
3. The method according to claim 2, wherein the calculating, for each building in the area to be identified, the target number of home air conditioners corresponding to each building according to the outline and the height corresponding to each building comprises:
respectively calculating a first similarity between the building and a first street building and a second similarity between the building and a second street building aiming at each building in the area to be identified;
classifying the buildings into a first building and a second building according to the first similarity and the second similarity;
aiming at each first building, calculating the number of the household air conditioners corresponding to the first building according to the corresponding outline and height of the first building and the mapping relation between the number of the first household air conditioners and the outline and height;
and aiming at each second building, calculating the number of the household air conditioners corresponding to the second building according to the corresponding outline and height of the second building and the mapping relation between the number of the second household air conditioners and the outline and height.
4. The method according to claim 2 or 3, wherein the determining the sum of the target number of the household air conditioners corresponding to each building as the total number of the household air conditioners in the area to be identified comprises:
respectively calculating a first quantity sum of target household air-conditioners corresponding to the first building and a second quantity sum of target household air-conditioners corresponding to the second building;
determining the sum of the first number sum and the second number sum as the total amount of the household air conditioners in the area to be identified.
5. The method according to any one of claims 1-3, wherein determining the outline of each building in the area to be identified from the remotely sensed image comprises:
carrying out image processing operation on the remote sensing image to obtain a processed remote sensing image, wherein the image processing operation comprises geometric correction operation and/or image fusion operation;
and inputting the processed remote sensing image into a preset contour extraction model to obtain the contour of each building.
6. A method according to any one of claims 1-3, wherein said determining the height of each building from said remote sensing images comprises:
determining shadow size information corresponding to the buildings aiming at the outlines of the buildings;
determining the position relation between a satellite and the sun when the remote sensing image is shot;
and calculating the height of the building according to the position relation and the shadow size information.
7. The method according to any one of claims 1 to 3, wherein the determining the number of the household air conditioners corresponding to each buildings along the street in the street view picture according to the at least one street view picture comprises:
inputting the street view picture into a preset household air conditioner identification model aiming at each street view picture to obtain the number of household air conditioners corresponding to buildings along the street in the street view picture;
and calculating the average value of the number of the household air conditioners corresponding to the buildings along the street in at least one street view picture, and determining the average value as the number of the household air conditioners corresponding to the buildings along the street in the area to be identified.
8. An identification device for a household air conditioner, comprising:
the device comprises an acquisition module, a recognition module and a processing module, wherein the acquisition module is used for acquiring a recognition request, and the recognition request comprises an area identifier of an area to be recognized;
the remote sensing image processing module is used for acquiring a remote sensing image corresponding to the area identifier according to the identification request, determining the outline of each building in the area to be identified according to the remote sensing image, and determining the height of each building according to the remote sensing image;
the street view picture processing module is used for acquiring at least one street view picture corresponding to the area identifier according to the identification request and determining the number of household air conditioners corresponding to each street building in the street view picture according to the at least one street view picture;
the matching module is used for determining the outline and the height of each buildings along the street in the remote sensing image according to the position information of the buildings along the street;
the determining module is used for determining the mapping relation between the number of the household air conditioners and the profile and the height according to the profile and the height corresponding to each buildings along the street and the number of the household air conditioners;
the calculation module is used for calculating the number of target household air conditioners corresponding to each building according to the outline and the height corresponding to each building aiming at each building in the area to be identified;
and the processing module is used for determining the sum of the target household air conditioner quantity corresponding to each building as the total quantity of the household air conditioners in the area to be identified.
9. An electronic device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to call the program instructions in the memory to perform the home air conditioner identification method according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored therein computer-executable instructions for implementing the home air conditioner identification method according to any one of claims 1 to 7 when executed by a processor.
CN202210140021.8A 2022-02-16 2022-02-16 Household air conditioner identification method, device, equipment, storage medium and product Active CN114187524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210140021.8A CN114187524B (en) 2022-02-16 2022-02-16 Household air conditioner identification method, device, equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210140021.8A CN114187524B (en) 2022-02-16 2022-02-16 Household air conditioner identification method, device, equipment, storage medium and product

Publications (2)

Publication Number Publication Date
CN114187524A CN114187524A (en) 2022-03-15
CN114187524B true CN114187524B (en) 2022-06-10

Family

ID=80545993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210140021.8A Active CN114187524B (en) 2022-02-16 2022-02-16 Household air conditioner identification method, device, equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN114187524B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114648546B (en) * 2022-05-18 2022-07-29 深圳小库科技有限公司 Building configuration scheme determination method and device, electronic equipment and storage medium
CN119091298A (en) * 2024-08-20 2024-12-06 中国科学院地理科学与资源研究所 A spatial distribution prediction method for household air conditioners

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463970A (en) * 2014-12-24 2015-03-25 中国科学院地理科学与资源研究所 Method for determining three-dimensional gravity center of city based on remote-sensing image and application thereof
CN108871286A (en) * 2018-04-25 2018-11-23 中国科学院遥感与数字地球研究所 The completed region of the city density of population evaluation method and system of space big data collaboration
CN110222586A (en) * 2019-05-15 2019-09-10 清华大学 A kind of calculating of depth of building and the method for building up of urban morphology parameter database
CN111126308A (en) * 2019-12-26 2020-05-08 西南交通大学 An automatic identification method for damaged buildings combining pre-disaster and post-disaster remote sensing image information
CN113505842A (en) * 2021-07-21 2021-10-15 中国科学院空天信息创新研究院 Automatic extraction method suitable for large-scale regional remote sensing image urban building

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180300341A1 (en) * 2017-04-18 2018-10-18 International Business Machines Corporation Systems and methods for identification of establishments captured in street-level images

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463970A (en) * 2014-12-24 2015-03-25 中国科学院地理科学与资源研究所 Method for determining three-dimensional gravity center of city based on remote-sensing image and application thereof
CN108871286A (en) * 2018-04-25 2018-11-23 中国科学院遥感与数字地球研究所 The completed region of the city density of population evaluation method and system of space big data collaboration
CN110222586A (en) * 2019-05-15 2019-09-10 清华大学 A kind of calculating of depth of building and the method for building up of urban morphology parameter database
CN111126308A (en) * 2019-12-26 2020-05-08 西南交通大学 An automatic identification method for damaged buildings combining pre-disaster and post-disaster remote sensing image information
CN113505842A (en) * 2021-07-21 2021-10-15 中国科学院空天信息创新研究院 Automatic extraction method suitable for large-scale regional remote sensing image urban building

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Deep Learning-Based Method for Detection of External Air Conditioner Units from Street View Images;Fei Yang 等;《remote sensing》;20210915;第1-21页 *
南京市秦淮区昼夜人口空间分布估算与分析;罗阳欢等;《长江流域资源与环境》;20180515(第05期);第85-95页 *
城市建筑物人口时空分布模型与实验分析――以北京东华门街道为例;李淑娟等;《地球信息科学学报》;20130215(第01期);第23-32页 *

Also Published As

Publication number Publication date
CN114187524A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
JP6837467B2 (en) Method and device for determining the matching relationship between point cloud data
WO2017020528A1 (en) Lane line recognition modeling method, apparatus, storage medium, and device, recognition method and apparatus, storage medium, and device
CN114187524B (en) Household air conditioner identification method, device, equipment, storage medium and product
CN111311022B (en) Method, device, equipment, and computer-readable storage medium for predicting power generation
CN108120436A (en) Real scene navigation method in a kind of iBeacon auxiliary earth magnetism room
JP6321570B2 (en) Indoor position information positioning system and indoor position information positioning method
CN108279670A (en) Method, equipment and computer-readable medium for adjusting point cloud data acquisition trajectories
CN112305559A (en) Power transmission line distance measuring method, device and system based on ground fixed-point laser radar scanning and electronic equipment
CN111832579B (en) Map interest point data processing method and device, electronic equipment and readable medium
Xu et al. Building height calculation for an urban area based on street view images and deep learning
CN104866873A (en) Indoor positioning method based on mobile phone image matching
CN111738225A (en) Crowd gathering detection method, device, equipment and storage medium
CN112883236B (en) Map updating method and device, electronic equipment and storage medium
CN114445644A (en) Laser point cloud parameterized semantic feature matching method, device, equipment and storage medium
JP2023021469A (en) Positioning method, positioning apparatus, method of generating visual map, and apparatus thereof
CN118397492A (en) Monitoring data processing method and device, storage medium and terminal
CN112766138A (en) Positioning method, device and equipment based on image recognition and storage medium
US20230354258A1 (en) Data processing method and apparatus
CN112508938B (en) A method, device, equipment and storage medium for evaluating geometric quality of optical satellite images
CN115620030A (en) An image matching method, device, equipment, and medium
CN115908318A (en) Power line sag determination method, device, equipment, medium and product
CN111383337B (en) Method and device for identifying objects
CN114897859A (en) Tree Barrier Analysis Method, Device and Electronic Equipment Based on Vectorized Power Line
CN117951239B (en) Street space breaking degree determining method and device and electronic equipment
CN119642836B (en) Driving trajectory determination method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant