A test triggering method, a device to be tested, and a computer-readable storage medium

By using an image acquisition unit to acquire and analyze the image color value of the test marking light source in 3C products, the problems of low recognition rate and long response time of the traditional QR code triggering method are solved, and efficient test triggering in various environments is achieved.

CN113850795BActive Publication Date: 2025-07-25LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111165757.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-07-25
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

When traditional 3C products are automated testing, the method of triggering the test start by scanning the QR code is easily affected by the production environment, resulting in low recognition rate and long response time, and the test cannot be effectively triggered.

Method used

The image acquisition unit of the device to be tested is used to obtain the image to be processed by the test identification light source, and by analyzing the color value of the image and the preset threshold value, it is determined whether to start the test program, including determining the color value of the center position, the target area and the pixel point, to achieve accurate triggering of the test program.

Benefits of technology

Improves the recognition rate and response time of test triggers, and is suitable for a variety of environments, including darker light and black box testing environments, ensuring a timely start of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113850795B_ABST
    Figure CN113850795B_ABST
Patent Text Reader

Abstract

The present application discloses a test triggering method, and the method includes: obtaining a to-be-processed image including a test identification light source by using an image acquisition unit of a device to be tested; wherein, the test identification light source emits light to the environment where the device to be tested is located; analyzing color values of the to-be-processed image to obtain a target color value of the to-be-processed image; and determining whether to start a target test program for testing the device to be tested based on the target color value and a target color threshold of the to-be-processed image. The present application also discloses a device to be tested and a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to information processing technology in the field of computers, and in particular, to a test trigger method, a device to be tested, and a computer-readable storage medium. Background Art

[0002] Currently, in the manufacturing of traditional 3C products (also known as information appliances), when these devices are subjected to automated testing, the trigger for starting the test needs to be implemented through a trigger. In the related art, generally, the trigger is triggered by allowing the user to scan a QR code at the start of the test. However, due to the influence of the production environment, there may be situations where the code cannot be recognized, which greatly reduces the recognition rate and requires a long response time, ultimately resulting in the inability to trigger the start of the test. Summary of the Invention

[0003] To solve the above technical problems, embodiments of the present application are expected to provide a test trigger method, a device to be tested, and a computer-readable storage medium.

[0004] The technical solution of the present application is implemented as follows:

[0005] A test trigger method, the method comprising:

[0006] Obtaining a to-be-processed image including a test identification light source by using an image acquisition unit of a device to be tested; wherein, the test identification light source emits light to the environment where the device to be tested is located;

[0007] Analyzing color values of the to-be-processed image to obtain a target color value of the to-be-processed image;

[0008] Based on the target color value of the to-be-processed image and a target color threshold, determining whether to start a target test program for testing the device to be tested.

[0009] In the above solution, the determining whether to start a target test program for testing the device to be tested based on the target color value of the to-be-processed image and a target color threshold includes:

[0010] In a case where the target color value of the to-be-processed image matches the target color threshold, based on a color pattern identifier in the to-be-processed image, determining that the device to be tested starts a target test program corresponding to the color pattern identifier; wherein, the color pattern identifier is used to represent color information of the test identification light source;

[0011] Correspondingly, the method further includes:

[0012] Execute a target test operation based on the target test program, so that the device under test obtains the test result corresponding to the target test program; wherein, the target color threshold corresponding to different test programs is different.

[0013] In the above solution, the analyzing the color value of the image to be processed to obtain the target color value of the image to be processed includes:

[0014] Determine the central position where the center point of the image to be processed is located;

[0015] Based on the central position, determine the target area of the image to be processed;

[0016] Obtain the color value of the pixel points in the target area of the image to be processed to obtain the target color value.

[0017] In the above solution, the determining the target area of the image to be processed based on the central position includes:

[0018] Taking the center point as the reference position, determine a first sub-region in the image to be processed whose area meets the target area threshold; wherein, the center point of the first sub-region is the same as the center point of the image to be processed;

[0019] Based on the first sub-region, determine a second sub-region from the region in the image to be processed other than the first sub-region; wherein, the target area includes the first sub-region and the second sub-region.

[0020] In the above solution, the determining the second sub-region from the region in the image to be processed other than the first sub-region based on the first sub-region includes:

[0021] Determine the edge region of the image in the image to be processed;

[0022] Determine the region other than the edge region and the first sub-region in the image to be processed as the second sub-region.

[0023] In the above solution, the obtaining the color value of the pixel points in the target area of the image to be processed to obtain the target color value includes:

[0024] Obtain the color value of the pixel points in the first sub-region of the image to be processed;

