CN111327890A - Optical machine testing method and device and electronic equipment - Google Patents
Optical machine testing method and device and electronic equipment Download PDFInfo
- Publication number
- CN111327890A CN111327890A CN202010153485.3A CN202010153485A CN111327890A CN 111327890 A CN111327890 A CN 111327890A CN 202010153485 A CN202010153485 A CN 202010153485A CN 111327890 A CN111327890 A CN 111327890A
- Authority
- CN
- China
- Prior art keywords
- test
- image
- current
- test result
- current test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The application provides a testing method of an optical machine, which comprises the following steps: acquiring a multi-frame test image of a projection picture acquired by a camera; performing image calculation on a plurality of frames of test images to obtain a current test result; and displaying the current test result. Therefore, the current test result is obtained by using the collected multi-frame test image, the actual and real current test result can be obtained by using the test image to perform image analysis, and the wrong current test result caused by data writing in during analysis according to the log but failure in effect in the related technology is avoided; in addition, the current test result is obtained by performing image calculation on the test image, and the efficiency of obtaining the current test result is higher than that of obtaining the current test result by utilizing manual judgment in the related technology. This application still provides an ray apparatus testing arrangement, electronic equipment simultaneously, all has above-mentioned beneficial effect.
Description
Technical Field
The present disclosure relates to projector technologies, and in particular, to an optical machine testing method, an optical machine testing apparatus, and an electronic device.
Background
In the related technology, the optical machine is tested by installing a script, so that the optical machine continuously runs for a specified time, a log is recorded in the running process, and after the running is finished, a worker copies the log through a system, manually analyzes the log, judges the error times and obtains the current test result. However, the current test result cannot be accurately obtained by analyzing the log, and because the result of the log record is strongly related to hardware, even if the log is displayed normally, the display is not normal because the data writing is not effective, the current test result obtained by analyzing the log has the disadvantages of low accuracy and high time consumption.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide an optical machine testing method, an optical machine testing device and electronic equipment, and the efficiency and accuracy of optical machine testing can be improved. The specific scheme is as follows:
the application discloses a testing method of an optical machine, which comprises the following steps:
acquiring a multi-frame test image of a projection picture acquired by a camera;
performing image calculation on a plurality of frames of test images to obtain a current test result;
and displaying the current test result.
Optionally, the performing image calculation on a plurality of frames of the test images to obtain a current test result includes:
performing brightness calculation on the test image to obtain a brightness value;
determining the average brightness value of the test images with continuous preset frame numbers according to the brightness value;
and determining the current test result according to the relation between the brightness average value and a preset average value.
Optionally, the determining the current test result according to the relationship between the brightness average value and a preset average value includes:
when the brightness average value is smaller than the preset average value, judging whether the image is a no-projection image or a dark field image;
and determining the current test result according to the judgment result.
Optionally, the performing image calculation on multiple frames of the test images to obtain a current test result includes:
performing definition calculation on the test image to obtain a definition value;
and determining the current test result according to the definition value.
Optionally, before obtaining the multi-frame test image of the projection picture acquired by the camera, the method further includes:
setting a switch test condition of an optical machine cabin door;
correspondingly, the current test result comprises the successful hatch opening and the failed hatch opening.
Optionally, before obtaining the multi-frame test image of the projection picture acquired by the camera, the method further includes:
setting the on-off test condition of the optical machine;
correspondingly, the current test result comprises the lighting success and the lighting failure.
Optionally, when the current test result is that the lighting is successful, correspondingly, after performing image calculation on multiple frames of the test images to obtain the current test result, the method further includes:
calculating the definition change rate of a third target test image and a fourth target test image in a plurality of frames of test images;
judging whether the definition change rate is smaller than a preset change rate threshold value or not;
if the projection image is smaller than the preset change rate threshold value, determining that the projection image is abnormal;
and if the projection image is larger than or equal to the preset change rate threshold value, determining that the projection image is normal.
Optionally, after displaying the current test result, the method further includes:
judging whether the current test frequency meets a preset test frequency in the startup and shutdown condition test;
if yes, storing all test results in a database; if not, executing the step of acquiring the multi-frame test image of the projection picture acquired by the camera until the current test times meet the preset test times, and storing all the test results in the database;
and outputting all the test results.
The application provides a ray apparatus testing arrangement, includes:
the test image acquisition module is used for acquiring a multi-frame test image of a projection picture acquired by the camera;
the image calculation module is used for carrying out image calculation on a plurality of frames of test images to obtain a current test result;
and the current test result display module is used for displaying the current test result.
The application provides an electronic device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the optical machine testing method when executing the computer program.
The application provides a testing method of an optical machine, which comprises the following steps: acquiring a multi-frame test image of a projection picture acquired by a camera; performing image calculation on a plurality of frames of test images to obtain a current test result; and displaying the current test result.
Therefore, the current test result is obtained by using the collected multi-frame test image, the actual and real current test result can be obtained by using the test image to perform image analysis, and the wrong current test result caused by data writing in during analysis according to the log but failure in effect in the related technology is avoided; in addition, the current test result is obtained by performing image calculation on the test image, and the efficiency of obtaining the current test result is higher than that of obtaining the current test result by utilizing manual judgment in the related technology.
This application still provides a ray apparatus testing arrangement, an electronic equipment simultaneously, all has above-mentioned beneficial effect, no longer gives unnecessary details here.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a testing method of an optical machine according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of current test result acquisition according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of another current test result obtaining method provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of an optical machine testing apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related technology, the optical machine is tested by installing a script, so that the optical machine continuously runs for a specified time, a log is recorded in the running process, and after the running is finished, a worker copies the log through a system, manually analyzes the log, judges the error times and obtains the current test result. However, the current test result cannot be accurately obtained by analyzing the log, and because the result of the log record is strongly related to hardware, even if the log is displayed normally, the display is not normal because the data writing is not effective, the current test result obtained by analyzing the log has the disadvantages of low accuracy and high time consumption. Based on the above technical problem, the present embodiment provides a method for testing an optical device, specifically referring to fig. 1, where fig. 1 is a flowchart of the method for testing an optical device provided in the present embodiment, and the method specifically includes:
and S110, acquiring a multi-frame test image of a projection picture acquired by the camera.
In the embodiment, the projector performs projection, projects a projection picture in a projection area, and collects a plurality of frames of projection images including the projection picture by using the camera. The frame number is not limited in the embodiment, and the user can customize the setting. It can be understood that, the testing for the optical engine is generally performed periodically, that is, in a testing period, a plurality of tests are performed, and the present embodiment provides a description about one test in steps S110 to S130 to obtain a current testing result. In this embodiment, the projection picture is not limited, and the user can set the projection picture according to actual requirements.
And S120, performing image calculation on the multi-frame test image to obtain a current test result.
In this embodiment, image calculation is performed on multiple frames of test images to obtain a current test result, it can be understood that after the test is completed in the whole test period, image calculation is sequentially performed on multiple frames of test images of each test to obtain the current test result, or image calculation is performed on multiple frames of test images of the current test to obtain the current test result during the test period, and users can select the current test result according to actual requirements in the two modes. In this embodiment, the mode of image calculation is not limited, the brightness calculation may be performed on the test image, the definition calculation may also be performed, the corresponding current test result may be set according to the test requirement, and when the optical machine test method is to test the opening and closing of the optical machine door, the current test result includes the successful opening of the door and the failed opening of the door; when the optical machine testing method is an on-off test of the optical machine, the current testing result comprises successful lighting and failed lighting.
In an implementation manner, please refer to fig. 2, where fig. 2 is a schematic flowchart of a current test result obtaining process provided in an embodiment of the present application, and the process includes:
and S121a, performing brightness calculation on the test image to obtain a brightness value.
In this embodiment, the performing the luminance calculation on the test image may include: acquiring an initial brightness value of each pixel in a test image, calculating an image brightness average value of the test image according to the initial brightness value of each pixel in the test image, and taking the image brightness average value as a brightness value; or may include: converting the initial brightness value of each pixel in the test image into a logarithmic space to calculate the logarithmic space brightness average value of the test image; carrying out anti-log calculation on the logarithmic space brightness average value of the test image to obtain an image brightness average value of the test image, and taking the image brightness average value as a brightness value; or may include: acquiring reference images of a projection picture under different brightness values, matching the test image with the reference images in sequence, determining that the brightness value of the test image is consistent with the reference brightness value of the reference image successfully matched when the matching is successful, and taking the reference brightness value as the brightness value; of course, other calculation modes can be provided, and the user can customize the setting.
S122a, determining the average brightness value of the test images with continuous preset frame numbers according to the brightness value.
And selecting test images with continuous preset frame numbers from the multi-frame test images, and determining the average brightness value according to the brightness value. For example, the test images of consecutive preset frames include image a, image B, image C, image D, and image E, and the corresponding brightness values are a, B, C, D, and E in sequence, so that the average brightness value is (a + B + C + D + E)/5.
And S123a, determining the current test result according to the relation between the brightness average value and the preset average value.
In this embodiment, the preset average value is not limited, and the user can customize the setting. It is understood that when the brightness average value is greater than or equal to the preset average value, the current test result is determined as the first result. For example, when the optomechanical test method is to test the opening and closing of the optomechanical door, the first result is that the door is successfully opened; when the optical machine testing method is an on-off test of the optical machine, the first result is that the lighting is successful.
Of course, when the brightness average value is smaller than the preset average value, the current test result is determined as the second result, for example, when the opto-mechanical test method is to test the opening and closing of the opto-mechanical door, the first result is that the door fails to open; when the opto-mechanical testing method is an on-off test of the opto-mechanical, the first result is a light-up failure.
Further, when the average brightness value is smaller than the preset average value, two situations may exist, the first is that the test image is an image of a projection image, and a dark image, i.e., a dark field image, is displayed, and the other is a non-projection image, i.e., the optical engine is not bright or the door of the optical engine is not opened, so that the accuracy of the obtained result is low only by judging that the optical engine is not bright or the door of the door is not opened by using the average brightness value smaller than the preset average value. In order to solve the technical problem, the embodiment provides a scheme that when the brightness average value is smaller than a preset average value, whether the image is a no-projection image or a dark field image is judged; and determining the current test result according to the judgment result. It can be understood that the optical engine is not bright or the optical engine door is not opened, and the difference between the brightness of the displayed dark image is small, assuming that the brightness value is 200 at the maximum, the brightness of the dark field is 50, and the brightness is 10 when the dark image is not bright, the change value of the brightness jump occurring in the continuous frames is small and should be lower than the difference value 40 between the brightness of the dark field and the brightness when the dark image is not bright, and the dark field and the non-bright condition (no projection image) can be identified through such a change rule. Therefore, the precision of the test result can be improved by the mode.
In another implementation manner, please refer to fig. 3, where fig. 3 is a schematic flow chart of another current test result acquisition provided in the embodiment of the present application, including:
s121b, performing definition calculation on the test image to obtain a definition value.
The present embodiment does not limit the way of calculating the sharpness value, and reference may be made to the related art.
And S122b, determining the current test result according to the definition value.
Specifically, when the definition value is greater than or equal to a preset definition threshold value, the current test result is a first current test result; and when the definition value is smaller than the preset definition threshold value, the current test result is a second current test result. Specifically, when the opto-mechanical testing method is to test the opening and closing of the opto-mechanical door, the first current test result is that the door is successfully opened, and the second current test result is that the door is failed to be opened; when the optical machine testing method is an on-off test of the optical machine, the first result is that the lighting is successful, and the second current testing result is that the lighting is failed.
And S130, displaying the current test result.
And displaying the current test result on the display device, wherein the current test result comprises but is not limited to the test data, the curve corresponding to the test data and the test result.
Based on the technical scheme, the current test result is obtained by using the collected multi-frame test image, and the actual and real current test result can be obtained by using the test image to perform image analysis, so that the wrong current test result caused by data writing in the related technology when analysis is performed according to the log but failure in effect is avoided; in addition, the current test result is obtained by performing image calculation on the test image, and the efficiency of obtaining the current test result is higher than that of obtaining the current test result by utilizing manual judgment in the related technology.
Based on the above embodiments, this embodiment provides a specific optomechanical testing method, mainly tests the switch of the optomechanical door, including:
setting a switch test condition of an optical machine cabin door; acquiring a multi-frame test image of a projection picture acquired by a camera; performing image calculation on a plurality of frames of test images to obtain a current test result; and displaying a current test result, wherein the current test result comprises successful cabin door opening and failed cabin door opening.
The switch test conditions of the optical engine compartment door comprise the test times, the test time and the opening and closing time of the optical engine compartment in each test.
Therefore, the current test result is automatically obtained by carrying out image calculation on the multi-frame test image of the projection image acquired by the camera, the low accuracy that the opening is successfully determined only by inputting the data of the equipment for controlling the opening of the optical engine cabin door according to log analysis in the related technology is avoided, the conditions that the data is not effective and the optical engine cabin door is not opened are ignored, the test result is automatically obtained in the embodiment, manual analysis is not needed, and the test efficiency for testing the opening and closing of the optical engine cabin door is greatly improved.
Based on the foregoing embodiments, this embodiment provides a specific optical machine testing method, and the main on/off test of an optical machine includes:
setting the on-off test condition of the optical machine; acquiring a multi-frame test image of a projection picture acquired by a camera; performing image calculation on a plurality of frames of test images to obtain a current test result; and displaying the current test result, wherein the current test result comprises the successful lighting and the failed lighting.
Specifically, a test device is prepared, and the electronic device projecting the installed test software can be a PC; running the tested projection and PC for 24 to 72 hours; the PC views the generated test report (the camera takes a projection picture). Specifically, in the continuous operation process, an optical machine switch test condition is set in the PC so that the PC can control the optical machine switch, wherein the on-off test condition includes, but is not limited to, the number of tests, the time of the tests, and the time of turning on and off the optical machine during each test, the camera collects a plurality of frames of test images of a projection picture, then the PC performs image calculation on the plurality of frames of test images to obtain a current test result, and displays the test result, and after a period of test is completed, a test report can be viewed at the PC, and the test report includes all the test results and the test images.
Therefore, the embodiment reduces the manual participation in the test and improves the working efficiency; through program analysis test image, more accurate, the people only need set up test platform and test environment, starts the testing tool, and the program can automated inspection, if make mistakes can take a picture the record, can output the test report after accomplishing.
Further, in the on/off test of the optical machine, the current test result is that the lighting is successful, and correspondingly, the image calculation is performed on the multi-frame test image, and after the current test result is obtained, the method further includes: calculating the definition change rate of a third target test image and a fourth target test image in the multi-frame test images; judging whether the definition change rate is smaller than a preset change rate threshold value or not; if the change rate is smaller than the preset change rate threshold value, determining that the projection picture is abnormal; and if the change rate is larger than or equal to the preset change rate threshold value, determining that the projection picture is normal.
Wherein the sharpness change rate is equal to the absolute value of the sharpness difference/interval time. For example, when the sharpness value of the first target test image H is H, the image capturing time is t3, the sharpness value of the second target test image Y is Y, and the image capturing time is t4, the sharpness change rate is the absolute value of the sharpness difference/interval time, i.e., | (H-Y)/(t4-t3) |.
Specifically, when the definition change rate is greater than or equal to the preset change rate threshold, it is determined that the projection picture is normal, and when the definition change rate is less than the preset change rate threshold, it is determined that the projection picture is abnormal, which may be in a wire drawing or screen-blooming state. Therefore, whether the projection picture is normal or abnormal can be determined through the definition change rate, and the universality of the optical machine test is improved.
Further, after displaying the current test result, the method further includes: judging whether the current test frequency meets a preset test frequency in the startup and shutdown condition test; if yes, storing all test results in a database; if the current test frequency does not meet the preset test frequency, executing the step of acquiring the multi-frame test image of the projection picture acquired by the camera until the current test frequency meets the preset test frequency, and storing all test results into a database; and outputting all test results.
It can be understood that 1 is added to the current number of tests after each test is completed, so as to ensure that the completed tests of the current test period are accurately recorded. When the test is finished, all test results are stored in the database so as to be convenient for the user to consult at any time. Of course, for the optical machine test, the test result has only two kinds of results, after all the test results are output, the times of the two kinds of test results in the test of the period are counted, and the final test result of the period is determined according to the times.
For example, when the optomechanical test method is to test the opening and closing of the optomechanical door, the door opening success frequency is g, the ratio is α, when α is greater than or equal to a first preset ratio, the door testing success is determined, when the optomechanical test method is to test the opening and closing of the optomechanical door, the lighting success frequency is f, the ratio is β, and when β is greater than or equal to a second preset ratio, the opening and closing of the optomechanical door is determined to be successful.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an optical machine testing apparatus provided in an embodiment of the present application, including:
a test image obtaining module 410, configured to obtain a multi-frame test image of a projection image collected by a camera;
the image calculation module 420 is configured to perform image calculation on multiple frames of test images to obtain a current test result;
and a current test result display module 430, configured to display the current test result.
Preferably, the image calculation module 420 includes:
the brightness value calculation unit is used for performing brightness calculation on the test image to obtain a brightness value;
the brightness average value determining unit is used for determining the brightness average value of the test image with the continuous preset frame number according to the brightness value;
and the first current test result determining unit is used for determining the current test result according to the relation between the brightness average value and the preset average value.
Preferably, the first current test result determining unit includes:
the judging subunit is used for judging whether the image is a non-projection image or a dark field image when the brightness average value is smaller than the preset average value;
and the first current test result determining subunit is used for determining the current test result according to the judgment result.
Preferably, the image calculation module 420 includes:
the current test result unit is used for performing definition calculation on the test image to obtain a definition value;
and the second current test result determining unit is used for determining the current test result according to the definition value.
Preferably, the method further comprises the following steps:
the cabin door switch test condition setting module is used for setting switch test conditions of the optical machine cabin door;
correspondingly, the current test result comprises the successful hatch opening and the failed hatch opening.
Preferably, the method further comprises the following steps:
the on-off test condition setting module is used for setting on-off test conditions of the optical machine;
correspondingly, the current test result includes a light-up success and a light-up failure.
Preferably, the current test result is a successful lighting, and correspondingly, the method further includes:
the definition change rate calculation module is used for calculating the definition change rates of a third target test image and a fourth target test image in the multi-frame test images;
the definition change rate judging module is used for judging whether the definition change rate is smaller than a preset change rate threshold value or not;
the projection picture abnormity determining module is used for determining that the projection picture is abnormal if the projection picture is smaller than a preset change rate threshold value;
and the projection picture normality determining module is used for determining that the projection picture is normal if the projection picture is larger than or equal to a preset change rate threshold value.
Preferably, the method further comprises the following steps:
the judging module is used for judging whether the current testing times meet the preset testing times in the startup and shutdown condition test;
the execution module is used for storing all the test results into the database if the test results are met; if the current test frequency does not meet the preset test frequency, executing the step of acquiring the multi-frame test image of the projection picture acquired by the camera until the current test frequency meets the preset test frequency, and storing all test results into a database;
and the output module is used for outputting all the test results.
Since the embodiment of the opto-mechanical testing apparatus part corresponds to the embodiment of the opto-mechanical testing method part, reference is made to the description of the embodiment of the opto-mechanical testing apparatus part for the embodiment of the opto-mechanical testing method part, which is not repeated here.
In the following, an electronic device provided by an embodiment of the present application is introduced, and the electronic device described below and the optical machine testing method described above may be referred to correspondingly.
The present embodiment provides an electronic device, including:
a memory for storing a computer program;
the processor is used for realizing the steps of the optical machine testing method when executing the computer program.
Specifically, the camera is used for collecting the projection picture, the camera can be a high-speed camera, and the whole testing process needs the high-speed camera (more than 30Hz) to record the projection picture. In some embodiments, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: acquiring a multi-frame test image of a projection picture acquired by a camera; performing image calculation on a plurality of frames of test images to obtain a current test result; and displaying the current test result.
In some embodiments, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: performing brightness calculation on the test image to obtain a brightness value; determining the average brightness value of the test images with continuous preset frame numbers according to the brightness value; and determining the current test result according to the relation between the brightness average value and the preset average value.
In some embodiments, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: when the brightness average value is smaller than a preset average value, judging whether no projection image or a dark field image exists; and determining the current test result according to the judgment result.
In some embodiments, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: performing definition calculation on the test image to obtain a definition value; and determining the current test result according to the definition value.
In some embodiments, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: setting a switch test condition of an optical machine cabin door; correspondingly, the current test result comprises the successful hatch opening and the failed hatch opening.
In some embodiments, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: setting the on-off test condition of the optical machine; correspondingly, the current test result includes a light-up success and a light-up failure.
In some embodiments, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: calculating the definition change rate of a third target test image and a fourth target test image in the multi-frame test images when the current test result is that the lighting is successful; judging whether the definition change rate is smaller than a preset change rate threshold value or not; if the change rate is smaller than the preset change rate threshold value, determining that the projection picture is abnormal; and if the change rate is larger than or equal to the preset change rate threshold value, determining that the projection picture is normal.
In some embodiments, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: judging whether the current test frequency meets a preset test frequency in the startup and shutdown condition test; if yes, storing all test results in a database; if the current test frequency does not meet the preset test frequency, executing the step of acquiring the multi-frame test image of the projection picture acquired by the camera until the current test frequency meets the preset test frequency, and storing all test results into a database; and outputting all test results.
The brightness or definition of the test image of the video stream needs to be calculated to obtain the brightness value or definition value, and meanwhile, the test result obtained through calculation can be displayed in real time in a curve, so that the performance requirement on PC hardware for testing, namely electronic equipment, is high. Aiming at the on-off test of the optical machine, the test in one period is to continuously test the optical machine with specified duration and continuously switch on and off. The pressure test of components and parts, it is mainly DLP drives that the ray apparatus is inside, this device is IIC communication, and the switch ray apparatus design master control IIC sets up the register in DLP, can be effectively to IIC reliability, hardware compatibility test like this. In this embodiment, a multi-thread or multi-process software scheme framework may be adopted, and video recording (multi-frame test images of projection images are collected by a camera), image calculation, and test results are displayed on respective threads, so that the real-time requirement can be met, and the hardware requirement on a PC can be reduced. Specifically, the interfaces of the video recording, the image calculation and the test result display a thread or a process respectively, the video recording uses an external camera, the computer has high running speed, the camera needs to be waited for preparing images when the images are read, and if multithreading or multiprocessing is adopted, the task can be switched to the image calculation or the interface display in the waiting process, so that the timeliness of the test system can be improved. Of course, in this embodiment, a single thread may be used for testing and self-defining setting, as long as the purpose of this embodiment can be achieved.
Since the embodiment of the electronic device portion corresponds to the embodiment of the opto-mechanical testing method portion, please refer to the description of the embodiment of the opto-mechanical testing method portion for the embodiment of the electronic device portion, and details thereof are not repeated here.
The following describes a computer-readable storage medium provided by embodiments of the present application, and the computer-readable storage medium described below and the method described above may be referred to correspondingly.
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and when being executed by a processor, the computer program implements the steps of the above optical engine testing method.
Since the embodiment of the computer-readable storage medium portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the computer-readable storage medium portion, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The optical machine testing method, the optical machine testing device, the electronic device and the computer readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
Claims (10)
1. An optical machine testing method is characterized by comprising the following steps:
acquiring a multi-frame test image of a projection picture acquired by a camera;
performing image calculation on a plurality of frames of test images to obtain a current test result;
and displaying the current test result.
2. The optical-mechanical testing method of claim 1, wherein the image calculation for a plurality of frames of the test image to obtain the current testing result comprises:
performing brightness calculation on the test image to obtain a brightness value;
determining the average brightness value of the test images with continuous preset frame numbers according to the brightness value;
and determining the current test result according to the relation between the brightness average value and a preset average value.
3. The testing method of the optical-mechanical device according to claim 2, wherein the determining the current testing result according to the relationship between the brightness average and a preset average comprises:
when the brightness average value is smaller than the preset average value, judging whether the image is a no-projection image or a dark field image;
and determining the current test result according to the judgment result.
4. The optical-mechanical testing method of claim 1, wherein the image calculation for a plurality of frames of the test image to obtain the current testing result comprises:
performing definition calculation on the test image to obtain a definition value;
and determining the current test result according to the definition value.
5. The optical-mechanical testing method according to claim 1, wherein before obtaining the multi-frame test image of the projection image collected by the camera, the method further comprises:
setting a switch test condition of an optical machine cabin door;
correspondingly, the current test result comprises the successful hatch opening and the failed hatch opening.
6. The optical-mechanical testing method according to claim 1, wherein before obtaining the multi-frame test image of the projection image collected by the camera, the method further comprises:
setting the on-off test condition of the optical machine;
correspondingly, the current test result comprises the lighting success and the lighting failure.
7. The testing method of the optical-mechanical device according to claim 6, wherein when the current testing result is that the lighting is successful, correspondingly, the image calculation is performed on a plurality of frames of the testing image, and after the current testing result is obtained, the method further comprises:
calculating the definition change rate of a third target test image and a fourth target test image in a plurality of frames of test images;
judging whether the definition change rate is smaller than a preset change rate threshold value or not;
if the projection image is smaller than the preset change rate threshold value, determining that the projection image is abnormal;
and if the projection image is larger than or equal to the preset change rate threshold value, determining that the projection image is normal.
8. The optical-mechanical testing method according to claim 6, wherein after displaying the current testing result, further comprising:
judging whether the current test frequency meets a preset test frequency in the startup and shutdown condition test;
if yes, storing all test results in a database; if not, executing the step of acquiring the multi-frame test image of the projection picture acquired by the camera until the current test times meet the preset test times, and storing all the test results in the database;
and outputting all the test results.
9. An opto-mechanical testing device, comprising:
the test image acquisition module is used for acquiring a multi-frame test image of a projection picture acquired by the camera;
the image calculation module is used for carrying out image calculation on a plurality of frames of test images to obtain a current test result;
and the current test result display module is used for displaying the current test result.
10. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the opto-mechanical testing method according to any one of claims 1 to 8 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010153485.3A CN111327890B (en) | 2020-03-06 | 2020-03-06 | Optical machine testing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010153485.3A CN111327890B (en) | 2020-03-06 | 2020-03-06 | Optical machine testing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111327890A true CN111327890A (en) | 2020-06-23 |
CN111327890B CN111327890B (en) | 2021-12-28 |
Family
ID=71169226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010153485.3A Active CN111327890B (en) | 2020-03-06 | 2020-03-06 | Optical machine testing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111327890B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113301323A (en) * | 2020-07-14 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Automatic focusing test system and method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014093604A (en) * | 2012-11-01 | 2014-05-19 | Ricoh Co Ltd | Image projection device evaluation method, image projection device, image projection device manufacturing method, and image projection device evaluation system |
JP5775414B2 (en) * | 2011-10-12 | 2015-09-09 | 日本電信電話株式会社 | Projection brightness adjustment method, projection brightness adjustment apparatus, computer program, and recording medium |
CN105828055A (en) * | 2016-05-20 | 2016-08-03 | 海信集团有限公司 | Running control method and system of laser projection device |
CN106162126A (en) * | 2016-08-24 | 2016-11-23 | 青岛海信宽带多媒体技术有限公司 | The rendering method of projection picture and device |
CN106291869A (en) * | 2016-09-27 | 2017-01-04 | 青岛海信宽带多媒体技术有限公司 | The control method of a kind of projector start auto-focusing and device |
CN107566825A (en) * | 2016-06-30 | 2018-01-09 | 鸿富锦精密工业(武汉)有限公司 | Projecting apparatus, projecting apparatus monitoring system and projecting apparatus monitoring method |
CN107990980A (en) * | 2017-12-25 | 2018-05-04 | 深圳深索智能科技有限公司 | A kind of projector brightness on-line detecting system |
CN109104608A (en) * | 2018-10-26 | 2018-12-28 | 深圳Tcl新技术有限公司 | TV performance test methods, equipment and computer readable storage medium |
-
2020
- 2020-03-06 CN CN202010153485.3A patent/CN111327890B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5775414B2 (en) * | 2011-10-12 | 2015-09-09 | 日本電信電話株式会社 | Projection brightness adjustment method, projection brightness adjustment apparatus, computer program, and recording medium |
JP2014093604A (en) * | 2012-11-01 | 2014-05-19 | Ricoh Co Ltd | Image projection device evaluation method, image projection device, image projection device manufacturing method, and image projection device evaluation system |
CN105828055A (en) * | 2016-05-20 | 2016-08-03 | 海信集团有限公司 | Running control method and system of laser projection device |
CN109089095A (en) * | 2016-05-20 | 2018-12-25 | 海信集团有限公司 | A kind of laser projection device progress control method |
CN107566825A (en) * | 2016-06-30 | 2018-01-09 | 鸿富锦精密工业(武汉)有限公司 | Projecting apparatus, projecting apparatus monitoring system and projecting apparatus monitoring method |
CN106162126A (en) * | 2016-08-24 | 2016-11-23 | 青岛海信宽带多媒体技术有限公司 | The rendering method of projection picture and device |
CN106291869A (en) * | 2016-09-27 | 2017-01-04 | 青岛海信宽带多媒体技术有限公司 | The control method of a kind of projector start auto-focusing and device |
CN107990980A (en) * | 2017-12-25 | 2018-05-04 | 深圳深索智能科技有限公司 | A kind of projector brightness on-line detecting system |
CN109104608A (en) * | 2018-10-26 | 2018-12-28 | 深圳Tcl新技术有限公司 | TV performance test methods, equipment and computer readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113301323A (en) * | 2020-07-14 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Automatic focusing test system and method |
Also Published As
Publication number | Publication date |
---|---|
CN111327890B (en) | 2021-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106951346B (en) | Response time testing method and device | |
CN106231297B (en) | The detection method and device of camera | |
RU2602352C2 (en) | System of automatic testing for digital display systems | |
CN109167997B (en) | Video quality diagnosis system and method | |
US20140267679A1 (en) | Indentation hardness test system having an autolearning shading corrector | |
CN111327890B (en) | Optical machine testing method and device and electronic equipment | |
CN111552603A (en) | Mobile payment machine tool testing method and testing system | |
WO2024139668A1 (en) | Display screen icon flickering identification method, identification apparatus, and electronic device | |
CN113835028A (en) | Automatic detection method for holder motor, terminal and computer readable storage medium | |
CN112073713B (en) | Video leakage test method, device, equipment and storage medium | |
CN113452991A (en) | Lens focusing state determining method, device, equipment and storage medium | |
CN110113630B (en) | Video detection method and device, electronic equipment and storage medium | |
CN108197025B (en) | Instrument pressure testing system and instrument pressure testing method | |
CN113810673B (en) | Projector uniformity testing method and device and computer readable storage medium | |
CN110108448B (en) | Automatic defect detection method for dynamic logo | |
CN114047193A (en) | Production monitoring method and monitoring device for zipper sewing machine | |
CN114496326A (en) | Monitoring and identifying method and system for man-machine interaction operation of nuclear power plant | |
CN103824143A (en) | Component assembly indicating system and method | |
CN114116464A (en) | Image processing test method and device | |
CN113419914A (en) | Stability testing method based on machine vision detection | |
JP6948294B2 (en) | Work abnormality detection support device, work abnormality detection support method, and work abnormality detection support program | |
CN113923443A (en) | Network video recorder testing method and device and computer readable storage medium | |
CN114390276B (en) | Automatic testing method and system | |
CN117667536B (en) | Method and device for debugging screen of vehicle-mounted system, computer equipment and storage medium | |
CN118037602B (en) | Image quality optimization method, device, electronic equipment, medium and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |