Light spot size control method and device, equipment and storage medium

By calculating and controlling the displacement of the photoelectric switch, the light is focused on the absorbing material on the inner wall of the hook and loop, the problem of large spots of non-laser photoelectric switches is solved, the gathering ability is improved and misjudgment is avoided, and the hook and loop state is realized reliable detection.

CN119002045APending Publication Date: 2024-11-22GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411097789.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The spot concentration of non-laser photoelectric switches is poor, resulting in larger spots and easily runs out of the range of light-absorbing materials applied on the inner wall of the hook and loop, causing misjudgment.

Method used

By obtaining the size of the hook and loop and the distance between the photoelectric switch, the first distance between the photoelectric switch and the light-absorbing material is calculated, and combined with the focal length of the convex lens, the second distance between the photoelectric switch and the convex lens is calculated, and the displacement of the photoelectric switch is controlled. , focus the light on the light absorbing material, and improve the concentration of the light spot.

Benefits of technology

The light spot area is effectively reduced, making it smaller than the range of light absorbing material applied on the inner wall of the hook and loop, avoiding misjudgment, and achieving reliable detection of whether the seat belt hook and loop is effectively hooked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002045A_ABST
    Figure CN119002045A_ABST
Patent Text Reader

Abstract

The invention discloses a light spot size control method, a light spot size control device, light spot size control equipment and a storage medium, which are applied to a plurality of photoelectric switches of a shackle, the photoelectric switches are uniformly arranged on a semicircular arc on one side of the shackle, a semicircular arc on the other side of the shackle is covered with a light absorption material, each photoelectric switch is provided with a corresponding convex lens, and the convex lenses are arranged on the convex lenses. The method comprises the following steps: obtaining the size of the shackle and the distance between every two photoelectric switches arranged in the shackle; calculating a first distance from each photoelectric switch to the semicircular arc of the shackle covered with the light absorbing material according to the size of the shackle and the spacing; calculating a second distance between each photoelectric switch and the convex lens according to the first distance and the focal length of the convex lens; and controlling the photoelectric switches to move according to the second distance, so that the light emitted by each photoelectric switch can be focused on a light absorbing material through the corresponding convex lens.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of photoelectric switch control technology, and in particular to a light spot size control method, device, equipment and storage medium. Background Art

[0002] When working at heights, workers must correctly wear and use safety belts with safety ropes. In actual work, workers often forget to hook the hook ring on the high connector due to negligence or because it is troublesome to move at high altitudes, thus endangering the personal safety of the user. At present, the prior art discloses a detection method using "light-absorbing material + photoelectric switch", where light-absorbing material is applied to the inner wall of the other end of the hook ring, so that the device detects whether there is reflected light, thereby realizing the state judgment of whether the photoelectric switch is hooked.

[0003] At present, the commonly used photoelectric switches in the industry are divided into two types: laser type and non-laser type. The laser type photoelectric switch has good light beam convergence and a small light spot, which is usually 2-3mm. However, the laser type photoelectric switch has high energy consumption, and the working voltage is usually 12 volts or above, so the laser type photoelectric switch is large and difficult to reduce, and cannot meet the actual needs of the size and application of the hook ring on site in terms of volume and energy consumption. For non-laser type photoelectric switches, the light beam can use visible light or infrared light, with low energy consumption, and the working voltage can be 5 volts. The volume is relatively small, and the volume and energy consumption are more suitable for the actual needs on site. However, the non-laser type photoelectric switch needs to use a lens to converge the light beam, and its convergence is poor, the light spot is large (the light spot is usually more than 5mm), and it is easy to run out of the range of the light-absorbing material coated on the inner wall of the hook ring. Summary of the invention

[0004] The present invention provides a light spot size control method, device, equipment and storage medium to solve the technical problems of poor light spot focusing and large light spot of non-laser type photoelectric switches in the prior art.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for controlling the size of a light spot, which is applied to a plurality of photoelectric switches of a hook ring, wherein the photoelectric switches are evenly arranged on a semicircular arc on one side of the hook ring, and the semicircular arc on the other side of the hook ring is covered with a light absorbing material, and each of the photoelectric switches has a corresponding convex lens, and the method comprises:

[0006] Obtaining the size of the hook and the spacing between each photoelectric switch arranged in the hook;