[0025] From the pixel points in the second sub-region of the image to be processed, determine the target pixel points every target number of pixel points;

[0026] Obtain the color value of the target pixel points in the image to be processed to obtain the target color value.

[0027] In the above solution, analyzing the color values of the image to be processed to obtain the target color values of the image to be processed includes:

[0028] For each color component, respectively performing operations on the values of the color components of the pixel points in the target area of the image to be processed to obtain the target color values of the image to be processed; wherein, the color components are used to form colors.

[0029] In the above solution, the method further includes:

[0030] Collecting information icons on the display screen of the measurement and control device through the image acquisition unit, and parsing the information icons to obtain an analysis result; wherein, the analysis result is carried in the information icons, and the measurement and control device is used to test and analyze the test information generated by the device to be tested for the target test program.

[0031] A device to be tested, the device to be tested includes: an image acquisition unit, a processor, a memory, and a communication bus;

[0032] The image acquisition unit is used to acquire an image to be processed including a test identification light source; wherein, the test identification light source emits light to the environment where the device to be tested is located;

[0033] The communication bus is used to implement a communication connection between the processor and the memory;

[0034] The processor is used to execute a test trigger program in the memory to implement the following steps:

[0035] Analyzing the color values of the image to be processed to obtain the target color values of the image to be processed;

[0036] Based on the target color values of the image to be processed and the target color threshold, determining whether to start the target test program for testing the device to be tested.

[0037] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned test trigger method.

[0038] The test trigger method, device under test, and computer-readable storage medium provided by the embodiments of the present application use the image acquisition unit of the device under test to obtain a to-be-processed image including a test identification light source. The test identification light source emits light to the environment where the device under test is located, analyzes the color values of the processed image to obtain the target color value of the to-be-processed image, and determines whether to start the target test program for testing the device under test based on the target color value and the target color threshold of the to-be-processed image. In this way, after the test identification light source emits light to the environment where the test device is located, the start of the test can be triggered by the relationship between the target color value and the target color threshold of the to-be-processed image, and it can be determined that the response time for triggering various test programs is short, the recognition rate is high, and it is not affected by the surrounding environment. It can be applied to environments with low light brightness, even black box test environments, ensuring timely triggering of the start of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic flowchart of a test trigger method provided by an embodiment of the present application;

[0040] Figure 2 It is a schematic flowchart of another test trigger method provided by an embodiment of the present application;

[0041] Figure 3 It is a schematic flowchart of yet another test trigger method provided by an embodiment of the present application;

[0042] Figure 4 It is a schematic diagram of the target area of the to-be-processed image in the test trigger method provided by an embodiment of the present application;

[0043] Figure 5 It is a schematic diagram of the analysis result being transmitted back from the measurement and control device to the device under test in the test trigger method provided by an embodiment of the present application;

[0044] Figure 6 It is a schematic structural diagram of a device under test provided by an embodiment of the present application;

[0045] Figure 7 It is a schematic structural diagram of a test trigger device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0046] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application.

[0047] It should be understood that the "embodiments of the present application" or "the foregoing embodiments" mentioned throughout the specification mean that specific features, structures, or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, the "in the embodiments of the present application" or "in the foregoing embodiments" that appear throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In various embodiments of the present application, the magnitude of the serial numbers of the above processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0048] Without special instructions, when the electronic device executes any step in the embodiments of the present application, it may be the processor of the electronic device that executes this step. It is also worth noting that the embodiments of the present application do not limit the order of execution of the following steps by the electronic device. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the electronic device, that is, when the electronic device executes any step in the following embodiments, it may not depend on the execution of other steps.

[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] The embodiments of the present application provide a test trigger method, which can be applied to a device to be tested. Referring to Figure 1 as shown, the method includes the following steps:

[0051] Step 101, use the image acquisition unit of the device to be tested to obtain a to-be-processed image including a test identification light source.

[0052] Wherein, the test identification light source emits light to the environment where the device to be tested is located.

[0053] In the embodiments of the present application, the device to be tested may be a device that needs to be subjected to performance testing; in a feasible implementation manner, the device to be tested may refer to a 3C product. The image acquisition unit may refer to a component of the device to be tested that has the function of image acquisition. For example, the image acquisition unit may refer to a camera. Among them, the test identification light source refers to a light source with an identification used for performance testing of the device to be tested, and the test identification light source can emit various different colors of light; the test identification light source may be a light source with a single identification corresponding to a certain color, or a composite light source with multiple identifications generated by a combination of multiple colors. It should be noted that before testing the device to be tested, it is necessary to pre-emit light of a selected color from the test identification light source into the environment where the device to be tested is currently located.

