Flatness detection method and device, readable storage medium and electronic equipment
By acquiring detection distance and speed configuration information, and using non-professional devices such as a mouse, combined with correction coefficients, the problem of low accuracy in flatness detection was solved, achieving fast and accurate flatness detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TELECOM CORP LTD
- Filing Date
- 2022-09-22
- Publication Date
- 2026-04-17
AI Technical Summary
The accuracy of flatness testing results in existing technologies is low, especially in the absence of professional tools, where human estimation leads to inaccurate results.
By acquiring the detection distance of the object to be detected and the speed configuration information of the display device and the detection device, and using non-professional detection devices such as mice, combined with correction coefficients, the predicted and actual number of pixels the pointer moves on the display device are determined, thereby judging the flatness.
Even in the absence of specialized tools, it can quickly and accurately determine the flatness test results, meeting users' needs for flatness testing anytime, anywhere.
Smart Images

Figure CN115655192B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of measurement technology, and more specifically, to methods, apparatus, readable storage media, and electronic devices for flatness testing. Background Technology
[0002] Currently available flatness testing tools are primarily used in construction projects or the decoration and renovation industry. For example, professional flatness testing tools exist for roads, bridges, and floors. In situations where specialized flatness testing tools are unavailable, such as at a company or home where specialized tools are not purchased, flatness testing is often performed by visual estimation, resulting in less accurate flatness test results. Summary of the Invention
[0003] This invention provides a method, apparatus, readable storage medium, and electronic device for flatness testing, in order to solve the technical problem of low accuracy of flatness testing results in the prior art.
[0004] According to a first aspect of the present invention, a method for testing flatness is provided, comprising:
[0005] The detection distance corresponding to the object to be detected is obtained, and the speed configuration information related to the display device and the detection device is obtained; the detection device is connected to the display device, and the display device displays a pointer for indicating the detection device; the movement of the detection device on the surface of the object to be detected causes the pointer to move on the display device.
[0006] Based on the detection distance and the speed configuration information, the predicted number of moving pixels of the pointer on the display device is determined;
[0007] The actual number of pixels the pointer moves on the display device after the detection device moves the detection distance on the surface of the object to be detected;
[0008] Based on the predicted number of moving pixels and the actual number of moving pixels, the flatness detection result of the object to be detected is determined.
[0009] Optionally, determining the flatness detection result of the object to be detected based on the predicted number of moving pixels and the actual number of moving pixels includes:
[0010] When the predicted number of moving pixels is equal to the actual number of moving pixels, a flatness detection result is determined to indicate that the object to be detected is flat.
[0011] If the predicted number of moving pixels is not equal to the actual number of moving pixels, a flatness detection result is determined to indicate that the object to be detected is uneven.
[0012] Optionally, the method further includes:
[0013] Obtain the correction coefficient corresponding to the detection device;
[0014] Determining the predicted number of moving pixels of the pointer on the display device based on the detection distance and the speed configuration information includes:
[0015] Based on the detection distance, the speed configuration information, and the correction coefficient, the predicted number of moving pixels of the pointer on the display device is determined.
[0016] Optionally, the speed configuration information includes first configuration information and second configuration information, wherein the first configuration information is used to indicate the moving speed of the detection device, and the second configuration information is used to indicate the ratio of the moving speed of the pointer in the display device to the moving speed of the detection device; determining the predicted number of moving pixels of the pointer on the display device based on the detection distance, the speed configuration information, and the correction coefficient includes:
[0017] Determine the first product result between the detection distance, the first configuration information, and the second configuration information;
[0018] Based on the first product result, the first configuration information, and the correction coefficient, the predicted number of moving pixels of the pointer on the display device is determined.
[0019] Optionally, determining the predicted number of moving pixels of the pointer on the display device based on the first product result, the first configuration information, and the correction coefficient includes:
[0020] Determine the second product result of the first configuration information and the correction coefficient;
[0021] The difference between the first product result and the second product result is determined as the predicted number of moving pixels of the pointer on the display device.
[0022] Optionally, the detection device includes a mouse, and the pointer includes a mouse pointer.
[0023] Optionally, before the step of obtaining the detection distance corresponding to the object to be detected, the method further includes:
[0024] Set the positioning accuracy of the mouse to a preset value to configure the first configuration information in the speed configuration information;
[0025] The movement speed of the mouse pointer on the display device is set to the movement speed of the mouse to configure the second configuration information in the speed configuration information.
[0026] According to a second aspect of the present invention, a flatness testing device is provided, comprising:
[0027] The data acquisition module is used to acquire the detection distance corresponding to the object to be detected, and to acquire speed configuration information related to the display device and the detection device; the detection device is connected to the display device, and the display device displays a pointer for indicating the detection device; the movement of the detection device on the surface of the object to be detected causes the pointer to move on the display device.
[0028] A prediction processing module is used to determine the predicted number of pixels the pointer will move on the display device based on the detection distance and the speed configuration information;
[0029] The motion processing module is used to obtain the actual number of pixels the pointer moves on the display device after the detection device moves the detection distance on the surface of the object to be detected;
[0030] The result processing module is used to determine the flatness detection result of the object to be detected based on the predicted number of moving pixels and the actual number of moving pixels.
[0031] According to a third aspect of the present invention, a computer-readable storage medium is provided, the storage medium storing a computer program for performing the above-described flatness detection method.
[0032] According to a fourth aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0033] processor;
[0034] Memory used to store the processor's executable instructions;
[0035] The processor is configured to read the executable instructions from the memory and execute the instructions to implement the flatness detection method described above.
[0036] Compared with the prior art, the flatness detection method, apparatus, computer-readable storage medium, and electronic device provided by the present invention have at least the following beneficial effects:
[0037] The technical solution of this invention obtains the detection distance corresponding to the object to be tested and acquires speed configuration information related to the display device and the detection device. The detection device is connected to the display device, which displays a pointer for indicating the detection device. Movement of the detection device causes movement of the pointer on the display device. Both the detection device and the display device are non-professional flatness testing tools. Then, based on the detection distance and speed configuration information, the predicted number of pixels the pointer will move on the display device is determined, and the actual number of pixels the pointer moves on the display device after the detection device moves the detection distance on the object to be tested is acquired. Further, based on the predicted number of pixels moved and the actual number of pixels moved, the flatness testing result of the object to be tested is determined. In the technical solution provided by this invention, even in the absence of professional flatness testing tools, accurate flatness testing results can be easily and quickly determined using a display device and a detection device, meeting the user's need for flatness testing anytime, anywhere. Attached Figure Description
[0038] To more clearly illustrate the technical solution of this invention, the accompanying drawings used in the description of this invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0039] Figure 1 This is a flowchart illustrating a flatness testing method provided in an exemplary embodiment of the present invention. Figure 1 ;
[0040] Figure 2 This is a flowchart illustrating a flatness testing method provided in an exemplary embodiment of the present invention. Figure 2 ;
[0041] Figure 3 This is a flowchart illustrating a flatness testing method provided in an exemplary embodiment of the present invention. Figure 3 ;
[0042] Figure 4 This is a schematic diagram of the flatness detection device provided in an exemplary embodiment of the present invention;
[0043] Figure 5 This is a structural diagram of an electronic device provided in an exemplary embodiment of the present invention. Detailed Implementation
[0044] The technical solutions of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of these embodiments.
[0045] Exemplary methods
[0046] Figure 1 This is a schematic flowchart of a flatness detection method provided by an exemplary embodiment of the present invention, which includes at least the following steps:
[0047] Step 10: Obtain the detection distance corresponding to the object to be detected, and obtain the speed configuration information related to the display device and the detection device; the detection device is connected to the display device, and the display device displays a pointer for indicating the detection device. The movement of the detection device on the surface of the object to be detected causes the pointer to move on the display device.
[0048] In this step, the object to be tested is the object selected by the user that needs to be tested for flatness. The object to be tested may vary in different application scenarios. For example, the object to be tested may be a table or chair in the office or at home.
[0049] The detection distance is the detection length selected by the user. This detection distance can be the total length of the object to be detected or a portion of the length of the object to be detected.
[0050] The testing equipment is a device that moves on the surface of the object to be tested. This testing equipment is a non-specialized flatness testing equipment, that is, the testing equipment has a main purpose, which is not flatness testing.
[0051] The display device is a device with a screen that can display the pointer of the detection device. Specifically, the display device is a monitor with a stable resolution and a stable image imaging process from the graphics card output to the monitor. The display device shows a pointer for indicating the position of the detection device. Therefore, when the detection device moves on the surface of the object to be detected, the pointer moves on the display device. For example, the detection device and the pointer move in the same direction on the display device; that is, when the detection device moves to the left on the surface of the object to be detected, the pointer moves to the left on the display device. Of course, the detection device and the pointer can also move in opposite directions on the display device; that is, when the detection device moves to the left on the surface of the object to be detected, the pointer moves to the right on the display device.
[0052] The speed configuration information is the speed information pre-configured for the display device and the detection device. This speed configuration information is used to determine the relationship between the distance the detection device moves on the surface of the object to be detected and the number of pixels the pointer moves in the display device.
[0053] Step 20: Based on the detection distance and the speed configuration information, determine the predicted number of moving pixels of the pointer on the display device.
[0054] In this step, using the detection distance and speed configuration information, the number of pixels the pointer moves on the display device is predicted based on the detection distance the detection device moves on the surface of the object to be detected. This predicted number of moving pixels is a theoretically calculated value.
[0055] In one possible implementation, if the speed configuration information indicates the number of pixels the pointer moves on the display device when the detection device moves a unit distance on the surface of the object to be detected, then the product of the detection distance and the speed configuration information is the predicted number of pixels moved.
[0056] In one possible implementation, the speed configuration information includes first configuration information and second configuration information. The first configuration information indicates the moving speed of the detection device, and the second configuration information indicates the ratio of the moving speed of the pointer in the display device to the moving speed of the detection device. The moving speed of the detection device is measured in pixels per unit distance. When the detection device moves a detection distance D on the surface of the object to be detected at a moving speed V, the predicted number of moving pixels is equal to the product of the moving speed V and the detection distance D, multiplied by the second configuration information N, i.e., predicted number of moving pixels = V * D * N. If N is 1, meaning the moving speed of the pointer in the display device is the same as the moving speed of the detection device, then the predicted number of moving pixels = V * D. If C represents the predicted number of moving pixels, when V = 400 (400 pixels per unit distance), C = 400 * D.
[0057] like Figure 2 As shown, in one embodiment, the method further includes:
[0058] Step 50: Obtain the correction coefficient corresponding to the detection device.
[0059] In the steps, since the detection device often has a certain bottom area, when controlling the detection device to move on the surface of the object to be detected, the actual sliding distance is often less than the detection distance. Therefore, considering the existence of this situation, a correction coefficient is introduced, and the number of moving pixels is more accurately predicted by the correction coefficient.
[0060] Accordingly, step 20, based on the detection distance and the speed configuration information, determines the predicted number of moving pixels of the pointer on the display device, including:
[0061] Step 201: Based on the detection distance, the speed configuration information, and the correction coefficient, determine the predicted number of moving pixels of the pointer on the display device.
[0062] In this embodiment, the detection distance, speed configuration information, and correction coefficient are comprehensively considered to ensure that the accurate predicted number of moving pixels is determined.
[0063] In one possible implementation, when the correction factor is used to indicate the number of pixels the detection device moves less, if the speed configuration information indicates the number of pixels the pointer moves on the display device when the detection device moves a unit distance on the surface of the object to be detected, then the product of the detection distance and the speed configuration information minus the correction factor is the predicted number of pixels moved.
[0064] In one possible implementation, when the correction coefficient is used to indicate the number of pixels that the detection device moves less, if the speed configuration information includes first configuration information and second configuration information, when the detection device moves a detection distance D on the surface of the object to be detected at a moving speed V (first configuration information), the predicted number of moved pixels is equal to the product of the moving speed V and the detection distance D of the detection device, and then multiplied by the result of the second configuration information N (second configuration information) minus the correction coefficient. If the correction coefficient is represented by A, then the predicted number of moved pixels = V*D*NA.
[0065] In one embodiment, the speed configuration information includes first configuration information and second configuration information, wherein the first configuration information is used to indicate the moving speed of the detection device, and the second configuration information is used to indicate the ratio of the moving speed of the pointer in the display device to the moving speed of the detection device; step 201, based on the detection distance, the speed configuration information, and the correction coefficient, determines the predicted number of moving pixels of the pointer on the display device, including:
[0066] Step 2011: Determine the first product result between the detection distance, the first configuration information, and the second configuration information.
[0067] Step 2012: Based on the first product result, the first configuration information, and the correction coefficient, determine the predicted number of moving pixels of the pointer on the display device.
[0068] In this embodiment, the first configuration information and the second configuration information are comprehensively considered to accurately determine the first product result. After determining the first product result, the first configuration information and the correction coefficient are considered to accurately determine the predicted number of moving pixels.
[0069] In one embodiment, step 2012, based on the first product result, the first configuration information, and the correction coefficient, determines the predicted number of moving pixels of the pointer on the display device, including: determining a second product result of the first configuration information and the correction coefficient; and determining the difference between the first product result and the second product result as the predicted number of moving pixels of the pointer on the display device.
[0070] In this embodiment, the correction coefficient can be used to indicate the distance to be corrected. For example, if the first configuration information is V, the second configuration information is N, and the detection distance is D, then the first product result is V*N*D, the correction coefficient is E, and the second product result is V*E. In this case, the predicted number of moving pixels C = V*N*DV*E. If N is 1, then C = V*DV*E. When V = 400, C = 400*D - 400*E.
[0071] Step 30: Obtain the actual number of pixels the pointer moves on the display device after the detection device moves the detection distance on the surface of the object to be detected.
[0072] In this step, the detection device is controlled to move a detection distance on the object to be detected, and the actual number of pixels the pointer moves on the display device is collected. It should be noted that when controlling the detection device to move a detection distance on the object, it moves along a specific route corresponding to that detection distance. For example, if a starting point and an ending point are determined, the distance between the starting and ending points is measured to determine the detection distance from the starting point to the ending point. The detection device is then controlled to move along the same route as the determined detection distance, thus ensuring that the predicted number of pixels moved is comparable to the actual number of pixels moved.
[0073] Step 40: Based on the predicted number of moving pixels and the actual number of moving pixels, determine the flatness detection result of the object to be detected.
[0074] In this step, the preset number of moving pixels and the actual number of moving pixels are compared to determine the flatness detection result of the object to be detected.
[0075] like Figure 3 As shown, in one embodiment, step 40 determines the flatness detection result of the object to be detected based on the predicted number of moving pixels and the actual number of moving pixels, including:
[0076] Step 401: If the predicted number of moving pixels is equal to the actual number of moving pixels, determine the flatness detection result used to indicate the flatness of the object to be detected.
[0077] Step 402: If the predicted number of moving pixels is not equal to the actual number of moving pixels, determine a flatness detection result to indicate that the object to be detected is uneven.
[0078] In this embodiment, if the predicted number of moving pixels is equal to the actual number of moving pixels, the object to be detected is flat; if the predicted number of moving pixels is greater than or less than the actual number of moving pixels, the object to be detected is uneven.
[0079] In one possible implementation, if the correction coefficient is not considered when determining the predicted number of moving pixels, the correction coefficient can be determined when determining the flatness detection result of the object to be detected. If the correction coefficient is used to indicate the number of pixels the object has moved less, then if the difference between the predicted number of moving pixels and the actual number of moving pixels is equal to the correction coefficient, then the flatness detection result indicating that the object to be detected is flat can be determined; if the difference between the predicted number of moving pixels and the actual number of moving pixels is not equal to the correction coefficient, then the flatness detection result indicating that the object to be detected is not flat can be determined.
[0080] In the above embodiments, the detection distance corresponding to the object to be detected is obtained, and speed configuration information related to the display device and the detection device is also obtained. The detection device is connected to the display device, which displays a pointer for indicating the detection device. Movement of the detection device causes movement of the pointer on the display device. Both the detection device and the display device are non-professional flatness detection tools. Then, based on the detection distance and speed configuration information, the predicted number of pixels the pointer will move on the display device is determined, and the actual number of pixels the pointer moves on the display device after the detection device moves the detection distance on the object to be detected is obtained. Further, based on the predicted number of pixels moved and the actual number of pixels moved, the flatness detection result of the object to be detected is determined. In the technical solution provided by this invention, even in the absence of professional flatness detection tools, accurate flatness detection results can be determined simply and quickly using a display device and a detection device.
[0081] In one embodiment, the detection device includes a mouse, and the pointer includes a mouse pointer. That is, this embodiment provides a method for flatness detection based on a mouse, the method comprising the following steps:
[0082] Obtain the detection distance corresponding to the object to be detected, and obtain the speed configuration information related to the display device and mouse. The mouse is connected to the display device, and a mouse pointer is displayed on the display device to indicate the mouse. The movement of the mouse on the surface of the object to be detected causes the movement of the mouse pointer on the display device.
[0083] Based on the detection distance and the speed configuration information, the predicted number of pixels the mouse pointer will move on the display device is determined;
[0084] Get the actual number of pixels the mouse pointer moves on the display device after the mouse moves a detection distance on the surface of the object to be detected;
[0085] The flatness detection result of the object to be detected is determined based on the predicted number of moving pixels and the actual number of moving pixels.
[0086] In this embodiment, a mouse is used as a testing device. The main purpose of a mouse is not flatness testing, and mice are widely available in daily life. They are convenient and readily available, so when there is a lack of professional flatness testing tools, the flatness testing results can be determined simply and conveniently using a mouse. This solves the problem of difficulty in performing flatness testing when there is a lack of professional flatness testing tools and meets the user's need to perform flatness testing anytime and anywhere.
[0087] In one embodiment, when the detection device is a mouse, before the step of obtaining the detection distance corresponding to the object to be detected, the method further includes: setting the positioning accuracy of the mouse to a preset value to configure the first configuration information in the speed configuration information; setting the movement speed of the mouse pointer in the display device to the movement speed of the mouse to configure the second configuration information in the speed configuration information.
[0088] In this embodiment, the mouse positioning accuracy is referred to as mouse DPI (Dots Per Inch), which is the number of dots per inch. The mouse DPI is preset to a predetermined value, such as 400 dpi. This 400 dpi is the first configuration information in the speed configuration information. Furthermore, the movement speed of the mouse pointer on the display device is set to the mouse's actual movement speed; that is, the movement speed of the mouse pointer on the display device is equal to the actual movement speed of the mouse. For example, in a certain operating system, in the "Mouse Settings," the pointer movement speed is set to the middle value (the sixth option). After this setting, the movement speed of the mouse pointer on the monitor is equal to the movement speed of the mouse's own DPI. By pre-configuring the first and second configuration information in the speed configuration information, the speed configuration information can be quickly and accurately determined in subsequent processes.
[0089] In one possible application scenario, the detection device is a mouse. The first configuration information and the second configuration information are pre-configured. For example, the first configuration information is 400 dpi, and the second configuration information is that the movement speed of the mouse pointer on the screen is equal to the movement speed of the mouse itself at DPI.
[0090] When flatness testing is required, the distance to be tested of the object to be tested is measured to determine the corresponding testing distance. Speed configuration information is obtained by reading pre-configured first and second configuration information.
[0091] Further, a correction coefficient corresponding to the mouse is determined, such as a correction coefficient of E, which is used to characterize the error length value of the mouse's parallel width. Based on the detection distance, the first configuration information, the second configuration information, and the correction coefficient, the predicted number of pixels the mouse pointer moves on the display device is determined.
[0092] Specifically, at this time, the second configuration information is 1, the detection distance is D, the first configuration information is 400dpi, and the first product result is determined to be 400*D; the second product result of the first configuration information and the correction coefficient is determined, and the second product result is 400*E; the difference between the first product result and the second product result is determined as the predicted number of pixels the mouse pointer moves on the display device, i.e., C = 400D - 400E.
[0093] Furthermore, pixel counting software is used to collect the actual pixel values corresponding to mouse movement. For example, mouse pixel counting software is set up so that after the mouse moves a detection distance on the surface of the object to be detected, the number of pixels moved by the mouse cursor is counted according to the mouse pixel counting software to obtain the actual number of pixels moved.
[0094] Furthermore, the predicted number of moving pixels is compared with the actual number of moving pixels. If the predicted number of moving pixels equals the actual number of moving pixels, the flatness detection result is determined to be that the object to be detected is flat; if the predicted number of moving pixels does not equal the actual number of moving pixels, the flatness detection result is determined to be that the object to be detected is uneven.
[0095] In this embodiment, simply hovering the mouse over the surface of the object to be tested is sufficient to determine whether the surface is flat. This is very simple and convenient, requiring minimal hardware measurement. It enables a simple, quick, and accurate determination of flatness test results, meeting the user's need for flatness testing anytime, anywhere.
[0096] Exemplary device
[0097] Based on the same concept as the method embodiments of the present invention, the embodiments of the present invention also provide a flatness detection device.
[0098] Figure 4 A schematic diagram of a flatness testing device provided in an exemplary embodiment of the present invention is shown, comprising:
[0099] The data acquisition module 41 is used to acquire the detection distance corresponding to the object to be detected, and to acquire speed configuration information related to the display device and the detection device; the detection device is connected to the display device, and the display device displays a pointer for indicating the detection device; the movement of the detection device on the surface of the object to be detected causes the pointer to move on the display device.
[0100] Prediction processing module 42 is used to determine the predicted number of pixels the pointer will move on the display device based on the detection distance and the speed configuration information;
[0101] The motion processing module 43 is used to obtain the actual number of pixels the pointer moves on the display device after the detection device moves the detection distance on the surface of the object to be detected;
[0102] The result processing module 44 is used to determine the flatness detection result of the object to be detected based on the predicted number of moving pixels and the actual number of moving pixels.
[0103] In an exemplary embodiment of the present invention, the result processing module includes:
[0104] The first processing unit is configured to determine a flatness detection result indicating that the object to be detected is flat when the predicted number of moving pixels is equal to the actual number of moving pixels.
[0105] The second processing unit is used to determine a flatness detection result indicating that the object to be detected is uneven when the predicted number of moving pixels is not equal to the actual number of moving pixels.
[0106] In an exemplary embodiment of the present invention, the apparatus further includes:
[0107] The coefficient acquisition module is used to acquire the correction coefficients corresponding to the detection device;
[0108] The prediction processing module is further configured to determine the predicted number of pixels the pointer will move on the display device based on the detection distance, the speed configuration information, and the correction coefficient.
[0109] In an exemplary embodiment of the present invention, the speed configuration information includes first configuration information and second configuration information, wherein the first configuration information is used to indicate the moving speed of the detection device, and the second configuration information is used to indicate the ratio of the moving speed of the pointer in the display device to the moving speed of the detection device; the prediction processing module includes:
[0110] A product calculation unit is used to determine a first product result between the detection distance, the first configuration information, and the second configuration information;
[0111] A prediction processing unit is configured to determine the predicted number of pixels the pointer will move on the display device based on the first product result, the first configuration information, and the correction coefficient.
[0112] In an exemplary embodiment of the present invention, the prediction processing unit is further configured to determine a second product result of the first configuration information and the correction coefficient; and to determine the difference between the first product result and the second product result as the predicted number of moving pixels of the pointer on the display device.
[0113] In an exemplary embodiment of the present invention, the detection device includes a mouse, and the pointer includes a mouse pointer.
[0114] In an exemplary embodiment of the present invention, the apparatus further includes:
[0115] The information configuration module is used to set the positioning accuracy of the mouse to a preset value to configure the first configuration information in the speed configuration information; and to set the movement speed of the mouse pointer in the display device to the movement speed of the mouse to configure the second configuration information in the speed configuration information.
[0116] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0117] Exemplary electronic devices
[0118] Figure 5 A block diagram of an electronic device according to an embodiment of the present invention is shown.
[0119] like Figure 5 As shown, the electronic device 50 includes one or more processors 51 and memory 52.
[0120] The processor 51 may be a central processing unit (CPU) or other form of processing unit with data processing and / or instruction execution capabilities, and may control other components in the electronic device 50 to perform desired functions.
[0121] The memory 52 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 51 may execute the program instructions to implement the flatness detection methods of the various embodiments of the present invention described above, and / or other desired functions.
[0122] In one example, the electronic device 50 may also include an input device 53 and an output device 54, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).
[0123] Of course, for the sake of simplicity, Figure 5 Only some of the components of the electronic device 50 relevant to the present invention are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device 50 may include any other suitable components depending on the specific application.
[0124] Exemplary computer program products and computer-readable storage media
[0125] Sixthly, in addition to the methods and apparatus described above, embodiments of the present invention may also be computer program products, comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the flatness detection methods according to various embodiments of the present invention described in the "Exemplary Methods" section of this specification.
[0126] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of the present invention. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0127] Furthermore, embodiments of the present invention may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps in the flatness detection methods according to various embodiments of the present invention described in the "Exemplary Methods" section above.
[0128] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0129] The basic principles of the present invention have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in the present invention are merely examples and not limitations, and should not be considered as essential features of each embodiment of the present invention. Furthermore, the specific details of the invention described above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the present invention to the necessity of employing the specific details described above.
[0130] The block diagrams of devices, apparatuses, devices, and systems involved in this invention are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0131] It should also be noted that in the apparatus, device, and method of the present invention, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions of the present invention.
[0132] The above description of aspects of the invention is provided to enable any person skilled in the art to make or use the invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of the invention. Therefore, the invention is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features of the invention herein.
[0133] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the invention to the forms described herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.
Claims
1. A flatness detection method characterized by, include: The detection distance corresponding to the object to be detected is obtained, and the speed configuration information related to the display device and the detection device is obtained. The detection device is connected to the display device, and the display device displays a pointer for indicating the detection device. The movement of the detection device on the surface of the object to be detected causes the pointer to move on the display device. Based on the detection distance and the speed configuration information, the predicted number of moving pixels of the pointer on the display device is determined. The speed configuration information includes first configuration information and second configuration information. The first configuration information is used to indicate the moving speed of the detection device, and the second configuration information is used to indicate the ratio of the moving speed of the pointer on the display device to the moving speed of the detection device. The predicted number of moving pixels is the product of the detection distance and the speed configuration information. The product of the detection distance and the speed configuration information is the detection distance multiplied by the first configuration information multiplied by the second configuration information. The actual number of pixels the pointer moves on the display device after the detection device moves the detection distance on the surface of the object to be detected; Based on the predicted number of moving pixels and the actual number of moving pixels, the flatness detection result of the object to be detected is determined.
2. The method of claim 1, wherein, The step of determining the flatness detection result of the object to be detected based on the predicted number of moving pixels and the actual number of moving pixels includes: When the predicted number of moving pixels is equal to the actual number of moving pixels, a flatness detection result is determined to indicate that the object to be detected is flat. If the predicted number of moving pixels is not equal to the actual number of moving pixels, a flatness detection result is determined to indicate that the object to be detected is uneven.
3. The method of claim 1, wherein, The method further includes: Obtain the correction coefficient corresponding to the detection device; Determining the predicted number of moving pixels of the pointer on the display device based on the detection distance and the speed configuration information includes: Based on the detection distance, the speed configuration information, and the correction coefficient, the predicted number of moving pixels of the pointer on the display device is determined.
4. The method of claim 3, wherein, Determining the predicted number of moving pixels of the pointer on the display device based on the detection distance, the speed configuration information, and the correction coefficient includes: Determine the first product result between the detection distance, the first configuration information, and the second configuration information; Based on the first product result, the first configuration information, and the correction coefficient, the predicted number of moving pixels of the pointer on the display device is determined.
5. The method of claim 4, wherein, Determining the predicted number of moving pixels of the pointer on the display device based on the first product result, the first configuration information, and the correction coefficient includes: Determine the second product result of the first configuration information and the correction coefficient; The difference between the first product result and the second product result is determined as the predicted number of moving pixels of the pointer on the display device.
6. The method according to any one of claims 1 to 5, characterized in that, The detection device includes a mouse, and the pointer includes a mouse pointer.
7. The method of claim 6, wherein, Before the step of obtaining the detection distance corresponding to the object to be detected, the method further includes: Set the positioning accuracy of the mouse to a preset value to configure the first configuration information in the speed configuration information; The movement speed of the mouse pointer on the display device is set to the movement speed of the mouse to configure the second configuration information in the speed configuration information.
8. A flatness testing device, characterized in that, include: The data acquisition module is used to acquire the detection distance corresponding to the object to be detected, and to acquire speed configuration information related to the display device and the detection device; The detection device is connected to the display device, and the display device displays a pointer for indicating the detection device. The movement of the detection device on the surface of the object to be detected causes the pointer to move on the display device. A prediction processing module is used to determine the predicted number of moving pixels of the pointer on the display device based on the detection distance and the speed configuration information. The speed configuration information includes first configuration information and second configuration information. The first configuration information is used to indicate the moving speed of the detection device, and the second configuration information is used to indicate the ratio of the moving speed of the pointer on the display device to the moving speed of the detection device. The predicted number of moving pixels is the product of the detection distance and the speed configuration information. The product of the detection distance and the speed configuration information is the detection distance multiplied by the first configuration information multiplied by the second configuration information. The motion processing module is used to obtain the actual number of pixels the pointer moves on the display device after the detection device moves the detection distance on the surface of the object to be detected; The result processing module is used to determine the flatness detection result of the object to be detected based on the predicted number of moving pixels and the actual number of moving pixels.
9. A computer-readable storage medium storing a computer program for performing the flatness detection method according to any one of claims 1-7.
10. An electronic device, the electronic device comprising: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the flatness detection method according to any one of claims 1-7.
Citation Information
Patent Citations
Real-time focusing device for testing sheet flatness under high-resolution lens
CN217005732U
Surface property measuring apparatus
JP1992369419A