[0007] According to the size of the hook ring and the spacing, a first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material is calculated;

[0008] According to the first distance and the focal length of the convex lens, a second distance between each photoelectric switch and the convex lens is calculated;

[0009] The photoelectric switches are controlled to move according to the second distance, so that the light emitted by each photoelectric switch can be focused on the light absorbing material through its corresponding convex lens.

[0010] As a preferred solution, the first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material is calculated according to the size of the hook ring and the spacing, specifically including:

[0011] According to the size of the hook ring and the position of each photoelectric switch, the distance of the convex lens corresponding to each photoelectric switch in the rectangle of the hook ring is determined; wherein the hook ring is an elliptical hook ring with a middle rectangle and semicircular arcs on both sides;

[0012] According to the spacing between each photoelectric switch and the radius of the semicircular arc in the hook ring, the distance of the convex lens corresponding to each photoelectric switch in the semicircle of the hook ring is calculated;

[0013] According to the inner distance of the rectangle and the inner distance of the semicircle, a first distance from the convex lens corresponding to each photoelectric switch to the hook semicircular arc covering the light-absorbing material is calculated.

[0014] As a preferred solution, the second distance between each photoelectric switch and the convex lens is calculated based on the first distance and the focal length of the convex lens, specifically including:

[0015] Based on a preset lens imaging formula, the first distance and the focal length of the convex lens are input into the preset lens imaging formula, so as to calculate the second distance between each photoelectric switch and its corresponding convex lens.

[0016] As a preferred solution, controlling the photoelectric switch to move according to the second distance specifically includes:

[0017] The second distance is input into the moving mechanism of the hook ring for setting the photoelectric switch, so that the moving mechanism controls the corresponding photoelectric switch to move according to the second distance; wherein each photoelectric switch is set in the hook ring through its corresponding moving mechanism.

[0018] Correspondingly, the present invention also provides a light spot size control device, which is applied to a plurality of photoelectric switches of a hook ring, wherein the photoelectric switches are evenly arranged on a semicircular arc on one side of the hook ring, and the semicircular arc on the other side of the hook ring is covered with a light absorbing material, and each of the photoelectric switches has a corresponding convex lens, and the device comprises: an acquisition module, a first distance module, a second distance module and a control module;

[0019] The acquisition module is used to acquire the size of the hook and the distance between each photoelectric switch arranged in the hook;

[0020] The first distance module is used to calculate a first distance from each photoelectric switch to a semicircular arc of the hook ring covered with the light-absorbing material according to the size of the hook ring and the spacing;

[0021] The second distance module is used to calculate the second distance between each photoelectric switch and the convex lens according to the first distance and the focal length of the convex lens;

[0022] The control module is used to control the photoelectric switches to move according to the second distance, so that the light emitted by each photoelectric switch can be focused on the light absorbing material through its corresponding convex lens.

[0023] As a preferred solution, the first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material is calculated according to the size of the hook ring and the spacing, specifically including:

[0024] According to the size of the hook ring and the position of each photoelectric switch, the distance of the convex lens corresponding to each photoelectric switch in the rectangle of the hook ring is determined; wherein the hook ring is an elliptical hook ring with a middle rectangle and semicircular arcs on both sides;

[0025] According to the spacing between each photoelectric switch and the radius of the semicircular arc in the hook ring, the distance of the convex lens corresponding to each photoelectric switch in the semicircle of the hook ring is calculated;

[0026] According to the inner distance of the rectangle and the inner distance of the semicircle, a first distance from the convex lens corresponding to each photoelectric switch to the hook semicircular arc covering the light-absorbing material is calculated.

[0027] As a preferred solution, the second distance between each photoelectric switch and the convex lens is calculated based on the first distance and the focal length of the convex lens, specifically including:

[0028] Based on a preset lens imaging formula, the first distance and the focal length of the convex lens are input into the preset lens imaging formula, so as to calculate the second distance between each photoelectric switch and its corresponding convex lens.

[0029] As a preferred solution, controlling the photoelectric switch to move according to the second distance specifically includes:

[0030] The second distance is input into the moving mechanism of the hook ring for setting the photoelectric switch, so that the moving mechanism controls the corresponding photoelectric switch to move according to the second distance; wherein each photoelectric switch is set in the hook ring through its corresponding moving mechanism.

