CN111753633B - Target detection method and device - Google Patents
Target detection method and device Download PDFInfo
- Publication number
- CN111753633B CN111753633B CN202010238622.3A CN202010238622A CN111753633B CN 111753633 B CN111753633 B CN 111753633B CN 202010238622 A CN202010238622 A CN 202010238622A CN 111753633 B CN111753633 B CN 111753633B
- Authority
- CN
- China
- Prior art keywords
- target object
- video
- target
- assessment score
- assessment
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/20—Education
- G06Q50/205—Education administration or guidance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/07—Target detection
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- Multimedia (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- General Business, Economics & Management (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本申请涉及视频处理技术领域,尤其涉及一种目标检测方法及装置。The present application relates to the technical field of video processing, and in particular to a target detection method and device.
背景技术Background technique
在一些应用中,常由人工来监测目标对象执行指定操作的过程,并对目标对象执行的指定操作进行考核。In some applications, humans are often used to monitor the process of the target object performing a specified operation, and to evaluate the specified operation performed by the target object.
以考生执行化学实验操作为例,由一个或多个监考老师负责监测考场中每一个考生执行化学实验操作的过程,并确定考生执行化学实验操作的考核分数。如此处理,不仅耗费人工成本,同时也会存在不同的监考老师对于同一指定操作具有不同的考核标准,而导致监考老师对考生执行化学实验操作的考核分数不准确的问题。Taking the chemical experiment operation performed by the candidates as an example, one or more invigilators are responsible for monitoring the process of each candidate performing the chemical experiment operation in the examination room, and determining the examination score for the candidate's chemical experiment operation. Such processing not only consumes labor costs, but also has different assessment standards for the same designated operation by different invigilators, resulting in inaccurate assessment scores for the chemical experiment performed by the invigilators.
发明内容Contents of the invention
有鉴于此,本申请提供一种目标检测方法及装置。In view of this, the present application provides a target detection method and device.
根据本申请实施例的第一方面,提供一种目标检测方法,所述方法包括:According to a first aspect of an embodiment of the present application, a target detection method is provided, the method comprising:
从摄像机在目标对象执行指定操作时所采集到的视频流中检测出目标视频,所述目标视频为包含所述目标对象在执行所述指定操作过程中所执行的待考核操作的视频;Detecting a target video from the video stream collected by the camera when the target object performs a specified operation, the target video is a video containing the operation to be assessed performed by the target object during the execution of the specified operation;
依据所述目标视频确定所述目标对象执行所述待考核操作的考核分数;determining the assessment score for the target object to perform the operation to be assessed according to the target video;
依据所述目标对象执行所述待考核操作的考核分数确定所述目标对象执行所述指定操作的考核分数。The assessment score for the target object to perform the specified operation is determined according to the assessment score for the target object to perform the operation to be assessed.
在一实施例中,所述从摄像机在目标对象执行指定操作时所采集到的视频流中检测出目标视频,包括:In one embodiment, the detecting the target video from the video stream collected by the camera when the target object performs a specified operation includes:
按顺序对所述视频流中的视频帧进行识别,当识别出所述视频流的第一视频帧中存在用于指示所述目标对象开始执行待考核操作的第一事件时,确定所述目标对象开始执行所述待考核操作,当识别出所述第一视频帧之后的第二视频帧中存在用于指示所述目标对象结束所述待考核操作的第二事件时,确定所述目标对象结束执行所述待考核操作;Identifying the video frames in the video stream in sequence, and determining the target when it is identified that there is a first event in the first video frame of the video stream indicating that the target object starts to perform the operation to be assessed The object starts to perform the operation to be assessed, and when it is recognized that a second event indicating that the target object ends the operation to be assessed exists in a second video frame after the first video frame, determining the target object End the execution of the operation to be assessed;
将所述视频流中以所述第一视频帧为首个视频帧,所述第二视频帧为最后一个视频帧的一段视频确定为所述待考核操作对应的目标视频。Determining a section of video in which the first video frame is the first video frame and the second video frame is the last video frame in the video stream as the target video corresponding to the operation to be assessed.
在一实施例中,所述依据所述目标视频确定所述目标对象执行所述待考核操作的考核分数,包括:In an embodiment, the determining the assessment score of the target object performing the operation to be assessed according to the target video includes:
将所述目标视频输入至已训练的深度学习模型以得到所述待考核操作对应的考核信息;Inputting the target video into a trained deep learning model to obtain assessment information corresponding to the operation to be assessed;
依据所述考核信息确定所述待考核操作的考核分数。An assessment score of the operation to be assessed is determined according to the assessment information.
在一实施例中,该方法进一步包括:In one embodiment, the method further includes:
确定所述目标对象在执行完所述指定操作后得到的操作结果信息的考核分数;determining the assessment score of the operation result information obtained by the target object after performing the specified operation;
所述依据所述目标对象执行所述待考核操作的考核分数确定所述目标对象执行所述指定操作的考核分数,包括:The determining the assessment score of the target object performing the specified operation according to the assessment score of the target object performing the operation to be assessed includes:
依据所述操作结果信息的考核分数和所述目标对象执行所述待考核操作的考核分数确定所述目标对象执行所述指定操作的考核分数。The assessment score of the target object performing the specified operation is determined according to the assessment score of the operation result information and the assessment score of the target object performing the operation to be assessed.
在一实施例中,所述目标对象执行指定操作为:考生执行测定溶液PH值实验;In one embodiment, the specified operation performed by the target object is: the examinee performs the experiment of measuring the pH value of the solution;
所述确定所述目标对象在执行完所述指定操作后得到的操作结果信息的考核分数,包括:The determination of the assessment score of the operation result information obtained by the target object after performing the specified operation includes:
从所述视频流中检测出PH试纸上的变色区域和考生测定的溶液PH值;Detect the discoloration area on the pH test paper and the pH value of the solution measured by the examinee from the video stream;
以所述变色区域的颜色信息为关键字在比色卡中查找到对应的PH值;Using the color information of the discolored area as a key to find the corresponding pH value in the color comparison card;
依据查找到的PH值和考生测定的溶液PH值确定考核分数。The assessment score is determined based on the found PH value and the solution PH value measured by the examinee.
在一实施例中,所述目标对象执行指定操作为:考生执行测定溶液PH值实验;In one embodiment, the specified operation performed by the target object is: the examinee performs the experiment of measuring the pH value of the solution;
所述待考核操作为:所述考生执行测定溶液PH值实验过程中的取液操作、PH值读数比色操作;The operation to be assessed is: the examinee performs the liquid taking operation and the pH value reading colorimetric operation in the experimental process of measuring the pH value of the solution;
所述取液操作是指使用玻璃棒蘸取待测液体,并将待测液体滴在放置在点滴板上的PH试纸上的操作;The liquid-taking operation refers to the operation of dipping the liquid to be tested with a glass rod, and dropping the liquid to be tested on the pH test paper placed on the drip plate;
所述PH值读数操作是指使用比色卡与变色的PH试纸进行比色的操作。The pH value reading operation refers to the operation of using a color comparison card and a color-changing pH test paper to perform color comparison.
根据本申请实施例的第二方面,提供一种目标检测装置,所述装置包括:According to a second aspect of the embodiments of the present application, there is provided a target detection device, the device comprising:
检测模块,用于从摄像机在目标对象执行指定操作时所采集到的视频流中检测出目标视频,所述目标视频为包含所述目标对象在执行所述指定操作过程中所执行的待考核操作的视频;The detection module is configured to detect the target video from the video stream collected by the camera when the target object performs a specified operation, and the target video includes the operation to be assessed performed by the target object during the specified operation video of
第一考核模块,用于依据所述目标视频确定所述目标对象执行所述待考核操作的考核分数;A first assessment module, configured to determine the assessment score for the target object to perform the operation to be assessed according to the target video;
第二考核模块,用于依据所述目标对象执行所述待考核操作的考核分数确定所述目标对象执行所述指定操作的考核分数。The second assessment module is configured to determine the assessment score for the target object to perform the specified operation according to the assessment score for the target object to perform the operation to be assessed.
在一实施例中,所述检测模块从摄像机在目标对象执行指定操作时所采集到的视频流中检测出目标视频,包括:In one embodiment, the detection module detects the target video from the video stream collected by the camera when the target object performs a specified operation, including:
按顺序对所述视频流中的视频帧进行识别,当识别出所述视频流的第一视频帧中存在用于指示所述目标对象开始执行待考核操作的第一事件时,确定所述目标对象开始执行所述待考核操作,当识别出所述第一视频帧之后的第二视频帧中存在用于指示所述目标对象结束所述待考核操作的第二事件时,确定所述目标对象结束执行所述待考核操作;Identifying the video frames in the video stream in sequence, and determining the target when it is identified that there is a first event in the first video frame of the video stream indicating that the target object starts to perform the operation to be assessed The object starts to perform the operation to be assessed, and when it is recognized that a second event indicating that the target object ends the operation to be assessed exists in a second video frame after the first video frame, determining the target object End the execution of the operation to be assessed;
将所述视频流中以所述第一视频帧为首个视频帧,所述第二视频帧为最后一个视频帧的一段视频确定为所述待考核操作对应的目标视频。Determining a section of video in which the first video frame is the first video frame and the second video frame is the last video frame in the video stream as the target video corresponding to the operation to be assessed.
在一实施例中,所述第一考核模块依据所述目标视频确定所述目标对象执行所述待考核操作的考核分数,包括:In an embodiment, the first assessment module determines the assessment score of the target object performing the operation to be assessed according to the target video, including:
将所述目标视频输入至已训练的深度学习模型以得到所述待考核操作对应的考核信息;Inputting the target video into a trained deep learning model to obtain assessment information corresponding to the operation to be assessed;
依据所述考核信息确定所述待考核操作的考核分数。An assessment score of the operation to be assessed is determined according to the assessment information.
在一实施例中,所述装置进一步包括:In one embodiment, the device further includes:
第三考核模块,用于确定所述目标对象在执行完所述指定操作后得到的操作结果信息的考核分数;The third evaluation module is used to determine the evaluation score of the operation result information obtained by the target object after performing the specified operation;
所述第二考核模块依据所述目标对象执行所述待考核操作的考核分数确定所述目标对象执行所述指定操作的考核分数包括:The second assessment module determining the assessment score of the target object performing the specified operation according to the assessment score of the target object performing the operation to be assessed includes:
依据所述操作结果信息的考核分数和所述目标对象执行所述待考核操作的考核分数确定所述目标对象执行所述指定操作的考核分数。The assessment score of the target object performing the specified operation is determined according to the assessment score of the operation result information and the assessment score of the target object performing the operation to be assessed.
在一实施例中,所述目标对象执行指定操作为:考生执行测定溶液PH值实验;In one embodiment, the specified operation performed by the target object is: the examinee performs the experiment of measuring the pH value of the solution;
所述第三考核模块确定所述目标对象在执行完所述指定操作后得到的操作结果信息的考核分数包括:The third evaluation module determines the evaluation score of the operation result information obtained by the target object after performing the specified operation includes:
从所述视频流中检测出PH试纸上的变色区域和考生测定的溶液PH值;Detect the discoloration area on the pH test paper and the pH value of the solution measured by the examinee from the video stream;
以所述变色区域的颜色信息为关键字在比色卡中查找到对应的PH值;Using the color information of the discolored area as a key to find the corresponding pH value in the color comparison card;
依据查找到的PH值和考生测定的溶液PH值确定考核分数。The assessment score is determined based on the found PH value and the solution PH value measured by the examinee.
在一实施例中,所述目标对象执行指定操作为:考生执行测定溶液PH值实验;In one embodiment, the specified operation performed by the target object is: the examinee performs the experiment of measuring the pH value of the solution;
所述待考核操作为:所述考生执行测定溶液PH值实验过程中的取液操作、PH值读数比色操作;The operation to be assessed is: the examinee performs the liquid taking operation and the pH value reading colorimetric operation in the experimental process of measuring the pH value of the solution;
所述取液操作是指使用玻璃棒蘸取待测液体,并将待测液体滴在放置在点滴板上的PH试纸上的操作;The liquid-taking operation refers to the operation of dipping the liquid to be tested with a glass rod, and dropping the liquid to be tested on the pH test paper placed on the drip plate;
所述PH值读数操作是指使用比色卡与变色的PH试纸进行比色的操作。The pH value reading operation refers to the operation of using a color comparison card and a color-changing pH test paper to perform color comparison.
根据本申请实施例的第三方面,提供一种电子设备,所述设备包括可读存储介质和处理器;According to a third aspect of the embodiments of the present application, an electronic device is provided, and the device includes a readable storage medium and a processor;
其中,所述可读存储介质,用于存储机器可执行指令;Wherein, the readable storage medium is used for storing machine-executable instructions;
所述处理器,用于读取所述可读存储介质上的所述机器可执行指令,并执行所述指令以实现本申请实施例提供的目标检测方法的步骤。The processor is configured to read the machine-executable instructions on the readable storage medium, and execute the instructions to implement the steps of the object detection method provided in the embodiments of the present application.
根据本申请实施例的第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例提供的目标检测方法的步骤。According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the target detection provided by the embodiments of the present application is realized method steps.
应用本申请实施例,通过从摄像机在目标对象执行指定操作时所采集到的视频流中检测出目标视频,依据目标视频确定目标对象执行待考核操作的考核分数,依据目标对象执行待考核操作的考核分数确定目标对象执行指定操作的考核分数,实现了自动对目标对象执行指定操作的过程进行考核,同时,由于针对不同的目标对象采用统一的考核标准,因此可以有效地保证对不同目标对象考核结果的客观性和准确性。Applying the embodiment of this application, by detecting the target video from the video stream collected by the camera when the target object performs a specified operation, determine the assessment score of the target object performing the operation to be assessed according to the target video, and determine the assessment score of the target object performing the operation to be assessed according to the target object. The assessment score determines the assessment score for the target object to perform the specified operation, which realizes the automatic assessment of the process of the target object performing the specified operation. At the same time, because the uniform assessment standard is adopted for different target objects, it can effectively ensure the assessment of different target objects Objectivity and accuracy of results.
附图说明Description of drawings
图1为本申请一示例性实施例提供的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario provided by an exemplary embodiment of the present application;
图2为本申请一示例性实施例提供的一种目标检测方法的实施例流程图;FIG. 2 is a flow chart of an embodiment of a target detection method provided by an exemplary embodiment of the present application;
图3为本申请一示例性实施例提供的一种步骤202的实现流程;FIG. 3 is an implementation process of step 202 provided by an exemplary embodiment of the present application;
图4为本申请一示例性实施例提供的一种步骤203之后的实现流程;FIG. 4 is an implementation process after step 203 provided by an exemplary embodiment of the present application;
图5为本申请一示例性实施例提供的一种目标检测装置的实施例框图;Fig. 5 is a block diagram of an embodiment of a target detection device provided by an exemplary embodiment of the present application;
图6本申请根据一示例性实施例示出的一种电子设备的硬件结构图。Fig. 6 shows a hardware structure diagram of an electronic device according to an exemplary embodiment of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present application, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
为了便于理解本申请,首先对应用本申请提出的目标检测方法的应用场景进行示例性说明。In order to facilitate the understanding of the present application, firstly, the application scenarios of the object detection method proposed in the present application are described as examples.
在一示例性应用场景中,可以通过摄像机采集考生执行化学实验操作,例如测定溶液PH值实验时的视频流,基于本申请提出的目标检测方法确定考生执行化学实验操作的考核分数。基于此,在图1所示例的应用场景中,可以包括:考生101、操作台102、摄像机103、网络104以及电子设备105。In an exemplary application scenario, a camera can be used to capture the video stream of candidates performing chemical experiment operations, such as the test of measuring the pH value of a solution, and determine the test scores for candidates performing chemical experiment operations based on the target detection method proposed in this application. Based on this, in the application scenario illustrated in FIG. 1 , it may include: an examinee 101 , an operating console 102 , a camera 103 , a network 104 and an electronic device 105 .
其中,网络104用于在摄像机103和电子设备105之间提供通信链路,可以包括无线链路、有线链路或者光纤电缆等,本申请对此不做限制。Wherein, the network 104 is used to provide a communication link between the camera 103 and the electronic device 105, and may include a wireless link, a wired link, or an optical fiber cable, etc., which is not limited in this application.
操作台102上可放置有执行化学实验操作所需要的实验器材(图1中未示出),例如玻璃棒、量杯、试管等,以供考生执行化学实验操作。Experimental equipment (not shown in FIG. 1 ), such as glass rods, measuring cups, test tubes, etc., required for performing chemical experiment operations can be placed on the operating table 102 for candidates to perform chemical experiment operations.
摄像机103可以实施为枪型摄像机、鱼眼摄像机、球型摄像机等,本申请对摄像机103的具体实施形式不做限制。在本申请实施例中,摄像机103可以正对操作台102,以采集考生执行化学实验操作时的视频流。在一优选的实施例中,为了保证考核结果的精准度,设置为一台摄像机仅对应一个操作台,也即一台摄像机仅负责采集一个考生执行化学实验操作时的视频流。The camera 103 may be implemented as a bullet camera, a fisheye camera, a dome camera, etc. The present application does not limit the specific implementation form of the camera 103 . In the embodiment of the present application, the camera 103 may face the operation table 102 to collect video streams of candidates performing chemical experiment operations. In a preferred embodiment, in order to ensure the accuracy of the examination results, it is set that one camera only corresponds to one operation platform, that is, one camera is only responsible for collecting the video stream of one candidate performing chemical experiment operations.
电子设备105可以是支持网络连接从而提供各种网络服务的硬件设备,包括但不限于智能手机、平板电脑、膝上型便携计算机、台式计算机、服务器等。在本申请实施例中,电子设备105可以获取摄像机103在考生执行化学实验操作时所采集到的视频流,基于该视频流执行本申请提供的目标检测方法,以实现自动确定考生执行化学实验操作的考核分数。The electronic device 105 may be a hardware device that supports network connection to provide various network services, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, servers and so on. In this embodiment of the application, the electronic device 105 can obtain the video stream collected by the camera 103 when the candidate performs the chemical experiment operation, and execute the target detection method provided by the application based on the video stream, so as to automatically determine that the candidate performs the chemical experiment operation assessment score.
下面基于图1所示例的应用场景,通过具体的实施例对本申请提供的目标检测方法进行说明:Based on the application scenario illustrated in Figure 1, the object detection method provided by this application will be described through specific embodiments:
请参见图2,为本申请一示例性实施例提供的一种目标检测方法的实施例流程图,在一个例子中,该方法可以应用于电子设备,例如图1中所示例的电子设备105。Please refer to FIG. 2 , which is a flowchart of an embodiment of a target detection method provided by an exemplary embodiment of the present application. In an example, the method may be applied to an electronic device, such as the electronic device 105 illustrated in FIG. 1 .
如图2所示,包括以下步骤:As shown in Figure 2, it includes the following steps:
步骤201:从摄像机在目标对象执行指定操作时所采集到的视频流中检测出目标视频,该目标视频为包含目标对象在执行指定操作过程中所执行的待考核操作的视频。Step 201: Detect the target video from the video stream collected by the camera when the target object performs a specified operation, the target video is a video containing the operation to be assessed performed by the target object during the specified operation.
作为一个示例,电子设备可以实时获取摄像机在目标对象执行指定操作时所采集到的视频流。As an example, the electronic device may obtain in real time the video stream collected by the camera when the target object performs a specified operation.
作为另一个示例,电子设备也可以在目标对象完成指定操作后,获取摄像机在目标对象执行指定操作是所采集到的视频流。As another example, after the target object completes the specified operation, the electronic device may also acquire the video stream collected by the camera when the target object performs the specified operation.
在应用中,为了实现操作逻辑分明,可将一个完整的指定操作划分为几部分子操作,例如,测定溶液PH值实验可以由两部分子操作组成,分别为取液操作、PH值读数比色操作,其中,取液操作是指使用玻璃棒蘸取待测液体,并将待测液体滴在放置在点滴板上的PH试纸上的操作,PH值读数比色操作是指使用比色卡与变色的PH试纸进行比色的操作。进一步,还可以根据实际需要,在完整的指定操作所包含的几部分子操作中选择一个或多个子操作作为待考核操作,例如,对于测定溶液PH值实验,将其中的取液操作和PH值读数比色操作均作为待考核操作。In the application, in order to achieve clear operation logic, a complete specified operation can be divided into several sub-operations. For example, the test of measuring the pH value of a solution can be composed of two sub-operations, which are liquid extraction operation and pH value reading colorimetry. Operation, wherein, the operation of taking liquid refers to the operation of dipping the liquid to be tested with a glass rod, and dropping the liquid to be tested on the PH test paper placed on the drip plate, and the colorimetric operation of pH value reading refers to the operation of using a colorimetric card and The color-changing PH test paper is used for colorimetric operation. Further, according to actual needs, one or more sub-operations may be selected from several sub-operations included in the complete specified operation as the operation to be assessed. The reading colorimetric operation is regarded as the operation to be assessed.
基于此,在本步骤202中,则可以从摄像机在目标对象执行指定操作时所采集到的视频流中检测出包含目标对象执行各个待考核操作的视频(以下简称目标视频)。至于是如何从摄像机在目标对象执行指定操作时所采集到的视频流中检测出包含目标对象执行各个待考核操作的目标视频的,下文中会有详细描述,这里先不描述。Based on this, in this step 202, the video containing the target object performing each operation to be assessed (hereinafter referred to as the target video) can be detected from the video stream collected by the camera when the target object performs the specified operation. As for how to detect the target video containing the target object performing each operation to be assessed from the video stream collected by the camera when the target object performs the specified operation, it will be described in detail below, and will not be described here.
步骤202:依据目标视频确定目标对象执行待考核操作的考核分数。Step 202: Determine the assessment score for the target object to perform the operation to be assessed according to the target video.
在应用中,由于不同的目标对象有不同的操作习惯,例如,在图1所示例的应用场景中,有的考生习惯右手拿玻璃棒,左手拿容器,而有的考生则习惯左手拿玻璃棒,右手拿容器,至于是左手拿玻璃棒还是右手拿玻璃棒,并不会对化学实验操作结果产生影响,因此,并非一定要求不同考生在执行整个化学实验操作时,每个操作步骤都做到统一标准,而是可以针对化学实验操作中的待考核操作设置一些特定的考核点,要求对于不同的考生而言,其对特定考核点的操作做到规范统一即可。In the application, different target objects have different operating habits. For example, in the application scenario shown in Figure 1, some candidates are used to holding the glass rod in the right hand and the container in the left hand, while some candidates are used to holding the glass rod in the left hand. , hold the container in the right hand, as for whether to hold the glass rod in the left hand or the right hand, it will not affect the results of the chemical experiment operation. Instead, it is possible to set some specific assessment points for the operations to be assessed in the chemical experiment operation, and it is required that for different candidates, the operation of the specific assessment points should be standardized and unified.
举例来说,在取液操作这一待考核操作中,特定的考核点包括:PH试纸放置在点滴板上、考生使用玻璃棒蘸取待测液体并滴在PH试纸上,以及点滴过程中PH试纸保持在点滴板上。For example, in the operation of taking liquid to be assessed, the specific assessment points include: the pH test paper is placed on the drip plate, the examinee uses a glass rod to dip the liquid to be tested and drops it on the pH test paper, and the PH test paper is placed in the dripping process. The test strips remain on the drip plate.
再举例来说,在PH值读数比色操作这一待考核操作中,特定的考核点包括:使用比色卡、将比色卡与变色的PH试纸靠近比色。For another example, in the operation to be assessed, the pH value reading color comparison operation, the specific assessment points include: using a color comparison card, and bringing the color comparison card and the discolored PH test paper close to the color comparison.
基于此,在本步骤202中,可以依据目标视频检测目标对象执行待考核操作过程中,对于该待考核操作的每个考核点的执行情况,根据各个考核点的执行情况确定目标对象执行待考核操作的考核分数。至于具体是如何实现的,下文中会有详细描述,这里先不描述。Based on this, in this step 202, during the process of detecting the target object performing the operation to be assessed according to the target video, for the execution status of each assessment point of the operation to be assessed, determine the execution status of the target object to be assessed according to the execution status of each assessment point The assessment score for the operation. As for how it is implemented, there will be a detailed description below, which will not be described here.
作为一个实施例,可以预先针对待考核操作设置一个最高的考核分数,并针对该待考核操作的每个考核点设置相应的扣分规则,例如,如下述表1所示,为取液操作和PH值读数比色操作各自对应的考核规则的示例:As an embodiment, a highest assessment score can be set in advance for the operation to be assessed, and a corresponding deduction rule can be set for each assessment point of the operation to be assessed, for example, as shown in Table 1 below, for the liquid extraction operation and Examples of assessment rules for each colorimetric operation of pH readings:
表1Table 1
基于上述表1举例来说,假设考生在执行取液操作时,首先将PH试纸放置在点滴板上、然后将待测液体倾倒在放置在点滴板的PH试纸上,可见该考生对于考核点“使用玻璃棒蘸取待测液体并滴在PH试纸上”的操作不规范,因此,可以从取液操作对应的最高考核分数40分中扣除20分,得到考生执行取液操作的考核分数为20分。Based on the above Table 1 as an example, suppose that when the examinee performs the operation of taking liquid, he first places the pH test paper on the drip plate, and then pours the liquid to be tested on the pH test paper placed on the drip plate. The operation of using a glass rod to dip the liquid to be tested and drop it on the PH test paper is not standardized. Therefore, 20 points can be deducted from the highest assessment score of 40 points corresponding to the liquid extraction operation, and the candidate's assessment score for the liquid extraction operation is 20. point.
步骤203:依据目标对象执行待考核操作的考核分数确定目标对象执行指定操作的考核分数。Step 203: Determine the assessment score of the target object performing the specified operation according to the assessment score of the target object performing the operation to be assessed.
由上述描述可知,指定操作可以包括一个或几个待考核操作,且通过执行步骤202可以确定目标对象执行各待考核操作的考核分数,据此,则可以依据目标对象执行待考核操作的考核分数确定目标对象执行指定操作的考核分数。It can be seen from the above description that the specified operation may include one or several operations to be assessed, and by performing step 202, the assessment score of each operation to be assessed by the target object can be determined, and accordingly, the assessment score of the operation to be assessed by the target object can be determined Determine the assessment score for the target object to perform the specified action.
作为一个示例,可以将目标对象执行各待考核操作的考核分数相加,得到目标对象执行指定操作的考核分数。As an example, the assessment scores of each operation to be assessed performed by the target object may be added to obtain the assessment score of the target object performing the specified operation.
作为另一个示例,还可以预先针对各待考核操作分别设置相应的分值权重,基于该分值权重将目标对象执行各待考核操作的考核分数进行加权相加,得到目标对象执行指定操作的考核分数。As another example, corresponding score weights can be set for each operation to be assessed in advance, and based on the score weights, the assessment scores of the target object performing each operation to be assessed can be weighted and added to obtain the assessment of the target object performing the specified operation Fraction.
至此,完成图2所示流程的相关描述。So far, the relevant description of the process shown in FIG. 2 is completed.
由上述实施例可见,通过从摄像机在目标对象执行指定操作时所采集到的视频流中检测出目标视频,依据目标视频确定目标对象执行待考核操作的考核分数,依据目标对象执行待考核操作的考核分数确定目标对象执行指定操作的考核分数,实现了自动对目标对象执行指定操作的过程进行考核,同时,由于针对不同的目标对象采用统一的考核标准,因此可以有效地保证对不同目标对象考核结果的客观性和准确性。It can be seen from the above embodiments that by detecting the target video from the video stream collected by the camera when the target object performs a specified operation, the assessment score of the target object performing the operation to be assessed is determined according to the target video, and the assessment score of the target object performing the operation to be assessed is determined according to the score of the target object performing the operation to be assessed. The assessment score determines the assessment score for the target object to perform the specified operation, which realizes the automatic assessment of the process of the target object performing the specified operation. At the same time, because the uniform assessment standard is adopted for different target objects, it can effectively ensure the assessment of different target objects Objectivity and accuracy of results.
下面描述如何从摄像机在目标对象执行指定操作时所采集到的视频流中检测出包含目标对象执行待考核操作的目标视频:The following describes how to detect the target video containing the target object performing the operation to be assessed from the video stream collected by the camera when the target object performs the specified operation:
作为一个实施例,可以按顺序对上述视频流进行识别,当从视频流的一个视频帧(以下简称第一视频帧)中识别出用于指示目标对象开始执行待考核操作的事件(以下简称第一事件)时,即识别出视频流的第一视频帧中存在第一事件时,可以确定目标对象开始执行待考核操作。类似的,当从第一视频帧之后的一个视频帧(以下简称第二视频帧)中识别出用于指示目标对象结束待考核操作的事件(以下简称第二事件)时,即识别出第二视频帧中存在第二事件时,确定目标对象结束执行待考核操作。将视频流中以第一视频帧为首个视频帧,第二视频帧为最后一个视频帧的一段视频确定为待考核操作对应的目标视频。As an embodiment, the above-mentioned video streams can be identified in sequence, when an event (hereinafter referred to as the first video frame) for instructing the target object to start performing the operation to be assessed is identified from a video frame of the video stream (hereinafter referred to as the first video frame) An event), that is, when it is recognized that the first event exists in the first video frame of the video stream, it can be determined that the target object starts to perform the operation to be assessed. Similarly, when an event (hereinafter referred to as the second event) for instructing the target object to end the operation to be assessed is identified from a video frame after the first video frame (hereinafter referred to as the second video frame), the second video frame is identified. When the second event exists in the video frame, it is determined that the target object finishes performing the operation to be assessed. In the video stream, a segment of video in which the first video frame is the first video frame and the second video frame is the last video frame is determined as the target video corresponding to the operation to be assessed.
以取液操作为例,上述第一事件可以指:未使用过的PH试纸被放置在点滴板上,上述第二事件可以指:点滴板上放置的PH试纸变色。Taking the liquid taking operation as an example, the above-mentioned first event may refer to: unused pH test paper is placed on the drip plate, and the above-mentioned second event may refer to: the pH test paper placed on the drip plate changes color.
通过上述实施例,实现了从摄像机在目标对象执行指定操作时所采集到的视频流中检测出包含目标对象执行待考核操作的目标视频。Through the above embodiments, it is realized that the target video including the target object performing the operation to be assessed is detected from the video stream collected by the camera when the target object performs the specified operation.
请参见图3,为本申请一示例性实施例提供的一种步骤202的实现流程。Please refer to FIG. 3 , which is an implementation process of step 202 provided by an exemplary embodiment of the present application.
如图3所示,包括以下步骤:As shown in Figure 3, the following steps are included:
步骤301:将目标视频输入至已训练的深度学习模型以得到待考核操作对应的考核信息。Step 301: Input the target video into the trained deep learning model to obtain assessment information corresponding to the operation to be assessed.
步骤302:依据考核信息确定待考核操作的考核分数。Step 302: Determine the assessment score of the operation to be assessed according to the assessment information.
以下对步骤302和步骤302进行统一说明:Step 302 and step 302 are described uniformly as follows:
首先说明,上述已训练的深度学习模型可以包括两个部分,分别为目标检测网络和关键点检测网络。其中,目标检测网络可以基于YOLOV2目标检测方法实现,被配置为检测出输入的视频帧中包括的各个器材,例如玻璃棒、点滴板等;关键点检测网络则可以基于关键点检测方法实现,被配置为定位出输入的视频帧中包括的器材上的关键区域,例如,对于PH试纸而言,其关键区域为变色区域,再例如,对于玻璃棒而言,其关键区域为头部位置。First of all, the above-mentioned trained deep learning model can include two parts, namely the target detection network and the key point detection network. Among them, the target detection network can be implemented based on the YOLOV2 target detection method, and is configured to detect various equipment included in the input video frame, such as glass rods, drip plates, etc.; the key point detection network can be implemented based on the key point detection method, which is It is configured to locate the key area on the equipment included in the input video frame, for example, for the pH test paper, the key area is the discoloration area, and for example, for the glass rod, the key area is the head position.
需要说明的是,在本申请实施例中,之所以设定深度学习模型包括目标检测网络和关键点检测网络两个部分,原因在于:目标检测网络只是将视频帧中的器材使用矩形框框出来,即定位出视频帧中的器材,而在一些应用场景中,例如取液操作过程中,玻璃棒的头部位置要和PH试纸进行接触,而为了检测这一点就需要使用关键点检测网络对玻璃棒的头部位置进行定位。It should be noted that in the embodiment of this application, the reason why the deep learning model is set to include two parts, the target detection network and the key point detection network, is that the target detection network only uses a rectangular frame to frame the equipment in the video frame. That is to locate the equipment in the video frame, and in some application scenarios, such as during the liquid extraction process, the head of the glass rod needs to be in contact with the pH test paper, and in order to detect this, it is necessary to use the key point detection network to detect the glass rod. Position the head of the rod for positioning.
此外,本领域技术人员可以理解的是,在应用中,可以采集多人次执行指定操作时的视频流作为训练数据,并且,事先对训练数据中的每一视频帧进行人工标注,标注出其中的器材,之后,利用标注好的训练数据对深度学习模型进行训练,得到上述已训练的深度学习模型。至于该深度学习模型详细的训练过程,本申请则不再详述。In addition, those skilled in the art can understand that, in the application, video streams when multiple times of performing specified operations can be collected as training data, and each video frame in the training data is manually marked in advance, and the equipment, and then use the marked training data to train the deep learning model to obtain the above-mentioned trained deep learning model. As for the detailed training process of the deep learning model, this application will not describe it in detail.
基于上述描述,作为一个实施例,可以将目标视频输入至已训练的深度学习模型以得到待考核操作对应的考核信息,依据该考核信息确定待考核操作的考核分数。Based on the above description, as an embodiment, the target video can be input into the trained deep learning model to obtain the assessment information corresponding to the operation to be assessed, and the assessment score of the operation to be assessed can be determined according to the assessment information.
以考生执行化学实验操作这一应用场景为例,通过将目标视频输入至已训练的深度学习模型,可以检测出各视频帧上器材的位置、器材上关键区域的位置,这些信息即为待考核操作对应的考核信息。由于通过各视频帧上器材的位置、器材上关键区域的位置可以确定考生的真实操作过程,因此基于这些信息则可以确定考生对该待考核操作的每个考核点的执行情况,从而实现根据各个考核点的执行情况确定目标对象执行待考核操作的考核分数。Taking the application scenario of candidates performing chemical experiments as an example, by inputting the target video into the trained deep learning model, the position of the equipment on each video frame and the position of key areas on the equipment can be detected. Operate the corresponding assessment information. Since the actual operation process of the examinee can be determined through the position of the equipment on each video frame and the position of the key area on the equipment, based on this information, it is possible to determine the execution of each assessment point of the operation to be assessed by the examinee, so as to achieve The execution status of the assessment point determines the assessment score for the target object to perform the operation to be assessed.
此外,作为一个示例,在将目标视频输入至已训练的深度学习模型之前,还可以对目标视频中的各个视频帧进行预处理操作,这里的预处理操作包括但不限于感兴趣区域选择、图像大小调整、图像对比度调整等。通过该种处理,可以提高利用深度学习模型对目标视频进行识别的效率和识别结果的准确度。In addition, as an example, before the target video is input into the trained deep learning model, preprocessing operations can also be performed on each video frame in the target video, where the preprocessing operations include but are not limited to the selection of the region of interest, image Resizing, image contrast adjustment, etc. Through this processing, the efficiency of recognizing the target video using the deep learning model and the accuracy of the recognition result can be improved.
此外,对于某些指定操作而言,可以由目标对象基于实际的操作结果得到一个操作结果信息,例如,在考生执行完测定溶液PH值实验之后,可以在答题卡上写出测定的溶液PH值,该PH值即为考生得到的操作结果信息。In addition, for some specified operations, the target object can obtain an operation result information based on the actual operation result, for example, after the examinee performs the experiment of measuring the pH value of the solution, the measured pH value of the solution can be written on the answer sheet , the PH value is the operation result information obtained by the examinee.
基于此,在本申请实施例中,还可以确定目标对象在执行完指定操作后得到的操作结果信息的考核分数,在上述步骤203中,则可以依据操作结果信息的考核分数和目标对象执行待考核操作的考核分数确定目标对象执行指定操作的考核分数。Based on this, in this embodiment of the application, it is also possible to determine the assessment score of the operation result information obtained by the target object after performing the specified operation. The review score for the review operation determines the review score for the target object to perform the specified operation.
作为一个实施例,可以预先针对操作结果信息设置一个最高考核分数,并确定一个标准的操作结果信息,依据该最高的考核分数和标准的操作结果信息确定目标对象得到的操作结果信息的考核分数。As an example, a highest assessment score can be set for the operation result information in advance, and a standard operation result information can be determined, and the assessment score of the operation result information obtained by the target object can be determined according to the highest assessment score and the standard operation result information.
以下以测定溶液PH值实验为例,示出图4所示流程对确定目标对象在执行完指定操作后得到的操作结果信息的考核分数的过程进行说明:Taking the experiment of measuring the pH value of the solution as an example, the flow shown in Figure 4 is shown below to illustrate the process of determining the assessment score of the operation result information obtained by the target object after performing the specified operation:
如图4所示,包括以下步骤:As shown in Figure 4, the following steps are included:
步骤401:从视频流中检测出PH试纸上的变色区域和考生测定的溶液PH值。Step 401: Detect the discolored area on the pH test paper and the pH value of the solution measured by the examinee from the video stream.
首先说明如何从视频流中检测出PH试纸上的变色区域:First, how to detect the discolored area on the PH test paper from the video stream:
作为一个实施例,可以首先从视频流中检测出待读取PH值,即待检测PH试纸上变色区域的视频帧(以下简称目标视频帧)。由于待考生将待测溶液点滴在PH试纸上之后,PH试纸上才会出现变色区域,并且,PH试纸变色是一个过程,而读取PH试纸显示的PH值的时机将影响到最终的读取结果,因此,可以将摄像机在考生将待测溶液点滴在PH试纸上之后,所采集到的视频帧确定为目标视频帧。As an embodiment, the pH value to be read may be firstly detected from the video stream, that is, the video frame of the discolored area on the pH test paper to be detected (hereinafter referred to as the target video frame). After the examinee drops the solution to be tested on the PH test paper, the discoloration area will appear on the PH test paper, and the discoloration of the PH test paper is a process, and the timing of reading the pH value displayed by the PH test paper will affect the final reading. As a result, therefore, the video frame collected by the camera after the examinee drops the solution to be tested on the pH test paper can be determined as the target video frame.
在一个例子中,对于PH值读数比色操作而言,可以将视频流中位于上述第二视频帧之后的视频帧确定为目标视频帧。In one example, for the pH value reading colorimetric operation, the video frame located after the second video frame in the video stream may be determined as the target video frame.
作为一个示例,可以针对每一目标视频帧,将目标视频帧输入至上述深度学习模型,以由深度学习模型中的目标检测网络识别出该目标视频帧中包括的PH试纸并将识别结果输入至深度学习模型中的关键点检测网络,以由关键点检测网络依据识别结果在该目标视频帧中包括PH试纸上定位出变色区域。As an example, for each target video frame, the target video frame can be input to the above-mentioned deep learning model, so that the target detection network in the deep learning model can identify the PH test paper included in the target video frame and input the recognition result to The key point detection network in the deep learning model is used to locate the discoloration area in the target video frame including the PH test paper by the key point detection network according to the recognition result.
作为另一个示例,还可以针对每一目标视频帧,通过传统的图像处理技术手段,例如二值化处理、前景提取等再目标视频帧中包括的PH试纸上定位出变色区域,本申请对这一过程不做赘述。As another example, for each target video frame, traditional image processing techniques, such as binarization processing, foreground extraction, etc., can be used to locate the discolored area on the PH test paper included in the target video frame. The process will not be described in detail.
其次说明如何从视频流中检测出考生测定的溶液PH值:Next, explain how to detect the pH value of the solution measured by the candidate from the video stream:
作为一个实施例,可以从视频流中检测出存在考生测定的溶液PH值的视频帧,然后对该视频帧进行分析识别,例如利用ORC(Optical Character Recognition,光学字符识别)技术,从该视频帧中获取考生测定的溶液PH值。As an embodiment, it is possible to detect from the video stream that there is a video frame of the pH value of the solution measured by the examinee, and then analyze and identify the video frame, for example, by using ORC (Optical Character Recognition, optical character recognition) technology, from the video frame Obtain the pH value of the solution measured by the examinee.
步骤402:以变色区域的颜色信息为关键字在比色卡中查找到对应的PH值。Step 402: Use the color information of the discolored area as a key to find the corresponding pH value in the color comparison card.
作为一个示例,上述颜色信息可以为RGB颜色信息,也可以为YUV颜色信息,本申请对此不做限制。As an example, the above color information may be RGB color information, and may also be YUV color information, which is not limited in this application.
在本步骤402中,可以以变色区域的颜色信息为关键字查找比色卡,该比色卡包括颜色信息和PH值的对应关系,以查找到对应的PH值。该对应的PH值即为上述描述的标准的操作结果信息。In this step 402, the color information of the discoloration area can be used as a key to search for a color comparison card, which includes the correspondence between color information and pH value, so as to find the corresponding pH value. The corresponding pH value is the standard operation result information described above.
步骤403:依据查找到的PH值和考生测定的溶液PH值确定考核分数。Step 403: Determine the examination score according to the found pH value and the pH value of the solution measured by the examinee.
作为一个实施例,由上述描述可知,通过执行步骤401和步骤402,可以查找到多个PH值,即多个标准的操作结果信息。基于此,在本步骤403中,作为一个示例,可以针对每一目标视频帧对应的所查找到的PH值,计算出该PH值和考生测定的溶液PH值之间的差值,然后根据计算出的所有差值确定考核分数。As an example, it can be known from the above description that by performing step 401 and step 402, multiple pH values, that is, multiple standard operation result information can be found. Based on this, in this step 403, as an example, for the found pH value corresponding to each target video frame, the difference between the pH value and the pH value of the solution measured by the examinee can be calculated, and then according to the calculated All differences are determined to determine the assessment score.
在一个例子中,可以计算出所有差值的平均值,然后将该平均值与多个预设范围进行比较,确定该平均值属于哪个预设范围内,最终将该平均值所属的预设范围对应的考核分数确定为考生在执行完测定溶液PH值实验后测定的溶液PH值的考核分数。In one example, the average value of all differences can be calculated, and then the average value is compared with a plurality of preset ranges to determine which preset range the average value belongs to, and finally the preset range to which the average value belongs The corresponding assessment score is determined as the assessment score of the pH value of the solution measured by the examinee after performing the test of measuring the pH value of the solution.
至此,完成图4所示流程的相关描述。So far, the relevant description of the process shown in FIG. 4 is completed.
通过图4所示流程,最终实现了自动确定考生测定的溶液PH值的考核分数。Through the process shown in Figure 4, the automatic determination of the assessment score of the solution pH value measured by the examinee is finally realized.
与前述目标检测方法的实施例相对应,本申请还提供了目标检测装置的实施例。Corresponding to the foregoing embodiments of the target detection method, the present application also provides embodiments of a target detection device.
请参见图5,为本申请一示例性实施例提供的一种目标检测装置的实施例框图,该装置包括:Please refer to FIG. 5 , which is a block diagram of an embodiment of a target detection device provided in an exemplary embodiment of the present application. The device includes:
检测模块51,用于从摄像机在目标对象执行指定操作时所采集到的视频流中检测出目标视频,所述目标视频为包含所述目标对象在执行所述指定操作过程中所执行的待考核操作的视频;The detection module 51 is configured to detect the target video from the video stream collected by the camera when the target object performs a specified operation, and the target video includes the target object to be assessed in the process of performing the specified operation operation video;
第一考核模块52,用于依据所述目标视频确定所述目标对象执行所述待考核操作的考核分数;The first assessment module 52 is configured to determine the assessment score for the target object to perform the operation to be assessed according to the target video;
第二考核模块53,用于依据所述目标对象执行所述待考核操作的考核分数确定所述目标对象执行所述指定操作的考核分数。The second assessment module 53 is configured to determine the assessment score for the target object to perform the specified operation according to the assessment score for the target object to perform the operation to be assessed.
在一实施例中,所述检测模块51从摄像机在目标对象执行指定操作时所采集到的视频流中检测出目标视频,包括:In one embodiment, the detection module 51 detects the target video from the video stream collected by the camera when the target object performs a specified operation, including:
按顺序对所述视频流中的视频帧进行识别,当识别出所述视频流的第一视频帧中存在用于指示所述目标对象开始执行待考核操作的第一事件时,确定所述目标对象开始执行所述待考核操作,当识别出所述第一视频帧之后的第二视频帧中存在用于指示所述目标对象结束所述待考核操作的第二事件时,确定所述目标对象结束执行所述待考核操作;Identifying the video frames in the video stream in sequence, and determining the target when it is identified that there is a first event in the first video frame of the video stream indicating that the target object starts to perform the operation to be assessed The object starts to perform the operation to be assessed, and when it is recognized that a second event indicating that the target object ends the operation to be assessed exists in a second video frame after the first video frame, determining the target object End the execution of the operation to be assessed;
将所述视频流中以所述第一视频帧为首个视频帧,所述第二视频帧为最后一个视频帧的一段视频确定为所述待考核操作对应的目标视频。Determining a section of video in which the first video frame is the first video frame and the second video frame is the last video frame in the video stream as the target video corresponding to the operation to be assessed.
在一实施例中,所述第一考核模块52依据所述目标视频确定所述目标对象执行所述待考核操作的考核分数,包括:In one embodiment, the first assessment module 52 determines the assessment score of the target object performing the operation to be assessed according to the target video, including:
将所述目标视频输入至已训练的深度学习模型以得到所述待考核操作对应的考核信息;Inputting the target video into a trained deep learning model to obtain assessment information corresponding to the operation to be assessed;
依据所述考核信息确定所述待考核操作的考核分数。An assessment score of the operation to be assessed is determined according to the assessment information.
在一实施例中,所述装置进一步包括(图5中未示出):In one embodiment, the device further includes (not shown in FIG. 5 ):
第三考核模块,用于确定所述目标对象在执行完所述指定操作后得到的操作结果信息的考核分数;The third evaluation module is used to determine the evaluation score of the operation result information obtained by the target object after performing the specified operation;
所述第二考核模块53依据所述目标对象执行所述待考核操作的考核分数确定所述目标对象执行所述指定操作的考核分数包括:The second assessment module 53 determining the assessment score of the target object performing the specified operation according to the assessment score of the target object performing the operation to be assessed includes:
依据所述操作结果信息的考核分数和所述目标对象执行所述待考核操作的考核分数确定所述目标对象执行所述指定操作的考核分数。The assessment score of the target object performing the specified operation is determined according to the assessment score of the operation result information and the assessment score of the target object performing the operation to be assessed.
在一实施例中,所述目标对象执行指定操作为:考生执行测定溶液PH值实验;In one embodiment, the specified operation performed by the target object is: the examinee performs the experiment of measuring the pH value of the solution;
所述第三考核模块确定所述目标对象在执行完所述指定操作后得到的操作结果信息的考核分数包括:The third evaluation module determines the evaluation score of the operation result information obtained by the target object after performing the specified operation includes:
从所述视频流中检测出PH试纸上的变色区域和考生测定的溶液PH值;Detect the discoloration area on the pH test paper and the pH value of the solution measured by the examinee from the video stream;
以所述变色区域的颜色信息为关键字在比色卡中查找到对应的PH值;Using the color information of the discolored area as a key to find the corresponding pH value in the color comparison card;
依据查找到的PH值和考生测定的溶液PH值确定考核分数。The assessment score is determined based on the found PH value and the solution PH value measured by the examinee.
在一实施例中,所述目标对象执行指定操作为:考生执行测定溶液PH值实验;In one embodiment, the specified operation performed by the target object is: the examinee performs the experiment of measuring the pH value of the solution;
所述待考核操作为:所述考生执行测定溶液PH值实验过程中的取液操作、PH值读数比色操作;The operation to be assessed is: the examinee performs the liquid taking operation and the pH value reading colorimetric operation in the experimental process of measuring the pH value of the solution;
所述取液操作是指使用玻璃棒蘸取待测液体,并将待测液体滴在放置在点滴板上的PH试纸上的操作;The liquid-taking operation refers to the operation of dipping the liquid to be tested with a glass rod, and dropping the liquid to be tested on the pH test paper placed on the drip plate;
所述PH值读数操作是指使用比色卡与变色的PH试纸进行比色的操作。The pH value reading operation refers to the operation of using a color comparison card and a color-changing pH test paper to perform color comparison.
请继续参见图6,本申请还提供一种电子设备,包括处理器601、通信接口602、存储器603,以及通信总线604。Please continue to refer to FIG. 6 , the present application further provides an electronic device, including a processor 601 , a communication interface 602 , a memory 603 , and a communication bus 604 .
其中,处理器601、通信接口602、存储器603通过通信总线604进行相互间的通信;Wherein, the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604;
存储器603,用于存放计算机程序;Memory 603, used to store computer programs;
处理器601,用于执行存储器603上所存放的计算机程序,处理器501执行所述计算机程序时实现本申请实施例提供的目标检测方法的步骤。The processor 601 is configured to execute the computer program stored in the memory 603. When the processor 501 executes the computer program, the steps of the object detection method provided in the embodiment of the present application are realized.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例提供的目标检测方法的步骤。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the object detection method provided in the embodiment of the present application are implemented.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the above device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application. It can be understood and implemented by those skilled in the art without creative effort.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the following claims.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above is only a preferred embodiment of the application, and is not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application should be included in the application. within the scope of protection.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010238622.3A CN111753633B (en) | 2020-03-30 | 2020-03-30 | Target detection method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010238622.3A CN111753633B (en) | 2020-03-30 | 2020-03-30 | Target detection method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111753633A CN111753633A (en) | 2020-10-09 |
| CN111753633B true CN111753633B (en) | 2023-08-29 |
Family
ID=72673210
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010238622.3A Active CN111753633B (en) | 2020-03-30 | 2020-03-30 | Target detection method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111753633B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114800506B (en) * | 2022-04-26 | 2023-11-21 | 浙江大学 | Visual-based practical training robot operation logic evaluation system |
| CN114970623A (en) * | 2022-05-20 | 2022-08-30 | 深圳妙创医学技术有限公司 | Assessment method and device for medical instrument operation |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015011664A (en) * | 2013-07-02 | 2015-01-19 | Necエンジニアリング株式会社 | Operation evaluation device, method, and program |
| CN105898239A (en) * | 2016-06-03 | 2016-08-24 | 北京中电万联科技股份有限公司 | Bus driver abnormal behavior monitoring system and monitoring method |
| CN108924082A (en) * | 2018-05-07 | 2018-11-30 | 长庆石油勘探局有限公司技术监测中心 | A kind of special operation workers practical operation examination control method and system |
| CN109035091A (en) * | 2018-07-25 | 2018-12-18 | 深圳市异度信息产业有限公司 | A kind of scoring method, device and equipment for student experimenting |
| CN109727172A (en) * | 2019-03-18 | 2019-05-07 | 上海中科教育装备集团有限公司 | A kind of artificial intelligence machine study experimental skill points-scoring system |
| CN110418112A (en) * | 2019-08-09 | 2019-11-05 | 上海商汤智能科技有限公司 | A kind of method for processing video frequency and device, electronic equipment and storage medium |
| CN110610310A (en) * | 2019-09-10 | 2019-12-24 | 北京字节跳动网络技术有限公司 | Teaching assessment method, device, medium and electronic equipment |
| CN110619460A (en) * | 2019-09-05 | 2019-12-27 | 北京邮电大学 | Classroom quality assessment system and method based on deep learning target detection |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070269788A1 (en) * | 2006-05-04 | 2007-11-22 | James Flowers | E learning platform for preparation for standardized achievement tests |
| US10572735B2 (en) * | 2015-03-31 | 2020-02-25 | Beijing Shunyuan Kaihua Technology Limited | Detect sports video highlights for mobile computing devices |
| TWI639978B (en) * | 2017-07-19 | 2018-11-01 | 和碩聯合科技股份有限公司 | Video surveillance system and video surveillance method |
| US10740620B2 (en) * | 2017-10-12 | 2020-08-11 | Google Llc | Generating a video segment of an action from a video |
| CN110718104A (en) * | 2019-10-21 | 2020-01-21 | 重庆科技学院 | Electronic technology experiment examination system |
-
2020
- 2020-03-30 CN CN202010238622.3A patent/CN111753633B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015011664A (en) * | 2013-07-02 | 2015-01-19 | Necエンジニアリング株式会社 | Operation evaluation device, method, and program |
| CN105898239A (en) * | 2016-06-03 | 2016-08-24 | 北京中电万联科技股份有限公司 | Bus driver abnormal behavior monitoring system and monitoring method |
| CN108924082A (en) * | 2018-05-07 | 2018-11-30 | 长庆石油勘探局有限公司技术监测中心 | A kind of special operation workers practical operation examination control method and system |
| CN109035091A (en) * | 2018-07-25 | 2018-12-18 | 深圳市异度信息产业有限公司 | A kind of scoring method, device and equipment for student experimenting |
| CN109727172A (en) * | 2019-03-18 | 2019-05-07 | 上海中科教育装备集团有限公司 | A kind of artificial intelligence machine study experimental skill points-scoring system |
| CN110418112A (en) * | 2019-08-09 | 2019-11-05 | 上海商汤智能科技有限公司 | A kind of method for processing video frequency and device, electronic equipment and storage medium |
| CN110619460A (en) * | 2019-09-05 | 2019-12-27 | 北京邮电大学 | Classroom quality assessment system and method based on deep learning target detection |
| CN110610310A (en) * | 2019-09-10 | 2019-12-24 | 北京字节跳动网络技术有限公司 | Teaching assessment method, device, medium and electronic equipment |
Non-Patent Citations (1)
| Title |
|---|
| 基于雨课堂的视频考核方式在外科护理学绷带包扎考核中的应用;李鹏等;《卫生职业教育》;第37卷(第17期);第82-84页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111753633A (en) | 2020-10-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111753635B (en) | Intelligent scoring method and device for chemical experiment operation and storage medium | |
| CN105184778B (en) | Detection method and device | |
| CN111768439B (en) | A method, device, electronic equipment and medium for determining experimental scores | |
| CN113628079A (en) | Scoring method and device, electronic equipment and readable medium | |
| IL275535B1 (en) | Analysis of a captured image to determine a test outcome | |
| US10169853B2 (en) | Score weights for user interface (UI) elements | |
| CN108830180B (en) | Electronic attendance method, device and electronic equipment | |
| TW202009681A (en) | Sample labeling method and device, and damage category identification method and device | |
| CN103487104A (en) | System and method for collecting and identifying images of capillary pipe liquid level type data | |
| CN113763348A (en) | Image quality determination method and device, electronic equipment and storage medium | |
| CN114973090B (en) | Experimental scoring method, device, electronic device and storage medium | |
| CN107229560A (en) | A kind of interface display effect testing method, image specimen page acquisition methods and device | |
| CN112153320B (en) | Method and device for measuring size of article, electronic equipment and storage medium | |
| CN109901996A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of subtest | |
| CN111428374A (en) | Part defect detection method, device, equipment and storage medium | |
| CN117152152B (en) | Production management system and method for detection kit | |
| CN116245405B (en) | Standard operation scoring method, system, equipment and storage medium for experimental instrument | |
| CN113378804A (en) | Self-service sampling detection method and device, terminal equipment and storage medium | |
| CN111753633B (en) | Target detection method and device | |
| CN110826646A (en) | Robot vision testing method, device, storage medium and terminal equipment | |
| CN104515767A (en) | Detection cassette reading device and reading method thereof | |
| CN113138916B (en) | Automatic testing method and system for picture structuring algorithm based on labeling sample | |
| CN114049370A (en) | Intelligent mobile terminal colored solution concentration detection method based on deep learning method | |
| CN113538411A (en) | Insulator defect detection method and device | |
| CN115223293B (en) | Taking verification method, device, system and equipment for consumable cabinet |
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 | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20260112 Address after: 510000 unit 2414-2416, building, No. five, No. 371, Tianhe District, Guangdong, China Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd. Country or region after: China Address before: Hangzhou City, Zhejiang province 310051 Binjiang District Qianmo Road No. 555 Patentee before: Hangzhou Hikvision Digital Technology Co.,Ltd. Country or region before: China |