Handheld electric drill drilling depth measurement display method and device, handheld electric drill and medium
By acquiring and analyzing the drill bit projection image of a handheld electric drill, the true and effective depth of the hole can be calculated and displayed, solving the problem that the vertical depth cannot be measured when the handheld electric drill is inserted at an angle, thus improving the drilling success rate and flexibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2026-03-27
AI Technical Summary
In the existing technology, when a handheld electric drill is inserted at an angle into the object to be drilled, it is impossible to measure the vertical depth of the deepest point of the drill bit into the object from the plane of contact between the object and the drill bit, which leads to an increased failure rate in drilling operations.
By acquiring the drill bit projection image before the handheld electric drill starts working, it is determined whether the drill bit is perpendicular to the object to be drilled, and the length of the drill bit projection image during the working process is acquired in real time. Combined with the preset image scale and the actual length of the drill bit, the actual depth and effective depth of the hole are calculated and displayed.
It improves the success rate of drilling operations, is applicable to more scenarios, and enhances the flexibility and accuracy of using handheld electric drills.
Smart Images

Figure CN116275204B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of measurement, and in particular to a handheld electric drill drilling depth measurement display method and device, a handheld electric drill and a medium. BACKGROUND
[0002] At present, the drilling depth measurement method of the handheld electric drill in the related art can measure the depth of the drill bit entering the object to be drilled, wherein the object to be drilled is an object that needs to be drilled.
[0003] However, the drilling direction includes two directions of vertically entering the object to be drilled and obliquely entering the object to be drilled. When the drilling is obliquely inserted into the object to be drilled, the vertical depth of the deepest point of the drill bit entering the object to be drilled from the contact plane of the object to be drilled and the drill bit cannot be measured. When the user needs to perform an oblique drilling operation on the object to be drilled, if the vertical depth of the deepest point of the drill bit entering the object to be drilled from the contact plane of the object to be drilled and the drill bit cannot be measured, the drill bit may penetrate the object to be drilled, resulting in an increased failure rate of the drilling operation.
[0004] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. SUMMARY
[0005] In order to achieve high success rate drilling, the present application provides a handheld electric drill drilling depth measurement display method, device, handheld electric drill and medium.
[0006] In a first aspect, the present application provides a handheld electric drill drilling depth measurement display method, which adopts the following technical solution: a handheld electric drill drilling depth measurement display method, comprising:
[0007] obtaining a drill bit projection image before the start of the work of the handheld electric drill, wherein the shooting direction of the drill bit projection image is perpendicular to the object to be drilled; and determining whether the drill bit is perpendicular to the object to be drilled according to the drill bit projection image before the start of the work of the handheld electric drill.
[0008] If not, an initial drill bit projection image length is obtained according to the drill bit projection image before the start of the work of the handheld electric drill, wherein the initial drill bit projection image length is the image length of the drill bit of the handheld electric drill in the drill bit projection image before the start of the work of the handheld electric drill.
[0009] When the work start information of the handheld electric drill is monitored, a working drill bit projection image during the work of the handheld electric drill is obtained in real time, and a working drill bit projection image length is obtained according to the working drill bit projection image during the work of the handheld electric drill, wherein the working drill bit projection image length is the image length of the drill bit of the handheld electric drill in the working drill bit projection image during the work of the handheld electric drill.
[0010] obtaining a working drilling real depth and a working drilling real effective depth according to the preset image scale, the real length of the drill bit, the initial drill bit projection image length and the working drill bit projection image length, wherein the working drilling real depth is a depth of the drill bit into the object to be drilled, and the working drilling real effective depth is a vertical depth from a deepest point of the drill bit into the object to be drilled to the object to be drilled;
[0011] displaying the working drilling real depth and the working drilling real effective depth.
[0012] By adopting the technical solution, the drill bit projection image before the hand-held electric drill starts working is obtained, and whether the drill bit is perpendicular to the object to be drilled is determined according to the drill bit projection image before the hand-held electric drill starts working. If not, it indicates that it is not perpendicular, and the working drilling real effective depth needs to be measured. According to the drill bit projection image before the hand-held electric drill starts working, the initial drill bit image length is obtained, and the image length of the drill bit in the drill bit image before the hand-held electric drill starts working can be determined. When the working start information of the hand-held electric drill is monitored, the working drill bit projection image during the working process of the hand-held electric drill is obtained in real time, and the working drill bit projection image length is obtained according to the working drill bit projection image during the working process of the hand-held electric drill. The image length of the drill bit on the drill bit image during the working process of the hand-held electric drill can be monitored in real time. Compared with the related art, since the vertical depth from the deepest point of the drill bit into the object to be drilled to the contact plane of the object to be drilled and the drill bit cannot be measured, the result that the drill bit penetrates the object to be drilled may be caused. After the working drilling real depth and the working drilling real effective depth are obtained according to the preset image scale, the real length of the drill bit, the initial drill bit image length and the real-time drill bit image length, the working drilling real depth and the working drilling real effective depth are displayed, so that the drilling depth can be displayed to the user of the hand-held electric drill, and the success rate of drilling operation is improved.
[0013] In a preferred example, the application can be further configured as:
[0014] Three laser emitting devices are arranged on the hand-held electric drill, and the direction in which each laser emitting device emits laser is the same as the direction in which the drill bit projection image is shot,
[0015] Before the drill bit projection image before the hand-held electric drill starts working is obtained, the method further includes:
[0016] obtaining a test drill bit projection image before the hand-held electric drill starts working, wherein the test drill bit projection image includes at least three laser point images,
[0017] determining at least two laser point image spacings according to the three laser point images, wherein the laser point image spacing is a preset image spacing of two laser points in the test drill bit projection image;
[0018] determining whether the projection image of the test drill bit is perpendicular to the object to be perforated according to the interval of the at least two laser spots in the projection image;
[0019] If not, adjusting the projection image shooting direction of the drill bit to a direction perpendicular to the object to be perforated according to the interval of the at least two laser spots in the projection image;
[0020] Correspondingly, the method for obtaining the projection image of the drill bit before the handheld electric drill starts working comprises:
[0021] obtaining the projection image of the drill bit before the handheld electric drill starts working based on the adjusted projection image shooting direction of the drill bit.
[0022] By using the above technical solution, the projection image of the test drill bit before the handheld electric drill starts working is obtained, and three intervals of laser spots can be obtained. If the projection image shooting direction of the test drill bit is not perpendicular to the object to be perforated, the projection image shooting direction of the drill bit needs to be adjusted. Therefore, the three intervals of laser spots can be used as a basis for adjusting the shooting direction, and the shooting direction is adjusted to a direction perpendicular to the object to be perforated. Compared with the case where the shooting direction is adjusted based on the direction of gravity, the placement direction of the object to be perforated is no longer limited to being perpendicular to the direction of gravity, and the present application can be applied to more scenarios, making the use of the handheld electric drill more flexible.
[0023] In a preferred example, the present application can be further configured to:
[0024] The method for determining whether the drill bit is perpendicular to the object to be perforated according to the projection image of the drill bit before the handheld electric drill starts working comprises: determining whether the drill bit is perpendicular to the object to be perforated according to the projection image of the drill bit before the handheld electric drill starts working, wherein if the projection image of the drill bit before the handheld electric drill starts working is a symmetrical image, it is determined that the drill bit is perpendicular to the object to be perforated, otherwise, it is determined that the drill bit is not perpendicular to the object to be perforated.
[0025] By using the above technical solution, compared with the related art, which determines whether the image length of the drill bit in the projection image of the drill bit before the handheld electric drill starts working is the same as the preset initial projection image length of the drill bit, the present application can improve the accuracy of the result of determining whether the drill bit is perpendicular to the object to be perforated, because the real length of the drill bit may change due to wear of the drill bit, so that even if the drill bit is perpendicular to the object to be perforated, the image length of the drill bit in the projection image of the drill bit is less than the preset initial projection image length of the drill bit.
[0026] In a preferred example, the present application can be further configured to:
[0027] The method comprises: judging whether the drill bit is perpendicular to the object to be punched according to the projection image of the drill bit before the handheld electric drill starts working, and the method comprises: obtaining a drill bit edge image corresponding to the projection image of the drill bit before the handheld electric drill starts working by recognizing a drill bit edge according to the projection image of the drill bit before the handheld electric drill starts working.
[0028] judging whether the drill bit edge image is a symmetric image, wherein if yes, the projection image of the drill bit before the handheld electric drill starts working is a symmetric image, and otherwise, the projection image of the drill bit before the handheld electric drill starts working is not a symmetric image.
[0029] By using the technical scheme, compared with directly judging whether the projection image of the drill bit before the handheld electric drill starts working is a symmetric image in the related art, since the wear conditions of different positions of the drill bit can be different, the possibility that the projection image of the drill bit before the handheld electric drill starts working is a symmetric image is relatively low. The present scheme can reduce the influence of the thread of the drill bit on the judgment of whether the drill bit is perpendicular to the object to be punched by recognizing the edge of the drill bit before the handheld electric drill starts working to obtain the drill bit edge image, so as to improve the accuracy of the result of judging whether the drill bit is perpendicular to the object to be punched.
[0030] In a preferred example, the present application can be further configured to:
[0031] Before judging whether the drill bit edge image is a symmetric image, the method further comprises:
[0032] smoothing the drill bit edge image to obtain a new drill bit edge image;
[0033] Correspondingly, the method of judging whether the drill bit edge image is a symmetric image comprises:
[0034] judging whether the new drill bit edge image is a symmetric image.
[0035] By using the technical scheme, compared with directly using the drill bit edge image in the related art, since the thread of the drill bit can be different in the projection images of the drill bit collected at different moments, and the thread of the drill bit does not affect whether the drill bit is perpendicular to the object to be punched, the present scheme can reduce the influence of the thread of the drill bit on the judgment of whether any drill bit edge image is a symmetric image of any other drill bit edge image by smoothing the thread after recognizing the drill bit edge.
[0036] In a preferred example, the present application can be further configured to:
[0037] Two sides of a drill bit position on a handheld electric drill are respectively provided with a camera device, the camera device is used for collecting a drill bit projection image, the drill bit projection image before work of the handheld electric drill starts is acquired, and the acquisition comprises:
[0038] The drill bit projection image collected by each of the two camera devices before the work of the handheld electric drill starts is acquired.
[0039] Each drill bit projection image before the work of the handheld electric drill starts is subjected to splicing feature recognition, and a drill bit projection feature image corresponding to each drill bit projection image is obtained.
[0040] The drill bit projection image before the work of the handheld electric drill starts is obtained by splicing according to the drill bit projection feature images corresponding to all the drill bit projection images.
[0041] By using the above technical solution, the drill bit projection feature images corresponding to all the drill bit projection images are spliced to obtain the drill bit projection image before the work of the handheld electric drill starts, compared with the related art in which only one camera device is installed on the handheld electric drill and the drill bit projection image collected by the only camera device, the drill bit projection image before the work of the handheld electric drill starts obtained by using two camera devices is clearer.
[0042] In a preferred example, the present application can be further configured to:
[0043] Before the drill bit projection image before the work of the handheld electric drill starts is acquired, the present application further comprises:
[0044] An effective depth of a to-be-punched object is acquired, wherein the effective depth of the to-be-punched object is the thickness of the to-be-punched object in the shooting direction of the drill bit projection image.
[0045] Correspondingly, after the real depth of the work drill hole and the real effective depth of the work drill hole are displayed, the present application further comprises: judging whether the drill hole meets a preset warning standard according to the real effective depth of the work drill hole and the effective depth of the to-be-punched object.
[0046] If yes, prompt information is generated and displayed.
[0047] By using the above technical solution, when the drill hole meets the preset warning standard, the user is prompted, and the probability of the drill hole penetrating the to-be-punched object can be reduced.
[0048] In a second aspect, the present application provides a handheld electric drill drill hole depth measurement display device, which adopts the following technical solution: a handheld electric drill drill hole depth measurement display device comprises:
[0049] A drill bit projection image acquisition module is configured to acquire a drill bit projection image before work of a handheld electric drill starts, wherein the shooting direction of the drill bit projection image is perpendicular to a to-be-punched object.
[0050] A drill bit direction judging module is configured to judge whether the drill bit is perpendicular to the object to be drilled according to the drill bit projection image before the hand-held electric drill starts to work, and trigger the projection image length determining module when the drill bit is not perpendicular to the object to be drilled.
[0051] A projection image length determining module is configured to obtain an initial drill bit projection image length according to the drill bit projection image before the hand-held electric drill starts to work, wherein the initial drill bit projection image length is the image length of the drill bit of the hand-held electric drill in the drill bit projection image before the hand-held electric drill starts to work.
[0052] A start information detecting module is configured to trigger the working drill bit projection image length obtaining module when the working start information of the hand-held electric drill is detected.
[0053] A working drill bit projection image length obtaining module is configured to obtain a working drill bit projection image in real time during the working process of the hand-held electric drill, and obtain a working drill bit projection image length according to the working drill bit projection image during the working process of the hand-held electric drill, wherein the working drill bit projection image length is the image length of the drill bit of the hand-held electric drill on the working drill bit projection image during the working process of the hand-held electric drill.
[0054] A drilling depth determining module is configured to obtain a working drilling real depth and a working drilling real effective depth according to a preset image scale, a real length of the drill bit, the initial drill bit projection image length and the working drill bit projection image length, wherein the working drilling real depth is the depth of the drill bit into the object to be drilled, and the working drilling real effective depth is the vertical depth of the deepest point of the drill bit into the object to be drilled from the object to be drilled.
[0055] A drilling depth displaying module is configured to display the working drilling real depth and the working drilling real effective depth.
[0056] In a third aspect, the present application provides a hand-held electric drill, which adopts the following technical solution:
[0057] at least one processor;
[0058] a memory;
[0059] at least one application program, wherein the at least one application program is stored in the memory and configured to be executed by the at least one processor, and the at least one application program is configured to execute the hand-held electric drill drilling depth measuring and displaying method according to any one of the first aspect.
[0060] In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical solution:
[0061] A computer readable storage medium, having stored thereon a computer program, which, when executed in a computer, causes the computer to perform the hand drill drilling depth measurement display method of any one of the first aspect.
[0062] In summary, the present application includes at least one of the following beneficial technical effects:
[0063] 1. By acquiring the drill bit image and determining whether the drill bit image is a preset symmetrical image, it can be determined whether the drill bit is perpendicular to the target punching plane; if not, it indicates that it is not perpendicular, and the real effective depth of the working drill hole needs to be measured. According to the drill bit projection image before the hand drill starts working, the initial drill bit image length can be obtained to determine the image length of the drill bit in the drill bit image before the hand drill starts working. When the hand drill working start information is monitored, the real-time drill bit image length can be acquired in real time to monitor the image length of the drill bit on the drill bit image when the hand drill is working. Compared with the related art, since the vertical depth of the drill bit entering the deepest point of the object to be punched from the contact plane of the object to be punched and the drill bit cannot be measured, it may cause the result that the drill hole penetrates the object to be punched. After obtaining the working drill hole real depth and the working drill hole real effective depth according to the preset image scale, the real length of the drill bit, the initial drill bit image length and the real-time drill bit image length; by displaying the working drill hole real depth and the working drill hole real effective depth, the user of the hand drill can be prompted about the drilling depth to improve the success rate of drilling operation.
[0064] 2. By acquiring the test drill bit projection image before the hand drill starts working, the image spacing between the three laser points can be obtained. If the test drill bit projection image shooting direction is not perpendicular to the object to be punched, the drill bit projection image shooting direction needs to be adjusted. Therefore, the image spacing between the three laser points can be used as a basis for adjusting the shooting direction, and the shooting direction can be adjusted to a direction perpendicular to the object to be punched. Compared with adjusting the shooting direction based on the direction of gravity, which limits the placement direction of the object to be punched to be perpendicular to the direction of gravity, the present application no longer limits the placement direction of the object to be punched, and can be applied to more scenarios, making the hand drill usage scenario more flexible. BRIEF DESCRIPTION OF DRAWINGS
[0065] Figure 1 A flowchart of a hand drill drilling depth measurement display method provided by an embodiment of the present application.
[0066] Figure 2 A setting diagram of a hand drill camera direction adjusting device provided by an embodiment of the present application.
[0067] Figure 3 A setting diagram of a hand drill camera device provided by an embodiment of the present application.
[0068] Figure 4 A structural schematic diagram of a hand-held electric drill hole depth measurement display device provided by an embodiment of the present application.
[0069] Figure 5 A structural schematic diagram of a hand-held electric drill provided by an embodiment of the present application.
[0070] Figure 6 A structural schematic diagram of another hand-held electric drill provided by an embodiment of the present application. DETAILED DESCRIPTION
[0071] The following will be described in detail with reference to the accompanying drawings. Figure 1 to the accompanying drawings Figure 6 The present application will be further described in detail.
[0072] The specific embodiments are merely explanatory of the present application, and are not intended to limit the present application. Those skilled in the art can make modifications to the embodiments without creative contribution after reading the present specification, and the modifications are protected by the patent law as long as they are within the scope of the present application.
[0073] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative contribution are within the scope of protection of the present application.
[0074] In addition, the term “and / or” in the present document is merely to describe the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can mean that there are three cases of A alone, A and B together, and B alone. In addition, the character “ / ” in the present document generally represents an “or” relationship between the associated objects unless otherwise specified.
[0075] The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
[0076] The embodiments of the present application provide a hand-held electric drill hole depth measurement display method, which is executed by a hand-held electric drill. As shown in the figure, the method comprises steps S101 to S106, wherein: Figure 1
[0077] Step S101: acquiring a drill bit projection image before the start of work of the hand-held electric drill, wherein the shooting direction of the drill bit projection image is perpendicular to the object to be punched.
[0078] The handheld electric drill can obtain a drill bit projection image before the start of the work of the handheld electric drill through a camera installed on the handheld electric drill, wherein the drill bit projection image represents an image obtained when the handheld electric drill is used to take a picture of an object to be perforated with the plane of the object to be perforated as the projection plane. Preferably, the number of cameras is two.
[0079] The method for making the shooting direction of the drill bit projection image perpendicular to the object to be perforated before the start of the work of the handheld electric drill can specifically include: adjusting the shooting direction based on gravity, or adjusting the shooting direction based on laser.
[0080] In the implementation mode of adjusting the shooting direction based on gravity, the process of making the shooting direction of the drill bit projection image perpendicular to the object to be perforated can specifically include: setting a corresponding gravity sensing device for each camera on the handheld electric drill, wherein the gravity sensing device is used to obtain the included angle between the gravity direction and the shooting direction at the moment of adjusting the shooting direction, and it is particularly important to note that the placement position of the object to be perforated is perpendicular to the gravity direction. When the included angle is 0, it indicates that the shooting direction of the drill bit projection image is perpendicular to the object to be perforated, and the drill bit projection image before the start of the work of the handheld electric drill is obtained. When the included angle is not 0, it indicates that the shooting direction of the drill bit projection image is not perpendicular to the object to be perforated, and the shooting direction of the drill bit projection image can be adjusted according to the value of the included angle until the included angle is 0, and the drill bit projection image before the start of the work of the handheld electric drill is obtained.
[0081] In the implementation mode of adjusting the shooting direction based on laser, before the process of making the shooting direction of the drill bit projection image perpendicular to the object to be perforated, the handheld electric drill can further specifically include: setting three laser emitting devices on the handheld electric drill, the direction of the laser emitted by each laser emitting device is the same as the shooting direction of the drill bit projection image, and a test drill bit projection image before the start of the work of the handheld electric drill is obtained, wherein the test drill bit projection image includes at least three laser point images. According to the three laser point images, at least two laser point image spacings are determined, wherein the laser point image spacing is the image spacing of the preset two laser points in the test drill bit projection image. According to the at least two laser point image spacings, it is judged whether the shooting direction of the test drill bit projection image is perpendicular to the object to be perforated. If not, the shooting direction of the drill bit projection image is adjusted to a direction perpendicular to the object to be perforated according to the at least two laser point image spacings. If yes, the test drill bit projection image before the start of the work of the handheld electric drill is taken as the drill bit projection image before the start of the work of the handheld electric drill. Correspondingly, the drill bit projection image before the start of the work of the handheld electric drill is obtained, including: obtaining the drill bit projection image before the start of the work of the handheld electric drill based on the adjusted shooting direction of the drill bit projection image.
[0082] Step S102: judging whether the drill bit is perpendicular to the object to be perforated according to the drill bit projection image before the start of the work of the handheld electric drill.
[0083] According to the drill bit projection image before the handheld electric drill starts working, it is determined whether the drill bit is perpendicular to the object to be punched. Specifically, it can include: based on symmetry judgment, or based on image length judgment.
[0084] In the implementation mode based on symmetry judgment, according to the drill bit projection image before the handheld electric drill starts working, it is determined whether the drill bit is perpendicular to the object to be punched. Specifically, it can include: according to the drill bit projection image before the handheld electric drill starts working, it is determined whether the drill bit is perpendicular to the object to be punched, wherein if the drill bit projection image before the handheld electric drill starts working is a symmetric image, it is determined that the drill bit is perpendicular to the object to be punched, otherwise, it is determined that the drill bit is not perpendicular to the object to be punched.
[0085] In the implementation mode based on image length judgment, according to the drill bit projection image before the handheld electric drill starts working, it is determined whether the drill bit is perpendicular to the object to be punched. Specifically, it can include: according to the drill bit projection image before the handheld electric drill starts working, the distance between the preset positions in the drill bit projection image is obtained by identifying each preset position, wherein the preset positions at least include two positions respectively connected with the handheld electric drill and the object to be punched; the distance between the preset positions in the drill bit projection image is taken as the length of the drill bit projection image before the handheld electric drill starts working; it is determined whether the length of the drill bit projection image before the handheld electric drill starts working is the same as the preset length of the drill bit projection image before the handheld electric drill starts working, wherein the preset length of the drill bit projection image before the handheld electric drill starts working can be set by the technical personnel according to the actual length of the drill bit configured by the handheld electric drill and stored in the handheld electric drill; if yes, it indicates that the drill bit is perpendicular to the object to be punched, otherwise, it indicates that the drill bit is not perpendicular to the object to be punched.
[0086] It can be understood that if the drill bit is perpendicular to the object to be punched, it indicates that the depth of the drill bit obliquely inserted into the object to be punched is equal to the vertical depth of the deepest point of the drill bit into the object to be punched from the contact plane of the object to be punched and the drill bit.
[0087] Specifically, if the drill bit is perpendicular to the object to be punched, the initial drill bit projection image length is obtained, wherein the initial drill bit projection image length is the image length of the drill bit in the drill bit projection image before the handheld electric drill starts working; when the working start information of the handheld electric drill is monitored, the working drill bit projection image length is obtained in real time, wherein the working drill bit projection image length is the image length of the drill bit in the drill bit projection image when the handheld electric drill works; according to the real length of the drill bit, the initial drill bit projection image length and the working drill bit projection image length, the working drill hole real depth is obtained by using the calculation formula of the working drill hole real depth, wherein the calculation formula of the working drill hole real depth can be: l 实时影像 is the working drill bit projection image length, is the length of the drill bit when it is perpendicular to the object to be punched 实时影像corresponding working drill hole real depth, l 预设真实 is a drill bit real length, l 初始影像 is an initial drill bit projection image length.
[0088] If the drill bit is not perpendicular to the object to be drilled, it indicates that the drill bit is inserted obliquely into the object to be drilled, and the depth of the drill bit inserted obliquely into the object to be drilled and the vertical depth of the deepest point of the drill bit into the object to be drilled from the contact plane of the object to be drilled and the drill bit need to be calculated.
[0089] Step S103: If no, the initial drill bit projection image length is obtained according to the drill bit projection image before the hand-held electric drill starts working, wherein the initial drill bit projection image length is the image length of the drill bit of the hand-held electric drill in the drill bit projection image before the hand-held electric drill starts working.
[0090] If the drill bit is not perpendicular to the object to be drilled, specifically, the distance between the preset positions in the drill bit projection image can be obtained according to the drill bit projection image before the hand-held electric drill starts working by identifying the preset positions, wherein the preset positions include two positions of the connection of the drill bit with the hand-held electric drill and the object to be drilled respectively; and the initial drill bit projection image length is obtained according to the distance between the preset positions in the drill bit projection image before the hand-held electric drill starts working.
[0091] Step S104: When the hand-held electric drill working start information is monitored, the working drill bit projection image during the working process of the hand-held electric drill is obtained in real time, and the working drill bit projection image length is obtained according to the working drill bit projection image during the working process of the hand-held electric drill, wherein the working drill bit projection image length is the image length of the drill bit of the hand-held electric drill on the working drill bit projection image during the working process of the hand-held electric drill.
[0092] It can be understood that the hand-held electric drill working start information can be that the load current of the drill bit rotation exceeds a set current threshold, or the drill bit torque / drill bit rotation speed is not 0, wherein the maximum current when the drill bit is idling can be set as the set current threshold and is pre-stored in the hand-held electric drill by a technician or a user.
[0093] Specifically, the working drill bit projection image is obtained in real time, and the distance between the preset positions in the working drill bit projection image is obtained according to the working drill bit projection image by identifying the preset positions; and the working drill bit projection image length is obtained according to the distance between the preset positions in the working drill bit projection image.
[0094] Step S105: The working drill hole real depth and the working drill hole real effective depth are obtained according to the preset image scale, the drill bit real length, the initial drill bit projection image length and the working drill bit projection image length, wherein the working drill hole real depth is the depth of the drill bit into the object to be drilled, and the working drill hole real effective depth is the vertical depth of the deepest point of the drill bit into the object to be drilled from the object to be drilled.
[0095] The working drilling real depth and the working drilling real effective depth can be calculated by respective corresponding calculation formulas.
[0096] Specifically, the calculation formula of the working drilling real depth can be: H(l 实时影像 ) is the real length of the drill bit not perpendicular to the object to be drilled l 实时影像 , l 实时影像 is the working drill bit projection image length, l 预设真实 is the real length of the drill bit, and l 初始影像 is the initial drill bit projection image length, and n is the ratio of the real value to the image value in the preset image scale.
[0097] The calculation formula of the working drilling real effective depth can be: H ′ (l 实时影像 ) is the real length of the drill bit not perpendicular to the object to be drilled l 实时影像 , l 实时影像 is the working drill bit projection image length, l 预设真实 is the real length of the drill bit, and l 初始影像 is the initial drill bit projection image length, and n is the ratio of the real value to the image value in the preset image scale.
[0098] The preset image scale and the real length of the drill bit can be pre-set by the technician and pre-stored in the handheld electric drill. Further, after replacing the drill bit of different models, the technician or user can update the real length of the drill bit according to the replaced drill bit. It should be noted that the real length of the drill bit is the real length of the part exposed outside the handheld electric drill after the drill bit is installed on the handheld electric drill.
[0099] Step S106: Display the working drilling real depth and the working drilling real effective depth.
[0100] In the embodiment of the present application, the drill bit projection image before the handheld electric drill starts working is acquired, and whether the drill bit is perpendicular to the object to be drilled is determined according to the drill bit projection image before the handheld electric drill starts working. If not, it means that it is not perpendicular, and the real effective depth of the working drill hole needs to be measured. The initial drill bit image length is obtained according to the drill bit projection image before the handheld electric drill starts working, and the image length of the drill bit in the drill bit image before the handheld electric drill starts working can be determined. When the working start information of the handheld electric drill is monitored, the working drill bit projection image during the working process of the handheld electric drill is acquired in real time, and the working drill bit projection image length is obtained according to the working drill bit projection image during the working process of the handheld electric drill, so that the image length of the drill bit on the drill bit image during the working of the handheld electric drill can be monitored in real time. Compared with the related art, since the vertical depth of the drill bit from the deepest point of the object to be drilled to the contact plane of the object to be drilled and the drill bit cannot be measured, the result that the drill hole penetrates the object to be drilled may be caused. After the working drill hole real depth and the working drill hole real effective depth are obtained according to the preset image scale, the real length of the drill bit, the initial drill bit image length and the real-time drill bit image length, the working drill hole real depth and the working drill hole real effective depth are displayed, so that the user of the handheld electric drill can be displayed the drill hole depth, and the success rate of the drill hole operation is improved.
[0101] In one possible implementation of the embodiment of the present application, three laser emitting devices can be arranged on the handheld electric drill, and the direction in which each laser emitting device emits laser is the same as the direction in which the drill bit projection image is captured. Preferably, as shown in FIG. 1, the number of laser emitting devices is three, laser emitting device 1 and laser emitting device 2 constitute laser group A, laser emitting device 1 and laser emitting device 3 constitute laser group B, and the straight line on which laser group A is located is perpendicular to the straight line on which laser group B is located. Figure 2 Before step S101, the method can further include steps S1011 (not shown in the figure) to S1013 (not shown in the figure), wherein: in step S1011, a test drill bit projection image before the handheld electric drill starts working is acquired, wherein the test drill bit projection image includes at least three laser point images; and at least two laser point image spacings are determined according to the three laser point images, wherein the laser point image spacing is the image spacing of the preset two laser points in the test drill bit projection image.
[0102] When the drill bit projection image before the handheld electric drill starts working is acquired in step S1011, the projection image capturing angle of the drill bit is the same as the direction of the drill bit before the capturing angle of the camera is adjusted.
[0103] Preferably, the number of laser point image spacings is 2, and each laser group has a corresponding laser point image spacing. Specifically, the distance between the images of the laser emitting device 1 and the laser emitting device 2 is the laser point image spacing corresponding to the laser group A, and the distance between the images of the laser emitting device 1 and the laser emitting device 3 is the laser point image spacing corresponding to the laser group B.
[0104] Step S1012: According to the at least two laser point image spacings, it is determined whether the projection image shooting direction of the test drill bit is perpendicular to the object to be perforated.
[0105] Specifically, for each laser group, it is determined whether the laser point image spacing corresponding to the laser group is greater than the preset laser point image spacing threshold corresponding to the laser group. The preset laser point image spacing threshold corresponding to the laser group can be set by the technician according to the spacing between the laser emitting devices in the laser group and the preset image scale and pre-stored in the handheld electric drill. The preset laser point image spacing threshold = the spacing between the laser emitting devices ÷ the preset image scale. If the laser point image spacing corresponding to any laser group is greater than the preset laser point image spacing threshold corresponding to the laser group, it indicates that the projection image shooting direction of the test drill bit is not perpendicular to the object to be perforated. If the laser point image spacings corresponding to the two laser groups are not greater than the preset laser point image spacings corresponding to the laser groups, it is determined that the projection image shooting direction of the test drill bit is perpendicular to the object to be perforated.
[0106] It can be understood that the preset direction requirement is that the laser point image spacing corresponding to any laser group is not greater than the preset laser point image spacing threshold corresponding to the laser group. If the projection image shooting direction of the drill bit does not meet the preset direction requirement, it indicates that the projection image shooting direction of the drill bit is not perpendicular to the object to be perforated, and the projection image shooting direction of the drill bit needs to be adjusted. If the projection image shooting direction of the drill bit meets the preset direction requirement, it indicates that the projection image shooting direction of the drill bit is perpendicular to the object to be perforated, and the projection image shooting direction of the drill bit does not need to be adjusted. Accordingly, the drill bit projection image can be collected based on the unadjusted projection image shooting direction of the drill bit.
[0107] Step S1013: If not, the projection image shooting direction of the drill bit is adjusted to a direction perpendicular to the object to be perforated according to the at least two laser point image spacings.
[0108] It can be understood that for each laser group, if the laser point image spacing corresponding to the laser group is greater than the preset laser point image spacing threshold corresponding to the laser group, but the laser point image spacing corresponding to the other laser group is not greater than the corresponding preset laser point image spacing threshold, it indicates that the drill bit direction is not perpendicular to the object to be perforated, and the handheld electric drill is inclined in the direction of the straight line where the other laser group is located, and there is no inclination of the handheld electric drill in the direction of the straight line where the laser group is located.
[0109] Specifically, according to the laser point image interval corresponding to each laser group in the drill bit projection image and the preset laser point image interval threshold corresponding to the laser group in the preset direction requirement, a laser point image interval difference corresponding to each laser group is obtained, wherein the laser point image interval difference = preset laser point image interval threshold-laser point image interval; the shooting direction of the drill bit projection image in the direction of the straight line where another laser group is located is adjusted according to the laser point image interval difference corresponding to each laser group, until the laser point image interval difference corresponding to each laser group is 0; after the laser point image interval difference corresponding to each laser group is 0, the drill bit projection image before the handheld electric drill starts working is obtained again by using the camera device.
[0110] In the embodiment of the application, three laser point image intervals can be obtained by obtaining the test drill bit projection image before the handheld electric drill starts working; if the shooting direction of the test drill bit projection image is not perpendicular to the object to be perforated, the shooting direction of the drill bit projection image needs to be adjusted; therefore, the three laser point image intervals can be used as a basis for adjusting the shooting direction, and the shooting direction is adjusted to a direction perpendicular to the object to be perforated. Compared with limiting the placement direction of the object to be perforated to be perpendicular to the direction of gravity when the shooting direction is adjusted based on the direction of gravity, the present scheme no longer limits the placement direction of the object to be perforated, and can be applied to more scenarios, making the use scene of the handheld electric drill more flexible.
[0111] In one possible implementation of the embodiment of the application, step S102 can specifically include:
[0112] According to the drill bit projection image before the handheld electric drill starts working, it is determined whether the drill bit is perpendicular to the object to be perforated, wherein if the drill bit projection image before the handheld electric drill starts working is a symmetrical image, it is determined that the drill bit is perpendicular to the object to be perforated, otherwise, it is determined that the drill bit is not perpendicular to the object to be perforated.
[0113] Specifically, the drill bit projection image before the handheld electric drill starts working can be one or two. When the drill bit projection image before the handheld electric drill starts working is one, it is determined whether the unique drill bit projection image before the handheld electric drill starts working is a symmetrical image; when the drill bit projection image before the handheld electric drill starts working is two, it is determined whether each drill bit projection image before the handheld electric drill starts working is a symmetrical image of the other drill bit projection image before the handheld electric drill starts working.
[0114] In the embodiment of the present application, compared with the related art, when judging whether the image length of the drill bit in the drill bit projection image before the handheld electric drill starts working is the same as the preset initial drill bit projection image length, the real length of the drill bit may change due to wear of the drill bit, so that even if the drill bit is perpendicular to the object to be perforated, the image length of the drill bit in the drill bit projection image is less than the preset initial drill bit projection image length, resulting in inaccurate judgment. The present scheme can improve the accuracy of the result of judging whether the drill bit is perpendicular to the object to be perforated by judging whether the drill bit projection image before the handheld electric drill starts working is a symmetric image.
[0115] In one possible implementation of the embodiment of the present application, whether the drill bit is perpendicular to the object to be perforated is judged according to the drill bit projection image before the handheld electric drill starts working, which can specifically include steps SB1 (not shown in the figure) and SB2 (not shown in the figure), wherein:
[0116] Step SB1: According to the drill bit projection image before the handheld electric drill starts working, the drill bit edge image corresponding to the drill bit projection image before the handheld electric drill starts working is obtained by identifying the drill bit edge.
[0117] Specifically, the gray value of each pixel point in the drill bit projection image before the handheld electric drill starts working is obtained; the edge of the drill bit projection in the drill bit projection image before the handheld electric drill starts working is identified according to the gray value corresponding to each pixel point by using a preset edge detection model, to obtain the drill bit edge image corresponding to the drill bit projection image before the handheld electric drill starts working. The specific implementation of the preset edge detection model is not limited, and the edge identification can be completed. In addition, the preset edge detection model can be pre-set in the handheld electric drill by the technician.
[0118] Step SB2: Whether the drill bit edge image is a symmetric image is judged, wherein if yes, the drill bit projection image before the handheld electric drill starts working is a symmetric image, otherwise, the drill bit projection image before the handheld electric drill starts working is not a symmetric image.
[0119] In the embodiment of the present application, compared with the related art, when directly judging whether the drill bit projection image before the handheld electric drill starts working is a symmetric image, the wear conditions of different positions of the drill bit may be different, resulting in a low possibility that the drill bit projection image before the handheld electric drill starts working is a symmetric image. The present scheme can reduce the influence of the thread pattern of the drill bit on the judgment of whether the drill bit is perpendicular to the object to be perforated, so as to improve the accuracy of the result of judging whether the drill bit is perpendicular to the object to be perforated.
[0120] In one possible implementation of the embodiment of the present application, before step SB2, it can specifically further include:
[0121] Smooth the drill bit edge image to obtain a new drill bit edge image.
[0122] Specifically, according to the drill bit edge image, the thread pattern of the drill bit edge is recognized to obtain the drill bit edge trend and each thread protrusion, wherein the drill bit edge trend represents the drilling direction; each thread protrusion is replaced by a straight line segment on the drill bit edge trend; the corners between the straight line segments are replaced by arcs according to the respective straight line segments of all thread protrusions, to obtain a new drill bit edge image.
[0123] Correspondingly, step SB2 can specifically include: judging whether the new drill bit edge image is a symmetric image.
[0124] In the embodiments of the present application, compared with directly using the drill bit edge image in the related art, the drill bit thread pattern may be different in the drill bit projection image collected at different times, and the drill bit thread pattern does not affect whether the drill bit is perpendicular to the object to be drilled. Therefore, the present scheme can smooth the thread pattern after recognizing the drill bit edge to obtain a new drill bit edge image, so as to reduce the influence of the drill bit thread pattern on the judgment of whether any drill bit edge image is a symmetric image of any other drill bit edge image.
[0125] Preferably, as shown in Figure 3 The camera arrangement can be arranged on both sides of the drill bit mounting position on the handheld electric drill, and the camera is used to collect the drill bit projection image, wherein the camera is arranged based on the symmetric distribution of any straight line passing through the drill bit mounting position.
[0126] In one possible implementation of the embodiments of the present application, step S101 can specifically include steps SA1 to SA3 (not shown in the figure):
[0127] Step SA1: Obtain the drill bit projection images collected by the two cameras before the start of the handheld electric drill work.
[0128] Step SA2: Perform stitching feature recognition on each drill bit projection image before the start of the handheld electric drill work to obtain the drill bit projection feature image corresponding to each drill bit projection image.
[0129] The stitching feature can be at least a first preset laser point and a second preset laser point, wherein the preset laser point is emitted by a laser emitting device, and the emission angle is the same as the shooting direction of the drill bit projection image, as shown in Figure 3 The laser emitting device is arranged on the symmetry axis of the camera, the first preset laser point can be emitted by the laser emitting device 4, and the second preset laser point can be emitted by the laser emitting device 1.
[0130] Specifically, according to the drill bit projection image obtained by each camera before the handheld electric drill starts working, each preset laser point is identified, a straight line where all the preset laser points are located in the drill bit projection image is taken as a segmentation line, each drill bit projection image before the handheld electric drill starts working is segmented to obtain a segmented image corresponding to each drill bit projection image, wherein the segmented image at least includes a connection between the drill bit in the preset position and the object to be perforated.
[0131] Step SA3: According to the drill bit projection feature image corresponding to each of the drill bit projection images, the drill bit projection image before the handheld electric drill starts working is obtained by splicing.
[0132] Specifically, the segmentation line mentioned in step SA1 in the drill bit projection feature image corresponding to each of the drill bit projection images is taken as a splicing line, and each preset laser point in all the drill bit projection images is one-to-one corresponding, and splicing is performed to obtain a drill bit projection splicing image, wherein the one-to-one correspondence of each first preset laser point and each second laser point in all the drill bit projection images is performed.
[0133] Correspondingly, it is determined whether the drill bit projection splicing image is a symmetric image, wherein if it is a symmetric image, the drill bit is perpendicular to the object to be perforated, otherwise the drill bit is not perpendicular to the object to be perforated, and specifically can include:
[0134] Specifically, the splicing line mentioned in step SA3 is taken as a symmetry axis, and any side of the symmetry axis of the drill bit projection splicing image is taken as a first region of the drill bit projection splicing image, and the other side of the symmetry axis is taken as a second region of the drill bit projection splicing image; for any region of the drill bit projection splicing image, based on the symmetry axis, it is determined whether each pixel point has a symmetric point in the other region of the drill bit projection splicing image; if yes, it is determined that the drill bit projection splicing image is a symmetric image; otherwise, it is determined that the drill bit projection splicing image is not a symmetric image.
[0135] In the embodiment of the present application, the drill bit projection feature image corresponding to each of the drill bit projection images is spliced to obtain the drill bit projection image before the handheld electric drill starts working, compared with the related art in which only one camera is installed on the handheld electric drill, and the drill bit projection image collected by the only one camera, the present scheme uses two cameras to obtain the drill bit projection image before the handheld electric drill starts working, which is clearer.
[0136] In one possible implementation of the embodiment of the present application, before step S101, specifically, the following steps can also be included:
[0137] The effective depth of the object to be perforated is obtained, wherein the effective depth of the object to be perforated is the thickness of the object to be perforated in the shooting direction of the drill bit projection image.
[0138] Specifically, the effective depth of the object to be perforated is obtained by ultrasonic thickness measurement.
[0139] Correspondingly, after step S106, the method specifically further includes step SC1 (not shown in the figure) and step SC2 (not shown in the figure), in which:
[0140] Step SC1: determining whether the drilling meets the preset warning standard according to the real effective depth of the working drilling and the effective depth of the object to be perforated.
[0141] Specifically, it is determined whether the difference between the real effective depth of the working drilling and the effective depth of the object to be perforated is greater than a preset depth threshold value, wherein the preset depth threshold value can be preset by a technician according to an actual application scenario and stored in the handheld electric drill; if not, it indicates that the probability of the drill penetrating the object to be perforated is small; if yes, it indicates that the probability of the drill penetrating the object to be perforated is large, and the user needs to be prompted to pay attention to the real effective depth of the working drilling.
[0142] Step SC2: if yes, generating and displaying prompt information.
[0143] The prompt information is used to prompt the user to pay attention to the effective depth of the object to be perforated, the real depth of the working drilling and the effective depth of the object to be perforated.
[0144] In the embodiments of the present application, when the drilling meets the preset warning standard, the user can be prompted to reduce the probability of the drilling penetrating the object to be perforated.
[0145] The above embodiment introduces a handheld electric drill drilling depth measurement display method from the perspective of method flow, and the following embodiment introduces a handheld electric drill drilling depth measurement display device from the perspective of virtual module or virtual unit. For details, see the following embodiments.
[0146] The present application provides a handheld electric drill drilling depth measurement display device, as shown in Figure 4 The handheld electric drill drilling depth measurement display device specifically can include:
[0147] The drill bit projection image acquisition module 201 is configured to acquire a drill bit projection image before the start of the handheld electric drill, wherein the shooting direction of the drill bit projection image is perpendicular to the object to be perforated.
[0148] The drill bit direction judgment module 202 is configured to determine whether the drill bit is perpendicular to the object to be perforated according to the drill bit projection image before the start of the handheld electric drill, and trigger the projection image length determination module when the drill bit is not perpendicular to the object to be perforated.
[0149] The projection image length determination module 203 is configured to obtain an initial drill bit projection image length according to the drill bit projection image before the handheld electric drill starts working, where the initial drill bit projection image length is the image length of the drill bit of the handheld electric drill in the drill bit projection image before the handheld electric drill starts working.
[0150] The start information detection module 204 is configured to trigger the working drill bit projection image length acquisition module when the working start information of the handheld electric drill is monitored.
[0151] The working drill bit projection image length acquisition module 205 is configured to acquire a working drill bit projection image in real time during the working process of the handheld electric drill, and obtain a working drill bit projection image length according to the working drill bit projection image during the working process of the handheld electric drill, where the working drill bit projection image length is the image length of the drill bit of the handheld electric drill on the working drill bit projection image during the working process of the handheld electric drill.
[0152] The drilling depth determination module 206 is configured to obtain a working drilling real depth and a working drilling real effective depth according to a preset image scale, a real length of the drill bit, the initial drill bit projection image length and the working drill bit projection image length, where the working drilling real depth is the depth of the drill bit into the object to be drilled, and the working drilling real effective depth is the vertical depth of the deepest point of the drill bit into the object to be drilled from the object to be drilled.
[0153] The drilling depth display module 207 is configured to display the working drilling real depth and the working drilling real effective depth.
[0154] In one possible implementation of the embodiment, three laser emitting devices are arranged on the handheld electric drill, each of the laser emitting devices emits laser light in the same direction as the direction in which the drill bit projection image is captured, and the handheld electric drill drilling depth measurement display device further comprises:
[0155] The shooting direction adjustment module is configured to:
[0156] acquire a test drill bit projection image before the handheld electric drill starts working, where the test drill bit projection image comprises at least three laser point images; and determine at least two laser point image spacings according to the three laser point images, where the laser point image spacing is the image spacing of the preset two laser points in the test drill bit projection image.
[0157] According to the at least two laser point image spacings, it is determined whether the test drill bit projection image shooting direction is perpendicular to the object to be drilled; if not, the drill bit projection image shooting direction is adjusted to a direction perpendicular to the object to be drilled according to the at least two laser point image spacings.
[0158] Correspondingly, when the drill bit projection image acquisition module 201 acquires the drill bit projection image before the handheld electric drill starts working, it is configured to:
[0159] Based on the adjusted direction of the drill bit projection image shooting, the drill bit projection image before the hand-held electric drill starts working is obtained.
[0160] In one possible implementation of the embodiment, the drill bit direction judging module 202, when judging whether the drill bit is perpendicular to the object to be drilled according to the drill bit projection image before the hand-held electric drill starts working, is configured to:
[0161] Judge whether the drill bit is perpendicular to the object to be drilled according to the drill bit projection image before the hand-held electric drill starts working, wherein if the drill bit projection image before the hand-held electric drill starts working is a symmetrical image, it is determined that the drill bit is perpendicular to the object to be drilled, otherwise, it is determined that the drill bit is not perpendicular to the object to be drilled.
[0162] In one possible implementation of the embodiment, the drill bit direction judging module 202, when judging whether the drill bit is perpendicular to the object to be drilled according to the drill bit projection image before the hand-held electric drill starts working, is configured to:
[0163] According to the drill bit projection image before the hand-held electric drill starts working, the drill bit edge image corresponding to the drill bit projection image before the hand-held electric drill starts working is obtained by recognizing the drill bit edge.
[0164] Judge whether the drill bit edge image is a symmetrical image, wherein if yes, the drill bit projection image before the hand-held electric drill starts working is a symmetrical image, otherwise, the drill bit projection image before the hand-held electric drill starts working is not a symmetrical image.
[0165] In one possible implementation of the embodiment, the hand-held electric drill hole depth measuring and displaying device further comprises:
[0166] The smoothing processing module is configured to:
[0167] Smoothly process the drill bit edge image to obtain a new drill bit edge image.
[0168] Correspondingly, the drill bit direction judging module 202, when judging whether the drill bit edge image is a symmetrical image, is configured to:
[0169] Judge whether the new drill bit edge image is a symmetrical image.
[0170] In one possible implementation of the embodiment, two camera devices are respectively arranged on two sides of the drill bit of the hand-held electric drill, the camera devices are configured to collect drill bit projection images, and the drill bit projection image obtaining module 201, when obtaining the drill bit projection image before the hand-held electric drill starts working, is configured to:
[0171] Obtain the drill bit projection images respectively collected by the two camera devices before the hand-held electric drill starts working.
[0172] The feature recognition of each drill bit projection image before the handheld electric drill starts working is performed to obtain the drill bit projection feature image corresponding to each drill bit projection image.
[0173] Based on the corresponding drill bit projection feature images of all drill bit projection images, the drill bit projection image before the handheld electric drill starts working is obtained by stitching them together.
[0174] One possible implementation of this application embodiment, the handheld electric drill drilling depth measurement and display device, further includes:
[0175] The module for obtaining the effective depth of the object to be punched is specifically used for:
[0176] Obtain the effective depth of the object to be drilled, where the effective depth of the object to be drilled is the thickness of the object in the shooting direction of the drill bit projection image.
[0177] Correspondingly, the handheld electric drill drilling depth measurement and display device also includes:
[0178] The early warning module is specifically used for:
[0179] Based on the actual effective depth of the working borehole and the effective depth of the object to be drilled, determine whether the borehole meets the preset warning standard;
[0180] If so, generate and display a prompt message.
[0181] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the handheld electric drill drilling depth measurement and display device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0182] This application provides a handheld electric drill.
[0183] like Figure 6 As shown, Figure 6 The handheld drill shown includes a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, for example, via a bus 302. Optionally, the handheld drill may also include a transceiver 304. It should be noted that in practical applications, the transceiver 304 is not limited to one type, and the structure of this handheld drill does not constitute a limitation on the embodiments of this application.
[0184] The processor 301 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It can implement or execute the various exemplary logical blocks, modules and circuits described in connection with the disclosure. The processor 301 can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0185] The bus 302 can include a path for transmitting information between the above-mentioned components. The bus 302 can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 302 can be divided into an address bus, a data bus, a control bus, and the like. For convenience of representation, Figure 6 In the figure, only one thick line is used to represent the bus, but it does not mean that there is only one bus or one type of bus.
[0186] The memory 303 can be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, an optical disk storage (including a compact disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, and the like), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by a computer, but not limited thereto.
[0187] The memory 303 is configured to store application program codes for implementing the solutions of the present application, and the processor 301 is configured to execute the application program codes stored in the memory 303.
[0188] Figure 6 The handheld electric drill shown is only an example and should not limit the functions and use range of the embodiments of the present application.
[0189] As shown in the drawings, specifically, the handheld electric drill includes but is not limited to a camera device and a camera direction adjusting device, wherein the camera device includes the laser emitting device 1, the laser emitting device 4, the camera 1 and the camera 2, and the camera direction adjusting device includes the laser emitting device 1 to the laser emitting adjusting device 3. Figure 5 The camera device is configured to acquire the drill bit projection image. The camera direction adjusting device is configured to adjust the camera direction of the drill bit projection image to ensure that the camera direction of the drill bit projection image is perpendicular to the object to be perforated.
[0190] The embodiments of the present application provide a computer readable storage medium, and the computer readable storage medium stores a computer program, when the computer program runs on a computer, the computer can execute the corresponding content in the foregoing method embodiments. Compared with the related art, the embodiments of the present application acquire the drill bit projection image before the handheld electric drill starts working, and determine whether the drill bit is perpendicular to the object to be perforated according to the drill bit projection image before the handheld electric drill starts working. If not, it means that it is not perpendicular, and the real effective depth of the working drill hole needs to be measured. According to the drill bit projection image before the handheld electric drill starts working, the initial drill bit image length is obtained, and the image length of the drill bit in the drill bit image before the handheld electric drill starts working can be determined. When the working start information of the handheld electric drill is monitored, the working drill bit projection image during the working process of the handheld electric drill is acquired in real time, and the working drill bit projection image length is obtained according to the working drill bit projection image during the working process of the handheld electric drill, so that the image length of the drill bit on the drill bit image during the working of the handheld electric drill can be monitored in real time. Compared with the related art, since the vertical depth of the deepest point of the drill bit entering the object to be perforated from the contact plane of the object to be perforated and the drill bit cannot be measured, the result that the drill hole penetrates the object to be perforated may be caused. After the working drill hole real depth and the working drill hole real effective depth are obtained according to the preset image scale, the real length of the drill bit, the initial drill bit image length and the real-time drill bit image length, the working drill hole real depth and the working drill hole real effective depth can be displayed to the user of the handheld electric drill, so as to display the drill hole depth and improve the success rate of the drill hole operation.
[0191]
[0192] It should be understood that although the steps in the flowcharts of the drawings are shown in a sequential order following the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated otherwise herein, the execution of the steps is not strictly limited to the order indicated by the arrows, and can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the drawings can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of which is not necessarily sequential, but can be round-robin or alternately executed with at least part of other steps or sub-steps or stages of other steps.
[0193] The above is only some embodiments of the present application, and it should be pointed out that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which should also be considered as the protection scope of the present application.
Claims
1. A method for measuring and displaying the drilling depth of a handheld electric drill, characterized in that, include: Acquire a drill bit projection image before the handheld electric drill starts working, wherein the drill bit projection image is captured perpendicular to the object to be drilled; Based on the drill bit projection image before the handheld electric drill starts working, determine whether the drill bit is perpendicular to the object to be drilled. If not, the initial length of the drill bit projection image is obtained based on the drill bit projection image before the handheld electric drill starts working, wherein the initial length of the drill bit projection image is the image length of the drill bit of the handheld electric drill in the drill bit projection image before the handheld electric drill starts working. When the start information of the handheld electric drill is detected, the working drill bit projection image during the working process of the handheld electric drill is acquired in real time, and the length of the working drill bit projection image is obtained based on the working drill bit projection image during the working process of the handheld electric drill. The length of the working drill bit projection image is the image length of the drill bit of the handheld electric drill on the working drill bit projection image during the working process of the handheld electric drill. Based on the preset image scale, the actual length of the drill bit, the length of the initial drill bit projection image, and the length of the working drill bit projection image, the actual working hole depth and the actual effective working hole depth are obtained. The actual working hole depth is the depth to which the drill bit enters the object to be drilled, and the actual effective working hole depth is the vertical depth from the deepest point of the drill bit entering the object to be drilled to the object to be drilled. The preset image scale includes the ratio of the actual value to the image value. This displays the true depth of the working borehole and the true effective depth of the working borehole.
2. The handheld electric drill drilling depth measurement and display method according to claim 1, characterized in that, The handheld electric drill is equipped with three laser emitting devices, each emitting a laser in the same direction as the drill bit projection image capture direction. Before acquiring the drill bit projection image before the handheld electric drill begins operation, the following steps are also included: Acquire a test drill bit projection image before the handheld electric drill starts working, wherein the test drill bit projection image includes at least three laser point images; and determine at least two laser point image spacings based on the three laser point images, wherein the laser point image spacing is a preset image spacing between two laser points in the test drill bit projection image. Based on the distance between the at least two laser point images, determine whether the shooting direction of the test drill bit projection image is perpendicular to the object to be drilled; If not, then based on the distance between the at least two laser point images, adjust the shooting direction of the drill bit projection image to be perpendicular to the object to be drilled; Accordingly, acquiring the drill bit projection image before the handheld electric drill begins operation includes: Based on the adjusted shooting direction of the drill bit projection image, obtain the drill bit projection image before the handheld electric drill starts working.
3. The handheld electric drill drilling depth measurement and display method according to claim 1, characterized in that, The step of determining whether the drill bit is perpendicular to the object to be drilled based on the drill bit projection image before the handheld electric drill starts working includes: Based on the drill bit projection image before the handheld electric drill starts working, it is determined whether the drill bit is perpendicular to the object to be drilled. If the drill bit projection image before the handheld electric drill starts working is a symmetrical image, it is determined that the drill bit is perpendicular to the object to be drilled; otherwise, it is determined that the drill bit is not perpendicular to the object to be drilled.
4. The handheld electric drill drilling depth measurement and display method according to claim 3, characterized in that, The step of determining whether the drill bit is perpendicular to the object to be drilled based on the drill bit projection image before the handheld electric drill starts working includes: Based on the drill bit projection image before the handheld electric drill starts working, the drill bit edge image corresponding to the drill bit projection image before the handheld electric drill starts working is obtained by identifying the drill bit edge. Determine whether the drill bit edge image is a symmetrical image. If it is, then the drill bit projection image before the handheld electric drill starts working is a symmetrical image; otherwise, the drill bit projection image before the handheld electric drill starts working is not a symmetrical image.
5. The handheld electric drill drilling depth measurement and display method according to claim 4, characterized in that, Before determining whether the drill bit edge image is a symmetrical image, the method further includes: The drill bit edge image is smoothed to obtain a new drill bit edge image; Accordingly, determining whether the drill bit edge image is a symmetrical image includes: Determine whether the new drill bit edge image is a symmetrical image.
6. The handheld electric drill drilling depth measurement and display method according to claim 1, characterized in that, A camera device is installed on each side of the drill bit position on the handheld electric drill. The camera device is used to capture the projected image of the drill bit. The process of acquiring the projected image of the drill bit before the handheld electric drill starts working includes: Acquire the drill bit projection images captured by two camera devices before the handheld electric drill starts working; The feature recognition of each drill bit projection image before the handheld electric drill starts working is performed to obtain the drill bit projection feature image corresponding to each drill bit projection image. Based on the corresponding drill bit projection feature images of all drill bit projection images, the drill bit projection image before the handheld electric drill starts working is obtained by stitching them together.
7. The handheld electric drill drilling depth measurement and display method according to any one of claims 1 to 6, characterized in that, Before acquiring the drill bit projection image before the handheld electric drill begins operation, the method further includes: The effective depth of the object to be drilled is obtained, wherein the effective depth of the object to be drilled is the thickness of the object in the shooting direction of the drill bit projection image; Accordingly, after displaying the true depth of the working borehole and the true effective depth of the working borehole, the method further includes: Based on the actual effective depth of the working borehole and the effective depth of the object to be drilled, determine whether the borehole meets the preset warning standard; If so, generate and display a prompt message.
8. A handheld electric drill drilling depth measurement and display device, characterized in that, include: The drill bit projection image acquisition module is used to acquire the drill bit projection image before the handheld electric drill starts working, wherein the drilling bit projection image is captured perpendicular to the object to be drilled. The drill bit direction determination module is used to determine whether the drill bit is perpendicular to the object to be drilled based on the drill bit projection image before the handheld electric drill starts working. When the drill bit is not perpendicular to the object to be drilled, the projection image length determination module is triggered. The projection image length determination module is used to obtain the initial drill bit projection image length based on the drill bit projection image before the handheld electric drill starts working, wherein the initial drill bit projection image length is the image length of the drill bit of the handheld electric drill in the drill bit projection image before the handheld electric drill starts working. The start information detection module is used to trigger the working drill bit projection image length acquisition module when the start information of the handheld electric drill is detected. The working drill bit projection image length acquisition module is used to acquire the working drill bit projection image in real time during the operation of the handheld electric drill, and obtain the working drill bit projection image length based on the working drill bit projection image during the operation of the handheld electric drill, wherein the working drill bit projection image length is the image length of the drill bit of the handheld electric drill on the working drill bit projection image during the operation of the handheld electric drill. The drilling depth determination module is used to obtain the actual working drilling depth and the actual effective working drilling depth based on a preset image scale, the actual length of the drill bit, the length of the initial drill bit projection image, and the length of the working drill bit projection image. The actual working drilling depth is the depth to which the drill bit enters the object to be drilled, and the actual effective working drilling depth is the vertical depth from the deepest point of the drill bit entering the object to be drilled to the object to be drilled. The preset image scale includes the ratio of the actual value to the image value. The drilling depth display module is used to display the true depth of the working borehole and the true effective depth of the working borehole.
9. A handheld electric drill, characterized in that, include: At least one processor; Memory; At least one application, wherein the at least one application is stored in memory and configured to be executed by at least one processor, said at least one application being configured to: perform the handheld electric drill drilling depth measurement and display method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed in a computer, causes the computer to perform the handheld electric drill drilling depth measurement and display method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Device for automatic measurement of drilling depth on hand power tools, as well as hand power tool for drilling, and method of drilling with drilling depth measurements
US20040215395A1
TW2517034U