[0031] Correspondingly, the present invention also provides a terminal device, characterized in that it includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the spot size control method described in any one of the above.

[0032] Accordingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the spot size control method as described in any one of the above.

[0033] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0034] The technical solution of the present invention can calculate the first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material by obtaining the size of the hook ring and the spacing between each photoelectric switch arranged in the hook ring, and then calculate the second distance between each photoelectric switch and the convex lens in combination with the focal length of the convex lens. Finally, according to the second distance corresponding to each photoelectric switch, the displacement of each photoelectric switch is controlled so that the light emitted by each photoelectric switch can be focused on the light-absorbing material through its corresponding convex lens, that is, the corresponding convex lens imaging just falls on the smallest light spot, and the light spot area will be greatly smaller than the range of the light-absorbing material coated on the inner wall of the hook ring, thereby improving the light spot focusing property of the non-laser photoelectric switch, so that there is no invalid reflection when there is nothing in the hook ring, thereby avoiding misjudgment and finally realizing reliable detection of whether the hook ring of the safety belt is effectively hooked. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 : A flow chart of the steps of a method for controlling the light spot size provided by an embodiment of the present invention;

[0036] Figure 2 : An imaging regularity diagram of a convex lens provided in an embodiment of the present invention;

[0037] Figure 3 : A size diagram of the hook ring and convex lens provided in an embodiment of the present invention;

[0038] Figure 4 : A structural schematic diagram of a spot size control device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without making creative efforts belong to the scope of protection of the present invention.

[0040] The present invention provides a method for controlling the spot size of an optoelectronic switch. Aiming at the problem that the beam spot of the commonly used non-laser optoelectronic switch is large and exceeds the range of the "light-absorbing material", which is prone to false judgment, the method of customizing the optimal second distance u (the distance between the optoelectronic switch and the convex lens, object distance) according to the determined "first distance v (the distance from the convex lens to the 'light-absorbing material', image distance)" is innovatively adopted to收拢 the beam spot area and reduce it to less than the range of the "light-absorbing material" coated on the inner wall at one end of the semi-circular arc of the hook ring, so that there is no (invalid) reflection when there is no object in the hook ring, avoiding false judgment phenomena and achieving reliable and effective detection.

[0041] Embodiment 1

[0042] Please refer to Figure 1 , which is a method for controlling the spot size provided by an embodiment of the present invention and is applied to several optoelectronic switches of a hook ring. The optoelectronic switches are evenly arranged on one semi-circular arc of the hook ring, and the other semi-circular arc of the hook ring is covered with a light-absorbing material. Each optoelectronic switch has a corresponding convex lens. The method includes the following steps S101-S104:

[0043] Step S101: Obtain the size of the hook ring and the spacing between each optoelectronic switch arranged in the hook ring.

[0044] In this embodiment, the size of the hook ring and the spacing between each optoelectronic switch arranged in the hook ring can be obtained by the user directly measuring and inputting, or the size data of the hook ring and the spacing between the optoelectronic switches can be pre-stored, and then directly obtained.

[0045] In this embodiment, please refer to Figure 2 , which is the imaging law diagram of the convex lens. Combining the lens imaging formula: The optimal second distance u can be adjusted between f < u < 2f so that the spot of the convex lens imaging at the smallest v (see Figure 2-2 the convex lens imaging law diagram of f < u < 2f) just falls on the position of the "light-absorbing material" coated on the inner wall of the hook ring. At this time, the beam spot is收拢 and reduced to a point, which will be much smaller than the range of the "light-absorbing material" coated on the inner wall of the hook ring, so that there is no (invalid) reflection when there is no object in the hook ring, avoiding false judgment phenomena and achieving reliable and effective detection.

[0046] In this example, see Figure 3 , which is a schematic diagram of the internal lens of the hook and loop machine, according to the convex lens imaging law diagram (see Figure 2 ), and the lens imaging formula: Assume that Figure 3 The hook is in the shape of a runway (oval-like), with the long side of a 6cm×5cm rectangle in the middle and semicircular arcs with a radius of 2.5cm at both ends. According to the installation dimensions, the measured distance L inside the rectangle is 3.5cm, and the minimum diameter of the hook (such as a fixing frame, safety rope, etc.) is 1.5cm; the focal length f of the lens is 1.6cm.