[0054] Step 102: Analyze the color values of the image to be processed to obtain the target color values of the image to be processed.

[0055] Among them, the target area may be first determined from the image to be processed, and then the color values of the pixel points in the determined target area are obtained, and then the target color values are obtained. That is to say, the target color values of the image to be processed may be the color values of the pixel points in the target area of the image to be processed; of course, the target color values of the image to be processed may also be obtained by processing the color values of the pixel points in the target area of the image to be processed. It should be noted that the target color values of the image to be processed may refer to the values of each color component of the pixel points in the target area of the image to be processed, or may refer to the color values obtained by processing each color component, or may be the value of a certain color component. In specific applications, the manifestation form of the target color threshold can be determined according to actual needs.

[0056] Step 103: Based on the target color values of the image to be processed and the target color threshold, determine whether to start the target test program for testing the device to be tested.

[0057] Among them, the target color threshold may be preset in the actual application scenario for determining the start of the test program; of course, different target test programs may be set with different target color thresholds when setting. It should be noted that the target color threshold may refer to the threshold of each color component, or may refer to the threshold of a certain color component, or may refer to the threshold of the color synthesized from each color component. In specific applications, the manifestation form of the target color threshold can be determined according to actual needs.

[0058] The test trigger method provided by the embodiments of the present application uses the image acquisition unit of the device under test to obtain a to-be-processed image including a test identification light source. The test identification light source emits light to the environment where the device under test is located, analyzes the color values of the processed image to obtain the target color value of the to-be-processed image, and determines whether to start the target test program for testing the device under test based on the target color value and the target color threshold of the to-be-processed image. In this way, after the test identification light source emits light to the environment where the test device is located, the start of the test can be triggered by the relationship between the target color value and the target color threshold of the to-be-processed image, and various test programs can be determined to be triggered. The response time is short, the recognition rate is high, and it is not affected by the surrounding environment. It can be applied to an environment with low light brightness, or even a black box test environment, ensuring that the test starts are triggered in a timely manner.

[0059] Based on the foregoing embodiments, the embodiments of the present application provide a test trigger method. Referring to Figure 2 as shown, the method includes the following steps:

[0060] Step 201, the device under test uses the image acquisition unit of the device under test to obtain a to-be-processed image including a test identification light source.

[0061] Among them, the test identification light source emits light to the environment where the device under test is located.

[0062] It should be noted that the to-be-processed image can be obtained after the device under test uses its own camera to photograph an object including at least the test identification light source. In a feasible implementation manner, the to-be-processed image can be obtained after photographing the environmental information including the test identification light source where the device under test is currently located. Of course, the to-be-processed image obtained by photographing includes a color pattern identification.

[0063] Step 202, the device under test determines the central position where the center point of the to-be-processed image is located.

[0064] Among them, the central position can be the position of the center point of the to-be-processed image determined after analyzing the size of the to-be-processed image.

[0065] Step 203, the device under test determines the target area of the to-be-processed image based on the central position.

[0066] In the embodiments of the present application, the target area can be an area determined from the entire area of the to-be-processed image by analyzing the entire area of the to-be-processed image with the central position of the to-be-processed image as a reference; among them, the target area can be the area with the best picture quality information in the to-be-processed image.

[0067] Step 204, the device under test obtains the color values of the pixel points in the target area of the to-be-processed image to obtain the target color value.

[0068] Among them, after determining the target region in the image to be processed, the color value of a specific pixel among the pixel points at the target region can be obtained, and then the target color value can be obtained according to the obtained color value of the specific pixel. Of course, the target color value can be the value of each color component of the specific pixel, or the total value of each color component obtained by operating on the values of each color component of the specific pixel, or the color value formed according to the values of each color component of the specific pixel.

[0069] Step 205: When the target color value of the image to be processed matches the target color threshold, the device under test determines to start the target test program corresponding to the color pattern identifier based on the color pattern identifier in the image to be processed.

[0070] Among them, the color pattern identifier is used to characterize the color information of the test identification light source; the target color thresholds corresponding to different test programs are different. That is to say, the color pattern identifier is used to indicate what color of light is emitted by the test identification light source.

[0071] In the embodiment of the present application, that the target color value of the image to be processed matches the target color threshold may mean that all the values of the color components included in the target color value of the image to be processed are within the range of the values of the respective color components included in the target color threshold, or may mean that the value of a certain color component included in the target color value of the image to be processed is within the range of the corresponding color component value included in the target color threshold, or may mean that the color value included in the target color value of the image to be processed is within the range of the color value included in the target color threshold; that is to say, the target color threshold may not be a fixed value, but a value range.

