CN118658095A - Method, device, computer equipment and medium for determining the operating status of detection equipment - Google Patents
Method, device, computer equipment and medium for determining the operating status of detection equipment Download PDFInfo
- Publication number
- CN118658095A CN118658095A CN202410786488.9A CN202410786488A CN118658095A CN 118658095 A CN118658095 A CN 118658095A CN 202410786488 A CN202410786488 A CN 202410786488A CN 118658095 A CN118658095 A CN 118658095A
- Authority
- CN
- China
- Prior art keywords
- detection
- video
- detection device
- icon
- operating status
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/41—Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/761—Proximity, similarity or dissimilarity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/52—Surveillance or monitoring of activities, e.g. for recognising suspicious objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/09—Recognition of logos
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computing Systems (AREA)
- Medical Informatics (AREA)
- General Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- Databases & Information Systems (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Train Traffic Observation, Control, And Security (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及设备检测技术领域,特别涉及一种检测设备运行状态的判断方法、装置、计算机设备及介质。The present invention relates to the technical field of equipment detection, and in particular to a method, device, computer equipment and medium for determining the operating status of a detection device.
背景技术Background Art
汽车行业瞬息万变,为了验证设备的稳定性,对车辆的设备系统的画面的输出进行确认变得不可避免。画面监测是为了查看检测设备每次运行启动是否正常。现有技术对上下电检测的局限于各个模块的单项检测,需通过日志查看,运行时的视频则更需耗费大量人力进行再次确认。The automotive industry is changing rapidly. In order to verify the stability of the equipment, it is inevitable to confirm the output of the vehicle's equipment system screen. The screen monitoring is to check whether the test equipment is running normally each time. The existing technology is limited to single-item testing of each module for power-on and power-off testing, which needs to be checked through logs, and the video during operation requires a lot of manpower to confirm again.
现有技术对上下电检测通常包括:模组测试、硬件测试、整车测试和带屏设备上下电测试。模组测试通过约定的串口通讯协议判定模组通讯是否正常,带画面输出需人为查看画面是否正常。硬件测试通过现有的程控电源控制设备上下电,人为查看画面是否正常。整车测试根据实车环境,进行上下电测试,人为查看画面。带屏设备上下电测试录制画面,人为查看画面。The existing technology for power-on and power-off detection usually includes: module testing, hardware testing, vehicle testing, and power-on and power-off testing of devices with screens. The module test determines whether the module communication is normal through the agreed serial communication protocol, and the screen output requires manual inspection to see if the screen is normal. The hardware test controls the power on and off of the device through the existing programmable power supply, and manually checks whether the screen is normal. The vehicle test performs power-on and power-off tests according to the actual vehicle environment, and manually checks the screen. The screen device power-on and power-off test records the screen, and the screen is manually checked.
因此,无论实车测试还是台架测试,均需耗费大量的时间去查看画面是否正常。Therefore, whether it is a real vehicle test or a bench test, a lot of time is needed to check whether the image is normal.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种检测设备运行状态的判断方法,以解决现有技术中检测设备的运行状态需要人工查看,无法自动判断的技术问题。该方法包括:In view of this, an embodiment of the present invention provides a method for determining the operating status of a detection device to solve the technical problem in the prior art that the operating status of the detection device needs to be manually checked and cannot be automatically determined. The method includes:
构建对检测设备的运行状态进行监控的视频采集平台,通过视频采集平台采集检测设备的运行时的视频作为检测视频,通过检测设备的种类取得检测视频的种类;Construct a video acquisition platform for monitoring the operating status of the detection equipment, collect the running video of the detection equipment as the detection video through the video acquisition platform, and obtain the type of the detection video according to the type of the detection equipment;
若检测视频为棋盘视频,识别检测视频中棋盘格的点位数,通过点位数判断检测设备的设备数量,对比设备数量和预设的正确设备数量,若两者一致,判断检测设备的运行状态为正常,若两者不一致,判断检测设备的运行状态为异常;If the detection video is a chessboard video, identify the number of points on the chessboard in the detection video, determine the number of devices of the detection device according to the number of points, compare the number of devices with the preset correct number of devices, and if the two are consistent, determine that the operating state of the detection device is normal; if the two are inconsistent, determine that the operating state of the detection device is abnormal;
若检测视频为导航图标视频,识别检测视频中的导航图标,将导航图标与预设的正确导航图案进行相似度比对,生成比对结果,若比对结果大于等于相似度阈值,判断检测设备的运行状态为正常,若比对结果小于相似度阈值,判断检测设备的运行状态为异常。If the detection video is a navigation icon video, identify the navigation icon in the detection video, compare the navigation icon with the preset correct navigation pattern for similarity, and generate a comparison result. If the comparison result is greater than or equal to the similarity threshold, the operating status of the detection device is judged to be normal. If the comparison result is less than the similarity threshold, the operating status of the detection device is judged to be abnormal.
本发明实施例还提供了一种检测设备运行状态的判断装置,以解决现有技术中检测设备的运行状态需要人工查看,无法自动判断的技术问题。该装置包括:The embodiment of the present invention also provides a device for determining the operating status of a detection device to solve the technical problem that the operating status of the detection device in the prior art needs to be manually checked and cannot be automatically determined. The device includes:
视频采集模块,用于构建对检测设备的运行状态进行监控的视频采集平台,通过视频采集平台采集检测设备的运行时的视频作为检测视频,通过检测设备的种类取得检测视频的种类;The video acquisition module is used to build a video acquisition platform for monitoring the operating status of the detection equipment, collect the running video of the detection equipment as the detection video through the video acquisition platform, and obtain the type of the detection video according to the type of the detection equipment;
点位数检测模块,用于若检测视频为棋盘视频,识别检测视频中棋盘格的点位数,通过点位数判断检测设备的设备数量,对比设备数量和预设的正确设备数量,若两者一致,判断检测设备的运行状态为正常,若两者不一致,判断检测设备的运行状态为异常;The number of points detection module is used to identify the number of points on the chessboard in the detection video if the detection video is a chessboard video, determine the number of devices of the detection device according to the number of points, compare the number of devices with the preset correct number of devices, and if the two are consistent, determine that the operating state of the detection device is normal; if the two are inconsistent, determine that the operating state of the detection device is abnormal;
导航图标检测模块,用于若检测视频为导航图标视频,识别检测视频中的导航图标,将导航图标与预设的正确导航图案进行相似度比对,生成比对结果,若比对结果大于等于相似度阈值,判断检测设备的运行状态为正常,若比对结果小于相似度阈值,判断检测设备的运行状态为异常。The navigation icon detection module is used to identify the navigation icon in the detection video if the detection video is a navigation icon video, compare the similarity between the navigation icon and the preset correct navigation pattern, and generate a comparison result. If the comparison result is greater than or equal to the similarity threshold, the operating status of the detection device is judged to be normal; if the comparison result is less than the similarity threshold, the operating status of the detection device is judged to be abnormal.
本发明实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意的检测设备运行状态的判断方法,以解决现有技术中检测设备的运行状态需要人工查看,无法自动判断的技术问题。An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods for determining the operating status of the detection device when executing the computer program, so as to solve the technical problem in the prior art that the operating status of the detection device needs to be manually checked and cannot be automatically determined.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有执行上述任意的检测设备运行状态的判断方法的计算机程序,以解决现有技术中检测设备的运行状态需要人工查看,无法自动判断的技术问题。An embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program for executing any of the above-mentioned methods for determining the operating status of the detection device, so as to solve the technical problem in the prior art that the operating status of the detection device needs to be manually checked and cannot be automatically determined.
与现有技术相比,本说明书实施例采用的上述至少一个技术方案能够达到的有益效果至少包括:Compared with the prior art, the beneficial effects that can be achieved by at least one of the above technical solutions adopted in the embodiments of this specification include at least:
采用视频采集平台采集检测视频,并对检测视频进行自动检测,将检测视频通过视频采集平台进行分析,实现对不同检测设备的运行状态的检测。The video acquisition platform is used to collect the detection video, and the detection video is automatically detected. The detection video is analyzed through the video acquisition platform to realize the detection of the operating status of different detection equipment.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1是本发明实施例提供的一种检测设备运行状态的判断方法的流程图;FIG1 is a flow chart of a method for determining the operating status of a detection device provided by an embodiment of the present invention;
图2是本发明实施例提供的视频采集平台的结构示意图;FIG2 is a schematic diagram of the structure of a video acquisition platform provided by an embodiment of the present invention;
图3是本发明实施例提供的一种计算机设备的结构框图;FIG3 is a structural block diagram of a computer device provided by an embodiment of the present invention;
图4是本发明实施例提供的一种检测设备运行状态的判断装置的结构框图。FIG. 4 is a structural block diagram of a device for determining the operating status of a detection device provided in an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
下面结合附图对本申请实施例进行详细描述。The embodiments of the present application are described in detail below with reference to the accompanying drawings.
以下通过特定的具体实例说明本申请的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本申请的其他优点与功效。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。本申请还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本申请的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following describes the implementation methods of the present application through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
在本发明实施例中,提供了一种检测设备运行状态的判断方法,如图1所示,该方法包括:In an embodiment of the present invention, a method for determining the operating status of a detection device is provided. As shown in FIG1 , the method includes:
步骤S101:构建对检测设备的运行状态进行监控的视频采集平台,通过视频采集平台采集检测设备的运行时的视频作为检测视频,通过检测设备的种类取得检测视频的种类;Step S101: construct a video acquisition platform for monitoring the operating status of the detection device, collect the video of the detection device during operation as the detection video through the video acquisition platform, and obtain the type of the detection video according to the type of the detection device;
步骤S102:若检测视频为棋盘视频,识别检测视频中棋盘格的点位数,通过点位数判断检测设备的设备数量,对比设备数量和预设的正确设备数量,若两者一致,判断检测设备的运行状态为正常,若两者不一致,判断检测设备的运行状态为异常;Step S102: if the detection video is a chessboard video, identify the number of points on the chessboard in the detection video, determine the number of devices of the detection device according to the number of points, compare the number of devices with the preset correct number of devices, and if the two are consistent, determine that the operating state of the detection device is normal; if the two are inconsistent, determine that the operating state of the detection device is abnormal;
步骤S103:若检测视频为导航图标视频,识别检测视频中的导航图标,将导航图标与预设的正确导航图案进行相似度比对,生成比对结果,若比对结果大于等于相似度阈值,判断检测设备的运行状态为正常,若比对结果小于相似度阈值,判断检测设备的运行状态为异常。Step S103: If the detection video is a navigation icon video, identify the navigation icon in the detection video, compare the navigation icon with the preset correct navigation pattern for similarity, and generate a comparison result. If the comparison result is greater than or equal to the similarity threshold, the operating status of the detection device is judged to be normal; if the comparison result is less than the similarity threshold, the operating status of the detection device is judged to be abnormal.
具体的,视频采集平台可检测两种类型的视频。现有的整车测试是在车上进行手动测试,耗时费力。本发明在台架搭建上下电环境,使用摄像头拍摄棋盘格或者带导航图标的设备。Specifically, the video acquisition platform can detect two types of videos. The existing vehicle test is a manual test on the vehicle, which is time-consuming and laborious. The present invention builds a power-on and power-off environment on the test bench and uses a camera to shoot a chessboard or a device with a navigation icon.
具体实施时,通过以下步骤实现识别检测视频中棋盘格的点位数,通过点位数判断检测设备的设备数量:In specific implementation, the following steps are used to identify the number of points on the chessboard in the detection video, and the number of detection devices is determined by the number of points:
截取检测视频中固定时间段内的多帧,生成检测对象图片组;分别检测检测对象图片组中的每一张检测对象图片的每一个角点,合计得到每一张检测对象图片对应的角点总数,直至检测对象图片组中所有的检测对象图片均检测完毕;计算检测对象图片组中所有检测对象图片的角点总数的平均值,将平均值作为棋盘格的点位数;设定棋盘格的点位数与检测设备的设备数量之间的对应关系,通过对应关系得到点位数对应的设备数量。Capture multiple frames within a fixed time period in the detection video to generate a detection object picture group; detect each corner point of each detection object picture in the detection object picture group respectively, and obtain the total number of corner points corresponding to each detection object picture until all the detection object pictures in the detection object picture group are detected; calculate the average value of the total number of corner points of all the detection object pictures in the detection object picture group, and use the average value as the number of points on the chessboard; set the corresponding relationship between the number of points on the chessboard and the number of detection devices, and obtain the number of devices corresponding to the number of points through the corresponding relationship.
具体实施时,为了检测每一张图片的角点,通过以下步骤实现分别检测检测对象图片组中的每一张检测对象图片的每一个角点:In the specific implementation, in order to detect the corner points of each image, the following steps are performed to detect each corner point of each detection object image in the detection object image group:
将检测对象图片转换为灰度图像后进行滤波操作,生成预处理后图片;对预处理后图片进行边缘检测,提取构成棋盘格的线条组,判断线条组中的线条是否为直线,若为直线,将对应的线条作为有效线条,生成有效线条组;循环有效线条组中的所有有效线条,判断是否存在相互垂直的有效线条;针对每一对相互垂直的有效线条,将对应的交点作为角点。The image of the detection object is converted into a grayscale image and then filtered to generate a preprocessed image; edge detection is performed on the preprocessed image to extract the line group that constitutes the chessboard, and it is determined whether the lines in the line group are straight lines. If they are straight lines, the corresponding lines are taken as valid lines to generate a valid line group; all valid lines in the valid line group are looped to determine whether there are valid lines that are perpendicular to each other; for each pair of valid lines that are perpendicular to each other, the corresponding intersection point is taken as a corner point.
具体的,启动上位机,通过集成在上位机中的检测棋盘格的点位数的算法,把从检测视频中获取到的棋盘格和算法中的模型进行对比,从识别出棋盘格的点位数的帧开始计时,运行10秒后(确保设备已正常运行),开始统计1秒钟内每一帧中棋盘格的点位数,并计算一秒内的所有帧的点位数的平均值,在一个实施例中,设定平均值与设备数量的对应关系。例如,平均值在5~9之间判定为一个设备,平均值在10~16之间判定为2个设备,以此类推。最后对比设备数量和上位机中设置的设备数量值,二者一致记为运行状态正常,不一致记为运行状态异常。其中,固定时间段为运行10秒后的一秒钟。Specifically, start the host computer, and compare the chessboard obtained from the detection video with the model in the algorithm through the algorithm for detecting the number of points on the chessboard integrated in the host computer. Start timing from the frame where the number of points on the chessboard is identified. After running for 10 seconds (to ensure that the device is operating normally), start counting the number of points on the chessboard in each frame within 1 second, and calculate the average number of points in all frames within one second. In one embodiment, a corresponding relationship between the average value and the number of devices is set. For example, an average value between 5 and 9 is determined as one device, an average value between 10 and 16 is determined as 2 devices, and so on. Finally, compare the number of devices with the number of devices set in the host computer. If the two are consistent, it is recorded as a normal operating state, and if they are inconsistent, it is recorded as an abnormal operating state. Among them, the fixed time period is one second after running for 10 seconds.
在上位机中可设置测试设备的正确设备数量,当检测出的棋盘格点位数和设置的正确设备数量不一致时,将出现问题的帧的图片保存至设置的路径里,并记录在上位机的错误文件中。The correct number of devices for the test device can be set in the host computer. When the number of detected chessboard points is inconsistent with the set correct number of devices, the image of the frame with the problem will be saved to the set path and recorded in the error file of the host computer.
具体实施时,通过以下步骤实现识别检测视频中的导航图标,将导航图标与预设的正确导航图案进行相似度比对,生成比对结果:In specific implementation, the following steps are performed to recognize and detect the navigation icon in the video, and the navigation icon is compared with the preset correct navigation pattern for similarity to generate a comparison result:
截取检测视频中固定时间段内的多帧,生成匹配源图标组;计算匹配源图标组中的每一个匹配源图标的特征值,直至匹配源图标组中所有的匹配源图标均计算完毕;计算匹配源图标的特征值与正确导航图案的特征值的比值,将比值作为匹配度;计算匹配源图标组中所有匹配源图标对应的匹配度的平均值,将平均值作为比对结果。Capture multiple frames within a fixed time period in the detection video to generate a matching source icon group; calculate the feature value of each matching source icon in the matching source icon group until all the matching source icons in the matching source icon group are calculated; calculate the ratio of the feature value of the matching source icon to the feature value of the correct navigation pattern, and use the ratio as the matching degree; calculate the average value of the matching degrees corresponding to all the matching source icons in the matching source icon group, and use the average value as the comparison result.
具体实施时,通过以下步骤实现计算匹配源图标组中的每一个匹配源图标的特征值:In specific implementation, the characteristic value of each matching source icon in the matching source icon group is calculated through the following steps:
将匹配源图标缩放至与正确导航图案相同的尺寸,生成缩放后匹配源图标;将缩放后匹配源图标进行灰度处理,生成匹配源灰度图标;依次计算匹配源灰度图标的每一行的像素点的平均值;计算所有平均值的方差,将方差作为匹配源图标的特征值。The matching source icon is scaled to the same size as the correct navigation pattern to generate a scaled matching source icon; the scaled matching source icon is gray-scaled to generate a matching source gray-scale icon; the average value of the pixel points in each row of the matching source gray-scale icon is calculated in turn; the variance of all the average values is calculated, and the variance is used as the characteristic value of the matching source icon.
具体的,启动上位机,在上位机中集成预设的正确导航图案,把从检测视频中获取到的导航图标与正确导航图案进行对比。首先从识别到导航图标的第一帧开始计时,运行10秒后(为了确保设备已正常运行),计算1秒内每一帧的导航图标与正确导航图案的匹配度后计算匹配度的平均值,当匹配度的平均值达到80%(预设的相似度阈值)及以上时,判断为检测设备的运行状态正常,否则判定检测设备的运行状态为异常。其中,固定时间段为运行10秒后的1秒钟。Specifically, start the host computer, integrate the preset correct navigation pattern in the host computer, and compare the navigation icon obtained from the detection video with the correct navigation pattern. First, start timing from the first frame in which the navigation icon is recognized. After running for 10 seconds (to ensure that the device is operating normally), calculate the matching degree between the navigation icon and the correct navigation pattern of each frame within 1 second, and then calculate the average matching degree. When the average matching degree reaches 80% (preset similarity threshold) or above, it is judged that the operating status of the detection device is normal, otherwise it is judged that the operating status of the detection device is abnormal. Among them, the fixed time period is 1 second after running for 10 seconds.
具体的,比较导航图标的相似度就是比较从检测视频中获取到的导航图标的方差与正确导航图案的方差的接近程度。方差的差值越小图标越相似。正确导航图案的方差可事先计算好保存至上位机中。Specifically, comparing the similarity of navigation icons is to compare the variance of the navigation icon obtained from the detection video with the variance of the correct navigation pattern. The smaller the difference in variance, the more similar the icons are. The variance of the correct navigation pattern can be calculated in advance and saved in the host computer.
具体实施时,如图2所示,通过以下步骤实现构建视频采集平台:In specific implementation, as shown in FIG2 , the video acquisition platform is constructed through the following steps:
采集摄像头、上位机和程控电源,采集摄像头连接至上位机,程控电源与检测设备连接;采集摄像头朝向检测设备设置,采集摄像头将录制的检测视频传输至上位机;在上位机上实时显示检测视频,并对检测视频进行分析、统计并输出检测结果;上位机通过程控电源对检测设备的上下电进行控制。The acquisition camera, host computer and programmable power supply are provided. The acquisition camera is connected to the host computer, and the programmable power supply is connected to the detection equipment. The acquisition camera is set toward the detection equipment, and the acquisition camera transmits the recorded detection video to the host computer. The detection video is displayed in real time on the host computer, and the detection video is analyzed, counted and the detection results are output. The host computer controls the power on and off of the detection equipment through the programmable power supply.
具体的,上位机用于实时显示并录制采集摄像头的获取的画面,并对画面进行分析、统计并输出结果。上位机会实时输出采集摄像头的获取的画面,并实时进行检测,显示出检测详情,并对检测的画面进行录制。Specifically, the host computer is used to display and record the images captured by the acquisition camera in real time, analyze and count the images, and output the results. The host computer will output the images captured by the acquisition camera in real time, perform detection in real time, display the detection details, and record the detected images.
上位机可针对不同检测设备以不同时间间隔自动判断画面是否正常。适配检测设备(包括带镜头输出设备和不带镜头设备的中控设备)的画面进行自动检测。上位机对检测设备运行状态的检测结果进行自动统计并形成Excel表(错误文件),Excel表(错误文件)中包含每次检测的结果;上位机还对有异常的检测视频进行标记,并记录在Excel表(错误文件)中。The host computer can automatically determine whether the picture is normal at different time intervals for different detection devices. The pictures of the adapted detection devices (including central control devices with lens output devices and devices without lens devices) are automatically detected. The host computer automatically counts the detection results of the running status of the detection equipment and forms an Excel table (error file), which contains the results of each detection; the host computer also marks the abnormal detection video and records it in the Excel table (error file).
采集摄像头用于监控检测设备的运行时的视频。程控电源用于对检测设备进行上下电控制。The acquisition camera is used to monitor the video of the testing equipment during operation. The programmable power supply is used to control the power on and off of the testing equipment.
具体实施时,为了自动生成错误文件,通过以下步骤实现输出错误文件:In specific implementation, in order to automatically generate an error file, the following steps are performed to output the error file:
当检测设备的运行状态为异常时,抓取检测视频中出现错误的帧作为错误帧;提取错误帧对应的时戳,将时戳、检测视频的文件名称和检测视频对应的文件路径作为错误文件输出。When the running state of the detection device is abnormal, the frame with error in the detection video is captured as the error frame; the timestamp corresponding to the error frame is extracted, and the timestamp, the file name of the detection video and the file path corresponding to the detection video are output as the error file.
在本实施例中,提供了一种计算机设备,如图3所示,包括存储器301、处理器302及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意的检测设备运行状态的判断方法。In this embodiment, a computer device is provided, as shown in FIG3 , including a memory 301, a processor 302, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any of the above-mentioned methods for determining the operating status of the detection device is implemented.
具体的,该计算机设备可以是计算机终端、服务器或者类似的运算装置。Specifically, the computer device may be a computer terminal, a server or a similar computing device.
在本实施例中,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有执行上述任意的检测设备运行状态的判断方法的计算机程序。In this embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program for executing any of the above-mentioned methods for determining the operating status of a detection device.
具体的,计算机可读存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机可读存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读存储介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Specifically, computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
基于同一发明构思,本发明实施例中还提供了一种检测设备运行状态的判断装置,如下面的实施例所述。由于检测设备运行状态的判断装置解决问题的原理与检测设备运行状态的判断方法相似,因此检测设备运行状态的判断装置的实施可以参见检测设备运行状态的判断方法的实施,重复之处不再赘述。以下所使用的,术语“单元”或者“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。Based on the same inventive concept, a device for determining the operating status of a detection device is also provided in an embodiment of the present invention, as described in the following embodiments. Since the principle of solving the problem by the device for determining the operating status of the detection device is similar to the method for determining the operating status of the detection device, the implementation of the device for determining the operating status of the detection device can refer to the implementation of the method for determining the operating status of the detection device, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and/or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
图4是本发明实施例的检测设备运行状态的判断装置的一种结构框图,如图4所示,包括:视频采集模块401、点位数检测模块402和导航图标检测模块403,下面对该结构进行说明。FIG4 is a structural block diagram of a device for determining the operating status of a detection device according to an embodiment of the present invention. As shown in FIG4 , the device comprises: a video acquisition module 401 , a point number detection module 402 and a navigation icon detection module 403 . The structure is described below.
视频采集模块401,用于构建对检测设备的运行状态进行监控的视频采集平台,通过视频采集平台采集检测设备的运行时的视频作为检测视频,通过检测设备的种类取得检测视频的种类;The video acquisition module 401 is used to construct a video acquisition platform for monitoring the operating status of the detection device, collect the running video of the detection device as the detection video through the video acquisition platform, and obtain the type of the detection video according to the type of the detection device;
点位数检测模块402,用于若检测视频为棋盘视频,识别检测视频中棋盘格的点位数,通过点位数判断检测设备的设备数量,对比设备数量和预设的正确设备数量,若两者一致,判断检测设备的运行状态为正常,若两者不一致,判断检测设备的运行状态为异常;The point number detection module 402 is used to identify the number of points on the chessboard in the detection video if the detection video is a chessboard video, determine the number of devices of the detection device according to the number of points, compare the number of devices with the preset correct number of devices, and if the two are consistent, determine that the operating state of the detection device is normal; if the two are inconsistent, determine that the operating state of the detection device is abnormal;
导航图标检测模块403,用于若检测视频为导航图标视频,识别检测视频中的导航图标,将导航图标与预设的正确导航图案进行相似度比对,生成比对结果,若比对结果大于等于相似度阈值,判断检测设备的运行状态为正常,若比对结果小于相似度阈值,判断检测设备的运行状态为异常。The navigation icon detection module 403 is used to identify the navigation icon in the detection video if the detection video is a navigation icon video, compare the similarity between the navigation icon and the preset correct navigation pattern, and generate a comparison result. If the comparison result is greater than or equal to the similarity threshold, the operating status of the detection device is judged to be normal; if the comparison result is less than the similarity threshold, the operating status of the detection device is judged to be abnormal.
在一个实施例中,视频采集模块,包括:In one embodiment, the video acquisition module includes:
平台构建单元,用于采集摄像头、上位机和程控电源,采集摄像头连接至上位机,程控电源与检测设备连接;The platform construction unit is used for a collection camera, a host computer and a program-controlled power supply, wherein the collection camera is connected to the host computer, and the program-controlled power supply is connected to the detection equipment;
视频采集单元,用于采集摄像头朝向检测设备设置,采集摄像头将录制的检测视频传输至上位机;A video acquisition unit is used to acquire the camera orientation detection device settings, and the acquisition camera transmits the recorded detection video to the host computer;
视频检测单元,用于在上位机上实时显示检测视频,并对检测视频进行分析、统计并输出检测结果;The video detection unit is used to display the detection video in real time on the host computer, analyze and count the detection video, and output the detection results;
上下电控制单元,用于上位机通过程控电源对检测设备的上下电进行控制。The power on and off control unit is used for the host computer to control the power on and off of the detection equipment through a programmable power supply.
在一个实施例中,点位数检测模块,包括:In one embodiment, the number of points detection module includes:
检测对象图片组生成单元,用于截取检测视频中固定时间段内的多帧,生成检测对象图片组;A detection object picture group generating unit, used for capturing multiple frames within a fixed time period in the detection video to generate a detection object picture group;
角点总数取得单元,用于分别检测检测对象图片组中的每一张检测对象图片的每一个角点,合计得到每一张检测对象图片对应的角点总数,直至检测对象图片组中所有的检测对象图片均检测完毕;A corner point total number obtaining unit is used to respectively detect each corner point of each detection object picture in the detection object picture group, and obtain the total number of corner points corresponding to each detection object picture until all detection object pictures in the detection object picture group are detected;
点位数计算单元,用于计算检测对象图片组中所有检测对象图片的角点总数的平均值,将平均值作为棋盘格的点位数;A point number calculation unit is used to calculate the average value of the total number of corner points of all the detection object pictures in the detection object picture group, and use the average value as the number of points of the chessboard;
设备数量确定单元,用于设定棋盘格的点位数与检测设备的设备数量之间的对应关系,通过对应关系得到点位数对应的设备数量。The device quantity determination unit is used to set the corresponding relationship between the number of points on the chessboard and the number of devices of the detection device, and obtain the number of devices corresponding to the number of points through the corresponding relationship.
在一个实施例中,角点总数取得单元,用于将检测对象图片转换为灰度图像后进行滤波操作,生成预处理后图片;对预处理后图片进行边缘检测,提取构成棋盘格的线条组,判断线条组中的线条是否为直线,若为直线,将对应的线条作为有效线条,生成有效线条组;循环有效线条组中的所有有效线条,判断是否存在相互垂直的有效线条;针对每一对相互垂直的有效线条,将对应的交点作为角点。In one embodiment, a corner point total number acquisition unit is used to convert the detection object image into a grayscale image and then perform a filtering operation to generate a preprocessed image; perform edge detection on the preprocessed image, extract the line group that constitutes the checkerboard, and determine whether the lines in the line group are straight lines. If they are straight lines, the corresponding lines are used as valid lines to generate a valid line group; loop all valid lines in the valid line group to determine whether there are valid lines that are perpendicular to each other; for each pair of valid lines that are perpendicular to each other, the corresponding intersection point is used as a corner point.
在一个实施例中,导航图标检测模块,包括:In one embodiment, the navigation icon detection module includes:
匹配源图标获取单元,用于截取检测视频中固定时间段内的多帧,生成匹配源图标组;A matching source icon acquisition unit, used to capture multiple frames within a fixed time period in the detection video and generate a matching source icon group;
特征值获取单元,用于计算匹配源图标组中的每一个匹配源图标的特征值,直至匹配源图标组中所有的匹配源图标均计算完毕;A feature value acquisition unit, used to calculate the feature value of each matching source icon in the matching source icon group until all matching source icons in the matching source icon group are calculated;
匹配度计算单元,用于计算匹配源图标的特征值与正确导航图案的特征值的比值,将比值作为匹配度;A matching degree calculation unit, used to calculate the ratio of the feature value of the matching source icon to the feature value of the correct navigation pattern, and use the ratio as the matching degree;
比对结果生成单元,用于计算匹配源图标组中所有匹配源图标对应的匹配度的平均值,将平均值作为比对结果。The comparison result generating unit is used to calculate the average value of the matching degrees corresponding to all the matching source icons in the matching source icon group, and use the average value as the comparison result.
在一个实施例中,特征值获取单元,用于将匹配源图标缩放至与正确导航图案相同的尺寸,生成缩放后匹配源图标;将缩放后匹配源图标进行灰度处理,生成匹配源灰度图标;依次计算匹配源灰度图标的每一行的像素点的平均值;计算所有平均值的方差,将方差作为匹配源图标的特征值。In one embodiment, a feature value acquisition unit is used to scale the matching source icon to the same size as the correct navigation pattern to generate a scaled matching source icon; grayscale the scaled matching source icon to generate a matching source grayscale icon; calculate the average value of the pixels in each row of the matching source grayscale icon in turn; calculate the variance of all the average values, and use the variance as the feature value of the matching source icon.
在一个实施例中,上述装置还包括:错误数据输出模块。In one embodiment, the above device further includes: an error data output module.
在一个实施例中,错误数据输出模块,包括:In one embodiment, the error data output module includes:
错误帧获取单元,用于当检测设备的运行状态为异常时,抓取检测视频中出现错误的帧作为错误帧;An error frame acquisition unit, used for capturing an error frame in the detection video as an error frame when the running state of the detection device is abnormal;
错误文件输出单元,用于提取错误帧对应的时戳,将时戳、检测视频的文件名称和检测视频对应的文件路径作为错误文件输出。The error file output unit is used to extract the timestamp corresponding to the error frame, and output the timestamp, the file name of the detection video and the file path corresponding to the detection video as the error file.
本发明实施例实现了如下技术效果:The embodiments of the present invention achieve the following technical effects:
本发明实施例采用视频采集平台的上位机显示采集并显示摄像头录制的检测视频,并对检测视频进行自动检测,将检测视频通过上位机进行分析,实现不同检测设备不同上下电时间间隔要求下检测视频的检测,可自动完无限时长的检测视频的录制及分析,确保检测设备的运行状态能够无遗留并准确、快速地输出;通过上位机可100%确认检测视频的输出,快速判定检测设备是否运行正常;视频采集平台的搭建简单,可操作性强,上位机自动输出测试结果,并形成错误文件输出,视频采集平台搭建好后,无需要人力进行确认,在上位机端能直接显示运行状态的监控结果,总次数,正常或异常的状态,当出现异常时,显示出异常的次数及详细数据,并可随时查看检测视频;本发明实施例可以针对多种检测设备进行监控,可匹配任何设置的上下电的时间间隔,满足不同用户对不同设备测试处理要求。The embodiment of the present invention adopts the host computer display of the video acquisition platform to acquire and display the detection video recorded by the camera, and automatically detects the detection video, analyzes the detection video through the host computer, realizes the detection of the detection video under different power-on and power-off time interval requirements of different detection equipment, and can automatically complete the recording and analysis of the detection video of unlimited length, ensuring that the operation status of the detection equipment can be accurately and quickly output without any residue; the output of the detection video can be 100% confirmed by the host computer, and whether the detection equipment is running normally can be quickly determined; the video acquisition platform is simple to build and has strong operability. The host computer automatically outputs the test results and forms an error file output. After the video acquisition platform is built, no human confirmation is required. The monitoring results of the operation status, the total number of times, and the normal or abnormal state can be directly displayed on the host computer. When an abnormality occurs, the number of abnormalities and detailed data are displayed, and the detection video can be viewed at any time; the embodiment of the present invention can monitor a variety of detection equipment, can match any set power-on and power-off time interval, and meet the test processing requirements of different users for different equipment.
显然,本领域的技术人员应该明白,上述的本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明实施例不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明实施例可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410786488.9A CN118658095A (en) | 2024-06-18 | 2024-06-18 | Method, device, computer equipment and medium for determining the operating status of detection equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410786488.9A CN118658095A (en) | 2024-06-18 | 2024-06-18 | Method, device, computer equipment and medium for determining the operating status of detection equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118658095A true CN118658095A (en) | 2024-09-17 |
Family
ID=92699116
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410786488.9A Pending CN118658095A (en) | 2024-06-18 | 2024-06-18 | Method, device, computer equipment and medium for determining the operating status of detection equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118658095A (en) |
-
2024
- 2024-06-18 CN CN202410786488.9A patent/CN118658095A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110659397B (en) | Behavior detection method and device, electronic equipment and storage medium | |
CN108322737B (en) | Method and device for measuring camera shooting frame rate | |
CN111212280B (en) | Method and system for testing depth camera module, computer equipment and storage medium | |
CN110458126A (en) | A kind of pantograph state monitoring method and device | |
WO2024001309A1 (en) | Method and apparatus for generating and producing template for infrared thermal image analysis report | |
CN112073713B (en) | Video omission test method, device, equipment and storage medium | |
WO2020107744A1 (en) | Fabric detection recording method and apparatus, device, and storage medium | |
CN110602481B (en) | Video quality detection method and device in video monitoring system | |
CN111669575B (en) | Method, system, electronic device, medium and terminal for testing image processing effect | |
CN118658095A (en) | Method, device, computer equipment and medium for determining the operating status of detection equipment | |
CN108764040A (en) | Image detection method, terminal and computer storage medium | |
US10657626B2 (en) | Image processing apparatus, image processing system, and recording medium | |
CN116993654B (en) | Camera module defect detection method, device, equipment, storage medium and product | |
CN111277724A (en) | Detection method and device for abnormal operation application, electronic equipment and storage medium | |
CN106681868A (en) | Image data testing method and system | |
CN116958085A (en) | Leak detection behavior compliance auditing method and device, electronic equipment and storage medium | |
CN116738091A (en) | Page monitoring method and device, electronic equipment and storage medium | |
CN111368104A (en) | Information processing method, device and equipment | |
CN113438472A (en) | Anti-shake test method and device and electronic equipment | |
CN114264904A (en) | Testing method and system of full liquid crystal instrument based on simulation and machine vision | |
CN118553182B (en) | Display fault analysis method and device of display, terminal equipment and storage medium | |
CN119377110A (en) | Automated testing method for page image difference recognition in in-vehicle infotainment systems | |
CN118537595A (en) | Sample image verification method and device, computer equipment and storage medium | |
CN117173127A (en) | Video quality evaluation method, device and equipment for closed-circuit television detection of drainage pipeline | |
CN114371968A (en) | A performance testing 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 |