[0047] In this embodiment, since the hook object of the hook ring (such as a fixing frame, a safety rope, etc.) has a corresponding minimum diameter, and in order to accurately detect whether there is a hook object in the hook ring, the spacing between the photoelectric switches must be smaller than the diameter of the hook object of the hook ring, so that when the hook ring is in a hanging state, the photoelectric switch can emit corresponding light to the light-absorbing material at the other end of the hook ring. The hook object in the hook ring in the hanging state will affect the optical path of the photoelectric switch to the light-absorbing material at the other end of the hook ring, that is, the light emitted by the photoelectric switch is reflected after encountering the hook object, and the optical receiver can obtain the reflected light, and then perform hook and object detection.

[0048] In this embodiment, preferably, when the minimum diameter of the hook object (such as a fixing frame, a safety rope, etc.) of the hook ring is 1.5 cm, the average distance between each two adjacent light beams, that is, the distance between each photoelectric switch is:

[0049] Step S102: Calculate a first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material according to the size of the hook ring and the spacing.

[0050] As a preferred solution of this embodiment, the first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material is calculated according to the size of the hook ring and the spacing, specifically including:

[0051] According to the size of the hook ring and the position of each photoelectric switch, the inner rectangular distance of the convex lens corresponding to each photoelectric switch in the hook ring is determined; wherein the hook ring is an elliptical hook ring with a middle rectangle and semicircular arcs on both sides; according to the spacing between each photoelectric switch and the radius of the semicircular arc in the hook ring, the inner semicircular distance of the convex lens corresponding to each photoelectric switch in the hook ring is calculated; according to the inner rectangular distance and the inner semicircular distance, the first distance from the convex lens corresponding to each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material is calculated.

[0052] In this embodiment, based on the size of the snap ring and the position of each photoelectric switch set in the snap ring, the rectangular inner distance of the convex lens corresponding to each photoelectric switch in the snap ring and the semi-circular inner distance of the convex lens corresponding to each photoelectric switch in the snap ring can be determined, as shown in Figure 3 shown. For the photoelectric switch 1, the first distance v1 (object distance) of the emitted light beam 1 is: where l1 is the rectangular inner distance of the convex lens corresponding to each photoelectric switch in the snap ring, s1 is the semi-circular inner distance of the convex lens corresponding to each photoelectric switch in the snap ring, d is the distance between each photoelectric switch, and r is the radius of the semi-circular arc of the snap ring.

[0053] Step S103: Calculate the second distance between each photoelectric switch and the convex lens respectively according to the first distance and the focal length of the convex lens.

[0054] As a preferred solution of this embodiment, the calculating the second distance between each photoelectric switch and the convex lens respectively according to the first distance and the focal length of the convex lens specifically includes:

[0055] Based on the preset lens imaging formula, input the first distance and the focal length of the convex lens into the preset lens imaging formula, so as to calculate the second distance between each photoelectric switch and its corresponding convex lens respectively.

[0056] In this embodiment, the preset lens imaging formula is: where u is the second distance, v is the first distance, and f is the focal length of the convex lens. Exemplarily, according to the preset lens imaging formula, the optimal object distance (second distance) of the photoelectric switch 1 can be calculated: f = 1.6 cm < u1 = 2.14 cm < 2×f = 3.2 cm. According to Figure 2-2 the convex lens imaging law diagram of f < u < 2f, when f < u1 < 2f; and satisfies the lens imaging formula Then, at the position v where the imaging spot of the convex lens of the photoelectric switch 1 is the smallest (see Figure 2-2 the convex lens imaging law diagram of f < u < 2f) just falls on the position of the "light-absorbing material" coated on the inner wall of the snap ring. At this time, the light beam spot converges and shrinks to a point, which will be much smaller than the range of the "light-absorbing material" coated on the inner wall of the snap ring, thus avoiding misjudgment.

