[go: up one dir, main page]

CN112785567B - Map detection method, device, electronic equipment and storage medium - Google Patents

Map detection method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112785567B
CN112785567B CN202110059261.0A CN202110059261A CN112785567B CN 112785567 B CN112785567 B CN 112785567B CN 202110059261 A CN202110059261 A CN 202110059261A CN 112785567 B CN112785567 B CN 112785567B
Authority
CN
China
Prior art keywords
map
image
target map
area
target
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
CN202110059261.0A
Other languages
Chinese (zh)
Other versions
CN112785567A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110059261.0A priority Critical patent/CN112785567B/en
Publication of CN112785567A publication Critical patent/CN112785567A/en
Application granted granted Critical
Publication of CN112785567B publication Critical patent/CN112785567B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Biophysics (AREA)
  • Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Biomedical Technology (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Image Analysis (AREA)

Abstract

The disclosure discloses a map detection method, relates to the field of artificial intelligence, and particularly relates to the field of image processing. The specific implementation scheme is as follows: extracting a plurality of first images from the video and determining the positions of the plurality of first images in the video; determining a first image including a target map from the plurality of first images as a second image using the map classification model; determining a second image containing the erroneous target map as a target image using the map detection model; the position of the target image in the video is determined as the position of the wrong target map. The disclosure also discloses a map detection device, an electronic device and a storage medium.

Description

地图检测方法、装置、电子设备和存储介质Map detection method, device, electronic equipment and storage medium

技术领域Technical field

本公开涉及人工智能技术领域,尤其涉及图像处理技术。更具体地,本公开提供了一种地图检测方法、装置、电子设备和存储介质。The present disclosure relates to the field of artificial intelligence technology, and in particular to image processing technology. More specifically, the present disclosure provides a map detection method, device, electronic device and storage medium.

背景技术Background technique

随着互联网的快速发展,每天都有用户在互联网上发布视频和图像,人们在享受获取信息便捷的同时,也随时会受到互联网上的错误信息的误导,造成不好的影响。With the rapid development of the Internet, users publish videos and images on the Internet every day. While people enjoy the convenience of obtaining information, they are also misled by wrong information on the Internet at any time, causing bad effects.

例如,近年来互联网上出现问题地图的事件频发,对社会造成了负面的影响。因此,对视频和图像中的地图的合规性进行审核是必不可少的任务。For example, in recent years, there have been frequent incidents of problematic maps on the Internet, which have had a negative impact on society. Therefore, auditing the compliance of maps in videos and images is an essential task.

发明内容Contents of the invention

本公开提供了一种地图检测方法、装置、设备以及存储介质。The present disclosure provides a map detection method, device, equipment and storage medium.

根据本公开的一方面,提供了一种地图检测方法,包括:从视频中提取多个第一图像并确定多个第一图像在视频中的位置;使用地图分类模型从多个第一图像中确定包含目标地图的第一图像作为第二图像;使用地图检测模型确定包含错误目标地图的第二图像作为目标图像;确定目标图像在视频中的位置作为错误目标地图的位置。According to an aspect of the present disclosure, a map detection method is provided, including: extracting a plurality of first images from a video and determining the positions of the plurality of first images in the video; using a map classification model to extract a plurality of first images from the plurality of first images. Determine the first image containing the target map as the second image; use the map detection model to determine the second image containing the wrong target map as the target image; determine the position of the target image in the video as the position of the wrong target map.

根据本公开的另一方面,提供了一种地图检测装置,包括:提取模块,用于从视频中提取多个第一图像并确定多个第一图像在视频中的位置;第一确定模块,用于使用地图分类模型从多个第一图像中确定包含目标地图的第一图像作为第二图像;第二确定模块,用于使用地图检测模型确定包含错误目标地图的第二图像作为目标图像;第三确定模块,用于确定目标图像在视频中的位置作为错误目标地图的位置。According to another aspect of the present disclosure, a map detection device is provided, including: an extraction module for extracting a plurality of first images from a video and determining the positions of the plurality of first images in the video; a first determination module, Used to use the map classification model to determine the first image containing the target map from the plurality of first images as the second image; the second determination module used to use the map detection model to determine the second image containing the wrong target map as the target image; The third determination module is used to determine the position of the target image in the video as the position of the wrong target map.

根据本公开的另一方面,提供了一种电子设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行根据本公开提供的方法。According to another aspect of the present disclosure, an electronic device is provided, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are At least one processor executes to enable at least one processor to execute the method provided in accordance with 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 a method provided according to the present disclosure.

根据本公开的另一方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现根据本公开提供的方法。According to another aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements a method provided in accordance with 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 disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.

附图说明Description of the drawings

附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. in:

图1是根据本公开的一个实施例的可以应用地图检方法和装置的示例性系统架构示意图;Figure 1 is a schematic diagram of an exemplary system architecture to which map inspection methods and devices can be applied according to an embodiment of the present disclosure;

图2是根据本公开的一个实施例的地图检测方法的流程图;Figure 2 is a flow chart of a map detection method according to one embodiment of the present disclosure;

图3是根据本公开的一个实施例的地图分类模型的网络结构示意图;Figure 3 is a schematic network structure diagram of a map classification model according to an embodiment of the present disclosure;

图4是根据本公开的一个实施例的使用地图检测模型确定包含错误目标地图的第二图像作为目标图像的方法的流程示意图;Figure 4 is a schematic flowchart of a method for using a map detection model to determine a second image containing an incorrect target map as a target image according to one embodiment of the present disclosure;

图5是根据本公开的一个实施例的使用地图检测模型在第二图像中的目标地图中标定多个特征区域的方法的示意图;Figure 5 is a schematic diagram of a method of using a map detection model to calibrate multiple feature areas in a target map in a second image according to an embodiment of the present disclosure;

图6是根据本公开的一个实施例的根据所标定的特征区域确定第二图像中的目标地图是否为错误目标地图的方法的流程示意图;Figure 6 is a schematic flowchart of a method for determining whether the target map in the second image is an incorrect target map based on the calibrated feature area according to an embodiment of the present disclosure;

图7是根据本公开的一个实施例的地图检测模型的网络结构示意图;Figure 7 is a schematic network structure diagram of a map detection model according to an embodiment of the present disclosure;

图8是根据本公开的一个实施例的地图检测装置的框图;Figure 8 is a block diagram of a map detection device according to an embodiment of the present disclosure;

图9是根据本公开的一个实施例的地图检测方法的电子设备的框图。FIG. 9 is a block diagram of an electronic device according to a map detection method according to one embodiment of the present disclosure.

具体实施方式Detailed ways

以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the present disclosure are included to facilitate understanding and should be considered to be exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

近年来,一些企业和组织在公开场合下使用不符合规范的地图,对社会公众产生不良影响,管理部门更是公布和处罚了多起未使用完整、准确地图的企业。互联网企业用户多、社会关注度高,若问题地图流传到互联网上则造成的负面影响更加明显,因此如何在海量图像中识别出不合规的地图成为需要迫切解决的实际问题。识别问题地图的技术可在图片视频网站、视频软件、以及安防等领域应用,对问题地图进行识别并采取措施避免其互联网流传,是降低产品安全风险和保证产品安全的重要一环。In recent years, some companies and organizations have used non-compliant maps in public, which has had a negative impact on the public. Management departments have announced and punished many companies that did not use complete and accurate maps. There are many Internet enterprise users and high social attention. If problematic maps are spread on the Internet, the negative impact will be more obvious. Therefore, how to identify non-compliant maps in massive images has become a practical problem that needs to be solved urgently. The technology to identify problem maps can be applied in picture and video websites, video software, security and other fields. Identifying problem maps and taking measures to avoid their spread on the Internet is an important part of reducing product security risks and ensuring product safety.

问题地图一般是存在边界线绘制不完整、部分关键地区或岛屿缺失等情况的错误地图,本公开实施例可以检测的地图可以包括国家级的地图、行政区域级的地图、世界地图、亚洲地图和欧洲地图等。Problem maps are generally erroneous maps with incomplete boundary lines, missing key areas or islands, etc. Maps that can be detected by embodiments of the present disclosure may include national-level maps, administrative region-level maps, world maps, Asian maps, and Europe map etc.

目前,对视频中的地图进行审核往往依赖人工,存在耗时大、容易遗漏的问题。具体来说,由于错误地图在海量地图图像中的占比较小,人工审核的关注度可能会随着标准时间增加而下降,标注的结果还会随审核员、审核环境的不同而存在差异,受主观因素干扰严重。此外,人工审核首先需要对审核人员进行标准地图的培训,之后由审核人员完成对全量图像及视频的识别和处理,耗费大量人力物力,造成很大的人工成本压力。Currently, the review of maps in videos often relies on manual labor, which is time-consuming and easy to miss. Specifically, because erroneous maps account for a small proportion of the massive map images, the attention paid to manual review may decrease as the standard time increases, and the annotation results will also vary depending on the reviewer and review environment. Subjective factors interfere seriously. In addition, manual review first requires the reviewers to be trained on standard maps, and then the reviewers complete the identification and processing of all images and videos, which consumes a lot of manpower and material resources, resulting in great pressure on labor costs.

图1是根据本公开一个实施例的可以应用地图检测方法和装置的示例性系统架构示意图。需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。Figure 1 is a schematic diagram of an exemplary system architecture to which a map detection method and device can be applied according to an embodiment of the present disclosure. It should be noted that Figure 1 is only an example of a system architecture to which embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure cannot be used in other applications. Device, system, environment or scenario.

如图1所示,根据该实施例的系统架构100可以包括多个终端设备101、网络102、服务器103和服务器104。网络102用以在终端设备101和服务器103、104之间提供通信链路的介质。网络102可以包括各种连接类型,例如有线和/或无线通信链路等等。As shown in FIG. 1 , the system architecture 100 according to this embodiment may include multiple terminal devices 101 , a network 102 , a server 103 and a server 104 . The network 102 is a medium used to provide a communication link between the terminal device 101 and the servers 103 and 104. Network 102 may include various connection types, such as wired and/or wireless communication links, and the like.

终端设备101可以是各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机等等。服务器103可以是提供地图分类服务的电子设备,服务器104可以是提供问题地图检测服务的电子设备。The terminal device 101 may be various electronic devices, including but not limited to smartphones, tablet computers, laptop computers, and the like. The server 103 may be an electronic device that provides map classification services, and the server 104 may be an electronic device that provides problem map detection services.

示例性地,服务器103可以采集大量的目标地图正样本和目标地图负样本,其中,目标地图正样本可以是绘制正确的目标地图,目标地图负样本可以是非目标地图。使用目标地图正样本和目标地图负样本进行神经网络模型的训练,可以得到地图分类模型,该地图分类模型可以检测出待分类的地图是目标地图,还是非目标地图。For example, the server 103 can collect a large number of positive target map samples and negative target map samples, where the positive target map samples can be correctly drawn target maps, and the negative target map samples can be non-target maps. Using target map positive samples and target map negative samples to train the neural network model, a map classification model can be obtained. The map classification model can detect whether the map to be classified is a target map or a non-target map.

示例性地,服务器104可以采集大量的目标地图样本,使用目标地图样本进行神经网络模型的训练,得到地图检测模型,该地图检测模型可以检测出待审核的地图中是否存在绘制错误的边界线、缺失的地区等问题。For example, the server 104 can collect a large number of target map samples, use the target map samples to train a neural network model, and obtain a map detection model. The map detection model can detect whether there are incorrectly drawn boundary lines in the map to be reviewed. Missing areas and other issues.

根据本公开的实施例,经训练的地图分类模型和地图检测模型可以对互联网上存在的或待发布的图像进行分类和检测,还可以对互联网上存在的或待发布的视频进行分类和检测。示例性地,用户通过终端设备101发布一段视频,终端设备101将该视频发送给服务器103,服务器103可以对视频进行切帧,提取出视频中的每帧图像,然后识别每帧图像上是够包含地图,针对包含地图的图像,使用经训练的地图分类模型识别出是否包括目标地图,对于识别出的包含目标地图的图像,可以标记各个图像的帧位置。然后将识别出的包含目标地图的图像和帧位置发送给服务器104。According to embodiments of the present disclosure, the trained map classification model and map detection model can classify and detect images existing on the Internet or to be published, and can also classify and detect videos existing on the Internet or to be published. For example, the user publishes a video through the terminal device 101, and the terminal device 101 sends the video to the server 103. The server 103 can cut frames in the video, extract each frame of image in the video, and then identify whether there is enough content on each frame of the image. Containing a map, for the image containing the map, use the trained map classification model to identify whether the target map is included. For the identified image containing the target map, the frame position of each image can be marked. The identified image and frame location containing the target map are then sent to the server 104 .

服务器104可以使用地图检测模型对各个包含目标地图的图像进行检测,识别出目标地图是否存在错绘、漏绘等问题,如果存在,则将该图像的帧位置信息发送给终端设备101,以提示用户该视频中的在某一帧位置处出现的错误地图,达到自动审核错误地图的目的。具体地,使用地图检测模型还可以标记出错误地图中具体绘制错误的地方,例如在缺失的区域做标记等等。The server 104 can use the map detection model to detect each image containing the target map, and identify whether the target map has problems such as misdrawing or missing drawings. If so, the server 104 will send the frame position information of the image to the terminal device 101 as a prompt. The wrong map that appears at a certain frame position in the user's video achieves the purpose of automatically reviewing the wrong map. Specifically, using the map detection model can also mark the specific drawing errors in the wrong map, such as marking missing areas, etc.

需要说明的是,地图分类模型和地图检测模型可以在不同服务器中进行训练和使用,也可以在同一服务器中进行训练和使用,本公开对此不做限定。It should be noted that the map classification model and the map detection model can be trained and used in different servers, or can be trained and used in the same server, and this disclosure does not limit this.

图2是根据本公开的一个实施例的地图检测方法的流程图。Figure 2 is a flow chart of a map detection method according to one embodiment of the present disclosure.

如图2所示,该地图检测方法200可以包括操作S210~操作S240。As shown in Figure 2, the map detection method 200 may include operations S210 to S240.

在操作S210,从视频中提取多个第一图像并确定多个第一图像在视频中的位置。In operation S210, a plurality of first images are extracted from the video and positions of the plurality of first images in the video are determined.

根据本公开的实施例,可以对视频进行切帧,提取出视频中的多帧图像作为第一图像,每帧第一图像可以是1秒。还可以标记每个第一图像的帧位置作为第一图像在视频中的位置。According to embodiments of the present disclosure, the video can be cut into frames, and multiple frames of images in the video can be extracted as the first image. Each frame of the first image can be 1 second. The frame position of each first image can also be marked as the position of the first image in the video.

在操作S220,使用地图分类模型从多个第一图像中确定包含目标地图的第一图像作为第二图像。In operation S220, a first image containing a target map is determined as a second image from a plurality of first images using a map classification model.

根据本公开的实施例,地图分类模型可以是使用大量的目标地图正样本和目标地图负样本进行训练得到的。使用经训练的地图分类模型可以识别出每个第一图像中是否包含目标地图,并将包含目标地图的第一图像作为第二图像,还可以根据各个第一图像的帧位置确定各个第二图像的帧位置。According to embodiments of the present disclosure, the map classification model may be trained using a large number of target map positive samples and target map negative samples. The trained map classification model can be used to identify whether each first image contains the target map, and the first image containing the target map can be used as the second image, and each second image can also be determined based on the frame position of each first image. frame position.

具体地,可以将多个第一图像输入到经训练的地图分类模型中,该地图分类模型可以输出每个第一地图中包含目标地图的概率,如果输出的第一图像中包含目标地图的概率大于第一阈值(例如0.3),则可以确定该第一图像为包含目标地图的第一图像。Specifically, a plurality of first images can be input into a trained map classification model, and the map classification model can output a probability that each first map contains a target map, if the output first image contains a probability that the target map is included. is greater than the first threshold (for example, 0.3), then the first image can be determined to be the first image containing the target map.

可以理解,如果包含目标地图的第一图像的个数大于等于1,则确定该视频中包含目标地图,需要对该视频进行审核。It can be understood that if the number of first images containing the target map is greater than or equal to 1, it is determined that the video contains the target map, and the video needs to be reviewed.

在操作S230,使用地图检测模型确定包含错误目标地图的第二图像作为目标图像。In operation S230, the second image containing the wrong target map is determined as the target image using the map detection model.

根据本公开的实施例,地图检测模型可以是使用大量的目标地图样本进行训练得到的,使用地图检测模型可以识别出第二图像中的目标地图是否为错误地图。并将包含错误目标地图的第二图像作为目标图像,还可以根据各个第二图像的帧位置确定各个目标图像的帧位置。According to embodiments of the present disclosure, the map detection model may be trained using a large number of target map samples, and the map detection model may be used to identify whether the target map in the second image is an incorrect map. In addition, the second image containing the wrong target map is used as the target image, and the frame position of each target image can also be determined based on the frame position of each second image.

具体地,可以将多个第二图像输入到经训练的地图检测模型中,该地图检测模型可以在各个第二图像中标定多个特征区域,每个特征区域可以对应目标地图中容易绘制错误或者漏绘的地区或岛屿等。该地图检测模型可以在输出每个标定出的特征区域的分数,该分数表征该特征区域绘制正确性的概率。Specifically, multiple second images can be input into a trained map detection model, and the map detection model can calibrate multiple feature areas in each second image, and each feature area can correspond to a target map that is prone to drawing errors or Missing areas or islands, etc. The map detection model can output a score for each calibrated feature area, which represents the probability that the feature area is drawn correctly.

根据本公开的实施例,如果标定出的目标地图中的特征区域的个数与标准目标地图中特征区域的个数相同,且每个特征区域的得分均大于一定阈值(例如0.3),则说明该目标地图绘制正确。示例性地,如果使用地图检测模型例如在第二图像中标定出了目标地图的区域A、区域B、区域C和区域D,并且输出区域A的分数为0.4,区域B的分数为0.5,区域C的分数为0.6,区域D的分数为0.9。并且在标准目标地图中也包括区域A、区域B、区域C和区域D,则说明第二图像中的目标地图绘制正确。According to an embodiment of the present disclosure, if the number of feature areas in the calibrated target map is the same as the number of feature areas in the standard target map, and the score of each feature area is greater than a certain threshold (for example, 0.3), then it means The target map is drawn correctly. For example, if the map detection model is used to demarcate area A, area B, area C and area D of the target map in the second image, and the output score of area A is 0.4, the score of area B is 0.5, the area C has a score of 0.6 and area D has a score of 0.9. And if the standard target map also includes area A, area B, area C, and area D, it means that the target map in the second image is drawn correctly.

根据本公开的实施例,如果标定出的目标地图中的特征区域的个数与标准目标地图中特征区域的个数不一致,比如小于标准目标地图中的特征区域的个数,则可以确定目标地图漏绘了某个特征区域。示例性地,如果使用地图检测模型例如在第二图像中标定出了目标地图的区域A、区域B和区域C,并且输出区域A的分数为0.4,区域B的分数为0.5,区域C的分数为0.6。而在标准目标地图中包括区域A、区域B、区域C和区域D,则说明第二图像中的目标地图漏绘了区域D。According to an embodiment of the present disclosure, if the number of feature areas in the calibrated target map is inconsistent with the number of feature areas in the standard target map, for example, is less than the number of feature areas in the standard target map, the target map can be determined A feature area is missing. For example, if a map detection model is used, for example, area A, area B, and area C of the target map are calibrated in the second image, and the output score of area A is 0.4, the score of area B is 0.5, and the score of area C is is 0.6. However, the standard target map includes area A, area B, area C and area D, which means that the target map in the second image omits area D.

根据本公开的实施例,如果标定出的目标地图中的特征区域的个数与标准目标地图中特征区域的个数一致,但是,某一特征区域的分数小于阈值(例如0.3),则说明标定出的该特征区域绘制错误的概率较大,可以认为该目标地图为错误地图。示例性地,如果使用地图检测模型例如在第二图像中标定出了目标地图的区域A、区域B、区域C和区域D,并且输出区域A的分数为0.1,区域B的分数为0.5,区域C的分数为0.6,区域D的分数为0.9。并且在标准目标地图中也包括区域A、区域B、区域C和区域D,则说明第二图像中的目标地图没有漏绘特征区域,但是区域A的边界线绘制正确的概率较小,可以认为第二图像中的目标地图为错误地图。According to an embodiment of the present disclosure, if the number of feature areas in the calibrated target map is consistent with the number of feature areas in the standard target map, but the score of a certain feature area is less than a threshold (for example, 0.3), then it means The calibrated characteristic area has a high probability of being drawn incorrectly, and the target map can be considered to be an incorrect map. For example, if the map detection model is used to demarcate area A, area B, area C and area D of the target map in the second image, and the output score of area A is 0.1, the score of area B is 0.5, the area C has a score of 0.6 and area D has a score of 0.9. And the standard target map also includes area A, area B, area C and area D, which means that the target map in the second image does not miss the characteristic area, but the probability of the boundary line of area A being drawn correctly is small, so it can be considered The target map in the second image is the wrong map.

在操作S240,确定目标图像在视频中的位置作为错误目标地图的位置。In operation S240, the position of the target image in the video is determined as the position of the wrong target map.

根据本公开的实施例,在操作S210可以标记每个提取出的第一图像的帧位置,例如标记为第1至100帧。在操作S220使用地图分类模型识别出了包含目标地图的第一图像作为第二图像,可以根据标记的第一图像的帧位置确定第二图像的帧位置,例如,第5至10帧以及第75至78帧的第一图像包含目标地图,则第二图像的帧位置为第5至10帧以及第75至78帧。在操作S230使用地图检测模型识别出了包含错误目标地图的第二图像作为目标图像,可以根据第二图像的帧位置,确定出目标地图的帧位置,例如第5至10帧的第二图像中的目标地图为正确目标地图,第75至78帧的第二图像中的目标地图为错误目标地图,则第75至78帧的第二图像为目标图像,目标图像的帧位置为第75至78帧。则可以通知审核人员视频中的第75至78帧包含了错误目标地图,提高地图审核效率,节约人力。According to an embodiment of the present disclosure, in operation S210, the frame position of each extracted first image may be marked, for example, as the 1st to 100th frames. In operation S220, the first image containing the target map is identified as the second image using the map classification model. The frame position of the second image may be determined according to the marked frame position of the first image, for example, the 5th to 10th frames and the 75th frame. The first image to frame 78 includes the target map, then the frame positions of the second image are frames 5 to 10 and frames 75 to 78. In operation S230, the map detection model is used to identify the second image containing the wrong target map as the target image. The frame position of the target map can be determined based on the frame position of the second image, for example, in the second image of frames 5 to 10. The target map is the correct target map, and the target map in the second image from frames 75 to 78 is the wrong target map, then the second image from frames 75 to 78 is the target image, and the frame position of the target image is from 75 to 78 frame. Then the reviewer can be notified that frames 75 to 78 in the video contain the wrong target map, improving map review efficiency and saving manpower.

根据本公开的实施例,从视频中提取图像,使用地图分类模型确定包含目标地图的图像,使用地图检测模型检测出包含错误目标地图的图像,确定包含错误目标地图的图像在视频中的位置,能够自动检测出视频中是否包含错误目标地图,并确定出现错误目标地图的位置,提高目标地图的审核效率,较少人工成本压力,提高审核正确率。According to an embodiment of the present disclosure, an image is extracted from a video, a map classification model is used to determine an image containing a target map, a map detection model is used to detect an image containing an erroneous target map, and a location in the video of an image containing an erroneous target map is determined, It can automatically detect whether the video contains an incorrect target map and determine the location of the incorrect target map, thereby improving the review efficiency of the target map, reducing labor cost pressure, and improving the accuracy of the review.

根据本公开的实施例,在使用地图分类模型对多个第一图像进行分类之前,还可以将第一图像缩放到第一预设尺寸,该第一预设尺寸可以是224*224,第一图像的格式为RGB图像。地图分类模型对尺寸为224*224的第一图像进行分类,得到各第一图像包含目标地图的概率。根据地图分类模型的性能,也可以将第一图像缩放为其他的尺寸。According to an embodiment of the present disclosure, before using the map classification model to classify the plurality of first images, the first images may also be scaled to a first preset size. The first preset size may be 224*224. The first The format of the image is RGB image. The map classification model classifies the first image with a size of 224*224, and obtains the probability that each first image contains the target map. Depending on the performance of the map classification model, the first image can also be scaled to other sizes.

根据本公开的实施例,在训练地图分类模型的时候,可以使用不同尺寸的目标地图正样本和目标地图负样本进行训练,使得地图分类模型经历多尺寸特征的训练,能够提高地图分类模型的鲁棒性。According to embodiments of the present disclosure, when training a map classification model, target map positive samples and target map negative samples of different sizes can be used for training, so that the map classification model undergoes training of multi-size features, which can improve the robustness of the map classification model. Great sex.

根据本公开的实施例,在训练地图分类模型的时候,还可以采取多尺度特征金字塔的方式进行训练,多尺度特征金字塔是指神经网络中包括多个卷积层,图像经不同卷积层处理后呈现的特征图的尺寸不同。地图分类模型经过多尺度特征金字塔的训练后,可以提高模型的鲁棒性。According to embodiments of the present disclosure, when training a map classification model, a multi-scale feature pyramid can also be used for training. Multi-scale feature pyramid means that the neural network includes multiple convolutional layers, and the image is processed by different convolutional layers. The feature maps presented later have different sizes. After the map classification model is trained with a multi-scale feature pyramid, the robustness of the model can be improved.

图3是根据本公开的一个实施例的地图分类模型的网络结构示意图。Figure 3 is a schematic network structure diagram of a map classification model according to an embodiment of the present disclosure.

如图3所示,地图分类模型的网络结构包括多个卷积层301、多个最大值池化层302、全连接层303和分类层304。下面以视频中的多个第一图像作为地图分类模型的输入图像对地图分类模型的各个处理层进行说明。As shown in Figure 3, the network structure of the map classification model includes multiple convolutional layers 301, multiple maximum pooling layers 302, fully connected layers 303 and classification layers 304. Each processing layer of the map classification model will be described below using multiple first images in the video as input images of the map classification model.

如图3所示,卷积层301用于提取出输入图像的特征,每个卷积层301的输出连接一个最大值池化层302,最大值池化层302用于对卷积层301输出的特征进行选择,选择出激活程度最大的特征。地图样本经每个卷积层301进行特征提取后,都会经过一个最大值池化层302选出激活程度最大的特征,经过多个卷基层301和最大值池化层302处理后,全连接层303会将最大值池化层302选取的特征进行整合,整合的特征输出至分类层304,分类层304用于输出符合这些特征的分类结果。其中,每次经过卷基层301和最大值池化层302处理后输出的特征图像的尺寸不同,可以使得经训练的模型可以自适应处理不同尺寸的图像,提高地图分类模型的鲁棒性。As shown in Figure 3, the convolution layer 301 is used to extract the features of the input image. The output of each convolution layer 301 is connected to a maximum pooling layer 302. The maximum pooling layer 302 is used to output the convolution layer 301. Features are selected and the features with the greatest activation degree are selected. After each convolutional layer 301 performs feature extraction on the map sample, it will go through a maximum pooling layer 302 to select the features with the highest degree of activation. After being processed by multiple convolutional base layers 301 and maximum pooling layers 302, the fully connected layer 303 will integrate the features selected by the maximum pooling layer 302, and output the integrated features to the classification layer 304. The classification layer 304 is used to output classification results that conform to these features. Among them, the size of the feature image output after each processing by the convolutional base layer 301 and the maximum pooling layer 302 is different, which allows the trained model to adaptively process images of different sizes and improves the robustness of the map classification model.

图4是根据本公开的一个实施例的使用地图检测模型确定包含错误目标地图的第二图像作为目标图像的方法的流程图。4 is a flowchart of a method of using a map detection model to determine a second image containing an incorrect target map as a target image, according to one embodiment of the present disclosure.

如图4所示,该地图检测方法400可以包括操作S431~操作S433。As shown in Figure 4, the map detection method 400 may include operations S431 to S433.

在操作S431,使用地图检测模型在各个第二图像中的目标地图中标定多个特征区域。In operation S431, a map detection model is used to demarcate a plurality of feature areas in the target map in each second image.

根据本公开的实施例,多个特征区域可以包括第一区域和至少一个第二区域。例如,目标地图可以为国家地图,目标地图中的第一区域可以是国家边境的最南侧边界点与最东侧边界点作为顶点的矩形区域,第二区域可以是国家地图中的多个相同或不同级别的行政区域,例如省A、省B、市C。According to embodiments of the present disclosure, the plurality of characteristic areas may include a first area and at least one second area. For example, the target map can be a national map. The first area in the target map can be a rectangular area with the southernmost boundary point and the easternmost boundary point of the national border as vertices. The second area can be multiple identical areas in the national map. Or administrative regions at different levels, such as province A, province B, and city C.

具体地,可以在目标地图的边界上的选取最右方的点以及最下方的点,根据该两点确定一个预设形状的区域作为第一区域,该两点在确定的预设形状的边上。其中,该形状可以是矩形、圆形等规则形状,也可以是不规则的形状。标定出第一区域是为了根据标定出的第一区域进一步确定第二图像中的地图是待审核的目标地图。由于该第一区域由第二图像中的地图的边界上的两个点确定的,则该第一区域包含至少部分地图,可以根据该第一区域包含的至少部分地图的特征进一步判断第二图像中的地图是否是待审核的目标地图。Specifically, the rightmost point and the bottom point can be selected on the boundary of the target map, and an area of a preset shape is determined as the first area based on these two points. The two points are on the edge of the determined preset shape. superior. The shape may be a regular shape such as a rectangle or a circle, or an irregular shape. The first area is calibrated to further determine that the map in the second image is the target map to be reviewed based on the calibrated first area. Since the first area is determined by two points on the boundary of the map in the second image, the first area contains at least part of the map, and the second image can be further determined based on the characteristics of at least part of the map included in the first area. Whether the map in is a target map to be reviewed.

根据本公开的实施例,第二区域对应目标地图中符合预设条件的地理区域,例如将地理区域A在标准目标地图中的位置和轮廓作为第一预设条件,将地理区域B在标准目标地图中的位置和轮廓作为第二预设条件。按照第一预设条件在目标地图中标定地理区域A,按照第二预设条件在目标地图中标定地理区域B。将所标定的地理区域A和地理区域B作为第二区域。通过标定出第二区域,可以判断目标地图是否漏绘了某些地理区域,以及边界线是否错误,在边界线错误的情况下,第二区域可能标定不出来,或者标定错误。According to an embodiment of the present disclosure, the second area corresponds to a geographical area in the target map that meets preset conditions. For example, the location and outline of geographical area A in the standard target map are used as the first preset condition, and the geographical area B is in the standard target map. The location and outline in the map serve as the second preset condition. The geographical area A is marked on the target map according to the first preset condition, and the geographical area B is marked on the target map according to the second preset condition. The marked geographical area A and geographical area B are regarded as the second area. By calibrating the second area, it can be determined whether the target map misses certain geographical areas and whether the boundary lines are wrong. If the boundary lines are wrong, the second area may not be calibrated or may be calibrated incorrectly.

在操作S432,根据所标定的特征区域确定各个第二图像中的目标地图是否为错误目标地图。In operation S432, it is determined whether the target map in each second image is an incorrect target map according to the calibrated feature area.

根据本公开的实施例,可以根据所标定的第二区域的数量来确定第二图像中的目标地图是否为错误地图。具体地,预设的标准目标地图例如可以标定有第一区域和多个第二区域,多个第二区域例如包括区域A、区域B、区域C和区域D。如果标定出的第二图像中的目标地图中的第二区域的个数与标准目标地图中第二区域的个数不一致,比如小于标准目标地图中的第二区域的个数,则可以确定目标地图漏绘了某个特征区域。示例性地,如果使用地图检测模型在第二图像中标定出了目标地图的第一区域以及第二区域中的区域A、区域B和区域C,由于在标准目标地图中第二区域包括区域A、区域B、区域C和区域D,则说明第二图像中的目标地图漏绘了区域D,则说明第二图像中的目标地图为错误地图。According to an embodiment of the present disclosure, whether the target map in the second image is an incorrect map may be determined according to the number of calibrated second areas. Specifically, the preset standard target map may be marked with a first area and a plurality of second areas. The multiple second areas include, for example, area A, area B, area C, and area D. If the number of second areas in the target map in the calibrated second image is inconsistent with the number of second areas in the standard target map, for example, less than the number of second areas in the standard target map, the target can be determined The map misses a characteristic area. For example, if the map detection model is used to demarcate the first area of the target map and area A, area B, and area C in the second area in the second image, since the second area includes area A in the standard target map , area B, area C and area D, it means that the target map in the second image misses area D, which means that the target map in the second image is an incorrect map.

根据本公开的实施例,地图检测模型在各个第二图像中标定出第一区域和至少一个第二区域的同时,还可以输出标定的每个区域的分数,该分数表征该特征区域绘制正确性的概率。则可以根据所标定的区域的分数来确定第二图像中的目标地图是否为错误地图。According to an embodiment of the present disclosure, while the map detection model calibrates the first region and at least one second region in each second image, it can also output a score for each calibrated region, which score represents the accuracy of drawing the feature region. The probability. Then it can be determined according to the score of the calibrated area whether the target map in the second image is an incorrect map.

具体地,如果使用地图检测模型在第二图像中标定出了目标地图的第一区域,以及第二区域中的区域A、区域B、区域C和区域D,并且输出区域A的分数为0.1,区域B的分数为0.5,区域C的分数为0.6,区域D的分数为0.9。由于在标准目标地图中第二区域包括区域A、区域B、区域C和区域D,则说明第二图像中的目标地图没有漏绘第二区域,但是区域A的边界线绘制正确的概率较小,可以认为第二图像中的目标地图为错误地图。Specifically, if the map detection model is used to calibrate the first area of the target map in the second image, as well as area A, area B, area C and area D in the second area, and the score of the output area A is 0.1, Area B has a score of 0.5, Area C has a score of 0.6, and Area D has a score of 0.9. Since the second area in the standard target map includes area A, area B, area C and area D, it means that the target map in the second image does not miss the second area, but the probability that the boundary line of area A is drawn correctly is small. , it can be considered that the target map in the second image is an error map.

在操作S433,将包含错误目标地图的第二图像作为目标图像。In operation S433, the second image containing the wrong target map is used as the target image.

根据本公开的实施例,将包含错误目标地图的第二图像作为目标图像,并确定目标地图的帧位置,以提醒审核人员视频中出现错误目标地图的位置。According to an embodiment of the present disclosure, the second image containing the wrong target map is used as the target image, and the frame position of the target map is determined to remind the reviewer of the position where the wrong target map appears in the video.

图5是根据本公开的一个实施例的使用地图检测模型在第二图像中的目标地图中标定多个特征区域的方法的示意图。FIG. 5 is a schematic diagram of a method of using a map detection model to calibrate multiple feature areas in a target map in a second image according to an embodiment of the present disclosure.

如图5所示,地图检测模型在第二图像中的目标地图500中标定出了五个特征区域,分别是第一区域501、第二区域502、第二区域503、第二区域504以及第二区域505。地图检测模型还可以对每个特征区域的正确性进行打分,每个区域的正确性分数可以表征该区域绘制正确的概率。As shown in Figure 5, the map detection model has calibrated five characteristic areas in the target map 500 in the second image, namely the first area 501, the second area 502, the second area 503, the second area 504 and the second area. Second area 505. The map detection model can also score the correctness of each feature area, and the correctness score of each area can represent the probability that the area is drawn correctly.

如图5所示,第一区域501可以是根据目标地图500边界上的最右方的点以及最下方的点确定的矩形框,而第二区域502~505则可以是根据目标地图中指定区域的边界确定的矩形框。As shown in Figure 5, the first area 501 can be a rectangular frame determined based on the rightmost point and the bottom point on the boundary of the target map 500, while the second areas 502 to 505 can be based on designated areas in the target map. A rectangular box whose boundaries are determined.

图6是根据本公开的一个实施例的根据所标定的特征区域确定第二图像中的目标地图是否为错误目标地图的方法的流程图。FIG. 6 is a flowchart of a method for determining whether the target map in the second image is an incorrect target map according to the calibrated feature area according to an embodiment of the present disclosure.

如图6所示,该方法包括操作S6321~操作S6327。As shown in Figure 6, the method includes operations S6321 to S6327.

在操作S6321,使用地图检测模型在第二图像中的目标地图中标定第一区域和至少一个第二区域,并对第一区域以及每个第二区域的正确性进行打分。In operation S6321, a map detection model is used to calibrate a first region and at least one second region in the target map in the second image, and score the correctness of the first region and each second region.

在操作S6322,判断标定出的第一区域的分数是否大于第二阈值(如0.96),在第一区域的分数大于0.96的情况下,执行步骤S6323,否则可以确定第二图像中的地图不是目标地图,则流程结束。In operation S6322, it is determined whether the score of the calibrated first area is greater than a second threshold (such as 0.96). If the score of the first area is greater than 0.96, step S6323 is executed. Otherwise, it can be determined that the map in the second image is not the target. map, the process ends.

在操作S6323,判断至少一个第二区域的分数是否均大于第三阈值(例如0.3),如果是,则可以确定第二图像中的目标地图是正确目标地图,则流程结束,否则,任一第二区域的分数不大于第三阈值的情况下,则执行操作S6324。In operation S6323, it is determined whether the scores of at least one second area are all greater than a third threshold (for example, 0.3). If so, it can be determined that the target map in the second image is the correct target map, and the process ends. Otherwise, any first If the score of the second region is not greater than the third threshold, operation S6324 is performed.

在操作S6324,计算第二图像中的第一区域与第二图像的面积比值。In operation S6324, an area ratio of the first area in the second image and the second image is calculated.

在操作S6325,判断面积比值是否大于第四阈值(例如0.5),如果是则执行操作S6326,否则执行操作S6327。In operation S6325, it is determined whether the area ratio is greater than a fourth threshold (for example, 0.5). If so, operation S6326 is performed. Otherwise, operation S6327 is performed.

在操作S6326,确定第二图像中的目标地图是正确目标地图。In operation S6326, it is determined that the target map in the second image is the correct target map.

在操作S6327,从第二图像中截取出目标地图,并缩放至预设尺寸(如660*400),并返回操作S6321。In operation S6327, the target map is intercepted from the second image and scaled to a preset size (such as 660*400), and operation S6321 is returned.

可以理解,如果目标地图在第二图像中的面积占比很小,则第二图像的特征区域的面积会更小,可能影响地图检测模型对第二图像中各个特征区域的标定。因此,本公开实施例在判断出标定出的任一第二区域的分数小于第三阈值(即目标地图绘制错误的概率较大)的情况下,将目标地图从第二图像中截取出来,具体可以是将第一区域的矩形框放大至框住整个目标地图,然后按照放大后的第一区域的矩形框截取出目标地图。针对截取出的第二地图,可以将第二地图缩放至第二预设尺寸,该第二预设尺寸可以是660*400,将第二预设尺寸的目标图像输入到地图检测模型中,地图检测模型可以对目标地图中的第二区域进行标定和打分,根据标定出的第二区域的分数可以进一步判断目标地图是否为错误目标地图。这样能够避免由于目标地图太小,特征区域难以识别导致的检测错误的问题,能够提高检测错误目标地图的正确率。It can be understood that if the target map accounts for a small area in the second image, the area of the feature area in the second image will be smaller, which may affect the calibration of each feature area in the second image by the map detection model. Therefore, in the embodiment of the present disclosure, when it is determined that the score of any calibrated second area is less than the third threshold (that is, the probability of an error in drawing the target map is relatively high), the target map is intercepted from the second image. Specifically, It may be that the rectangular frame of the first area is enlarged to frame the entire target map, and then the target map is intercepted according to the enlarged rectangular frame of the first area. For the intercepted second map, the second map can be scaled to a second preset size, which can be 660*400, and the target image of the second preset size can be input into the map detection model. The detection model can calibrate and score the second area in the target map, and based on the calibrated score of the second area, it can be further determined whether the target map is an incorrect target map. This can avoid the problem of detection errors caused by the target map being too small and the characteristic area being difficult to identify, and can improve the accuracy of detecting the wrong target map.

根据本公开的实施例,在使用地图检测模型在各个第二图像中的目标地图中标定多个特征区域之前,还可以将第二图像缩放到第二预设尺寸,该第一预设尺寸可以是660*400,第二图像的格式为RGB图像。地图检测模型在尺寸为660*400的第二图像中标定出第一区域和至少一个第二区域并进行打分,根据标定出的第一区域和至少一个第二区域的分数判断目标地图是否是错误地图。根据地图检测模型的性能,也可以将第二图像缩放为其他的尺寸。According to an embodiment of the present disclosure, before using the map detection model to demarcate the plurality of feature areas in the target map in each second image, the second image may also be scaled to a second preset size, and the first preset size may be It is 660*400, and the format of the second image is RGB image. The map detection model calibrates and scores the first area and at least one second area in the second image with a size of 660*400, and determines whether the target map is an error based on the scores of the calibrated first area and at least one second area. map. Depending on the performance of the map detection model, the second image can also be scaled to other sizes.

根据本公开的实施例,在训练地图检测模型的时候,可以使用不同尺寸的目标地图样本进行训练,使得地图检测模型经历多尺寸特征的训练,能够提高地图分类模型的鲁棒性。According to embodiments of the present disclosure, when training a map detection model, target map samples of different sizes can be used for training, so that the map detection model undergoes training of multi-size features, which can improve the robustness of the map classification model.

根据本公开的实施例,目标地图样本可以标定有第一区域和至少一个第二区域,具体可以通过矩形框标记出第一区域和至少一个第二区域。According to an embodiment of the present disclosure, the target map sample may be marked with a first area and at least one second area. Specifically, the first area and at least one second area may be marked by a rectangular frame.

图7是根据本公开的一个实施例的地图检测模型的网络结构示意图。Figure 7 is a schematic network structure diagram of a map detection model according to an embodiment of the present disclosure.

如图7所示,地图检测模型的网络结构包括图像特征提取层701、特征区域标定层702以及错误区域识别层703。下面以包含目标地图的第二图像作为地图检测模型的输入图像对地图检测模型的各个处理层进行说明。As shown in Figure 7, the network structure of the map detection model includes an image feature extraction layer 701, a feature area calibration layer 702, and an error area identification layer 703. Each processing layer of the map detection model will be described below using the second image containing the target map as the input image of the map detection model.

根据本公开的实施例,图像特征提取层701可以包括多个卷积层和最大值池化层,用于提取出输入图像的特征,并选出激活程度最大的特征,生成特征图像。图像特征提取层701将特征图像分别输出至特征区域标定层702和错误区域识别层703,特征区域标定层702用于标定出特征图像中的多个特征区域,得到各个特征区域的标定信息,并对每个特征区域进行打分,其中标定信息可以是用于标记特征区域的矩形框的坐标信息。特征区域标定层702将每个特征区域的标定信息和分数输出至错误区域识别层703,错误区域识别层703用于结合图像特征提取层701输入的特征图像以及特征区域标定层702输入的各个特征区域的标定信息和分数,在特征图像上标定出各个特征区域,并根据标定的特征区域以及各特征区域的分数判断各特征区域是否绘制错误。According to embodiments of the present disclosure, the image feature extraction layer 701 may include multiple convolutional layers and maximum pooling layers, used to extract features of the input image, select features with the largest activation degree, and generate feature images. The image feature extraction layer 701 outputs the feature image to the feature area calibration layer 702 and the error area identification layer 703 respectively. The feature area calibration layer 702 is used to calibrate multiple feature areas in the feature image to obtain the calibration information of each feature area, and Score each feature area, where the calibration information may be the coordinate information of a rectangular box used to mark the feature area. The feature area calibration layer 702 outputs the calibration information and score of each feature area to the error area identification layer 703. The error area identification layer 703 is used to combine the feature image input by the image feature extraction layer 701 and each feature input by the feature area calibration layer 702. Calibration information and scores of the region, calibrate each feature area on the feature image, and determine whether each feature area is drawn incorrectly based on the calibrated feature area and the score of each feature area.

图8是根据本公开的一个实施例的地图检测装置的框图。Figure 8 is a block diagram of a map detection device according to one embodiment of the present disclosure.

如图8所示,该地图检测装置800可以包括提取模块801、第一确定模块802、第二确定模块803和第三确定模块804。As shown in FIG. 8 , the map detection device 800 may include an extraction module 801 , a first determination module 802 , a second determination module 803 and a third determination module 804 .

提取模块801用于从视频中提取多个第一图像并确定所述多个第一图像在视频中的位置。The extraction module 801 is used to extract a plurality of first images from the video and determine the positions of the plurality of first images in the video.

第一确定模块802用于使用地图分类模型从所述多个第一图像中确定包含目标地图的第一图像作为第二图像。The first determining module 802 is configured to use a map classification model to determine a first image containing a target map as a second image from the plurality of first images.

第二确定模块803用于使用地图检测模型确定包含错误目标地图的第二图像作为目标图像。The second determination module 803 is configured to use the map detection model to determine the second image containing the wrong target map as the target image.

第三确定模块804用于确定目标图像在视频中的位置作为错误目标地图的位置。The third determination module 804 is used to determine the position of the target image in the video as the position of the wrong target map.

根据本公开的实施例,提取模块801具体用于将视频按帧切分,得到多个第一图像,以及确定各个第一图像在视频中的帧位置作为第一图像在视频中的位置。According to an embodiment of the present disclosure, the extraction module 801 is specifically configured to segment the video by frames, obtain a plurality of first images, and determine the frame position of each first image in the video as the position of the first image in the video.

根据本公开的实施例,第一确定模块802具体用于使用地图分类模型对多个第一图像进行分类,得到各第一图像包含目标地图的概率;确定概率大于第一阈值的第一图像作为第二图像。According to an embodiment of the present disclosure, the first determination module 802 is specifically configured to use a map classification model to classify multiple first images to obtain the probability that each first image contains the target map; determine the first image with a probability greater than the first threshold as Second image.

根据本公开的实施例,地图检测装置800还包括第一缩放模块。According to an embodiment of the present disclosure, the map detection device 800 further includes a first zoom module.

第一缩放模块用于在第一确定模块802使用地图分类模型对多个第一图像进行分类之前,将第一图像缩放到第一预设尺寸。The first scaling module is configured to scale the first images to a first preset size before the first determining module 802 uses the map classification model to classify the plurality of first images.

根据本公开的实施例,第二确定模块803包括标定单元、第一确定单元和第二确定单元。According to an embodiment of the present disclosure, the second determination module 803 includes a calibration unit, a first determination unit and a second determination unit.

标定单元用于使用地图检测模型在各个第二图像中的目标地图中标定多个特征区域。The calibration unit is configured to use the map detection model to calibrate a plurality of feature areas in the target map in each second image.

第一确定单元用于根据所标定的特征区域确定各个第二图像中的目标地图是否为错误目标地图。The first determination unit is used to determine whether the target map in each second image is an incorrect target map according to the calibrated feature area.

第二确定单元用于将包含错误目标地图的第二图像作为目标图像。The second determination unit is configured to use the second image containing the wrong target map as the target image.

根据本公开的实施例,第一确定单元具体用于在所标定的特征区域的数量与预设的标准目标地图中的特征区域的数量不相等的情况下,确定第二图像中的目标地图为错误目标地图。According to an embodiment of the present disclosure, the first determination unit is specifically configured to determine that the target map in the second image is when the number of calibrated feature areas is not equal to the number of feature areas in the preset standard target map. Wrong target map.

根据本公开的实施例,第一确定单元具体还用于根据预设的标准目标地图中的特征区域确定错误目标地图中缺失的特征区域。According to an embodiment of the present disclosure, the first determination unit is specifically configured to determine missing feature areas in the wrong target map based on the feature areas in the preset standard target map.

根据本公开的实施例,多个特征区域包括第一区域和至少一个第二区域,标定单元具体用于基于目标地图的边界上的至少两点在目标地图中标定第一区域,以及在目标地图中标定至少一个符合预设条件地理区域作为第二区域。According to an embodiment of the present disclosure, the plurality of characteristic areas include a first area and at least one second area, and the calibration unit is specifically configured to calibrate the first area in the target map based on at least two points on the boundary of the target map, and in the target map Successfully select at least one geographical area that meets the preset conditions as the second area.

根据本公开的实施例,第一确定单元包括:打分子单元、计算子单元和确定子单元。According to an embodiment of the present disclosure, the first determining unit includes: a scoring subunit, a calculating subunit, and a determining subunit.

打分子单元用于对所标定的第一区域和第二区域的正确性进行打分。The scoring unit is used to score the correctness of the calibrated first region and the second region.

计算子单元用于在确定第一区域的正确性分数大于第二阈值且任一第二区域的正确性分数小于或等于第三阈值的情况下,计算第二图像中的第一区域与第二图像的面积比值。The calculation subunit is used to calculate the difference between the first area and the second area in the second image when it is determined that the correctness score of the first area is greater than the second threshold and the correctness score of any second area is less than or equal to the third threshold. The area ratio of the image.

确定子单元用于根据面积比值确定第二图像中的目标地图是否为错误目标地图。The determination subunit is used to determine whether the target map in the second image is an incorrect target map according to the area ratio.

根据本公开的实施例,确定子单元具体用于在确定面积比值大于第四阈值的情况下,确定第二图像中的目标地图为错误目标地图。According to an embodiment of the present disclosure, the determination subunit is specifically configured to determine that the target map in the second image is an incorrect target map when it is determined that the area ratio is greater than the fourth threshold.

根据本公开的实施例,确定子单元具体还用于在确定面积比值小于或等于第四阈值的情况下,从第二图像中截取出目标地图;并返回标定单元。According to an embodiment of the present disclosure, the determination subunit is specifically configured to intercept the target map from the second image when it is determined that the area ratio is less than or equal to the fourth threshold; and return to the calibration unit.

根据本公开的实施例,地图检测装置800还包括第二缩放模块。According to an embodiment of the present disclosure, the map detection device 800 further includes a second zoom module.

第二缩放模块用于在标定单元使用地图检测模型在各个第二图像中的目标地图中标定多个特征区域之前,将第二图像缩放到第二预设尺寸。The second scaling module is configured to scale the second image to a second preset size before the calibration unit uses the map detection model to calibrate a plurality of feature areas in the target map in each second image.

根据本公开的实施例,确定子单元具体还用于在根据第二图像中的各第二区域的正确性分数确定目标地图中错误的第二区域。According to an embodiment of the present disclosure, the determination subunit is specifically further configured to determine an erroneous second area in the target map based on the correctness score of each second area in the second image.

根据本公开的实施例,确定子单元具体还用于在确定第一区域的正确性分数大于第二阈值且至少一个第二区域的正确性分数均大于第三阈值的情况下,确定第二图像中的目标地图为正确目标地图。According to an embodiment of the present disclosure, the determining subunit is specifically configured to determine the second image when it is determined that the correctness score of the first region is greater than the second threshold and the correctness scores of at least one second region are both greater than the third threshold. The target map in is the correct target map.

根据本公开的实施例,地图检测装置800还包括第一训练模块和第二训练模块。According to an embodiment of the present disclosure, the map detection device 800 further includes a first training module and a second training module.

第一训练模块用于使用第一地图样本集对第一神经网络模型进行训练,得到地图检测模型;其中,第一地图样本集包括多个目标地图样本,各目标地图样本具有经标定的第一区域和经标定的至少一个第二区域。The first training module is used to train the first neural network model using the first map sample set to obtain a map detection model; wherein the first map sample set includes a plurality of target map samples, and each target map sample has a calibrated first area and at least one calibrated second area.

第二训练模块用于使用第二地图样本集对第二神经网络模型进行训练,得到地图分类模型;其中,第二地图样本集包括多个目标地图正样本和多个目标地图负样本。The second training module is used to train the second neural network model using the second map sample set to obtain a map classification model; wherein the second map sample set includes multiple target map positive samples and multiple target map negative samples.

根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

图9示出了可以用来实施本公开的实施例的示例电子设备900的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。Figure 9 shows a schematic block diagram of an example electronic device 900 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are examples only and are not intended to limit implementations of the disclosure described and/or claimed herein.

如图9所示,设备900包括计算单元901,其可以根据存储在只读存储器(ROM)902中的计算机程序或者从存储单元908加载到随机访问存储器(RAM)903中的计算机程序,来执行各种适当的动作和处理。在RAM 903中,还可存储设备900操作所需的各种程序和数据。计算单元901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in FIG. 9 , the device 900 includes a computing unit 901 that can execute according to a computer program stored in a read-only memory (ROM) 902 or loaded from a storage unit 908 into a random access memory (RAM) 903 Various appropriate actions and treatments. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. Computing unit 901, ROM 902 and RAM 903 are connected to each other via bus 904. An input/output (I/O) interface 905 is also connected to bus 904.

设备900中的多个部件连接至I/O接口905,包括:输入单元906,例如键盘、鼠标等;输出单元907,例如各种类型的显示器、扬声器等;存储单元908,例如磁盘、光盘等;以及通信单元909,例如网卡、调制解调器、无线通信收发机等。通信单元909允许设备900通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in device 900 are connected to I/O interface 905, including: input unit 906, such as keyboard, mouse, etc.; output unit 907, such as various types of displays, speakers, etc.; storage unit 908, such as magnetic disk, optical disk, etc. ; and communication unit 909, such as a network card, modem, wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information/data with other devices through computer networks such as the Internet and/or various telecommunications networks.

计算单元901可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元901的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元901执行上文所描述的各个方法和处理,例如地图检测方法。例如,在一些实施例中,地图检测方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元908。在一些实施例中,计算机程序的部分或者全部可以经由ROM 902和/或通信单元909而被载入和/或安装到设备900上。当计算机程序加载到RAM 903并由计算单元901执行时,可以执行上文描述的地图检测方法的一个或多个步骤。备选地,在其他实施例中,计算单元901可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行地图检测方法。Computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processing processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 901 performs various methods and processes described above, such as the map detection method. For example, in some embodiments, the map detection method may be implemented as a computer software program that is tangibly embodied in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 900 via ROM 902 and/or communication unit 909 . When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the map detection method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the map detection method in any other suitable manner (eg, by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above may 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 a chip implemented in a system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or a combination thereof. These various embodiments may include implementation in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor The processor, which may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device. An output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code 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, special-purpose computer, or other programmable data processing device, such that the program codes, when executed by the processor or controller, cause the functions specified in the flowcharts and/or block diagrams/ The operation 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 this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices 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, laptop disks, hard drives, 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 device, magnetic storage device, or any suitable combination of the above.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may 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., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies 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 may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。Computer systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that various forms of the process shown above may be used, with steps reordered, added or deleted. For example, each step described in the present disclosure can be executed in parallel, sequentially, or in a different order. As long as the desired results of the technical solution disclosed in the present disclosure can be achieved, there is no limitation here.

上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the scope of the present disclosure. It will be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions are possible depending on design requirements and other factors. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this disclosure shall be included in the protection scope of this disclosure.

Claims (16)

1. A map detection method, comprising:
extracting a plurality of first images from the video and determining the positions of the plurality of first images in the video;
determining a first image including a target map from the plurality of first images as a second image using a map classification model;
determining a second image containing the erroneous target map as a target image using the map detection model;
determining the position of the target image in the video as the position of an error target map;
wherein the determining, using the map detection model, the second image including the erroneous target map as the target image includes:
marking a plurality of feature areas in the target map in each second image using the map detection model;
determining whether the target map in each second image is an error target map according to the calibrated characteristic region;
Taking a second image containing an error target map as a target image;
wherein the plurality of feature regions includes a first region and at least one second region, and the marking the plurality of feature regions in the target map in each of the second images using the map detection model includes:
calibrating a first region in the target map based on at least two points on a boundary of the target map, and
marking at least one geographical area meeting preset conditions in the target map as a second area;
wherein the determining whether the target map in each second image is an error target map according to the calibrated feature area comprises:
scoring the correctness of the calibrated first area and second area;
calculating an area ratio of the first region in the second image to the second image under the condition that the correctness score of the first region is determined to be larger than a second threshold value and the correctness score of any second region is determined to be smaller than or equal to a third threshold value;
and determining whether the target map in the second image is an error target map according to the area ratio.
2. The method of claim 1, wherein the extracting the plurality of first images from the video and determining the locations of the plurality of first images in the video comprises:
Dividing the video according to frames to obtain a plurality of first images; and
the frame position of each first image in the video is determined as the position of the first image in the video.
3. The method of claim 1, wherein the determining at least one first image containing a target map from the plurality of first images as a second image using a map classification model comprises:
classifying the plurality of first images by using a map classification model to obtain the probability that each first image contains a target map;
a first image having a probability greater than a first threshold is determined as the second image.
4. The method of claim 3, further comprising, prior to classifying the plurality of first images using a map classification model:
the first image is scaled to a first preset size.
5. The method of claim 1, wherein the determining whether the target map in each second image is an erroneous target map based on the calibrated feature region comprises:
and under the condition that the number of the calibrated characteristic areas is not equal to the number of the characteristic areas in the preset standard target map, determining the target map in the second image as an error target map.
6. The method of claim 5, further comprising: and determining the missing characteristic region in the error target map according to the characteristic region in the preset standard target map.
7. The method of claim 1, wherein the determining whether the target map in the second image is an erroneous target map according to the area ratio comprises:
and determining that the target map in the second image is an error target map under the condition that the area ratio is determined to be larger than a fourth threshold value.
8. The method of claim 7, wherein the determining whether the target map in the second image is an erroneous target map according to the area ratio further comprises:
in the case that the area ratio is determined to be less than or equal to a fourth threshold value, cutting out the target map from the second image;
and enlarging the target map to a second preset size, and returning to the step of marking at least one geographic area meeting preset conditions in the target map as a second area.
9. The method of claim 8, further comprising, prior to using the map detection model to identify the plurality of feature regions in the target map in each second image:
Scaling the second image to the second preset size.
10. The method of claim 1, further comprising:
and determining the wrong second area in the target map according to the correctness score of each second area in the second image.
11. The method of claim 1, further comprising:
and determining that the target map in the second image is a correct target map under the condition that the correctness score of the first area is larger than a second threshold value and the correctness score of the at least one second area is larger than a third threshold value.
12. The method of claim 1, further comprising:
training a first neural network model by using a first map sample set to obtain the map detection model;
wherein the first set of map samples includes a plurality of target map samples, each target map sample having a calibrated first region and at least one calibrated second region.
13. The method of claim 1, further comprising:
training a second neural network model by using a second map sample set to obtain the map classification model;
wherein the second set of map samples includes a plurality of target map positive samples and a plurality of target map negative samples.
14. A map detection apparatus comprising:
an extraction module for extracting a plurality of first images from a video and determining the positions of the plurality of first images in the video;
a first determining module for determining a first image including a target map from the plurality of first images as a second image using a map classification model;
a second determining module for determining a second image containing the erroneous target map as a target image using the map detection model;
a third determining module, configured to determine a position of the target image in the video as a position of an erroneous target map;
the second determining module includes:
a calibration unit for calibrating a plurality of feature areas in the target map in each of the second images using the map detection model;
the first determining unit is used for determining whether the target map in each second image is an error target map according to the calibrated characteristic region;
a second determination unit configured to take a second image including an erroneous target map as a target image;
wherein the plurality of characteristic areas comprise a first area and at least one second area, the calibration unit is used for calibrating the first area in the target map based on at least two points on the boundary of the target map, and at least one geographic area meeting preset conditions is calibrated in the target map as the second area;
Wherein the first determining unit includes:
the scoring subunit is used for scoring the correctness of the calibrated first area and second area;
a calculating subunit, configured to calculate an area ratio of the first region in the second image to the second image when it is determined that the correctness score of the first region is greater than a second threshold and the correctness score of any second region is less than or equal to a third threshold;
and the determining subunit is used for determining whether the target map in the second image is an error target map according to the area ratio.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 13.
16. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1 to 13.
CN202110059261.0A 2021-01-15 2021-01-15 Map detection method, device, electronic equipment and storage medium Active CN112785567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110059261.0A CN112785567B (en) 2021-01-15 2021-01-15 Map detection method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110059261.0A CN112785567B (en) 2021-01-15 2021-01-15 Map detection method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112785567A CN112785567A (en) 2021-05-11
CN112785567B true CN112785567B (en) 2023-09-22

Family

ID=75756928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110059261.0A Active CN112785567B (en) 2021-01-15 2021-01-15 Map detection method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112785567B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114581935A (en) * 2021-12-09 2022-06-03 同盾科技有限公司 Method, device and storage medium for identifying whether state territory in map is complete

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019101021A1 (en) * 2017-11-23 2019-05-31 腾讯科技(深圳)有限公司 Image recognition method, apparatus, and electronic device
CN109977191A (en) * 2019-04-01 2019-07-05 国家基础地理信息中心 Problem map detection method, device, electronic equipment and medium
CN111222423A (en) * 2019-12-26 2020-06-02 深圳供电局有限公司 Object recognition method, device and computer equipment based on work area

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019101021A1 (en) * 2017-11-23 2019-05-31 腾讯科技(深圳)有限公司 Image recognition method, apparatus, and electronic device
CN109977191A (en) * 2019-04-01 2019-07-05 国家基础地理信息中心 Problem map detection method, device, electronic equipment and medium
CN111222423A (en) * 2019-12-26 2020-06-02 深圳供电局有限公司 Object recognition method, device and computer equipment based on work area

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Hybird Framework for Fault Detection、Classification、and Location-Part 1:Concept、Structure 、and Methodology;Joe-Air Jiang;《IEEE》;26(3);全文 *
CNN图像修复区域故障检测的迭代方法;胡德敏;胡钰媛;褚成伟;胡晨;;小型微型计算机系统(07);全文 *

Also Published As

Publication number Publication date
CN112785567A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
EP4040401A1 (en) Image processing method and apparatus, device and storage medium
US11861919B2 (en) Text recognition method and device, and electronic device
WO2020238054A1 (en) Method and apparatus for positioning chart in pdf document, and computer device
CN112633276B (en) Training method, identification method, device, equipment, medium
CN113537192B (en) Image detection method, device, electronic equipment and storage medium
EP4216079A1 (en) Product recognition method, model training method, device and electronic device
CN113362314B (en) Medical image recognition method, recognition model training method and device
CN114445682A (en) Method, device, electronic equipment, storage medium and product for training model
CN113033431A (en) Optical character recognition model training and recognition method, device, equipment and medium
CN114399497A (en) Text image quality detection method and device, computer equipment and storage medium
CN114596188A (en) Watermark detection method, model training method, device and electronic equipment
CN115620325A (en) Table structure restoration method, device, electronic equipment and storage medium
CN114120121A (en) Target processing method, device, equipment and storage medium
CN115311469A (en) Image labeling method, training method, image processing method and electronic device
CN114049686A (en) Signature recognition model training method and device and electronic equipment
WO2022105120A1 (en) Text detection method and apparatus from image, computer device and storage medium
CN112785567B (en) Map detection method, device, electronic equipment and storage medium
CN113032071A (en) Page element positioning method, page testing method, device, equipment and medium
CN113221519B (en) Methods, apparatus, equipment, media and products for processing tabular data
WO2023060954A1 (en) Data processing method and apparatus, data quality inspection method and apparatus, and readable storage medium
CN114663886A (en) Text recognition method, model training method and device
US20220188292A1 (en) Data processing method, apparatus, electronic device and readable storage medium
CN114387605A (en) Text detection method, device, electronic device and storage medium
CN114155508B (en) Road change detection method, device, equipment and storage medium
CN116343076A (en) Image detection method, device and equipment for harmful organisms

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