[0072] Moreover, when the target color value of the image to be processed matches the target color threshold, it can be considered that the test program for testing the device under test can be started at this time. Of course, various test programs can be determined to be started according to different target color thresholds satisfied by the target color value of the image to be processed; that is to say, the target test program can refer to the test programs for testing different performances of the device under test.

[0073] In a feasible implementation manner, that the target color value matches the target color threshold may mean that: the value of the first primary color of the target color value satisfies the first sub-color threshold, the value of the second primary color of the target color value satisfies the second sub-color threshold, and the value of the third primary color of the target color value satisfies the third sub-color threshold; the target color threshold includes the first sub-color threshold, the second sub-color threshold, and the third sub-color threshold.

[0074] Step 206: The device under test performs a target test operation based on the target test program, so that the device under test obtains the test result corresponding to the target test program.

[0075] In the embodiments of the present application, after determining the target test program, the device under test can perform a test operation corresponding to the target test program on the device under test through the target test program, and output the test result corresponding to the test operation; furthermore, the measurement and control device can collect the test result and analyze the test result to obtain an analysis result. It should be noted that the test result can be the test information output by the device under test according to different target test programs; in a feasible implementation manner, if the target test program is used to test the audio output module of the device under test, then the test result can be the audio information output by the device under test through its own audio output module.

[0076] It should be noted that the explanations of the same or corresponding steps in the embodiments of the present application and other embodiments can refer to the descriptions in other embodiments, and will not be elaborated here.

[0077] The test triggering method provided by the embodiments of the present application can trigger the start of the test by the relationship between the target color value and the target color threshold of the image to be processed after the test identification light source emits light to the environment where the test device is located, and can determine to trigger various test programs, with a short response time, high recognition rate, and not affected by the surrounding environment. It can be applied to an environment with a relatively low light brightness, or even a black box test environment, ensuring timely triggering of the start of the test. And the target color value of the image to be processed is determined according to the pixel points in the specific area of the image to be processed, which can ensure the accuracy of the determined target color value while improving the efficiency, and thus ensure more accurate activation of the target test program.

[0078] Based on the foregoing embodiments, the embodiments of the present application provide a test triggering method, as shown in Figure 3 The method includes the following steps:

[0079] Step 301: The device under test uses the image acquisition unit of the device under test to obtain the image to be processed including the test identification light source.

[0080] Wherein, the test identification light source emits light to the environment where the device under test is located.

[0081] Step 302: The device under test determines the central position where the center point of the image to be processed is located.

[0082] Step 303: The device under test takes the center point as the reference position, and determines a first sub-region with an area meeting the target area threshold from the image to be processed.

[0083] Among them, the center point of the first sub-region is the same as the center point of the image to be processed.

[0084] In the embodiments of the present application, the target area threshold can be preset according to the reference position, and it is the area size that ensures the best picture quality at the corresponding area. In a feasible implementation manner, taking the center point of the image to be processed as the center position of the first sub-region, an area with a preset ratio of the length of the entire image to be processed and a preset ratio of the width of the entire image to be processed is obtained as the first sub-region; where the preset ratios of the length and width can be the same or different. In one embodiment, 10%-50% of the area of the entire area of the image to be processed is used as the area of the first sub-region; in another feasible implementation manner, the area of the first sub-region accounts for 20% of the entire area of the image to be processed. As Figure 4 shown, the first sub-region can be Figure 4 the area where the virtual frame with a filled graphic in the middle shown in

[0085] Step 304: The device to be tested determines a second sub-region from the region of the image to be processed except the first sub-region based on the first sub-region.

[0086] Among them, the target region includes the first sub-region and the second sub-region.

[0087] It should be noted that after the first sub-region is determined, the second sub-region can be determined from the image to be processed according to the first sub-region.

[0088] In the embodiments of the present application, Step 304 can be implemented in the following manner:

[0089] Step 304a: The device to be tested determines the edge region of the image in the image to be processed.

[0090] Among them, in the image to be processed, starting from each side of the image to be processed, a reference edge parallel to each side is formed at a position where the length meets the target length threshold, and the reference edges are combined to obtain the edge region; it should be noted that the target length threshold can be a preset length value. Of course, this target length threshold can be the size of the region with poor picture quality at the edge of the image determined according to the data of historical images; it should be noted that the edge region can refer to the region where the distortion is large at the edge and the light brightness is uneven; in a feasible implementation manner, the edge region can refer to the region where the number of pixel points at the edge accounts for 5%-10% of all pixel points of the image to be processed; in another feasible implementation manner, preferably, the edge region can be the region where the number of pixel points at the edge accounts for 5% of all pixel points of the image to be processed. It can be asFigure 4 The area shown in