[0057] In this embodiment, similarly, the optimal object distances u2, u3... of other light sources of the photoelectric switches in the snap ring can be adjusted and set, so that the positions v where the imaging spots of their convex lenses are the smallest (see Figure 2-2The imaging pattern of the convex lens with f < u < 2f) also just falls on the position of the "light-absorbing material" coated on the inner wall of the hook ring. At this time, the light beam spot shrinks and converges into a point, which will be much smaller than the range of the "light-absorbing material" coated on the inner wall of the hook ring, thus avoiding misjudgment and achieving reliable and effective detection.

[0058] Further, for hook rings of various different specifications (see Figure 1 , 3 ), as long as the side length of the middle rectangle of the hook ring, the radius of the semi-circular arcs at both ends, the focal length f of the lens, and the "distance L inside the rectangle" measured according to the installation dimensions are known, the optimal object distance (the second distance) u of each light beam of the photoelectric switch can be calculated according to the above method, so that the smallest spot v of the convex lens imaging of them (see Figure 2-2 The imaging pattern of the convex lens with f < u < 2f) also just falls on the position of the "light-absorbing material" coated on the inner wall of the hook ring. At this time, the light beam spot shrinks and converges into a point, which will be much smaller than the range of the "light-absorbing material" coated on the inner wall of the hook ring, thus avoiding misjudgment and ultimately achieving reliable detection of "whether the hook ring of the seat belt is effectively hooked".

[0059] Step S104: Control the displacement of the photoelectric switch according to the second distance, so that the light rays emitted by each photoelectric switch can be focused on the light-absorbing material through its corresponding convex lens.

[0060] As a preferred solution of this embodiment, the controlling the displacement of the photoelectric switch according to the second distance specifically includes:

[0061] Input the second distance into the moving mechanism of the hook ring where the photoelectric switch is set, so that the moving mechanism controls the corresponding photoelectric switch to move according to the second distance; wherein, each photoelectric switch is set in the hook ring through its corresponding moving mechanism.

[0062] In this embodiment, the photoelectric switch is set in the moving mechanism, and the moving mechanism is set on the hook ring. After inputting the calculated second distance into the moving mechanism of the hook ring where the photoelectric switch is set, the corresponding photoelectric switch can be controlled to move according to the second distance, so that the photoelectric switch can maintain the second distance from the convex lens, and further the light rays emitted by the photoelectric switch can pass through the convex lens and be focused on the light-absorbing material to control the spot size of the photoelectric switch.

[0063] Implementing the above embodiments has the following effects:

[0064] The technical solution of the present invention can calculate the first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material by obtaining the size of the hook ring and the spacing between each photoelectric switch arranged in the hook ring, and then calculate the second distance between each photoelectric switch and the convex lens in combination with the focal length of the convex lens. Finally, according to the second distance corresponding to each photoelectric switch, the displacement of each photoelectric switch is controlled so that the light emitted by each photoelectric switch can be focused on the light-absorbing material through its corresponding convex lens, that is, the corresponding convex lens imaging just falls on the smallest light spot, and the light spot area will be greatly smaller than the range of the light-absorbing material coated on the inner wall of the hook ring, thereby improving the light spot focusing property of the non-laser photoelectric switch, so that there is no invalid reflection when there is nothing in the hook ring, thereby avoiding misjudgment and finally realizing reliable detection of whether the hook ring of the safety belt is effectively hooked.

[0065] Embodiment 2

[0066] See also Figure 4 , which is a light spot size control device provided by the present invention, applied to a plurality of photoelectric switches of a hook ring, the photoelectric switches are evenly arranged on a semicircular arc on one side of the hook ring, and the semicircular arc on the other side of the hook ring is covered with a light absorbing material, and each of the photoelectric switches has a corresponding convex lens, and the device includes: an acquisition module 201, a first distance module 202, a second distance module 203 and a control module 204;

[0067] The acquisition module 201 is used to acquire the size of the hook and the distance between each photoelectric switch arranged in the hook;

[0068] The first distance module 202 is used to calculate the first distance from each photoelectric switch to the semicircular arc of the hook ring covered with the light absorbing material according to the size of the hook ring and the spacing;

[0069] The second distance module 203 is used to calculate the second distance between each photoelectric switch and the convex lens according to the first distance and the focal length of the convex lens;

[0070] The control module 204 is used to control the photoelectric switches to move according to the second distance, so that the light emitted by each photoelectric switch can be focused on the light absorbing material through its corresponding convex lens.

