CN116168317A - Weather identification method, weather identification device, electronic equipment and storage medium - Google Patents
Weather identification method, weather identification device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116168317A CN116168317A CN202211645543.XA CN202211645543A CN116168317A CN 116168317 A CN116168317 A CN 116168317A CN 202211645543 A CN202211645543 A CN 202211645543A CN 116168317 A CN116168317 A CN 116168317A
- Authority
- CN
- China
- Prior art keywords
- video
- target
- recognition
- identification
- scene information
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/07—Target detection
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Evolutionary Computation (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
Abstract
本公开提供了一种天气识别方法,涉及人工智能技术领域,尤其涉及图像识别技术领域和视频分析技术领域,可应用于智慧城市、城市治理、应急管理等场景下。具体实现方案为:确定与至少一个初始视频对应的至少一个场景信息,其中,至少一个初始视频与目标区域相关;利用与至少一个场景信息对应的至少一个视频处理策略分别处理至少一个初始视频,得到至少一个目标视频;对至少一个目标视频分别进行第一识别处理,得到至少一个第一识别结果;以及根据至少一个第一识别结果,得到与目标区域对应的目标天气识别结果。本公开还提供了一种天气识别装置、电子设备和存储介质。
The present disclosure provides a weather recognition method, which relates to the technical field of artificial intelligence, in particular to the technical field of image recognition and video analysis technology, and can be applied to scenarios such as smart cities, urban governance, and emergency management. The specific implementation scheme is: determine at least one scene information corresponding to at least one initial video, wherein at least one initial video is related to the target area; use at least one video processing strategy corresponding to the at least one scene information to process at least one initial video respectively, and obtain at least one target video; respectively performing first recognition processing on the at least one target video to obtain at least one first recognition result; and obtaining a target weather recognition result corresponding to the target area according to the at least one first recognition result. The present disclosure also provides a weather recognition device, electronic equipment and a storage medium.
Description
技术领域technical field
本公开涉及人工智能技术领域,尤其涉及图像识别技术领域和视频分析技术领域,可应用于智慧城市、城市治理、应急管理等场景下。更具体地,本公开提供了一种天气识别方法、装置、电子设备和存储介质。The present disclosure relates to the field of artificial intelligence technology, in particular to the field of image recognition technology and video analysis technology, and can be applied in scenarios such as smart cities, urban governance, and emergency management. More specifically, the present disclosure provides a weather recognition method, device, electronic device and storage medium.
背景技术Background technique
随着人工智能技术的发展,深度学习技术的应用场景不断增加。可以对摄像头采集的图像或视频进行识别,以确定摄像头所处区域的天气情况。With the development of artificial intelligence technology, the application scenarios of deep learning technology continue to increase. The image or video collected by the camera can be recognized to determine the weather conditions in the area where the camera is located.
发明内容Contents of the invention
本公开提供了一种天气识别方法、装置、设备以及存储介质。The present disclosure provides a weather recognition method, device, equipment and storage medium.
根据本公开的一方面,提供了一种天气识别方法,该方法包括:确定与至少一个初始视频对应的至少一个场景信息,其中,至少一个初始视频与目标区域相关;利用与至少一个场景信息对应的至少一个视频处理策略分别处理至少一个初始视频,得到至少一个目标视频;对至少一个目标视频分别进行第一识别处理,得到至少一个第一识别结果;以及根据至少一个第一识别结果,得到与目标区域对应的目标天气识别结果。According to an aspect of the present disclosure, a weather recognition method is provided, the method includes: determining at least one scene information corresponding to at least one initial video, wherein at least one initial video is related to a target area; The at least one video processing strategy processes at least one initial video respectively to obtain at least one target video; respectively performs first recognition processing on at least one target video to obtain at least one first recognition result; and according to at least one first recognition result, obtains the same as The target weather recognition result corresponding to the target area.
根据本公开的另一方面,提供了一种天气识别装置,该装置包括:确定模块,用于确定与至少一个初始视频对应的至少一个场景信息,其中,至少一个初始视频与目标区域相关;处理模型,用于利用与至少一个场景信息对应的至少一个视频处理策略分别处理至少一个初始视频,得到至少一个目标视频;识别处理模块,用于对至少一个目标视频分别进行第一识别处理,得到至少一个第一识别结果;以及获得模块,用于根据至少一个第一识别结果,得到与目标区域对应的目标天气识别结果。According to another aspect of the present disclosure, there is provided a weather recognition device, which includes: a determination module configured to determine at least one piece of scene information corresponding to at least one initial video, wherein at least one initial video is related to a target area; processing The model is configured to use at least one video processing strategy corresponding to at least one scene information to process at least one initial video to obtain at least one target video; the identification processing module is configured to perform first identification processing on at least one target video to obtain at least one target video. A first recognition result; and an obtaining module, configured to obtain a target weather recognition result corresponding to the target area according to at least one first recognition result.
根据本公开的另一方面,提供了一种电子设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行根据本公开提供的方法。According to another aspect of the present disclosure, an electronic device is provided, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are At least one processor executes, so that the at least one processor can execute the method provided according to the present disclosure.
根据本公开的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,该计算机指令用于使计算机执行根据本公开提供的方法。According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method provided according to the present disclosure.
根据本公开的另一方面,提供了一种计算机程序产品,包括计算机程序,计算机程序在被处理器执行时实现根据本公开提供的方法。According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method provided according to the present disclosure.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution, and do not constitute a limitation to the present disclosure. in:
图1是根据本公开的一个实施例的可以应用天气识别方法和装置的示例性系统架构示意图;FIG. 1 is a schematic diagram of an exemplary system architecture to which a weather recognition method and device can be applied according to an embodiment of the present disclosure;
图2是根据本公开的一个实施例的天气识别方法的流程图;FIG. 2 is a flowchart of a weather recognition method according to an embodiment of the present disclosure;
图3A是根据本公开的一个实施例的初始视频帧的示意图;Figure 3A is a schematic diagram of an initial video frame according to one embodiment of the present disclosure;
图3B是根据本公开的另一个实施例的初始视频帧的示意图;3B is a schematic diagram of an initial video frame according to another embodiment of the present disclosure;
图3C是根据本公开的另一个实施例的初始视频帧的示意图;3C is a schematic diagram of an initial video frame according to another embodiment of the present disclosure;
图4是根据本公开的一个实施例的获得目标天气识别结果的示意图;Fig. 4 is a schematic diagram of obtaining target weather recognition results according to an embodiment of the present disclosure;
图5是根据本公开的一个实施例的天气识别装置的框图;FIG. 5 is a block diagram of a weather recognition device according to an embodiment of the present disclosure;
图6是根据本公开的一个实施例的可以应用天气识别方法的电子设备的框图。FIG. 6 is a block diagram of an electronic device to which a weather recognition method can be applied according to one embodiment of the present disclosure.
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
天气现象可以包括降雨、降雪以及降冰雹等多种自然现象。以降雨为例,降雨是局部地区规律较为显著的一种自然现象,是天气预报的重要组成部分。气象部门对降雨的观测主要依据气象观测站点的数据。Weather phenomena may include various natural phenomena such as rainfall, snowfall, and hailstone. Taking rainfall as an example, rainfall is a natural phenomenon with obvious regularity in local areas, and it is an important part of weather forecast. The observation of rainfall by the meteorological department is mainly based on the data of meteorological observation stations.
降雨识别的识别结果可以指示相关区域是否发生了降雨现象。气象观测站的分布密度较低、测量工具有限,无法做到细粒度(例如街道或道路)的降雨识别,可能无法满足对降雨识别的准确性要求。降雨可以包括降暴雨。暴雨可以指持续的强降雨,可能成为一种气象灾害。暴雨可能会对群众以及基础设施的安全造成威胁,也可能会导致地质灾害(例如泥石流等)。The recognition result of the rainfall recognition can indicate whether a rainfall phenomenon has occurred in the relevant area. The distribution density of meteorological observation stations is low, and the measurement tools are limited, so fine-grained (such as streets or roads) rainfall identification cannot be achieved, and the accuracy requirements for rainfall identification may not be met. Rainfall may include torrential rain. Torrential rain can refer to continuous heavy rainfall that may become a meteorological disaster. Torrential rain may pose a threat to the safety of the masses and infrastructure, and may also cause geological disasters (such as mudslides, etc.).
为了提高降雨识别的精度,可以利用图像识别或视频识别技术,对摄像头采集的图像或视频进行识别,得到指示摄像头所处区域是否降雨的识别结果。基于图像识别的降雨识别技术,可以在一定程度上利用摄像头的场景信息,但难以利用雨水下落相关的动作信息,导致识别精度较低。基于视频识别的降雨识别技术,可以在一定程度上利用摄像头的场景信息以及雨水下落的动作信息。但,在一些示例中,基于视频识别的降雨识别技术多基于单个摄像头的数据进行识别,没有考虑不同摄像头之间的关系,难以基于更大规模的非同源数据进行降雨识别。In order to improve the accuracy of rainfall recognition, image recognition or video recognition technology can be used to recognize the images or videos collected by the camera, and obtain the recognition result indicating whether the area where the camera is located is rainy or not. The rain recognition technology based on image recognition can use the scene information of the camera to a certain extent, but it is difficult to use the action information related to the falling of rainwater, resulting in low recognition accuracy. The rain recognition technology based on video recognition can use the scene information of the camera and the action information of the rainwater to a certain extent. However, in some examples, the rain recognition technology based on video recognition is mostly based on the data of a single camera, without considering the relationship between different cameras, and it is difficult to carry out rainfall recognition based on larger-scale non-homogeneous data.
图1是根据本公开一个实施例的可以应用天气识别方法和装置的示例性系统架构示意图。需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。Fig. 1 is a schematic diagram of an exemplary system architecture to which a weather recognition method and device can be applied according to an embodiment of the present disclosure. It should be noted that, what is shown in FIG. 1 is only an example of the system architecture to which the embodiments of the present disclosure can be applied, so as to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other device, system, environment or scenario.
如图1所示,根据该实施例的系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线和/或无线通信链路等等。As shown in FIG. 1 , a
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。Users can use
服务器105可以是提供各种服务的服务器,例如对用户利用终端设备101、102、103所浏览的网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的用户请求等数据进行分析等处理,并将处理结果(例如根据用户请求获取或生成的网页、信息、或数据等)反馈给终端设备。The
需要说明的是,本公开实施例所提供的天气识别方法一般可以由服务器105执行。相应地,本公开实施例所提供的天气识别装置一般可以设置于服务器105中。本公开实施例所提供的天气识别方法也可以由不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群执行。相应地,本公开实施例所提供的天气识别装置也可以设置于不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群中。It should be noted that, generally, the weather recognition method provided by the embodiment of the present disclosure may be executed by the
图2是根据本公开的一个实施例的天气识别方法的流程图。FIG. 2 is a flowchart of a weather recognition method according to an embodiment of the present disclosure.
如图2所示,该方法200可以包括操作S210至操作S240。As shown in FIG. 2, the
在操作S210,确定与至少一个初始视频对应的至少一个场景信息。In operation S210, at least one scene information corresponding to at least one initial video is determined.
在本公开实施例中,至少一个初始视频与目标区域相关。例如,目标区域可以是与一个街道对应。该街道可以包括道路和地物(例如建筑物等)。又例如,目标区域内可以部署至少一个视频采集设备(例如摄像头)。视频采集设备采集的视频可以作为初始视频。In an embodiment of the present disclosure, at least one initial video is related to the target area. For example, the target area may correspond to a street. The street may include roads and features (such as buildings, etc.). For another example, at least one video collection device (such as a camera) may be deployed in the target area. The video captured by the video capture device can be used as the initial video.
在本公开实施例中,场景信息可以表征与初始视频相关的场景。例如,场景信息可以指示初始视频来自能见度高的场景。可以理解,在来自能见度高的场景的初始视频中,视频帧的平均亮度较高。也可以理解,本实施例中,以场景信息表征能见度高的场景为示例,但本公开不限于此,场景信息还可以表征其他场景。In an embodiment of the present disclosure, the scene information may represent a scene related to the initial video. For example, scene information may indicate that the original video is from a scene with high visibility. It is understandable that the average brightness of video frames is higher in the original video from a scene with high visibility. It can also be understood that in this embodiment, the scene information representing a scene with high visibility is taken as an example, but the disclosure is not limited thereto, and the scene information may also represent other scenes.
在操作S220,利用与至少一个场景信息对应的至少一个视频处理策略分别处理至少一个初始视频,得到至少一个目标视频。In operation S220, at least one initial video is respectively processed using at least one video processing policy corresponding to at least one scene information to obtain at least one target video.
在本公开实施例中,场景信息与视频处理策略对应。例如,场景信息可以表征能见度高的场景,与该场景信息对应的视频处理策略可以指示以下操作:将初始视频作为目标视频。在利用该视频处理策略处理初始视频时,可以将初始视频作为目标视频。In the embodiment of the present disclosure, the scene information corresponds to the video processing strategy. For example, the scene information may represent a scene with high visibility, and the video processing strategy corresponding to the scene information may indicate the following operation: take the initial video as the target video. When using the video processing strategy to process the initial video, the initial video can be used as the target video.
在操作S230,对至少一个目标视频分别进行第一识别处理,得到至少一个第一识别结果。In operation S230, first recognition processing is performed on at least one target video to obtain at least one first recognition result.
在本公开实施例中,可以利用各种方式进行第一识别处理。例如,可以利用经训练的深度学习模型进行第一识别处理。In the embodiments of the present disclosure, various manners may be used to perform the first identification process. For example, the first recognition process can be performed using a trained deep learning model.
在本公开实施例中,第一识别结果可以指示目标区域中是否存在预设天气现象。例如,预设天气现象可以包括降雨、降雪以及降冰雹等现象。又例如,第1个第一识别结果可以指示目标区域存在降雨现象。In an embodiment of the present disclosure, the first identification result may indicate whether there is a preset weather phenomenon in the target area. For example, the preset weather phenomenon may include phenomena such as rain, snow, and hail. For another example, the first first identification result may indicate that there is rainfall in the target area.
在操作S240,根据至少一个第一识别结果,得到与目标区域对应的目标天气识别结果。In operation S240, a target weather recognition result corresponding to the target area is obtained according to at least one first recognition result.
例如,以3个初始视频为示例,3个初始视频可以对应3个第一识别结果。第1个第一识别结果可以指示目标区域存在降雨现象。第2个第一识别结果也可以指示目标区域存在降雨现象。第3个第一识别结果可以指示目标区域不存在降雨现象。指示存在降雨现象的识别结果的数量大于指示不存在降雨现象的识别结果的数量。由此,目标天气识别结果可以指示目标区域存在降雨现象。For example, taking 3 initial videos as an example, the 3 initial videos may correspond to 3 first recognition results. The first first recognition result may indicate that there is rainfall in the target area. The second first identification result may also indicate that there is rainfall in the target area. The third first identification result may indicate that there is no rain phenomenon in the target area. The number of recognition results indicating the presence of the rainfall phenomenon is larger than the number of recognition results indicating the absence of the rainfall phenomenon. Thus, the target weather identification result may indicate that there is rainfall in the target area.
通过本公开实施例,对至少一个视频进行了识别,可以充分利用不同视频的细粒度特征,有助于提高识别的精度。此外,利用与场景信息对应的视频处理策略处理了至少一个初始视频,使得可以基于至少一个摄像头的数据进行识别,有助于扩展天气识别的应用场景。Through the embodiments of the present disclosure, at least one video is identified, and the fine-grained features of different videos can be fully utilized, which helps to improve the accuracy of identification. In addition, at least one initial video is processed using a video processing strategy corresponding to the scene information, so that recognition can be performed based on data from at least one camera, which helps to expand the application scenarios of weather recognition.
可以理解,上文对本公开的方法流程进行了说明,下面将对上述操作S210中的场景信息进行说明。It can be understood that the method flow of the present disclosure has been described above, and the scene information in the above operation S210 will be described below.
在一些实施例中,初始视频包括多个初始视频帧,至少一个场景信息包括第一场景信息、第二场景信息以及第三场景信息中的至少一个。In some embodiments, the initial video includes a plurality of initial video frames, and at least one piece of scene information includes at least one of first scene information, second scene information, and third scene information.
图3A是根据本公开的一个实施例的初始视频帧的示意图。FIG. 3A is a schematic diagram of an initial video frame according to one embodiment of the present disclosure.
在本公开实施例中,第一场景信息用于表征初始视频的至少一个视频帧中预设对象的占比大于或等于预设占比阈值。例如,预设对象可以为树枝、挡板等对象。预设对象可以遮挡视频采集装置,导致初始视频帧的一些图像区域被预设对象占用,可能导致识别精度下降。又例如,可以分别对多个初始视频帧进行目标检测,得到多个目标检测结果。目标检测结果可以指示预设对象在视频帧中所处的图像区域。根据预设对象所处图像区域,可以确定预设对象在初始视频帧中的占比。若占比大于预设占比阈值,可以确定该初始视频与第一场景信息对应。如图3A所示,初始视频帧301中树枝的占比较大,可以确定包括初始视频帧301的初始视频与第一场景信息对应。In an embodiment of the present disclosure, the first scene information is used to indicate that a proportion of a preset object in at least one video frame of the initial video is greater than or equal to a preset proportion threshold. For example, the preset objects may be objects such as tree branches and baffles. The preset object may block the video capture device, causing some image areas of the initial video frame to be occupied by the preset object, which may lead to a decrease in recognition accuracy. For another example, target detection may be performed on multiple initial video frames respectively to obtain multiple target detection results. The object detection result may indicate the image area where the preset object is located in the video frame. According to the image area where the preset object is located, the proportion of the preset object in the initial video frame can be determined. If the proportion is greater than the preset proportion threshold, it may be determined that the initial video corresponds to the first scene information. As shown in FIG. 3A , the proportion of branches in the
图3B是根据本公开的另一个实施例的初始视频帧的示意图。FIG. 3B is a schematic diagram of an initial video frame according to another embodiment of the present disclosure.
在本公开实施例中,第二场景信息用于表征初始视频的至少一个视频帧的平均亮度小于或等于预设平均亮度阈值。例如,在夜晚或雾霾天气中,能见度低。在利用深度学习模型进行识别的情况下,可以利用来自能见度高的场景的视频样本来训练模型。进而,在推理阶段,深度学习模型对能见度低的视频的识别精度不高。又例如,可以将多个初始视频帧转换为多个灰度图像。分别确定多个灰度图像各自的平均亮度。若多个灰度图像中至少一个灰度图像的平均亮度小于或等于预设平均亮度阈值,可以确定该初始视频与第二场景信息对应。如图3B所示,初始视频帧302的平均亮度较低,可以确定包括初始视频帧302的初始视频与第二场景信息对应。In an embodiment of the present disclosure, the second scene information is used to indicate that the average brightness of at least one video frame of the initial video is less than or equal to a preset average brightness threshold. For example, visibility is low at night or in hazy weather. In the case of deep learning models for recognition, the models can be trained using video samples from scenes with high visibility. Furthermore, in the inference stage, the recognition accuracy of the deep learning model for videos with low visibility is not high. For another example, multiple initial video frames may be converted into multiple grayscale images. The respective average luminances of the plurality of grayscale images are respectively determined. If the average brightness of at least one gray-scale image in the plurality of gray-scale images is less than or equal to the preset average brightness threshold, it may be determined that the initial video corresponds to the second scene information. As shown in FIG. 3B , the average brightness of the
图3C是根据本公开的另一个实施例的初始视频帧的示意图。FIG. 3C is a schematic diagram of an initial video frame according to another embodiment of the present disclosure.
在本公开实施例中,第三场景信息用于表征初始视频的至少一个视频帧中不存在与道路对应的图像区域。例如,多个视频采集设备可以分布于具有道路区域的街道。对于具有与道路对应的图像区域的视频的识别精度较高。这可能是因为不具有道路区域的情况下,目标区域中可以存在较多的树木或水塘,降雨等天气现象的动作信息会被减弱。在一个示例中,在降雨量较少的情况下,目标区域中若存在树木且没有道路,树木可能因降雨而发生摆动。摆动产生的动作信息可以影响雨水本身的动作信息。又例如,可以利用各种方式来确定初始视频帧中是否存在道路区域。例如,可以对初始视频帧进行图像分割,以确定初始视频帧中是否存在与道路对应的图像区域。如图3C所示,初始视频帧303中不存在与道路对应的图像区域,存在与水塘对应的区域,可以确定包括初始视频帧303的初始视频与第三场景信息对应。In the embodiment of the present disclosure, the third scene information is used to indicate that there is no image area corresponding to the road in at least one video frame of the initial video. For example, multiple video capture devices may be distributed across a street with a road area. The recognition accuracy is higher for videos with image regions corresponding to roads. This may be because in the absence of a road area, there may be more trees or ponds in the target area, and the action information of weather phenomena such as rainfall will be weakened. In one example, if there are trees and no roads in the target area during low rainfall, the trees may sway due to the rain. The motion information generated by the swing can affect the motion information of the rain itself. For another example, various methods may be used to determine whether there is a road area in the initial video frame. For example, image segmentation may be performed on the initial video frame to determine whether there is an image region corresponding to a road in the initial video frame. As shown in FIG. 3C , there is no image area corresponding to the road in the
在本公开实施例中,至少一个场景信息还可以包括预设场景信息。例如,除了第一场景信息、第二场景信息以及第三场景信息之外的其他场景信息,可以作为预设场景信息。In an embodiment of the present disclosure, at least one piece of scene information may further include preset scene information. For example, scene information other than the first scene information, the second scene information, and the third scene information may be used as preset scene information.
可以理解,上文对本公开的场景信息进行了说明,下面将对上述操作S220中的视频处理策略进行说明。It can be understood that the scene information of the present disclosure has been described above, and the video processing strategy in the above operation S220 will be described below.
在一些实施例中,至少一个视频处理策略包括第一视频处理策略、第二视频处理策略以及第三视频处理策略中的至少一个。In some embodiments, the at least one video processing policy includes at least one of a first video processing policy, a second video processing policy, and a third video processing policy.
在本公开实施例中,第一视频处理策略与第一场景信息对应。第一视频处理策略用于指示:利用调整后的视频采集设备采集目标视频。例如,如上述,在与第一场景信息对应的初始视频中,可以存在占比较大的预设对象。在利用第一视频处理策略处理该初始视频时,可以调整视频采集设备。利用调整后的视频采集设备采集调整后的视频。接下来,将调整后的视频作为目标视频,以替换初始视频。通过本公开实施例,在存在遮挡的情况下,可以重新采集视频,有助于提高天气识别的精度。In the embodiment of the present disclosure, the first video processing strategy corresponds to the first scene information. The first video processing policy is used to indicate: use the adjusted video capture device to capture the target video. For example, as mentioned above, in the initial video corresponding to the first scene information, there may be preset objects with a large proportion. When processing the initial video using the first video processing strategy, the video capture device may be adjusted. The adjusted video is captured using the adjusted video capture device. Next, use the adjusted video as the target video to replace the initial video. Through the embodiments of the present disclosure, in the case of occlusion, the video can be re-collected, which helps to improve the accuracy of weather recognition.
在本公开实施例中,第二视频处理策略与第二场景信息对应。第二视频处理策略用于指示:从初始视频中删除平均亮度小于或等于预设平均亮度阈值的至少一个视频帧。例如,如上述,与第二场景信息对应的初始视频中,可以存在平均亮度较低的初始视频帧,可以将这些初始视频帧删除。删除了这些初始视频帧的视频,可以作为目标视频。通过本公开实施例,删除了亮度较低的视频帧,可以降低天气识别的运算压力,有助于提高天气识别的精度。In the embodiment of the present disclosure, the second video processing strategy corresponds to the second scene information. The second video processing strategy is used to indicate: delete at least one video frame whose average brightness is less than or equal to a preset average brightness threshold from the initial video. For example, as mentioned above, in the initial video corresponding to the second scene information, there may be initial video frames with low average brightness, and these initial video frames may be deleted. The video with these initial video frames removed can be used as the target video. Through the embodiments of the present disclosure, video frames with low brightness are deleted, which can reduce the computing pressure of weather recognition and help improve the accuracy of weather recognition.
在本公开实施例中,第三视频处理策略与第三场景信息对应。第三视频处理策略用于指示:按照预设裁剪策略对初始视频的多个初始视频帧进行裁剪。例如,如上述,与第三场景信息对应的初始视频中,可以不存在道路区域。可以针对至少一个视频采集设备分别设置预设裁剪策略,使得裁剪后视频帧可以与道路区域类似。可以根据裁剪后的视频帧,得到目标视频。通过本公开实施例,对视频帧进行了裁剪,可以在各种区域中进行天气识别,提高了天气识别的应用范围,有助于提高天气识别的精度。In the embodiment of the present disclosure, the third video processing strategy corresponds to the third scene information. The third video processing strategy is used to indicate: crop the multiple initial video frames of the initial video according to a preset clipping strategy. For example, as mentioned above, there may not be a road area in the initial video corresponding to the third scene information. A preset clipping strategy can be set for at least one video capture device, so that the clipped video frame can be similar to the road area. The target video can be obtained according to the cropped video frame. Through the embodiments of the present disclosure, video frames are clipped, and weather recognition can be performed in various regions, which improves the application range of weather recognition and helps to improve the accuracy of weather recognition.
可以理解,上文对本公开的视频处理策略进行了说明,下面将对操作S230中第一识别处理进行说明。It can be understood that the video processing strategy of the present disclosure has been described above, and the first identification process in operation S230 will be described below.
在一些实施例中,与图像相比,视频可以具有时间维度的信息。可以利用各种深度学习模型来实现第一识别处理。In some embodiments, videos may have temporal dimension information compared to images. Various deep learning models can be utilized to implement the first recognition process.
在本公开实施例中,可以利用循环神经网络(Recurrent Neural Network,RNN)进行时序建模,以实现第一识别处理。例如,可以利用基于注意力机制的长短时记忆网络(AttentionLSTM)来实现第一识别处理。可以理解,循环神经网络可以处理视频特征。In the embodiment of the present disclosure, a recurrent neural network (Recurrent Neural Network, RNN) may be used for time series modeling to implement the first recognition process. For example, the first recognition process can be realized by using an attention-based long-short-term memory network (AttentionLSTM). It can be appreciated that recurrent neural networks can process video features.
在本公开实施例中,也可以利用三维的神经网络来提取视频的时序信息。例如,可以利用快慢(SlowFast)模型的快(Fast)网络和慢(Slow)网络分别获取视频的动作信息和表观信息(可以直接从视频中获取的信息)。可以理解,快慢模型可以用于执行视频分类任务。In the embodiments of the present disclosure, a three-dimensional neural network may also be used to extract timing information of a video. For example, the fast (Fast) network and the slow (Slow) network of the SlowFast model can be used to obtain the action information and appearance information (information that can be directly obtained from the video) of the video respectively. It can be understood that the fast and slow models can be used to perform video classification tasks.
在本公开实施例中,也可以利用其他神经网络来提取视频的时序信息。例如,可以利用时间分割网络(Temporal Segment Networks,TSN)或时间移位模型(Temporal ShiftModule,TSM)来提取时序信息。与时间分割网络不同,时间移位模型可以在不增加计算量的前提下提升识别精度,更适用于天气识别场景。经训练之后,基于时间移位模型进行天气识别的精度可以超过快慢模型。此外,在推理阶段,时间移位模型的推理速度更快,具有更强的推理性能。In the embodiments of the present disclosure, other neural networks may also be used to extract the timing information of the video. For example, time sequence information may be extracted by using a temporal segment network (Temporal Segment Networks, TSN) or a temporal shift model (Temporal ShiftModule, TSM). Different from the time segmentation network, the time shift model can improve the recognition accuracy without increasing the amount of calculation, and is more suitable for weather recognition scenarios. After training, the accuracy of weather recognition based on the time-shift model can exceed that of the fast-slow model. In addition, in the inference stage, the time-shift model has faster inference speed and stronger inference performance.
可以理解,上文对实现第一识别处理的方式进行了说明,下面将对上述的操作S230进行进一步说明。It can be understood that the manner of implementing the first identification process has been described above, and the above operation S230 will be further described below.
在一些实施例中,对至少一个目标视频分别进行第一识别处理,得到至少一个第一识别结果可以包括:根据至少一个初始视频的采集时间,确定至少一个目标视频的采集时间。根据至少一个目标视频的采集时间,确定至少一个第一识别阈值。In some embodiments, performing first recognition processing on at least one target video respectively, and obtaining at least one first recognition result may include: determining the collection time of at least one target video according to the collection time of at least one initial video. According to the collection time of at least one target video, at least one first identification threshold is determined.
在本公开实施例中,在采集时间处于第一时段的情况下,将第一预设值作为第一识别阈值。例如,第一时段可以是清晨时段。又例如,在早上6点整,可以采集两个第一初始视频。二者的采集时间均为早上6点整。利用相关视频处理策略处理第1个第一初始视频之后,可以得到第1个第一目标视频。利用相关视频处理策略处理第2个第一初始视频之后,可以得到第2个第一目标视频。两个第一目标视频的采集时间也可以是早上6点整。可以将第一预设值作为第一识别阈值。In the embodiment of the present disclosure, when the acquisition time is within the first period, the first preset value is used as the first identification threshold. For example, the first time period may be an early morning time period. For another example, at 6 o'clock in the morning, two first initial videos may be collected. The collection time of both is 6 o'clock in the morning. After the first first initial video is processed by using the related video processing strategy, the first first target video can be obtained. After the second first initial video is processed by using the related video processing strategy, the second first target video can be obtained. The acquisition time of the two first target videos may also be exactly 6 o'clock in the morning. The first preset value can be used as the first identification threshold.
在本公开实施例中,在采集时间处于第二时段的情况下,将第二预设值作为第一识别阈值。例如,第二时段可以是晚上时段。又例如,在下午20点整,可以采集两个第二初始视频。二者的采集时间均为晚上20点整。利用相关视频处理策略处理第1个第二初始视频之后,可以得到第1个第二目标视频。利用相关视频处理策略处理第2个第二初始视频之后,可以得到第2个第二目标视频。两个第二目标视频的采集时间也可以是下午17点整。可以将第二预设值作为第一识别阈值。可以理解,第一预设值与第二预设值可以不同。不同时段的光照条件也是不同的。通过本公开实施例,视频的采集时间的不同,识别阈值不同。由此,在不同的时段以及不同的光照条件下,均可以高效准确地进行天气识别,进一步提高跨域天气识别能力。In the embodiment of the present disclosure, when the acquisition time is within the second period, the second preset value is used as the first identification threshold. For example, the second time period may be an evening time period. For another example, at 20 o'clock in the afternoon, two second initial videos may be collected. The collection time of both is 20 o'clock in the evening. After the first second initial video is processed by using the related video processing strategy, the first second target video can be obtained. After the second second initial video is processed by using the related video processing strategy, the second second target video can be obtained. The acquisition time of the two second target videos may also be exactly 17:00 in the afternoon. The second preset value can be used as the first identification threshold. It can be understood that the first preset value may be different from the second preset value. The lighting conditions at different times are also different. According to the embodiments of the present disclosure, the recognition thresholds are different depending on the acquisition time of the video. Therefore, under different time periods and different lighting conditions, weather recognition can be performed efficiently and accurately, further improving the ability of cross-domain weather recognition.
在一些实施例中,对至少一个目标视频分别进行第一识别处理,得到至少一个第一识别结果可以包括:对至少一个目标视频分别进行第一识别处理,得到至少一个第一识别值。根据至少一个第一识别值和至少一个第一识别阈值,得到至少一个第一识别结果。In some embodiments, performing first recognition processing on at least one target video to obtain at least one first recognition result may include: performing first recognition processing on at least one target video to obtain at least one first recognition value. According to at least one first identification value and at least one first identification threshold, at least one first identification result is obtained.
在本公开实施例中,第一识别结果用于指示目标区域中是否存在预设天气现象。In an embodiment of the present disclosure, the first identification result is used to indicate whether there is a preset weather phenomenon in the target area.
在本公开实施例中,若第一识别值大于第一识别阈值,可以确定目标区域中存在预设天气现象。In the embodiment of the present disclosure, if the first identification value is greater than the first identification threshold, it may be determined that there is a preset weather phenomenon in the target area.
可以理解,上文对不同光照条件下进行天气识别的一些方式进行了说明,下面将对上述的操作S240进行进一步说明。It can be understood that some manners of weather recognition under different lighting conditions have been described above, and the above operation S240 will be further described below.
在一些实施例中,至少一个第一识别结果可以为M个。例如,M为大于或等于1的整数。In some embodiments, there may be M at least one first recognition result. For example, M is an integer greater than or equal to 1.
在一些实施例中,根据至少一个第一识别结果,得到与目标区域对应的目标天气识别结果可以包括:响应于确定N个第一识别结果指示目标区域中存在预设天气现象,在确定与N个第一识别结果分别对应的N个目标视频各自的目标视频帧中存在预设图像区域的情况下,对N个目标视频分别进行第二识别处理,得到N个第二识别结果。In some embodiments, according to at least one first identification result, obtaining the target weather identification result corresponding to the target area may include: in response to determining that N first identification results indicate that there is a preset weather phenomenon in the target area, after determining and N When there are preset image regions in the target video frames of the N target videos respectively corresponding to the first recognition results, the N target videos are respectively subjected to the second recognition process to obtain N second recognition results.
例如,N为大于或等于1且小于M的整数。For example, N is an integer greater than or equal to 1 and less than M.
又例如,预设图像区域可以与目标区域中的积水、树荫等对应。可以对目标视频帧进行图像分割,以确定目标视频帧中是否存在与积水或树荫等区域对应的图像区域。For another example, the preset image area may correspond to stagnant water, tree shade, etc. in the target area. Image segmentation may be performed on the target video frame to determine whether there is an image region corresponding to areas such as ponding water or tree shade in the target video frame.
又例如,在N个目标视频的目标视频帧中存在与预设图像区域的情况下,可以利用另一经训练的模型对N个目标视频分别进行第二识别处理,得到第二识别结果。第二识别结果可以指示目标区域中是否存在预设天气现象。通过本公开实施例,可以在存在目标区域存在积水或树荫的情况下,更加准确地进行天气识别。For another example, in the case that there are preset image regions in the target video frames of the N target videos, another trained model may be used to perform the second recognition processing on the N target videos respectively to obtain the second recognition results. The second recognition result may indicate whether a preset weather phenomenon exists in the target area. Through the embodiments of the present disclosure, it is possible to perform weather recognition more accurately when there is ponding or tree shade in the target area.
在一些实施例中,根据至少一个第一识别结果,得到与目标区域对应的目标天气识别结果可以包括:根据N个第二识别结果和M-N个第一识别结果,得到目标天气识别结果。例如,在这些识别结果中,若指示存在预设天气现象的识别结果的数量大于指示不存在预设天气现象的识别结果的数量,可以将指示存在预设天气现象的一个识别结果作为目标天气识别结果。In some embodiments, obtaining the target weather recognition result corresponding to the target area according to at least one first recognition result may include: obtaining the target weather recognition result according to N second recognition results and M-N first recognition results. For example, among these identification results, if the number of identification results indicating that there is a preset weather phenomenon is greater than the number of identification results indicating that there is no preset weather phenomenon, one identification result indicating that there is a preset weather phenomenon can be used as the target weather identification result.
下面将结合图4对获得目标天气识别结果的另一些方式进行进一步说明。Other ways to obtain target weather recognition results will be further described below in conjunction with FIG. 4 .
图4是根据本公开的一个实施例的获得目标天气识别结果的示意图。Fig. 4 is a schematic diagram of obtaining target weather recognition results according to an embodiment of the present disclosure.
在本公开实施例中,根据至少一个第一识别结果,得到与目标区域对应的目标天气识别结果可以包括:确定指示目标区域中存在预设天气现象的第一识别结果的第一数量。确定指示目标区域中不存在预设天气现象的第一识别结果的第二数量。将与第一数量和第二数量中的较大值对应的任一第一识别结果,作为目标天气识别结果。In an embodiment of the present disclosure, obtaining a target weather recognition result corresponding to the target area according to at least one first recognition result may include: determining a first number of first recognition results indicating that a preset weather phenomenon exists in the target area. A second number of first identification results indicating absence of the predetermined weather phenomenon in the target area is determined. Any first recognition result corresponding to the larger value of the first quantity and the second quantity is used as the target weather recognition result.
如图4所示,视频采集设备410可以采集第1个初始视频。利用相关视频处理策略对第1个初始视频进行处理之后,可以得到第1个目标视频。对第1个目标视频进行第一识别处理,可以得到第1个第一识别结果411。视频采集设备420可以采集第2个初始视频。利用相关视频处理策略对第2个初始视频进行处理之后,可以得到第2个目标视频。对第2个目标视频进行第一识别处理,可以得到第2个第一识别结果421。视频采集设备430可以采集第3个初始视频。利用相关视频处理策略对第3个初始视频进行处理之后,可以得到第3个目标视频。对第3个目标视频进行第一识别处理,可以得到第3个第一识别结果431。As shown in FIG. 4 , the
以第一识别结果411指示目标区域内存在降雨现象、第一识别结果421指示目标区域中存在降雨现象以及第一识别结果431指示目标区域中不存在降雨现象为示例,可以确定指示目标区域中存在降雨现象的第一识别结果的第一数量为2。可以确定指示目标区域中不存在降雨现象的第一识别结果的第二数量为1。第一数量大于第二数量,可以将第一识别结果411或第一识别结果421中的任一个作为目标天气识别结果440。目标天气识别结果440可以指示目标区域中存在降雨现象。Taking the
图5是根据本公开的一个实施例的天气识别装置的框图。FIG. 5 is a block diagram of a weather recognition device according to one embodiment of the present disclosure.
如图5所示,该装置500可以包括确定模块510、处理模块520、识别处理模块530以及获得模块540。As shown in FIG. 5 , the
确定模块510,用于确定与至少一个初始视频对应的至少一个场景信息。例如,至少一个初始视频与目标区域相关。A determining
处理模块520,用于利用与至少一个场景信息对应的至少一个视频处理策略分别处理至少一个初始视频,得到至少一个目标视频。The
识别处理模块530,用于对至少一个目标视频分别进行第一识别处理,得到至少一个第一识别结果。The
获得模块540,用于根据至少一个第一识别结果,得到与目标区域对应的目标天气识别结果。The obtaining
在一些实施例中,初始视频包括多个初始视频帧,至少一个场景信息包括第一场景信息、第二场景信息以及第三场景信息中的至少一个,第一场景信息用于表征初始视频的至少一个初始视频帧中预设对象的占比大于或等于预设占比阈值;第二场景信息用于表征初始视频的至少一个初始视频帧的平均亮度小于或等于预设平均亮度阈值;第三场景信息用于表征初始视频的至少一个初始视频帧中不存在与道路对应的图像区域。In some embodiments, the initial video includes a plurality of initial video frames, at least one piece of scene information includes at least one of first scene information, second scene information, and third scene information, and the first scene information is used to characterize at least one of the initial video The proportion of the preset object in an initial video frame is greater than or equal to the preset proportion threshold; the second scene information is used to represent the average brightness of at least one initial video frame of the initial video is less than or equal to the preset average brightness threshold; the third scene The information is used to characterize that there is no image region corresponding to the road in at least one initial video frame of the initial video.
在一些实施例中,至少一个视频处理策略包括第一视频处理策略、第二视频处理策略以及第三视频处理策略中的至少一个,第一视频处理策略与第一场景信息对应,第一视频处理策略用于指示:利用调整后的视频采集设备采集调整后的视频,以及利用调整后的视频替换初始视频;第二视频处理策略与第二场景信息对应,第二视频处理策略用于指示:从初始视频中删除平均亮度小于或等于预设平均亮度阈值的至少一个初始视频帧;第三视频处理策略与第三场景信息对应,第三视频处理策略用于指示:按照预设裁剪策略对初始视频的多个初始视频帧进行裁剪。In some embodiments, at least one video processing strategy includes at least one of a first video processing strategy, a second video processing strategy, and a third video processing strategy, the first video processing strategy corresponds to the first scene information, and the first video processing strategy The strategy is used to indicate: use the adjusted video capture device to capture the adjusted video, and use the adjusted video to replace the original video; the second video processing strategy corresponds to the second scene information, and the second video processing strategy is used to indicate: from Delete at least one initial video frame whose average brightness is less than or equal to the preset average brightness threshold in the initial video; the third video processing strategy corresponds to the third scene information, and the third video processing strategy is used to indicate: according to the preset clipping strategy, the initial video multiple initial video frames for cropping.
在一些实施例中,识别处理模块包括:第一确定单元,用于根据至少一个初始视频的采集时间,确定至少一个目标视频的采集时间;第二确定单元,用于根据至少一个目标视频的采集时间,确定至少一个第一识别阈值;第一识别单元,用于对至少一个目标视频分别进行第一识别处理,得到至少一个第一识别值;第一获得单元,用于根据至少一个第一识别值和至少一个第一识别阈值,得到至少一个第一识别结果,其中,第一识别结果用于指示目标区域中是否存在预设天气现象。In some embodiments, the recognition processing module includes: a first determination unit, configured to determine the acquisition time of at least one target video according to the acquisition time of at least one initial video; a second determination unit, configured to determine the acquisition time of at least one target video according to the acquisition time of at least one target video time, determine at least one first recognition threshold; the first recognition unit is used to perform first recognition processing on at least one target video respectively to obtain at least one first recognition value; the first obtaining unit is used to obtain at least one first recognition value based on at least one first recognition value and at least one first identification threshold to obtain at least one first identification result, wherein the first identification result is used to indicate whether there is a preset weather phenomenon in the target area.
在一些实施例中,至少一个第一识别结果为M个,M为大于或等于1的整数,获得模块包括:第二识别单元,用于响应于确定N个第一识别结果指示目标区域中存在预设天气现象,在确定与N个第一识别结果分别对应的N个目标视频各自的目标视频帧中存在预设图像区域的情况下,对N个目标视频分别进行第二识别处理,得到N个第二识别结果,其中,N为大于或等于1且小于M的整数;第二获得单元,用于根据N个第二识别结果和M-N个第一识别结果,得到目标天气识别结果。In some embodiments, at least one first recognition result is M, and M is an integer greater than or equal to 1, and the obtaining module includes: a second recognition unit, configured to respond to determining that the N first recognition results indicate that there are Preset weather phenomena, when it is determined that there is a preset image area in the respective target video frames of the N target videos corresponding to the N first recognition results, the N target videos are respectively subjected to the second recognition process to obtain N second identification results, wherein N is an integer greater than or equal to 1 and less than M; the second obtaining unit is configured to obtain target weather identification results according to the N second identification results and the M-N first identification results.
在一些实施例中,获得模块包括:第三确定单元,用于确定指示目标区域中存在预设天气现象的第一识别结果的第一数量;第四确定单元,用于确定指示目标区域中不存在预设天气现象的第一识别结果的第二数量;第三获得单元,用于将与第一数量和第二数量中的较大值对应的任一第一识别结果,作为目标天气识别结果。In some embodiments, the obtaining module includes: a third determining unit, configured to determine the first number of first recognition results indicating that there is a preset weather phenomenon in the target area; a fourth determining unit, configured to determine that indicating that there is no preset weather phenomenon in the target area There is a second number of first recognition results of preset weather phenomena; a third obtaining unit is configured to use any first recognition result corresponding to the larger value of the first number and the second number as the target weather recognition result .
本公开的技术方案中,所涉及的用户个人信息的收集、存储、使用、加工、传输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。In the technical solution of this disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved are all in compliance with relevant laws and regulations, and do not violate public order and good customs.
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to the embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
图6示出了可以用来实施本公开的实施例的示例电子设备600的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG. 6 shows a schematic block diagram of an example
如图6所示,设备600包括计算单元601,其可以根据存储在只读存储器(ROM)602中的计算机程序或者从存储单元608加载到随机访问存储器(RAM)603中的计算机程序,来执行各种适当的动作和处理。在RAM 603中,还可存储设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, the
设备600中的多个部件连接至I/O接口605,包括:输入单元606,例如键盘、鼠标等;输出单元607,例如各种类型的显示器、扬声器等;存储单元608,例如磁盘、光盘等;以及通信单元609,例如网卡、调制解调器、无线通信收发机等。通信单元609允许设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the
计算单元601可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元601的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理,例如天气识别方法。例如,在一些实施例中,天气识别方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM 602和/或通信单元609而被载入和/或安装到设备600上。当计算机程序加载到RAM 603并由计算单元601执行时,可以执行上文描述的天气识别方法的一个或多个步骤。备选地,在其他实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行天气识别方法。The
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、复杂可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), complex programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)显示器或者LCD(液晶显示器));以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) display or an LCD (liquid crystal display)) for displaying information to the user and a keyboard and pointing device (eg, a mouse or a trackball) through which the user may provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The specific implementation manners described above do not limit the protection scope of the present disclosure. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211645543.XA CN116168317A (en) | 2022-12-16 | 2022-12-16 | Weather identification method, weather identification device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211645543.XA CN116168317A (en) | 2022-12-16 | 2022-12-16 | Weather identification method, weather identification device, electronic equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116168317A true CN116168317A (en) | 2023-05-26 |
Family
ID=86412355
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211645543.XA Pending CN116168317A (en) | 2022-12-16 | 2022-12-16 | Weather identification method, weather identification device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116168317A (en) |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104463196A (en) * | 2014-11-11 | 2015-03-25 | 中国人民解放军理工大学 | Video-based weather phenomenon recognition method |
| CN110163050A (en) * | 2018-07-23 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of method for processing video frequency and device, terminal device, server and storage medium |
| CN111325239A (en) * | 2020-01-21 | 2020-06-23 | 上海眼控科技股份有限公司 | Image-based weather identification method and equipment |
| CN111476132A (en) * | 2020-03-30 | 2020-07-31 | 微梦创科网络科技(中国)有限公司 | Video scene recognition method, device and electronic device, storage medium |
| CN111753610A (en) * | 2019-08-13 | 2020-10-09 | 上海高德威智能交通系统有限公司 | Weather identification method and device |
| CN112380930A (en) * | 2020-10-30 | 2021-02-19 | 浙江预策科技有限公司 | Rainy day identification method and system |
| CN113723344A (en) * | 2021-09-08 | 2021-11-30 | 北京有竹居网络技术有限公司 | Video identification method and device, readable medium and electronic equipment |
| US20210374415A1 (en) * | 2020-05-27 | 2021-12-02 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method and apparatus for identifying video |
| CN113923474A (en) * | 2021-09-29 | 2022-01-11 | 北京百度网讯科技有限公司 | Video frame processing method and device, electronic equipment and storage medium |
| CN114205671A (en) * | 2022-01-17 | 2022-03-18 | 百度在线网络技术(北京)有限公司 | Video content editing method and device based on scene alignment |
-
2022
- 2022-12-16 CN CN202211645543.XA patent/CN116168317A/en active Pending
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104463196A (en) * | 2014-11-11 | 2015-03-25 | 中国人民解放军理工大学 | Video-based weather phenomenon recognition method |
| CN110163050A (en) * | 2018-07-23 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of method for processing video frequency and device, terminal device, server and storage medium |
| CN111753610A (en) * | 2019-08-13 | 2020-10-09 | 上海高德威智能交通系统有限公司 | Weather identification method and device |
| CN111325239A (en) * | 2020-01-21 | 2020-06-23 | 上海眼控科技股份有限公司 | Image-based weather identification method and equipment |
| CN111476132A (en) * | 2020-03-30 | 2020-07-31 | 微梦创科网络科技(中国)有限公司 | Video scene recognition method, device and electronic device, storage medium |
| US20210374415A1 (en) * | 2020-05-27 | 2021-12-02 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method and apparatus for identifying video |
| CN112380930A (en) * | 2020-10-30 | 2021-02-19 | 浙江预策科技有限公司 | Rainy day identification method and system |
| CN113723344A (en) * | 2021-09-08 | 2021-11-30 | 北京有竹居网络技术有限公司 | Video identification method and device, readable medium and electronic equipment |
| CN113923474A (en) * | 2021-09-29 | 2022-01-11 | 北京百度网讯科技有限公司 | Video frame processing method and device, electronic equipment and storage medium |
| CN114205671A (en) * | 2022-01-17 | 2022-03-18 | 百度在线网络技术(北京)有限公司 | Video content editing method and device based on scene alignment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN115620081B (en) | A training method for a target detection model, a target detection method, and a device | |
| JP2023527615A (en) | Target object detection model training method, target object detection method, device, electronic device, storage medium and computer program | |
| CN114943936A (en) | Target behavior identification method and device, electronic equipment and storage medium | |
| CN111768007B (en) | Method and apparatus for mining data | |
| WO2023179161A1 (en) | Video frame rate control method and apparatus, and electronic device and storage medium | |
| CN110633594A (en) | Target detection method and device | |
| CN115761698A (en) | Target detection method, device, equipment and storage medium | |
| CN113870196A (en) | An image processing method, device, device and medium based on anchor point slicing | |
| CN118506089B (en) | Ice coating detection method, device and equipment for micro-topography of power transmission line and storage medium | |
| CN113379750A (en) | Semi-supervised learning method of semantic segmentation model, related device and product | |
| CN115359471A (en) | Image processing and joint detection model training method, device, equipment and storage medium | |
| CN111311603B (en) | Method and device for outputting number information of target objects | |
| CN120472322B (en) | Landslide detection method, device, program product and electronic equipment | |
| CN111754419A (en) | Image processing method, training method, apparatus, device, and computer-readable storage medium | |
| CN116168317A (en) | Weather identification method, weather identification device, electronic equipment and storage medium | |
| CN118411608B (en) | Bridge crack online monitoring method, device and bridge online automatic monitoring system | |
| CN114580631B (en) | Model training method, smoke and fire detection method, device, electronic equipment and medium | |
| CN116188986B (en) | A method for road extraction from remote sensing images | |
| CN117455883A (en) | Identification methods, devices, computer equipment and media for steel bar acceptance | |
| CN114092739B (en) | Image processing method, apparatus, device, storage medium, and program product | |
| CN112906478B (en) | Target object identification methods, devices, equipment and storage media | |
| CN116152702A (en) | Method, device, electronic device and self-driving vehicle for obtaining point cloud tags | |
| CN116486335A (en) | Smoke detection model, training method and fire early warning method | |
| CN115985040A (en) | Fire monitoring method, device, equipment and medium | |
| CN114863354A (en) | Industrial material identification 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 |