[0091] Step 304b: The device under test determines, from the image to be processed, the area other than the edge area and the first sub-area as the second sub-area.

[0092] It should be noted that after determining the edge area and the first sub-area, the remaining area in the image to be processed other than the edge area and the first sub-area is the second sub-area; in a feasible implementation, the second sub-area can be the area shown in Figure 4 In addition, because there will be problems with poor image quality at the edge area, the determined second sub-area does not include the edge area, thus ensuring the accuracy of the target color value; at the same time, the computational workload can be reduced and the processing efficiency can be improved.

[0093] Step 305: The device under test obtains the color values of the pixel points in the first sub-area of the image to be processed.

[0094] In the embodiments of the present application, the values of each color component of all pixel points in the first sub-area of the image to be processed can be obtained; where the color component can be used to form a color; in a feasible implementation, the color component can include three basic color components: red, green, and blue. Of course, we usually call them the "primary colors".

[0095] Step 306: The device under test determines target pixel points from the pixel points in the second sub-area of the image to be processed, with a target number of pixel points skipped between each determination.

[0096] In the embodiments of the present application, the target number can be determined according to actual requirements and the computing power of the device under test; in a feasible implementation, the target number can refer to 20 - 50; in another feasible implementation, the preferred target number can be 20. At this time, one pixel point can be selected from every 20 pixels in the pixel points of the second sub-area, and the values of each color component of the selected pixel point can be determined. In this way, in the embodiments of the present application, the target pixel points are determined from the pixel points in the second sub-area with a target number of pixel points skipped between each determination, rather than determining all the pixel points in the second sub-area, which greatly reduces the computational workload and the response time.

[0097] Step 307: The device under test obtains the color values of the pixel points at the target area of the image to be processed.

[0098] Among them, the target color value includes the color values of the pixel points in the first sub-area and the color values of the target pixel points.

[0099] It should be noted that for each color component of the device under test, the values of the color components of the pixel points in the target area of the image to be processed can be respectively operated to obtain the target color value of the image to be processed.

[0100] That is to say, the values of the color components of all pixel points in the first sub-region and the values of the color components of the pixel points selected from the second sub-region can be respectively operated according to the color components to obtain the target color value of the image to be processed. In a feasible implementation manner, the values of the color components of all pixel points in the first sub-region and the values of the color components of the pixel points selected from the second sub-region can be added and averaged to obtain the target color value. That is, the values of the red components of all pixel points in the first sub-region and the values of the red components of the pixel points selected from the second sub-region can be added and averaged; at the same time, the values of the green components of all pixel points in the first sub-region and the values of the green components of the pixel points selected from the second sub-region can be added and averaged; at the same time, the values of the blue components of all pixel points in the first sub-region and the values of the blue components of the pixel points selected from the second sub-region can be added and averaged, so as to obtain the target color value. It should be noted that the method for determining the target color value provided in the embodiments of the present application can make the result of the target test program triggered according to the target color value more accurate, and improve the efficiency and accuracy of device detection.

[0101] Step 308: When the target color value of the image to be processed matches the target color threshold, the device under test determines, based on the color pattern identifier in the image to be processed, to start the target test program corresponding to the color pattern identifier.

[0102] Among them, the color pattern identifier is used to represent the color information of the test identification light source.

[0103] Step 309: The device under test performs a target test operation based on the target test program, so that the device under test obtains the test result corresponding to the target test program.

[0104] Among them, the target color thresholds corresponding to different test programs are different.

[0105] Based on the foregoing embodiments, in other embodiments of the present application, the method may further include the following steps:

[0106] Step 310: The device under test collects the information icon on the display screen of the measurement and control device through the image acquisition unit, and analyzes the information icon to obtain an analysis result.

[0107] Among them, the information icon carries the analysis result, and the measurement and control device is used to test and analyze the test information generated by the device under test for the target test program.

[0108] In the embodiment of the present application, after analyzing the test results output by the device under test, the measurement and control device can present the corresponding analysis results in the form of information icons on the display screen of the measurement and control device; in a feasible implementation, the information icon can refer to a two-dimensional code; as Figure 5 shown, the measurement and control device can include multiple devices such as device 1, device 2, device 3, etc. At this time, the device under test can scan the two-dimensional code on the display screen of the measurement and control device through its own camera, so as to transmit the analysis results back to its own device.

[0109] It should be noted that for the explanations of the same or corresponding steps in the embodiment of the present application and other embodiments, reference can be made to the descriptions in other embodiments, which will not be elaborated here.