[0071] As a preferred solution, the first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material is calculated according to the size of the hook ring and the spacing, specifically including:

[0072] According to the size of the hook ring and the position of each photoelectric switch, the distance of the convex lens corresponding to each photoelectric switch in the rectangle of the hook ring is determined; wherein the hook ring is an elliptical hook ring with a middle rectangle and semicircular arcs on both sides;

[0073] According to the spacing between each photoelectric switch and the radius of the semicircular arc in the hook ring, the distance of the convex lens corresponding to each photoelectric switch in the semicircle of the hook ring is calculated;

[0074] According to the inner distance of the rectangle and the inner distance of the semicircle, a first distance from the convex lens corresponding to each photoelectric switch to the hook semicircular arc covering the light absorbing material is calculated.

[0075] As a preferred solution, the second distance between each photoelectric switch and the convex lens is calculated based on the first distance and the focal length of the convex lens, specifically including:

[0076] Based on a preset lens imaging formula, the first distance and the focal length of the convex lens are input into the preset lens imaging formula, so as to calculate the second distance between each photoelectric switch and its corresponding convex lens.

[0077] As a preferred solution, controlling the photoelectric switch to move according to the second distance specifically includes:

[0078] The second distance is input into the moving mechanism of the hook ring for setting the photoelectric switch, so that the moving mechanism controls the corresponding photoelectric switch to move according to the second distance; wherein each photoelectric switch is set in the hook ring through its corresponding moving mechanism.

[0079] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0080] Implementing the above embodiments has the following effects:

[0081] The technical solution of the present invention can calculate the first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material by obtaining the size of the hook ring and the spacing between each photoelectric switch arranged in the hook ring, and then calculate the second distance between each photoelectric switch and the convex lens in combination with the focal length of the convex lens. Finally, according to the second distance corresponding to each photoelectric switch, the displacement of each photoelectric switch is controlled so that the light emitted by each photoelectric switch can be focused on the light-absorbing material through its corresponding convex lens, that is, the corresponding convex lens imaging just falls on the smallest light spot, and the light spot area will be greatly smaller than the range of the light-absorbing material coated on the inner wall of the hook ring, thereby improving the light spot focusing property of the non-laser photoelectric switch, so that there is no invalid reflection when there is nothing in the hook ring, thereby avoiding misjudgment and finally realizing reliable detection of whether the hook ring of the safety belt is effectively hooked.

[0082] Embodiment 3

[0083] Correspondingly, the present invention also provides a terminal device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the spot size control method as described in any one of the above embodiments when executing the computer program.

[0084] The terminal device of this embodiment includes: a processor, a memory, and a computer program and a computer instruction stored in the memory and executable on the processor. When the processor executes the computer program, each step in the above-mentioned embodiment 1 is implemented, for example: Figure 1 Alternatively, the processor implements the functions of each module / unit in the above device embodiment, such as the control module 204, when executing the computer program.

[0085] Exemplarily, the computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device. For example, the control module 204 is used to control the displacement of the photoelectric switch according to the second distance, so that the light emitted by each photoelectric switch can be focused on the light absorbing material through its corresponding convex lens.

[0086] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the terminal device may also include an input / output device, a network access device, a bus, etc.

[0087] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and various interfaces and lines are used to connect various parts of the entire terminal device.

[0088] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (SecureDi gita l, SD) card, a flash card (F l ash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0089] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0090] Embodiment 4

[0091] Accordingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the spot size control method described in any one of the above embodiments.

[0092] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for controlling the spot size, characterized in that: Among the photoelectric switches applied to the hook ring, the photoelectric switches are evenly arranged on a semicircular arc on one side of the hook ring, and the semicircular arc on the other side of the hook ring is covered with a light-absorbing material, and each of the photoelectric switches has a corresponding convex lens. The method includes: Obtaining the size of the hook and the spacing between each photoelectric switch arranged in the hook; According to the size of the hook ring and the spacing, a first distance from each photoelectric switch to the semicircular arc of the hook ring covering the light-absorbing material is calculated; According to the first distance and the focal length of the convex lens, a second distance between each photoelectric switch and the convex lens is calculated; The photoelectric switches are controlled to move according to the second distance, so that the light emitted by each photoelectric switch can be focused on the light absorbing material through its corresponding convex lens.

