A method for obtaining response time of projection equipment and its application
By setting up a reflector and camera in front of the projection device, and using the controller to adjust the delay time, the response time of the projection device can be quickly obtained, which solves the problem of difficulty in evaluating the response time and achieves precise control of the camera acquisition time in the visual inspection sensor. , improving detection efficiency and quality.
Patent Information
- Application Number
- CN202211706346.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-12-29
AI Technical Summary
The response time of the projection equipment is difficult to evaluate, which affects the image collection quality and detection rhythm of the visual inspection sensor. Moreover, changes in response characteristics after long-term use lead to unstable image grayscale, affecting the high-tempo, high-quality inspection process.
By setting up a reflector and camera in front of the projection equipment, using the controller to pre-store the image and time adjustment step, gradually adjust the delay time, and calculate the response time based on the image grayscale mean and difference. The whole process takes about 5 minutes and is suitable for Precisely control the camera image acquisition time in the visual detection sensor.
Quickly and accurately obtain the response time of the image projection equipment to ensure image acquisition quality and shorten detection time. It is suitable for high-tempo online detection, and can correct changes in response characteristics caused by long-term use and improve detection accuracy.
Smart Images

Figure CN116033263B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of device parameter acquisition, and in particular to a method for acquiring the response time of a projection device and an application thereof. Background Art
[0002] Response time, that is, the reaction time to the input signal, is the reaction time of the display unit of the projection device (LED array light source, display screen, DLP projector) from dark to bright or from bright to dark; usually in ms. The quality of projection devices on the market varies greatly, and the response time also varies greatly. When the projection device is just triggered to turn on, the brightness of the projected image changes all the time and the brightness is unstable; it takes the opening time to reach the response time before the brightness tends to stabilize.
[0003] With the rapid development of industrial automation, intelligent mirror and mirror-like inspection solutions emerge in an endless stream, such as automobile paint quality inspection. The quality of the paint determines the product quality and brand image. The current mainstream inspection solution is: using a visual inspection sensor based on the phase deflection method, which includes a projection device and an array camera. The projection device projects a sinusoidal fringe pattern onto the paint surface, and the array camera collects the fringe pattern. Through phase resolution, it is identified whether there are defects (dust, paint peeling, bulging) on the paint surface. In order to meet the high beat requirements of the coating production line, the visual inspection sensor needs to complete the acquisition of the fringe image in the shortest possible time, that is, when the projection device reaches the response time, the array camera can collect the fringe pattern in the first time. However, the response time of the projection device is difficult to evaluate, and it is not easy to know when it reaches stability. At this time, triggering the camera in advance will reduce the image acquisition quality, affect the defect recognition rate and accuracy, and blindly delaying the triggering of the camera will greatly increase the image acquisition time and affect the inspection beat. In addition, when the projection device is used for a long time, the response characteristics of the projection device will change, and the response time will also change accordingly. If a fixed response time is always used to control the delayed trigger time of the camera, it will cause image grayscale instability or cause a waste of time, which is not conducive to a high-beat, high-quality image acquisition process. Summary of the invention
[0004] In order to solve the above technical problems, this paper proposes a method for obtaining the response time of the projection device. This method can quickly obtain the response time of the projection device, and the whole process only takes about 5 minutes. Applying the obtained response time to the visual detection sensor can accurately control the camera's image acquisition time, which can not only ensure the image acquisition quality, but also speed up the detection cycle, greatly shortening the detection time, and is suitable for high-beat online detection.
[0005] The technical solution is as follows:
[0006] A method for acquiring the response time of a projection device, wherein a reflector is arranged in front of the projection device, and a camera is arranged around the projection device, wherein the projection device and the camera are both controlled by a controller; and an image I and a time adjustment step length Δt are pre-stored in the controller;
[0007] Use the following steps to get the response time:
[0008] 1) Set the initial delay time;
[0009] 2) The controller triggers the projection device to turn on, and the projection device projects or displays image I, which appears on the reflective plate; after a delay time, the controller triggers the camera to turn on, and the camera collects image I on the reflective plate, stores the collected image as a measured image, and records the sequence number of the measured image according to the camera collection sequence;
[0010] Turn off the camera and projection equipment;
[0011] 3) Calculate the grayscale mean of the measured image, and associate the grayscale mean with the delay time of the current measured image and store it;
[0012] If the sequence number of the measured image is ≥ 3, proceed directly to step 5), otherwise proceed to step 4);
[0013] 4) Increase the time adjustment step Δt based on the current delay time, update the delay time, and jump to step 2);
[0014] 5) The most recently collected 2 to 5 measured images are stored as a group of evaluation images, and the difference between the grayscale means of any two images in the evaluation images is traversed. If the maximum difference is greater than the threshold A, jump to step 4); otherwise, the delay time corresponding to the current measured image is recorded as the response time required for the projection device to work stably.
[0015] In this method, the delay time is calculated from the moment the trigger command is issued, rather than from the time when the projection device fully responds to the command. For example, the display screen and DLP projector require additional time to fully start after receiving the power-on command. In this method, the delay time is calculated from the time the power-on command is received.
[0016] Furthermore, the projection device whose response time has been known is installed in the visual detection sensor, which is also provided with a camera, and the trigger delay time of the camera is set using the response time.
[0017] Preferably, when the cumulative working time of the visual detection sensor reaches a preset value, a reflective plate is arranged in front of the visual detection sensor, and the projection device and the camera in the visual sensor are controlled by a controller, and the controller is installed inside or outside the visual sensor, and the image I and the time adjustment step Δt are pre-stored in the controller;
[0018] Perform steps 1) to 5) again, and use the newly obtained response time to set the trigger delay time of the camera;
[0019] The preset value ranges from 30 days to 180 days.
[0020] Furthermore, the projection device is an LED array light source, a display screen or a DLP projector;
[0021] The reflectivity of the reflection plate is greater than 60%.
[0022] Preferably, the reflective plate is a reflective mirror or a metal flat plate, and its size covers the entire field of view of the camera.
[0023] Preferably, the surface color of the reflector is different from the color of the image I;
[0024] The image I is a monochrome image or a sinusoidal fringe image, and the color of the monochrome image is white, red, green, blue or yellow.
[0025] Further, in step 5), the threshold value A is set to 0.5-2; or, the threshold value A is obtained by:
[0026] Before step 1), the projection device is turned on, and the projection device projects or displays image I, and image I appears on the reflector; after a preset time, the camera is turned on, and image I on the reflector is continuously collected. The collected images are recorded as images II, and the grayscale mean of each image II is calculated respectively, and then the difference between the grayscale means is calculated, and the maximum value of the difference is recorded as threshold A.
[0027] Preferably, the initial delay time is equal to 0 to 1.5 times the time adjustment step Δt.
[0028] Preferably, the time adjustment step Δt is 50-500 us.
[0029] Preferably, the exposure value and gain value of the camera are preconfigured;
[0030] For ease of observation, the response time curve of the projection device is drawn using different delay times and grayscale means.
[0031] This method has the following advantages:
[0032] This method can gradually increase the trigger time of the camera, obtain the images displayed by the projection device at different times, and then evaluate the stability of the brightness according to the average grayscale to quickly obtain the response time of the projection device. The solution is simple and convenient, and has strong feasibility. The whole process only takes about 5 minutes. Applying the response time to the visual detection sensor can accurately control the camera's image acquisition time, which can not only ensure the image acquisition quality, but also speed up the detection beat, greatly shortening the detection time, and is suitable for high-beat online detection.
[0033] At the same time, this method can be used to correct the response time of projection equipment that has been used for a long time, reduce the negative impact of changes in response characteristics caused by long-term use on visual detection sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a system structure diagram in a specific implementation mode;
[0035] Figure 2 A schematic diagram of the camera trigger delay time in a specific implementation manner;
[0036] Figure 3 It is a schematic diagram of a response characteristic curve of a projection device in a specific implementation manner;
[0037] Figure 4 It is a schematic diagram comparing the response characteristic curves of the projection device in the initial use and after long-term use in a specific implementation manner. DETAILED DESCRIPTION
[0038] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0039] A method for obtaining the response time of a projection device, such as Figure 1 As shown, a reflector is arranged in front of the projection device, and a camera is arranged around the projection device. The projection device and the camera are both controlled by a controller; the controller pre-stores an image I and a time adjustment step Δt;
[0040] Use the following steps to get the response time:
[0041] 1) Set the initial delay time;
[0042] 2) The controller triggers the projection device to start, and the projection device projects or displays image I, which appears on the reflective plate; Figure 2 As shown, after the delay time, the controller triggers the camera to turn on, and the camera collects the image I on the reflector, stores the collected image as the measured image, and records the sequence number of the measured image according to the camera image collection sequence;
[0043] Turn off the camera and projection equipment;
[0044] 3) Calculate the grayscale mean of the measured image, and associate the grayscale mean with the delay time of the current measured image and store it;
[0045] If the sequence number of the measured image is ≥ 3, proceed directly to step 5), otherwise proceed to step 4);
[0046] 4) Increase the time adjustment step Δt based on the current delay time, update the delay time, and jump to step 2);
[0047] 5) The most recently collected 2 to 5 measured images are stored as a group of evaluation images, and the difference between the grayscale means of any two images in the evaluation images is traversed. If the maximum difference is greater than the threshold A, jump to step 4); otherwise, the delay time corresponding to the current measured image is recorded as the response time required for the projection device to work stably.
[0048] As an application, a projection device whose response time is known is installed in a visual detection sensor. The projection device is used to project or display a sinusoidal fringe pattern. The visual detection sensor is also provided with a camera, and the response time is used to set the trigger delay time of the camera.
[0049] After the projection equipment has been working for a long time, Figure 4 As shown, the response time will change. As a preferred embodiment, when the cumulative working time of the visual detection sensor reaches a preset value, a reflector is set in front of the visual detection sensor. The projection device and the camera in the visual sensor are controlled by a controller. The controller is installed inside or outside the visual sensor. The image I and the time adjustment step Δt are pre-stored in the controller.
[0050] Perform steps 1) to 5) again, and use the newly obtained response time to set the trigger delay time of the camera;
[0051] The preset value is 30 days to 180 days and can be set according to the actual usage time.
[0052] Specifically, the projection device is an LED array light source, a display screen or a DLP projector;
[0053] In order to obtain a measured image with better quality, the reflectivity of the reflective plate is greater than 60%.
[0054] More specifically, the reflector is a reflector or a metal flat plate, and its size covers the field of view of the camera.
[0055] The surface color of the reflector is different from the color of image I;
[0056] The image I is a monochrome image or a sinusoidal fringe image, and the color of the monochrome image is white, red, green, blue or yellow. In practical applications, the color is not limited to the above colors, and other color images except the black image can be used as the image I. The image I is preferably a white image or a sinusoidal fringe image.
[0057] The threshold A in step 5) can be set in the following two ways:
[0058] Method 1: The threshold A is set between 0.5 and 2;
[0059] Method 2: Threshold A is obtained by:
[0060] Before step 1), the projection device is turned on, and the projection device projects or displays image I, and image I appears on the reflector; after a preset time (such as 1 minute to 5 minutes), the camera is turned on, and image I (3 to 8 images) on the reflector are continuously collected. The collected images are recorded as image II, and the grayscale mean of each image II is calculated respectively, and then the difference between the grayscale means is calculated, and the maximum value of the difference is recorded as threshold A.
[0061] In specific implementation, the initial delay time is equal to 0 to 1.5 times of the time adjustment step length Δt. The time adjustment step length Δt is 50 to 500 us.
[0062] In this embodiment, the exposure value and gain value of the camera are pre-configured; for ease of observation, such as Figure 3 As shown, the response time curve of the projection device is drawn using different delay times and grayscale means.
[0063] Taking the response time detection of the projection device in the paint / mirror detection visual sensor as an example, an exemplary explanation is given:
[0064] The visual sensor uses an LED array light source to project a three-frequency four-item fringe pattern, and the camera collects the fringe pattern.
[0065] Before installing the LED array light source to the vision sensor, perform the following steps:
[0066] like Figure 1 As shown, a reflector (reflector) is arranged in front of the LED array light source, and a camera is arranged around the LED array light source. The LED array light source and the camera are both controlled by a controller; the controller pre-stores an image I (a sinusoidal fringe image) and a time adjustment step Δt=100us;
[0067] Use the following steps to get the response time:
[0068] 1) Set the initial delay time = 0;
[0069] 2) The controller triggers the LED array light source to turn on, and the LED array light source projects or displays image I, and image I appears on the reflector; after a delay time, the controller triggers the camera to turn on, and the camera collects image I on the reflector, stores the collected image as a measured image, and records the sequence number of the measured image according to the camera image collection sequence;
[0070] Turn off the camera and LED array light source;
[0071] 3) Calculate the grayscale mean of the measured image, and associate the grayscale mean with the delay time of the current measured image and store it;
[0072] If the sequence number of the measured image is ≥ 3, proceed directly to step 5), otherwise proceed to step 4);
[0073] 4) Increase the time adjustment step Δt=100us based on the current delay time, update the delay time, and jump to step 2);
[0074] 5) The three most recently collected measured images are stored as a group of evaluation images, and the difference between the grayscale means of any two images in the evaluation images is traversed. If the maximum difference is greater than the threshold A=1, jump to step 4); otherwise, the delay time corresponding to the current measured image is recorded as the response time required for the LED array light source to work stably.
[0075] The final response time of the area array LED light source is 16.2ms. The LED area array light source is installed in the visual sensor, and the visual sensor detects the paint surface of the whole car. The LED area array light source projects a fringe pattern to the detection area of the vehicle body to be tested. A single detection area needs to project 4 fringe patterns. A single vehicle has 90 detection positions, and a total of 360 fringe patterns need to be collected. In order to ensure the quality of image collection, the traditional method increases the delay trigger time of the camera and sets it to 30ms; the whole vehicle image collection process takes 10.8s, and after the response time is pre-calibrated by this method, the delay trigger time of the camera is set to 16.2ms, and the whole vehicle image collection process takes 5.832s, which is nearly half the time.
[0076] In actual applications, the entire paint inspection station (visual sensor) needs to inspect hundreds or thousands of cars, and the cumulative time will be greatly reduced, speeding up the production inspection rhythm.
[0077] The foregoing description of the specific exemplary embodiments of the present invention is presented for the purpose of illustration and description. The foregoing description is not intended to be exhaustive, nor is it intended to limit the present invention to the precise form disclosed, and it is apparent that many changes and variations are possible in light of the above teachings. The exemplary embodiments are selected and described to explain the specific principles of the present invention and its practical application, so that other technicians in the field can realize and utilize the various exemplary embodiments of the present invention and its different selected forms and modified forms. The scope of the present invention is intended to be limited by the appended claims and their equivalents.
Claims
1. A method for obtaining the response time of a projection device, characterized in that: A reflector is arranged in front of the projection device, and a camera is arranged around the projection device, wherein the projection device and the camera are both controlled by a controller; the controller pre-stores an image I and a time adjustment step Δt; Use the following steps to get the response time: 1) Set the initial delay time; 2) The controller triggers the projection device to turn on, and the projection device projects or displays image I, which appears on the reflective plate; after a delay time, the controller triggers the camera to turn on, and the camera collects image I on the reflective plate, stores the collected image as a measured image, and records the sequence number of the measured image according to the camera collection sequence; Turn off the camera and projection equipment; 3) Calculate the grayscale mean of the measured image, and associate the grayscale mean with the delay time of the current measured image and store it; If the sequence number of the measured image is ≥ 3, proceed directly to step 5), otherwise proceed to step 4); 4) Increase the time adjustment step Δt based on the current delay time, update the delay time, and jump to step 2); 5) The latest 2 to 5 measured images are stored as a group of evaluation images, and the difference between the grayscale means of any two images in the evaluation images is traversed. If the maximum difference is greater than the threshold A, jump to step 4); Otherwise, the delay time corresponding to the current measured image is recorded as the response time required for the projection device to work stably.
2. The method for obtaining the response time of the projection device according to claim 1, characterized in that: The projection device whose response time has been known is installed in the visual detection sensor, which is also provided with a camera, and the trigger delay time of the camera is set using the response time.
3. The method for obtaining the response time of the projection device according to claim 2, characterized in that: When the cumulative working time of the visual detection sensor reaches a preset value, a reflector is set in front of the visual detection sensor, and the projection device and the camera in the visual sensor are controlled by a controller, which is installed inside or outside the visual sensor, and the image I and the time adjustment step Δt are pre-stored in the controller; Perform steps 1) to 5) again, and use the newly obtained response time to set the trigger delay time of the camera; The preset value ranges from 30 days to 180 days.
4. The method for obtaining the response time of the projection device according to claim 1, characterized in that: The projection device is an LED array light source, a display screen or a DLP projector; The reflectivity of the reflection plate is greater than 60%.
5. The method for obtaining the response time of a projection device according to claim 1 or 4, characterized in that: The reflector is a reflector or a metal plane plate, and its size covers the field of view of the camera.
6. The method for obtaining the response time of a projection device according to claim 1 or 4, characterized in that: The surface color of the reflector is different from the color of the image I; The image I is a monochrome image or a sinusoidal fringe image, and the color of the monochrome image is white, red, green, blue or yellow.
7. The method for obtaining the response time of a projection device according to claim 4, characterized in that: In step 5), the threshold value A is 0.5 to 2; or, the threshold value A is obtained by: Before step 1), the projection device is turned on, and the projection device projects or displays image I, and image I appears on the reflector; after a preset time, the camera is turned on, and image I on the reflector is continuously collected. The collected images are recorded as images II, and the grayscale mean of each image II is calculated respectively, and then the difference between the grayscale means is calculated, and the maximum value of the difference is recorded as threshold A.
8. The method for obtaining the response time of a projection device according to claim 1, characterized in that: The initial delay time is equal to 0 to 1.5 times the time adjustment step Δt.
9. The method for obtaining the response time of a projection device according to claim 1, characterized in that: The time adjustment step Δt is between 50 and 500 us.
10. The method for obtaining the response time of a projection device according to claim 1, characterized in that: The exposure value and gain value of the camera are pre-configured; The response time curve of the projection device is drawn using different delay times and grayscale means.