[0110] The test triggering method provided by the embodiment of the present application can trigger the start of the test by the relationship between the target color value and the target color threshold of the image to be processed after the test identification light source emits light to the environment where the test device is located, and can determine to trigger various test programs, with a short response time, high recognition rate, and not affected by the surrounding environment, and can be applied to an environment with a relatively low light brightness, even a black box test environment, ensuring the timely triggering of the start of the test.

[0111] Based on the foregoing embodiments, the embodiment of the present application provides a device under test, which can be applied to Figures 1 - 3 the test triggering method provided by the corresponding embodiment, as shown in Figure 6 shown, the device can include: an image acquisition unit 41, a processor 42, a memory 43, and a communication bus 44, where:

[0112] The image acquisition unit 41 is configured to acquire an image to be processed including a test identification light source; wherein, the test identification light source emits light to the environment where the device under test is located;

[0113] The communication bus 44 is used to implement the communication connection between the processor 42 and the memory 43;

[0114] The processor 42 is configured to execute the test triggering program in the memory 43 to implement the following steps:

[0115] Analyze the color value of the image to be processed to obtain the target color value of the image to be processed;

[0116] Based on the target color value and the target color threshold of the image to be processed, determine whether to start the target test program for testing the device under test.

[0117] In other embodiments of the present application, the processor 42 is configured to execute the test trigger program in the memory 43. Based on the target color value and the target color threshold of the image to be processed, it determines whether to start the target test program for testing the device to be tested, so as to implement the following steps:

[0118] When the target color value of the image to be processed matches the target color threshold, based on the color pattern identifier in the image to be processed, it determines that the device to be tested starts the target test program corresponding to the color pattern identifier;

[0119] Wherein, the color pattern identifier is used to characterize the color information of the test identification light source;

[0120] In other embodiments of the present application, the processor 42 is configured to execute the test trigger program in the memory 43, and can also implement the following steps:

[0121] Based on the target test program, it performs the target test operation, so that the device to be tested obtains the test result corresponding to the target test program;

[0122] Wherein, the target color thresholds corresponding to different test programs are different.

[0123] In other embodiments of the present application, the processor 42 is configured to execute the test trigger program in the memory 43 to analyze the color value of the image to be processed and obtain the target color value of the image to be processed, and can implement the following steps:

[0124] Determine the central position where the center point of the image to be processed is located;

[0125] Based on the central position, determine the target area of the image to be processed;

[0126] Obtain the color values of the pixel points in the target area of the image to be processed to obtain the target color value.

[0127] In other embodiments of the present application, the processor 42 is configured to execute the test trigger program in the memory 43 to determine the target area of the image to be processed based on the central position, and can implement the following steps:

[0128] Taking the center point as the reference position, determine the first sub-area in the image to be processed whose area meets the target area threshold;

[0129] Wherein, the center point of the first sub-area is the same as the center point of the image to be processed;

[0130] Based on the first sub-area, determine the second sub-area from the area of the image to be processed except the first sub-area;

[0131] Wherein, the target area includes the first sub-area and the second sub-area.

[0132] In other embodiments of the present application, the processor 42 is used to execute the test trigger program in the memory 43. Based on the first sub-region, a second sub-region can be determined from the region of the image to be processed except the first sub-region. The following steps can be implemented:

[0133] Determine the edge region of the image in the image to be processed;

[0134] Determine the region except the edge region and the first sub-region in the image to be processed as the second sub-region.

[0135] In other embodiments of the present application, the processor 42 is used to execute the test trigger program in the memory 43. Obtain the color values of the pixel points at the target region of the image to be processed to obtain the target color value range. The following steps can be implemented:

[0136] Obtain the color values of the pixel points in the first sub-region of the image to be processed;

[0137] From the pixel points in the second sub-region of the image to be processed, determine the target pixel points at every target number of pixel points;

[0138] Obtain the color values of the target pixel points of the image to be processed; wherein, the target color values include the color values of the pixel points in the first sub-region and the color values of the target pixel points.

[0139] In other embodiments of the present application, the processor 42 is used to execute the test trigger program in the memory 43. Analyze the color values of the image to be processed to obtain the target color value of the image to be processed. The following steps can be implemented:

[0140] For each color component, respectively perform operations on the values of each color component of the pixel points at the target region of the image to be processed to obtain the target color value of the image to be processed;

[0141] Wherein, the color components are used to form colors.

[0142] In other embodiments of the present application, the processor 42 is used to execute the test trigger program in the memory 43, and the following steps can also be implemented:

[0143] Collect the information icons on the display screen of the measurement and control device through the image acquisition unit, and parse the information icons to obtain the analysis result;

[0144] Wherein, the information icons carry the analysis result, and the measurement and control device is used to perform test analysis on the test information generated by the device to be tested for the target test program.