2. A method for controlling the spot size according to claim 1, characterized in that: The calculating, based on the size of the hook ring and the spacing, of a first distance from each photoelectric switch to the hook ring semicircular arc covering the light absorbing material specifically includes: According to the size of the hook ring and the position of each photoelectric switch, the distance of the convex lens corresponding to each photoelectric switch in the rectangle of the hook ring is determined; wherein the hook ring is an elliptical hook ring with a middle rectangle and semicircular arcs on both sides; According to the spacing between each photoelectric switch and the radius of the semicircular arc in the hook ring, the distance of the convex lens corresponding to each photoelectric switch in the semicircle of the hook ring is calculated; According to the inner distance of the rectangle and the inner distance of the semicircle, a first distance from the convex lens corresponding to each photoelectric switch to the hook semicircular arc covering the light-absorbing material is calculated.

3. A method for controlling the light spot size as claimed in claim 1, characterized in that: The step of calculating the second distance between each photoelectric switch and the convex lens according to the first distance and the focal length of the convex lens specifically includes: Based on a preset lens imaging formula, the first distance and the focal length of the convex lens are input into the preset lens imaging formula, so as to calculate the second distance between each photoelectric switch and its corresponding convex lens.

4. A method for controlling the light spot size as claimed in claim 3, characterized in that: The controlling the photoelectric switch to move according to the second distance specifically includes: The second distance is input into the moving mechanism of the hook ring for setting the photoelectric switch, so that the moving mechanism controls the corresponding photoelectric switch to move according to the second distance; wherein each photoelectric switch is set in the hook ring through its corresponding moving mechanism.

5. A spot size control device, characterized in that: Among the photoelectric switches applied to the hook ring, the photoelectric switches are evenly arranged on a semicircular arc on one side of the hook ring, and the semicircular arc on the other side of the hook ring is covered with a light-absorbing material. Each of the photoelectric switches has a corresponding convex lens. The device includes: an acquisition module, a first distance module, a second distance module and a control module; The acquisition module is used to acquire the size of the hook and the distance between each photoelectric switch arranged in the hook; The first distance module is used to calculate a first distance from each photoelectric switch to a semicircular arc of the hook ring covered with the light-absorbing material according to the size of the hook ring and the spacing; The second distance module is used to calculate the second distance between each photoelectric switch and the convex lens according to the first distance and the focal length of the convex lens; The control module is used to control the photoelectric switches to move according to the second distance, so that the light emitted by each photoelectric switch can be focused on the light absorbing material through its corresponding convex lens.

6. A spot size control device as claimed in claim 5, characterized in that: The calculating, based on the size of the hook ring and the spacing, of a first distance from each photoelectric switch to the hook ring semicircular arc covering the light absorbing material specifically includes: According to the size of the hook ring and the position of each photoelectric switch, the distance of the convex lens corresponding to each photoelectric switch in the rectangle of the hook ring is determined; wherein the hook ring is an elliptical hook ring with a middle rectangle and semicircular arcs on both sides; According to the spacing between each photoelectric switch and the radius of the semicircular arc in the hook ring, the distance of the convex lens corresponding to each photoelectric switch in the semicircle of the hook ring is calculated; According to the inner distance of the rectangle and the inner distance of the semicircle, a first distance from the convex lens corresponding to each photoelectric switch to the hook semicircular arc covering the light-absorbing material is calculated.

7. A spot size control device as claimed in claim 5, characterized in that: The step of calculating the second distance between each photoelectric switch and the convex lens according to the first distance and the focal length of the convex lens specifically includes: Based on a preset lens imaging formula, the first distance and the focal length of the convex lens are input into the preset lens imaging formula, so as to calculate the second distance between each photoelectric switch and its corresponding convex lens.

8. A spot size control device as claimed in claim 7, characterized in that: The controlling the photoelectric switch to move according to the second distance specifically includes: The second distance is input into the moving mechanism of the hook ring for setting the photoelectric switch, so that the moving mechanism controls the corresponding photoelectric switch to move according to the second distance; wherein each photoelectric switch is set in the hook ring through its corresponding moving mechanism.

9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the spot size control method according to any one of claims 1 to 4 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the spot size control method according to any one of claims 1 to 4.