Icon verification method and device, electronic equipment and storage medium
By responding to vehicle control instructions, determining the icon label and verifying the icon displayed by the vehicle based on confidence, the problem of low manual verification efficiency and high error rate in the existing technology is solved, and automated, fast and accurate icon verification is achieved.
Patent Information
- Application Number
- CN202410839264.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, manual verification of vehicle icons is inefficient, requires a large workload, and is error-prone, and cannot effectively solve the problem of vehicle icon verification.
By responding to vehicle control instructions, determining the icon label, and verifying the icon displayed by the vehicle based on confidence, automatic, fast, and accurate icon verification is achieved to avoid manual intervention.
It improves the efficiency and accuracy of icon verification, reduces workload, avoids manual errors, and realizes an automated icon verification process.
Smart Images

Figure CN118692008A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle detection technology, and in particular to an icon verification method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of the automobile industry, vehicles have become an indispensable means of transportation in people's daily lives. When driving a vehicle, users can intuitively obtain the vehicle's status through icons displayed on the vehicle's central control, instrument panel and other display devices. Whether the vehicle's icon display is normal directly affects driving safety. Therefore, vehicle icon detection is very necessary.
[0003] In the related technology, relevant personnel usually issue vehicle control instructions and then manually observe whether the icon displayed by the vehicle is abnormal. This method is not only inefficient but also prone to errors. How to verify the vehicle icon has become an urgent problem to be solved. Summary of the invention
[0004] In view of this, the embodiments of the present application provide an icon verification method, device, electronic device and storage medium to solve the problems in the prior art of manually verifying the vehicle icon, which leads to large workload, low verification efficiency and easy error.
[0005] According to a first aspect of an embodiment of the present application, an icon verification method is provided, the method comprising: determining an icon label corresponding to a vehicle control instruction in response to a received vehicle control instruction; obtaining an icon to be verified displayed on the vehicle after the vehicle executes the vehicle control instruction; determining the confidence level of the icon to be verified according to the icon label, and verifying the icon to be verified based on the determined confidence level.
[0006] According to a second aspect of an embodiment of the present application, an icon verification device is provided, which includes: a determination module for determining an icon label corresponding to a vehicle control instruction in response to a received vehicle control instruction; an acquisition module for acquiring an icon to be verified displayed on the vehicle after the vehicle executes the vehicle control instruction; and a verification module for determining the confidence level of the icon to be verified based on the icon label, and verifying the icon to be verified based on the determined confidence level.
[0007] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0008] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0009] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the method in the embodiments of the present application responds to the received vehicle control instruction, determines the icon label corresponding to the vehicle control instruction, obtains the icon to be verified displayed on the vehicle after the vehicle executes the vehicle control instruction; determines the confidence of the icon to be verified according to the icon label, and verifies the icon to be verified based on the determined confidence, and determines the confidence of the icon to be verified through the icon label, wherein the icon label is the label corresponding to the icon that should be displayed after the vehicle executes the vehicle control instruction, and the icon to be verified is the icon to be verified displayed on the vehicle after the vehicle executes the vehicle control instruction, determines the confidence of the icon to be verified through the icon label, and determines whether the icon to be verified belongs to the icon that should be displayed by the vehicle, thereby realizing automatic, fast and accurate verification of the icon to be verified through the icon label, avoiding manual verification of the icon to be verified, which results in high workload, low verification efficiency, and easy errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art 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 any creative work.
[0011] Figure 1 It is a flowchart of an icon verification method provided in an embodiment of the present application;
[0012] Figure 2 It is a flowchart of another icon verification method provided in an embodiment of the present application;
[0013] Figure 3 It is a flowchart of another icon verification method provided in an embodiment of the present application;
[0014] Figure 4 It is a flowchart of another icon verification method provided in an embodiment of the present application;
[0015] Figure 5 It is a flowchart of another icon verification method provided in an embodiment of the present application;
[0016] Figure 6 This is a basic flow chart for verifying an icon to be verified provided by an embodiment of the present application;
[0017] Figure 7 It is a flowchart of another optional icon verification method provided in an embodiment of the present application;
[0018] Figure 8It is a flowchart of another optional icon verification method provided in an embodiment of the present application;
[0019] Fig. 9 It is a flowchart of another optional icon verification method provided in an embodiment of the present application;
[0020] Fig.10 is a structural schematic diagram of an icon verification device provided in an embodiment of the present application;
[0021] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0023] An icon verification method and device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0024] Figure 1 This is an icon verification method provided by an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0025] S101, in response to a received vehicle control instruction, determining an icon label corresponding to the vehicle control instruction;
[0026] S102, obtaining a verification icon displayed on the vehicle after the vehicle executes the vehicle control command;
[0027] S103: Determine the confidence level of the icon to be verified according to the icon label, and verify the icon to be verified based on the determined confidence level.
[0028] It can be understood that the icon verification method provided in this example is applied to at least one of the terminal, the server and the vehicle, that is, the icon verification method can be executed by the terminal, the server or the vehicle alone, or by the terminal, the server or the vehicle alone; the above-mentioned vehicles include vehicles with automatic driving or intelligent driving (including vehicles with passenger functions (such as cars, buses, buses, minibuses, etc.), vehicles with cargo functions (such as ordinary trucks, vans, trailers, closed trucks, tank trucks, flatbed trucks, container trucks, dump trucks , special structure trucks), special vehicles (such as logistics distribution vehicles, automatic guided transport vehicles AGV, patrol cars, cranes, hoists, excavators, bulldozers, forklifts, rollers, loaders, off-road engineering vehicles, armored engineering vehicles, sewage treatment vehicles, sanitation vehicles, vacuum trucks, floor washing vehicles, sprinkler trucks, sweeping robots, food delivery robots, shopping guide robots, lawn mowers, golf carts, etc.), vehicles with entertainment functions (such as entertainment vehicles, amusement park automatic driving devices, balance cars, etc.), rescue vehicles (such as fire trucks, ambulances, power repair vehicles, engineering rescue vehicles, etc.), etc.
[0029] For a better understanding, this example takes the above-mentioned icon verification method applied to a server as an example. Specifically, the server responds to the received vehicle control instruction and determines the icon label corresponding to the vehicle control instruction, wherein the vehicle control instruction can be an instruction for vehicle control simulated and generated during the test process, and the vehicle control instruction can also be an instruction for vehicle control output through buttons, voice, etc. during the actual use of the vehicle by relevant personnel.
[0030] In some examples, after obtaining the vehicle control instruction, the server will further determine the icon label corresponding to the vehicle control instruction. The icon label is the label corresponding to the icon that should be displayed after the vehicle executes the vehicle control instruction; it can be understood that the server is provided with a pre-trained label model, and the label model can output the corresponding icon label based on the obtained vehicle control instruction; in some examples, the server is provided with a correspondence between the vehicle control instruction and the icon label. After obtaining the above-mentioned vehicle control instruction, the corresponding icon label can be obtained based on the vehicle control instruction and the correspondence between the vehicle control instruction and the icon label.
[0031] It can be understood that the above-mentioned icon label can be a text label, and the above-mentioned icon label can also be a real icon; for example, taking the above-mentioned vehicle control instruction as an example of turning on the left turn indicator light, the left turn indicator light should be displayed on the central control of the vehicle at this time, and the icon label corresponding to the vehicle control instruction is the text label "left turn indicator light"; for another example, taking the above-mentioned vehicle control instruction as an example of a power-on instruction, after the vehicle is powered on, before issuing the start command, the vehicle will perform a self-check. During this process, the vehicle will display an engine fault icon on the central control, and the icon label corresponding to the vehicle control instruction is a real "engine fault icon".
[0032] In some examples, the server of this example will further obtain an icon to be verified displayed on the vehicle after the vehicle executes a vehicle control command, and the icon to be verified is the icon actually displayed on the vehicle; for example, after the vehicle executes an instruction to turn on the left turn indicator light, an icon will be displayed on the central control of the vehicle. In this example, the icon actually displayed on the central control is used as the above-mentioned icon to be verified; for another example, when the vehicle executes a power-on instruction, an icon will be displayed on the central control of the vehicle. In this example, the icon actually displayed on the central control is used as the above-mentioned icon to be verified.
[0033] In some examples, the confidence level of the icon to be verified is determined based on the icon label, and the icon to be verified is verified based on the determined confidence level, and the confidence level is used to characterize whether the icon to be verified belongs to the icon label. If it is determined that the icon to be verified belongs to the icon label, it is determined that there is no abnormality in the icon to be verified displayed by the vehicle. If it is determined that the icon to be verified does not belong to the icon label, it is determined that there is an abnormality in the icon to be verified displayed by the vehicle.
[0034] For example, taking the vehicle control instruction of turning on the left turn indicator as an example, the icon label corresponding to the left turn indicator is the left turn indicator. After the vehicle executes the instruction to turn on the left turn indicator, an icon will be displayed on the vehicle's central console. This example uses the icon displayed on the vehicle as the icon to be verified, and then determines the confidence of the icon to be verified based on the icon label. The confidence is used to characterize whether the icon to be verified belongs to the left turn indicator. If the icon to be verified belongs to the left turn indicator, the icon to be verified displayed by the vehicle passes the verification without any abnormality. If the icon to be verified does not belong to the left turn indicator, the icon to be verified displayed by the vehicle fails the verification and there is an abnormality.
[0035] According to the technical solution provided in the embodiment of the present application, in response to a received vehicle control instruction, an icon label corresponding to the vehicle control instruction is determined, and an icon to be verified displayed on the vehicle after the vehicle executes the vehicle control instruction is obtained; the confidence of the icon to be verified is determined according to the icon label, and the icon to be verified is verified based on the determined confidence, and the confidence of the icon to be verified is determined through the icon label, wherein the icon label is a label corresponding to the icon that should be displayed after the vehicle executes the vehicle control instruction, and the icon to be verified is an icon to be verified displayed on the vehicle after the vehicle executes the vehicle control instruction, the confidence of the icon to be verified is determined through the icon label, and it is determined whether the icon to be verified belongs to an icon that should be displayed by the vehicle, thereby realizing automatic, fast and accurate verification of the icon to be verified through the icon label, avoiding manual verification of the icon to be verified, which results in a large workload, low verification efficiency, and easy errors.
[0036] In some embodiments, Figure 2 As shown, after obtaining the vehicle execution vehicle control command, the pending verification icon displayed by the vehicle includes:
[0037] S201, obtaining a video stream carrying an icon to be verified output by the vehicle in response to a vehicle control command;
[0038] S202, reading a video stream according to a preset picture frame reading cycle to obtain at least one target image frame;
[0039] S203: Perform icon recognition on each target image frame to obtain the icon to be verified contained in each target image frame.
[0040] In order to obtain the above-mentioned icon to be verified, this example will obtain the video stream carrying the icon to be verified output by the vehicle in response to the vehicle control command; specifically, the vehicle's central control, instrument panel, etc. are all display devices, and the display content of the above-mentioned display devices is determined by the video stream output by the vehicle. Therefore, after executing the vehicle control command, the vehicle will output the video stream carrying the icon to be verified to the above-mentioned display device.
[0041] It can be understood that if icon recognition is performed directly on the video stream and the icon to be verified is obtained, the recognition workload will be too large. In order to reduce the speed and efficiency of icon recognition, the method provided in this example reads the video stream according to the preset picture frame reading period to obtain at least one target image frame; the above-mentioned preset picture frame reading period is a value set by relevant personnel according to actual needs, and the value range of the above-mentioned picture frame reading period is 10ms to 50ms; illustratively, taking the picture frame reading period of 30ms as an example, a target image frame is extracted every 30ms; it can be understood that the above-mentioned picture frame reading period can be flexibly set by relevant personnel according to actual needs.
[0042] In some examples, after acquiring at least one target image frame, the method provided in this example will perform icon recognition on each target image frame to obtain the icon to be verified contained in each target image frame. Among them, this example can perform icon recognition on each target image frame through an icon recognition model, thereby obtaining the icon to be verified contained in each target image frame.
[0043] In some examples, obtaining an icon to be verified displayed by the vehicle after the vehicle executes a vehicle control instruction also includes: photographing the display device of the vehicle with a photographing device to obtain a video of the display device displaying the icon to be verified, and then reading the video based on a preset picture frame reading cycle to obtain at least one target image frame; and performing icon recognition on each target image frame to obtain the icon to be verified contained in each target image frame.
[0044] In some examples, obtaining an icon to be verified displayed by the vehicle after the vehicle executes a vehicle control instruction also includes: obtaining all image frames in a video stream, performing icon recognition on each image frame, and obtaining the icon to be verified contained in each image frame.
[0045] According to the technical solution provided in the embodiment of the present application, a video stream carrying an icon to be verified output by the vehicle in response to a vehicle control instruction is obtained; the video stream is read according to a preset picture frame reading cycle to obtain at least one target image frame; icon recognition is performed on each target image frame to obtain the icon to be verified contained in each target image frame. Among them, this example obtains at least one target image frame by reading the video stream according to a preset picture frame reading cycle, and icon recognition is performed based on the determined target image frame to obtain the icon to be verified, thereby improving the acquisition speed of the icon to be verified, and making the acquired icon to be verified representative and able to replace the complete video stream, thereby avoiding the problem of excessive workload and low efficiency caused by icon recognition for all image frames in the video stream.
[0046] In some embodiments, Figure 3 As shown, the video stream is read according to a preset picture frame reading cycle to obtain at least one target image frame, including:
[0047] S301, obtaining a display maintenance time corresponding to a vehicle control instruction, and determining the number of image frames based on the display maintenance time;
[0048] S302 . Read target image frames from the video stream according to the image frame reading cycle until the number of target image frames meets the number of image frames.
[0049] It can be understood that in order to avoid the problem of acquiring too many image frames, resulting in long acquisition time and excessive subsequent icon recognition tasks, this example will also determine the number of image frames in advance. If the number of target image frames acquired meets this number of image frames, the acquisition of the target image frames will be stopped.
[0050] Specifically, this example first obtains the display maintenance time corresponding to the vehicle control instruction, wherein the display maintenance time corresponding to the vehicle control instruction is flexibly set by relevant personnel according to actual conditions; illustratively, for example, taking the vehicle control instruction to turn on the left turn indicator as an example, the icon label corresponding to the left turn indicator is the left turn indicator. According to the vehicle settings, the left turn indicator will be displayed on the instrument panel before the vehicle receives the left turn indicator off instruction, and the display maintenance time of the left turn indicator is greater than 5 seconds; for another example, during the vehicle power-on self-test process, the engine fault icon will be displayed. After the self-test passes, the engine fault icon will stop being displayed. Since the vehicle self-test speed is relatively fast, the display maintenance time of the above engine fault icon is 2 seconds.
[0051] In some examples, the display maintenance time corresponding to the vehicle control instruction is obtained, and the number of image frames is determined based on the display maintenance time. Specifically, the longer the display maintenance time, the more image frames, and the shorter the display maintenance time, the fewer image frames. Preferably, the number of image frames is twice the display maintenance time (rounded), and the maximum number is no more than 10. For example, if the display maintenance time is 2 seconds, the number of image frames is 4; if the display maintenance time is 5 seconds, the number of image frames is 10; the display maintenance time is 8, and the number of images is 10.
[0052] After obtaining the number of image frames, this example reads target image frames from the video stream according to the image frame reading cycle until the number of target image frames meets the number of image frames or the video stream reading is completed.
[0053] According to the technical solution provided in the embodiment of the present application, the display maintenance time corresponding to the vehicle control instruction is obtained, and the number of image frames is determined based on the display maintenance time; the target image frames are read from the video stream according to the picture frame reading cycle until the number of target image frames meets the number of image frames, so that the number of image frames can meet subsequent usage requirements, thereby improving the accuracy of verification of the icons to be verified displayed on the vehicle.
[0054] In some embodiments, Figure 4 As shown, the confidence of the icon to be verified is determined according to the icon label, and the icon to be verified is verified based on the confidence, including:
[0055] S401, determining the confidence level of the icon to be verified contained in each target image frame according to the icon label;
[0056] S402: Compare the confidence level of each icon to be verified with a preset confidence threshold. If the confidence level of any icon to be verified is lower than the confidence threshold, determine that the icon to be verified displayed by the vehicle is abnormal.
[0057] Specifically, this example will load a trained confidence verification model (the confidence verification model is an image recognition model based on deep learning, such as "YOLOV3", "YOLOV5"). The confidence verification model can determine the confidence of the icon to be verified contained in each target image frame according to the icon label. If the inferred confidence is higher than the preset confidence threshold, it means that the icon to be verified contained in the target image frame belongs to the icon label; conversely, if the inferred confidence is lower than the preset confidence threshold, it means that the icon to be verified contained in the target image frame does not belong to the icon label.
[0058] It can be understood that after the vehicle executes the vehicle control instruction, the icons to be verified obtained should all belong to the icon label corresponding to the above vehicle control instruction. If the icon to be verified does not belong to the icon label corresponding to the above vehicle control instruction, it can be determined that the vehicle icon display is abnormal; therefore, this example will compare the confidence of each icon to be verified with the preset confidence threshold. If the confidence of any icon to be verified is lower than the confidence threshold, it is determined that there is an abnormality in the icon to be verified displayed by the vehicle. If the confidence of the icons to be verified contained in all target image frames is higher than the confidence threshold, it is determined that there is no abnormality in the icon to be verified displayed by the vehicle.
[0059] It can be understood that the above preset confidence threshold is 0.910 to 0.999, and the confidence threshold can be flexibly set by relevant personnel according to actual needs.
[0060] In order to better understand the present method, this embodiment provides a more specific example for illustration. Figure 5 As shown, the method includes the following steps: (1) (1) Filtering operation steps, that is, entering the detection icon interface first. (2) Simulating operation get_exec_method. This step mainly simulates the specific operation events of the smart cockpit (central control / instrument) and sends them to the vehicle. (3) Obtaining the icon to be verified displayed by the vehicle; mainly obtaining the content displayed on the central control and instrument interface of the smart cockpit, and reaching the icon interface to be detected by simulating the operation of the central control and instrument. (4) i con_status, verifying the icon to be verified. If it is judged as True, the icon is normal; if it is judged as False, the icon is abnormal. (5) get_detect i on_img; as Figure 6 As shown, Figure 6The figure shows a basic flow chart for verifying the icon to be verified, which includes the following steps: 1) Load the model iconMode l, load the trained confidence verification model. (This model is an image recognition model based on deep learning, such as "YOLOV3", "YOLOV5"). 2) Open the video stream with opencv. Specifically, obtain the video stream carrying the icon to be verified through opencv. 3) Read an image frame as the target image frame every 30ms, and read a frame of picture every 30ms. 4) Icon label inference recognition, perform inference recognition on the read target image frame. 5) get_detect i on_img, obtain the confidence of the icon to be verified in each target image frame to achieve the expected goal. The built-in parameter icon label is mainly the label corresponding to the vehicle control instruction (the vehicle control instruction is to turn on the left turn signal lamp, then the icon label corresponding to the left turn signal lamp is obtained); confidence is the confidence, and the confidence is judged. If the confidence is satisfied, the frame_rate parameter is judged. If the confidence is not satisfied, False is directly returned (for example: confidence = 0.99 means that the inferred icon confidence needs to be greater than or equal to 0.99, then the condition is met, otherwise the condition is not met); frame_rate is the number of consecutive frames, for example: it is necessary to judge that the target image frame meets the condition 5 times in a row, then frame_rate = 5, if the confidence condition is met each time, True is returned, if the confidence condition is not met once or more times, False is returned. 6) i con_status, returns True or False.
[0061] According to the technical solution provided in the embodiment of the present application, the confidence of the icon to be verified contained in each target image frame is determined according to the icon label; the confidence of each icon to be verified is compared with a preset confidence threshold; if the confidence of any icon to be verified is lower than the confidence threshold, it is determined that there is an abnormality in the icon to be verified displayed by the vehicle, thereby accurately determining whether there is an abnormality in the icon to be verified displayed by the vehicle.
[0062] In some embodiments, Figure 7 As shown, after determining the confidence of the icon to be verified based on the acquisition location and the icon label, and verifying the icon to be verified based on the determined confidence, the method further includes:
[0063] S701. If it is determined that the icon to be verified displayed by the vehicle is abnormal, obtain the abnormal icon to be verified;
[0064] S702: Generate an abnormality detection report according to the video stream and the abnormal icon to be verified.
[0065] Specifically, in the step of determining the confidence of the icon to be verified contained in each target image frame, if the confidence of the icon to be verified is lower than the confidence threshold, the icon to be verified is marked as an abnormal icon to be verified, and the abnormal icon to be verified can be directly obtained later.
[0066] Among them, in order to enable relevant personnel to fully understand the time and method of appearance of abnormal icons to be verified, the method provided in this example will generate an anomaly detection report based on the video stream and abnormal icons to be verified, so that relevant personnel can analyze the reasons for the icon abnormality.
[0067] It can be understood that if the above-mentioned icon to be verified is obtained based on a video captured by a shooting device, this example will generate an abnormality detection report based on the captured video and the abnormal icon to be verified.
[0068] According to the technical solution provided in the embodiment of the present application, if it is determined that there is an abnormality in the icon to be verified displayed on the vehicle, the abnormal icon to be verified is obtained; an abnormality detection report is generated based on the video stream and the abnormal icon to be verified, so that relevant personnel can fully understand the appearance time and appearance method of the abnormal icon to be verified based on the above-mentioned abnormality detection report, which is convenient for relevant personnel to analyze the cause of the icon abnormality and avoid the abnormal icon problem from entering the market and causing adverse effects.
[0069] In some examples, such as Figure 8 As shown, after determining the confidence of the icon to be verified according to the icon label and verifying the icon to be verified based on the determined confidence, the method further includes:
[0070] S801, resending the vehicle control command to the vehicle, and obtaining a new pending verification icon displayed on the vehicle after the vehicle re-executes the vehicle control command;
[0071] S802: Determine the confidence level of the new icon to be verified according to the icon label, and verify the new icon to be verified based on the determined confidence level.
[0072] Specifically, after determining that there is an abnormality in the icon to be verified displayed on the vehicle, this example will generate an abnormality detection report, so that relevant personnel can analyze the cause of the icon abnormality based on the abnormality detection report, and repair and resolve the existing faults. After repairing and resolving the existing faults, this example will resend the same vehicle control instructions to the vehicle.
[0073] Continuing from the previous example, this example will obtain the new icon to be verified displayed on the vehicle after the vehicle re-executes the vehicle control command. This example will verify the new icon to be verified again to ensure that the icon displayed on the vehicle is normal.
[0074] According to the technical solution provided in the embodiment of the present application, the vehicle control command is resent to the vehicle, and a new icon to be verified is displayed on the vehicle after the vehicle re-executes the vehicle control command; the confidence level of the new icon to be verified is determined according to the icon label, and the new icon to be verified is verified based on the determined confidence level, thereby ensuring that the icon displayed on the vehicle is normal and avoiding abnormal icon problems from entering the market and causing adverse effects.
[0075] In some examples, such as Fig. 9 As shown, in response to the received vehicle control instruction, before determining the icon label corresponding to the vehicle control instruction, the method also includes:
[0076] S901, determining a test case corresponding to the vehicle, and simulating and generating a vehicle control instruction corresponding to the vehicle according to the test case;
[0077] S902: Call the controller area network bus of the vehicle to output a vehicle control instruction to the vehicle, so that the vehicle executes the vehicle control instruction.
[0078] The method provided in this example can automatically generate vehicle control instructions based on test cases. Specifically, if the current test case is to test the left turn indicator light, then the instruction for turning on the left turn indicator light is simulated and generated according to the test case. For another example, if the current test case is to test the engine fault light, then the power-on instruction is simulated and generated according to the test case.
[0079] In some examples, the above-mentioned in-vehicle control instructions can also be instructions for operating the central control screen. The above-mentioned in-vehicle control instructions are generated by simulating specific operation events such as clicks and slides. For example: the smart cockpit system is Android. At this time, the simulation of the central control screen operation is mainly program control of adb or specific operation events such as clicks and slides through Ui automator2.
[0080] In some examples, after simulating and generating the above-mentioned vehicle control instructions, this example will further call the vehicle's controller area network bus to output the vehicle control instructions to the vehicle, so that the vehicle executes the vehicle control instructions. Specifically, the vehicle's controller area bus (Controller Area Network, CAN) is called by a program to send a CAN signal, thereby achieving the purpose of sending the simulated vehicle-mounted operation instructions to the vehicle, so that the vehicle executes the above-mentioned simulated vehicle-mounted operation instructions.
[0081] According to the technical solution provided in the embodiment of the present application, the test case corresponding to the vehicle is determined, and the vehicle control instructions corresponding to the vehicle are simulated and generated according to the test case; the vehicle's controller local area network bus is called to output the vehicle control instructions to the vehicle, so that the vehicle executes the vehicle control instructions, thereby achieving the effect of sending the simulated on-board operation instructions to the vehicle, so that the vehicle executes the above-mentioned simulated on-board operation instructions.
[0082] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0083] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0084] This embodiment also provides an icon verification device, such as Fig.10 As shown, the device comprises:
[0085] A determination module 1001, configured to determine an icon label corresponding to the vehicle control instruction in response to the received vehicle control instruction;
[0086] The acquisition module 1002 is used to acquire the to-be-verified icon displayed on the vehicle after the vehicle executes the vehicle control command;
[0087] The verification module 1003 is used to determine the confidence level of the icon to be verified according to the icon label, and verify the icon to be verified based on the determined confidence level.
[0088] In some examples, the acquisition module 1002 is also used to acquire a video stream carrying an icon to be verified output by the vehicle in response to a vehicle control command; read the video stream according to a preset picture frame reading cycle to obtain at least one target image frame; perform icon recognition on each target image frame to obtain the icon to be verified contained in each target image frame.
[0089] In some examples, the acquisition module 1002 is also used to obtain the display maintenance time corresponding to the vehicle control instruction, and determine the number of image frames based on the display maintenance time; read the target image frames from the video stream according to the picture frame reading cycle until the number of target image frames meets the number of image frames.
[0090] In some examples, the verification module 1003 is also used to determine the confidence of the icon to be verified contained in each target image frame based on the icon label; compare the confidence of each icon to be verified with a preset confidence threshold; if the confidence of any icon to be verified is lower than the confidence threshold, it is determined that there is an abnormality in the icon to be verified displayed by the vehicle.
[0091] In some examples, the verification module 1003 is further used to obtain the abnormal icon to be verified if it is determined that there is an abnormality in the icon to be verified displayed by the vehicle; and generate an abnormality detection report based on the video stream and the abnormal icon to be verified.
[0092] In some examples, the verification module 1003 is also used to resend the vehicle control instruction to the vehicle, and obtain a new icon to be verified displayed on the vehicle after the vehicle re-executes the vehicle control instruction; determine the confidence level of the new icon to be verified based on the icon label, and verify the new icon to be verified based on the determined confidence level.
[0093] In some examples, the determination module 1001 is also used to determine the test case corresponding to the vehicle, and generate the vehicle control instructions corresponding to the vehicle according to the test case simulation; call the vehicle's controller area network bus to output the vehicle control instructions to the vehicle, so that the vehicle executes the vehicle control instructions.
[0094] According to the technical solution provided in the embodiment of the present application, the icon verification device provided in the embodiment responds to the received vehicle control instruction, determines the icon label corresponding to the vehicle control instruction, obtains the icon to be verified displayed on the vehicle after the vehicle executes the vehicle control instruction; determines the confidence of the icon to be verified according to the icon label, and verifies the icon to be verified based on the determined confidence, and determines the confidence of the icon to be verified through the icon label, wherein the icon label is the label corresponding to the icon that should be displayed after the vehicle executes the vehicle control instruction, and the icon to be verified is the icon to be verified displayed on the vehicle after the vehicle executes the vehicle control instruction, determines the confidence of the icon to be verified through the icon label, and determines whether the icon to be verified belongs to the icon that should be displayed on the vehicle, thereby realizing automatic, fast and accurate verification of the icon to be verified through the icon label, avoiding manual verification of the icon to be verified, which results in high workload, low verification efficiency, and easy errors.
[0095] Fig.11 Schematic diagram of an electronic device 11 provided in an embodiment of the present application. Fig.11 As shown, the electronic device 11 of this embodiment includes: a processor 1101, a memory 1102, and a computer program 1103 stored in the memory 1102 and executable on the processor 1101. When the processor 1101 executes the computer program 1103, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 1101 executes the computer program 1103, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0096] The electronic device 11 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 11 may include, but is not limited to, a processor 1101 and a memory 1102. Those skilled in the art will appreciate that Fig.11The electronic device 11 is merely an example and does not limit the electronic device 11 , and may include more or less components than those shown in the figure, or different components.
[0097] The processor 1101 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0098] The memory 1102 may be an internal storage unit of the electronic device 11, for example, a hard disk or memory of the electronic device 11. The memory 1102 may also be an external storage device of the electronic device 11, for example, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 11. The memory 1102 may also include both an internal storage unit of the electronic device 11 and an external storage device. The memory 1102 is used to store computer programs and other programs and data required by the electronic device.
[0099] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0100] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of regional requirements and patent practice. For example, in some areas, according to regional requirements and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0101] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An icon verification method, characterized in that: The method comprises: In response to the received vehicle control instruction, determining an icon label corresponding to the vehicle control instruction; Acquire a verification icon displayed on the vehicle after the vehicle executes the vehicle control instruction; The confidence level of the icon to be verified is determined according to the icon label, and the icon to be verified is verified based on the determined confidence level.
2. The method according to claim 1, characterized in that: After the vehicle executes the vehicle control instruction, the pending verification icon displayed by the vehicle includes: Acquire a video stream carrying the icon to be verified output by the vehicle in response to the vehicle control command; Reading the video stream according to a preset picture frame reading cycle to obtain at least one target image frame; Icon recognition is performed on each of the target image frames to obtain the icon to be verified contained in each of the target image frames.
3. The method according to claim 2, characterized in that The video stream is read according to a preset picture frame reading cycle to obtain at least one target image frame, including: Acquire a display maintenance time corresponding to the vehicle control instruction, and determine the number of image frames based on the display maintenance time; The target image frames are read from the video stream according to the image frame reading cycle until the number of the target image frames meets the number of image frames.
4. The method according to claim 3, characterized in that: Determining the confidence of the icon to be verified according to the icon label, and verifying the icon to be verified based on the confidence, including: Determining the confidence level of the icon to be verified contained in each of the target image frames according to the icon label; The confidence level of each icon to be verified is compared with a preset confidence threshold. If the confidence level of any icon to be verified is lower than the confidence threshold, it is determined that an abnormality exists in the icon to be verified displayed on the vehicle.
5. The method according to claim 4, characterized in that After determining the confidence level of the icon to be verified according to the icon tag, and verifying the icon to be verified based on the determined confidence level, the method further includes: If it is determined that the icon to be verified displayed by the vehicle is abnormal, obtaining the abnormal icon to be verified; An abnormality detection report is generated according to the video stream and the abnormal icon to be verified.
6. The method according to claim 5, characterized in that After determining the confidence level of the icon to be verified according to the icon tag, and verifying the icon to be verified based on the determined confidence level, the method further includes: resending the vehicle control command to the vehicle, and obtaining a new to-be-verified icon displayed on the vehicle after the vehicle re-executes the vehicle control command; The confidence level of the new icon to be verified is determined according to the icon label, and the new icon to be verified is verified based on the determined confidence level.
7. The method according to claim 1, characterized in that In response to the received vehicle control instruction, before determining the icon label corresponding to the vehicle control instruction, the method further includes: Determine a test case corresponding to the vehicle, and simulate and generate the vehicle control instruction corresponding to the vehicle according to the test case; The controller area network bus of the vehicle is called to output the vehicle control instruction to the vehicle, so that the vehicle executes the vehicle control instruction.
8. An icon verification device, characterized in that: The device comprises: A determination module, configured to determine an icon label corresponding to the vehicle control instruction in response to the received vehicle control instruction; An acquisition module, used for acquiring a verification icon displayed on the vehicle after the vehicle executes the vehicle control instruction; The verification module is used to determine the confidence level of the icon to be verified according to the icon label, and verify the icon to be verified based on the determined confidence level.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Automatic testing method for automobile instrument signals
CN111141529A
Vehicle instrument testing method and device
CN113110909A
Automatic testing method and device for automobile instrument
CN115470109A
Vehicle instrument test system
CN217541952U