[0145] It should be noted that for the specific implementation process of the steps executed by the processor in this embodiment, reference can be made to Figures 1 - 3The implementation process in the test trigger method provided by the corresponding embodiment will not be elaborated here.

[0146] For the device under test provided by the embodiments of the present application, after the test identification light source emits light to the environment where the test device is located, the start of the test can be triggered by the relationship between the target color value and the target color threshold of the image to be processed, and various test programs can be determined to be triggered. The response time is short, the recognition rate is high, and it is not affected by the surrounding environment. It can be applied to an environment with a relatively low light brightness, even a black box test environment, ensuring timely triggering of the start of the test.

[0147] Based on the foregoing embodiments, an embodiment of the present application provides a test trigger device, which can be applied to Figures 1 - 3 In the test trigger method provided by the corresponding embodiment, refer to Figure 7 As shown, the device may include: an acquisition unit 51, a first processing unit 52, and a determination unit 53, where:

[0148] The acquisition unit 51 is configured to use the image acquisition unit of the device under test to acquire an image to be processed including a test identification light source; wherein, the test identification light source emits light to the environment where the device under test is located;

[0149] The first processing unit 52 is configured to analyze the color value of the image to be processed to obtain the target color value of the image to be processed;

[0150] The determination unit 53 is configured to determine whether to start a target test program for testing the device under test based on the target color value and the target color threshold of the image to be processed.

[0151] In other embodiments of the present application, the determination unit 53 is further configured to perform the following steps:

[0152] In the case where the target color value of the image to be processed matches the target color threshold, based on the color pattern identifier in the image to be processed, determine that the device under test starts a target test program corresponding to the color pattern identifier;

[0153] Wherein, the color pattern identifier is used to characterize the color information of the test identification light source;

[0154] Correspondingly, refer to Figure 7 As shown, the device may further include: a second processing unit 54, where

[0155] The second processing unit 54 is configured to perform a target test operation based on the target test program so that the device under test obtains a test result corresponding to the target test program;

[0156] Wherein, the target color thresholds corresponding to different test programs are different.

[0157] In other embodiments of the present application, the first processing unit 52 is further configured to perform the following steps:

[0158] Determine the central position where the center point of the image to be processed is located;

[0159] Based on the central position, determine the target area of the image to be processed;

[0160] Obtain the color values of the pixel points in the target area of the image to be processed to obtain the target color value.

[0161] In other embodiments of the present application, the first processing unit 52 is further configured to perform the following steps:

[0162] Taking the center point as the reference position, determine the first sub-region in the image to be processed whose area meets the target area threshold; wherein, the center point of the first sub-region is the same as the center point of the image to be processed;

[0163] Based on the first sub-region, determine the second sub-region from the region in the image to be processed other than the first sub-region; wherein, the target area includes the first sub-region and the second sub-region.

[0164] In other embodiments of the present application, the first processing unit 52 is further configured to perform the following steps:

[0165] Determine the edge region of the image in the image to be processed;

[0166] Determine the region other than the edge region and the first sub-region in the image to be processed as the second sub-region.

[0167] In other embodiments of the present application, the first processing unit 52 is further configured to perform the following steps:

[0168] Obtain the color values of the pixel points in the first sub-region of the image to be processed;

[0169] From the pixel points in the second sub-region of the image to be processed, determine target pixel points at intervals of the target number of pixel points;

[0170] Obtain the color values of the target pixel points in the image to be processed; wherein, the target color value includes the color values of the pixel points in the first sub-region and the color values of the target pixel points.

[0171] In other embodiments of the present application, the first processing unit 52 is further configured to perform the following steps:

[0172] For each color component, respectively perform operations on the values of each color component of the pixel points in the target area of the image to be processed to obtain the target color value of the image to be processed;

[0173] Wherein, the color component is used to form a color.

[0174] In other embodiments of the present application, the second processing unit 54 is further configured to collect information icons on the display screen of the measurement and control device through the image acquisition unit, and parse the information icons to obtain an analysis result;

[0175] Wherein, the information icon carries the analysis result, and the measurement and control device is used to test and analyze the test information generated by the device under test for the target test program.

[0176] It should be noted that for the specific implementation process of the steps executed by each unit in this embodiment, reference can be made to Figures 1 - 3 the implementation process in the test trigger method provided in the corresponding embodiment, which will not be elaborated here.

[0177] The test trigger device provided by the embodiments of the present application can trigger the start of the test by the relationship between the target color value and the target color threshold of the image to be processed after the test identification light source emits light to the environment where the test device is located, and can determine the trigger of various test programs, with a short response time, high recognition rate, and not affected by the surrounding environment. It can be applied to an environment with a relatively low light brightness, even a black box test environment, ensuring timely triggering of the start of the test.

[0178] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figure 1 、 2 the steps of the test trigger method provided in the corresponding embodiments of 4.

[0179] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0180] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate for implementing in the process Figure 1 one process or multiple processes and / or blocksFigure 1 means for the functions specified in one or more boxes.

[0181] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction means that implements the functions specified in one Figure 1 process or processes and / or boxes Figure 1 means for the functions specified in one or more boxes.

[0182] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, so that the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in one Figure 1 process or processes and / or boxes Figure 1 means for the functions specified in one or more boxes.

[0183] As described above, only the preferred embodiments of the present application are given, and are not intended to limit the protection scope of the present application.

Claims

1. A test triggering method, the method comprising: Obtaining a to-be-processed image including a test identification light source by using an image acquisition unit of a device under test; wherein, the test identification light source emits light to the environment where the device under test is located; Analyzing color values of the to-be-processed image to obtain a target color value of the to-be-processed image; Determining whether to start a target test program for testing the device under test based on the target color value and a target color threshold of the to-be-processed image.

2. The method according to claim 1, wherein the determining whether to start a target test program for testing the device under test based on the target color value and a target color threshold of the to-be-processed image comprises: In a case where the target color value of the to-be-processed image matches the target color threshold, determining, based on a color pattern identifier in the to-be-processed image, that the device under test starts a target test program corresponding to the color pattern identifier; wherein, the color pattern identifier is used to represent color information of the test identification light source; Correspondingly, the method further comprises: Performing a target test operation based on the target test program so that the device under test obtains a test result corresponding to the target test program; wherein, the target color thresholds corresponding to different started test programs are different.

3. The method according to claim 1, wherein the analyzing color values of the to-be-processed image to obtain a target color value of the to-be-processed image comprises: Determining a central position where the center point of the to-be-processed image is located; Determining a target region of the to-be-processed image based on the central position; Obtaining color values of pixel points at the target region of the to-be-processed image to obtain the target color value.

4. The method according to claim 3, wherein the determining a target region of the to-be-processed image based on the central position comprises: Taking the center point as a reference position, determining a first sub-region in the to-be-processed image whose area meets a target area threshold; wherein, the center point of the first sub-region is the same as the center point of the to-be-processed image; Based on the first sub-region, determining a second sub-region from the region of the to-be-processed image other than the first sub-region; wherein, the target region includes the first sub-region and the second sub-region; the second sub-region does not include an edge region of the to-be-processed image.

5. The method according to claim 4, wherein the determining a second sub-region from the region of the to-be-processed image other than the first sub-region based on the first sub-region comprises: Determining an edge region of the image in the to-be-processed image; Determining, from the to-be-processed image, the region other than the edge region and the first sub-region as the second sub-region.

6. The method according to claim 4 or 5, wherein the obtaining color values of pixel points at the target region of the to-be-processed image to obtain the target color value comprises: Obtaining color values of pixel points of the first sub-region of the to-be-processed image; Determining target pixel points from pixel points of the second sub-region of the to-be-processed image at intervals of a target number of pixel points; Obtain the color value of the target pixel point of the to-be-processed image; wherein, the target color value includes the color values of the pixel points in the first sub-region and the color value of the target pixel point.

7. The method according to claim 1, wherein the analyzing the color value of the to-be-processed image to obtain the target color value of the to-be-processed image includes: For each color component, respectively perform operations on the values of the color components of the pixel points in the target region of the to-be-processed image to obtain the target color value of the to-be-processed image; wherein, the color component is used to form a color.

8. The method according to claim 1, further comprising: Collect information icons on the display screen of the measurement and control device through the image acquisition unit, and parse the information icons to obtain an analysis result; wherein, the information icon carries the analysis result, and the measurement and control device is used to perform test analysis on the test information generated by the to-be-tested device for the target test program.

9. A device to be tested, the device to be tested comprising: An image acquisition unit, a processor, a memory, and a communication bus; The image acquisition unit is configured to acquire a to-be-processed image including a test identification light source; wherein, the test identification light source emits light to the environment where the to-be-tested device is located; The communication bus is used to implement a communication connection between the processor and the memory; The processor is configured to execute a test trigger program in the memory to implement the following steps: Analyze the color value of the to-be-processed image to obtain the target color value of the to-be-processed image; Based on the target color value of the to-be-processed image and the target color threshold, determine whether to start the target test program for testing the to-be-tested device.

10. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the test trigger method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Automatic testing method, device and system

    CN101521834A

  • Automatic test method and system for intelligent televisions

    CN103634592A