Light adjusting method and device, electronic equipment and storage medium
The preset light search instrument adjusts the direction of the light beam and fine-tune adjustment of the internal light search mode, which solves the problem of false alarms caused by beam offset of the gap detection system and low light efficiency, achieving a fast and simplified light adjustment process.
Patent Information
- Application Number
- CN202411300445.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-02-07
AI Technical Summary
After the existing gap detection system operates the beam to emit light for a period of time, the beam is offset due to external factors, causing random false alarms, and the light processing efficiency is inefficient and time-consuming.
The light beam is adjusted by a preset light seeker to obtain a first light beam that coincides with the preset reference line, and the first light beam is finely adjusted through the internal light seeking mode, so that the center point of the light spot coincides with the reception window of the beam receiving end.
It realizes rapid light adjustment, simplifies the light adjustment process, shortens the light adjustment time, and reduces the light adjustment difficulty.
Smart Images

Figure CN119395776A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of laser technology, and in particular to a light adjustment method and device, electronic equipment and storage medium. Background Art
[0002] The alarm principle of the existing gap detection system is the optical path interruption alarm. The gap detection system has good directionality. Its core component is mainly the light beam reflection device. A group of laser transmitting equipment is arranged at the head end of the subway platform door, and the corresponding laser receiving equipment is arranged at the tail end of the subway platform door. By detecting the reception of the laser at the receiving end, it is determined whether there is an obstacle in the middle.
[0003] However, after the light beam alignment device has been running for a period of time, due to external factors (vibration, offset of the receiving or transmitting bracket), etc., the laser light source of the light beam alignment device may be offset, that is, the lens at the receiving end offsets the center position of the light spot formed by the light source at the transmitting end. This situation is a polarized state. Although the system can work normally and can output an alarm normally when the light beam is completely blocked, the system is not in a normal working state at this time. When the light beam is offset to a certain extent, random false alarms will occur. Therefore, it takes a certain amount of time to align the light beam alignment device.
[0004] In the prior art, the light is generally aligned by a handheld light finder or by the light beam matching device itself. When the light is aligned by the handheld light finder, there is a delay in the light alignment, and the light intensity signal cannot be received in time after the light is aligned correctly, resulting in low light alignment efficiency. When the light is aligned by the light beam matching device itself, since the existing light beam matching device only has an indicator light display, the state of the indicator light can only display or judge the working state of the light beam matching device, such as whether it is in the alignment state or the alarm state, and cannot display the offset state of the light beam, resulting in low light alignment efficiency, long time consumption, and great difficulty when performing the light alignment process.
[0005] Therefore, how to shorten the time spent on lighting and reduce the difficulty of lighting is a problem that needs to be solved urgently. Summary of the invention
[0006] The present invention provides a method and device for adjusting light, an electronic device and a storage medium, the main purpose of which is to shorten the time spent on adjusting light and reduce the difficulty of adjusting light.
[0007] According to a first aspect of the present disclosure, a method for adjusting light is provided, comprising:
[0008] In response to the triggered mode instruction, a light-seeking mode of the device to be dimmed is turned on; the device to be dimmed comprises a light beam emitting end and a light beam receiving end;
[0009] Based on the light-seeking mode and the preset light-seeking instrument, the initial light beam emitted by the light-emitting end is subjected to direction adjustment processing to obtain a first light beam; wherein the beam direction of the first light beam coincides with a preset reference line;
[0010] The first light beam is subjected to light-seeking processing based on the light-seeking mode to obtain a target light beam, wherein a center point of a light spot of the target light beam coincides with a receiving window of the light beam receiving end.
[0011] Optionally, the step of performing a direction adjustment process on the initial light beam emitted by the light beam emitting end based on the light-seeking mode and a preset light-seeking instrument to obtain the first light beam comprises:
[0012] Detecting, by means of the preset light finder at a preset distance from the light beam emission end, whether the beam direction of the initial light beam coincides with the preset reference line;
[0013] In a case where the beam direction of the initial beam coincides with the preset reference line, using the initial beam as the first beam;
[0014] When the beam direction of the initial light beam does not coincide with the preset reference line, the initial light beam is subjected to a direction adjustment process until the beam direction of the initial light beam coincides with the preset reference line, thereby obtaining the first light beam.
[0015] Optionally, performing light-seeking processing on the first light beam based on the light-seeking mode to obtain a target light beam includes:
[0016] The first light beam is directional-adjusted based on the light-seeking mode to obtain light intensity data and first sound data corresponding to the first light beam in different light beam directions; wherein the light intensity data is obtained through a light intensity display digital tube at the light beam receiving end;
[0017] Extracting target light intensity data from the light intensity data and target sound data from the first sound data; wherein the target light intensity data is the maximum light intensity data from the light intensity data, and the target sound data is the maximum sound data from the first sound data;
[0018] The first light beam corresponding to the target light intensity data and the target sound data is used as the target light beam.
[0019] Optionally, after starting the light-seeking mode of the device to be dimmed in response to the triggered mode instruction, the method further includes:
[0020] Acquiring light beam emission information of the light beam emitting end;
[0021] When it is determined according to the light beam emission information that the light beam emission end emits abnormal light, the device to be dimmed is turned off to end the light adjustment process;
[0022] When it is determined according to the light beam emission information that the light beam emitting end emits light normally, a direction adjustment process is performed on the initial light beam emitted by the light beam emitting end based on the light-seeking mode and a preset light-seeking instrument.
[0023] Optionally, after performing light-seeking processing on the first light beam based on the light-seeking mode to obtain a target light beam, the method further includes:
[0024] Acquiring alarm data of the light beam receiving end; wherein the alarm data is obtained by interrupting the target light beam;
[0025] When it is determined according to the alarm data that the light beam receiving end is in normal alarm, exiting the light-seeking mode and completing the light adjustment;
[0026] When it is determined according to the alarm data that the light beam receiving end has issued an abnormal alarm, the target light beam continues to be searched for.
[0027] According to a second aspect of the present disclosure, there is provided a light adjustment device, comprising:
[0028] An opening unit, used for opening a light-seeking mode of a device to be dimmed in response to a triggered mode instruction; the device to be dimmed comprises a light beam emitting end and a light beam receiving end;
[0029] An adjustment unit, configured to adjust the direction of an initial light beam emitted by the light beam emitting end based on the light-seeking mode and a preset light-seeking instrument, so as to obtain a first light beam; wherein the beam direction of the first light beam coincides with a preset reference line;
[0030] A light-seeking unit is used to perform light-seeking processing on the first light beam based on the light-seeking mode to obtain a target light beam, wherein a center point of a light spot of the target light beam coincides with a receiving window of the light beam receiving end.
[0031] Optionally, the adjustment unit includes:
[0032] A detection module, used for detecting whether the beam direction of the initial light beam coincides with the preset reference line according to the preset light finder at a preset distance from the light beam emission end;
[0033] a determination module, configured to use the initial light beam as the first light beam when the light beam direction of the initial light beam coincides with the preset reference line;
[0034] The adjustment module is used to adjust the direction of the initial light beam when the beam direction of the initial light beam does not coincide with the preset reference line, so as to obtain the first light beam.
[0035] Optionally, the light-seeking unit includes:
[0036] An adjustment module, used for performing direction adjustment processing on the first light beam based on the light-seeking mode, to obtain light intensity data and first sound data corresponding to the first light beam in different light beam directions; wherein the light intensity data is obtained through a light intensity display digital tube at the light beam receiving end;
[0037] An extraction module, used for extracting target light intensity data from the light intensity data and target sound data from the first sound data; wherein the target light intensity data is the maximum light intensity data from the light intensity data, and the target sound data is the maximum sound data from the first sound data;
[0038] A determination module is used to use the first light beam corresponding to the target light intensity data and the target sound data as the target light beam.
[0039] Optionally, the device further comprises:
[0040] A first acquisition unit, used to acquire the light beam emission information of the light beam emitting end;
[0041] An ending unit, configured to turn off the device to be dimmed and end the light adjustment process when it is determined according to the light beam emission information that the light beam emission end emits abnormal light;
[0042] The adjustment unit is further configured to, when it is determined according to the light beam emission information that the light beam emitting end emits light normally, perform direction adjustment processing on the initial light beam emitted by the light beam emitting end based on the light finding mode and a preset light finding instrument.
[0043] Optionally, the device further comprises:
[0044] A second acquisition unit, used to acquire alarm data of the light beam receiving end; wherein the alarm data is obtained by blocking the target light beam;
[0045] An exit unit, configured to exit the light-seeking mode and complete light adjustment when it is determined according to the alarm data that the light beam receiving end has normally alarmed;
[0046] The light-seeking unit is further configured to, when it is determined according to the alarm data that the light beam receiving end has issued an abnormal alarm, continue to perform light-seeking processing on the target light beam.
[0047] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0048] at least one processor; and
[0049] a memory communicatively connected to the at least one processor; wherein,
[0050] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.
[0051] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0052] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.
[0053] The light adjustment method and device, electronic device and storage medium provided by the present disclosure start the light-seeking mode of the device to be adjusted in response to a triggered mode instruction; the device to be adjusted includes a light beam emitting end and a light beam receiving end; based on the light-seeking mode and a preset light-seeking instrument, the initial light beam emitted by the light beam emitting end is subjected to direction adjustment processing to obtain a first light beam; wherein the beam direction of the first light beam coincides with a preset reference line; based on the light-seeking mode, the first light beam is subjected to light-seeking processing to obtain a target light beam, wherein the center point of the light spot of the target light beam coincides with the receiving window of the light beam receiving end. Compared with the related art, the embodiment of the present disclosure first adjusts the direction of the light beam through a preset light-seeking instrument, and then, through an internal light-seeking mode, judges or corrects the light beam at the receiving end in detail, so that the center point of the light spot coincides with the receiving window of the light beam receiving end, thereby enabling rapid light alignment, simplifying the light alignment process, and shortening the light alignment time.
[0054] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0056] Figure 1 A schematic flow chart of a light adjustment method provided by an embodiment of the present disclosure;
[0057] Figure 2A schematic diagram of a light spot and a receiving window provided in an embodiment of the present disclosure;
[0058] Figure 3 A schematic diagram of the structure of a light beam receiving end provided by an embodiment of the present disclosure;
[0059] Figure 4 A schematic diagram of the structure of a light adjustment device provided in an embodiment of the present disclosure;
[0060] Figure 5 A schematic diagram of the structure of another light adjustment device provided by an embodiment of the present disclosure;
[0061] Figure 6 A schematic block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0062] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0063] The light adjustment method, device, electronic device and storage medium according to the embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0064] Figure 1 A schematic flow chart of a light adjustment method provided in an embodiment of the present disclosure.
[0065] like Figure 1 As shown, the method comprises the following steps:
[0066] Step 101 , in response to a triggered mode instruction, starting a light-seeking mode of a device to be dimmed; the device to be dimmed comprises a light beam emitting end and a light beam receiving end.
[0067] In the embodiment of the present disclosure, the dimming device includes a plurality of buttons. When the user long presses the buttons, the dimming device can respond to the button command to turn on the light-seeking mode. Regarding the method of triggering the mode command, for example, long pressing the mode button on the light beam receiving end for 3s to switch to the light-seeking mode, etc. Specifically, the embodiment of the present disclosure does not limit the method of triggering the mode command.
[0068] Step 102, based on the light-seeking mode and a preset light-seeking instrument, a direction adjustment process is performed on the initial light beam emitted by the light-emitting end to obtain a first light beam; wherein the beam direction of the first light beam coincides with a preset reference line.
[0069] In the embodiment of the present disclosure, the direction of the initial light beam is adjusted by first performing a preliminary adjustment through a preset light finder so that the beam direction of the initial light beam coincides with a preset reference line, wherein the preset reference line is a custom reference line used to roughly determine the direction of the light beam so that the light beam emitted by the light beam emitting end can accurately illuminate the light beam receiving end.
[0070] When adjusting the direction of the initial light beam, it is necessary to proceed in stages, that is, to place the preset light finder at different distances from the light beam emission end, and adjust the direction of the initial light beam at each distance. For example, place the preset light finder at 2 meters from the light beam emission end to adjust the beam and determine the direction of the beam. If the light beam deviates from the preset reference line (the horizontal and vertical reference lines are flush), adjust the laser optical path at the light beam emission end so that the direction of the light beam coincides with the preset reference line; adopt the above method to move the preset light finder to 5 meters, 10 meters, and 20 meters from the light beam emission end to adjust the corresponding light beam; after 20 meters, it can be adjusted every 30 meters or 50 meters according to the actual situation on site.
[0071] It should be noted that when adjusting the beam direction of the initial light beam, it can be automatically adjusted by the device to be debugged, or it can be manually adjusted by the user. When performing manual adjustment, it is necessary to remove the hole plug behind the beam adjustment device at the beam emitting end, and it is necessary to arrange one person at the beam emitting end to be responsible for adjusting the beam direction, and another person to find the light along the reference line; when performing automatic adjustment, the initial light beam can be automatically adjusted to coincide with the preset reference line according to the preset light finder and the light finding mode of the device to be debugged.
[0072] Step 103 , performing light-seeking processing on the first light beam based on the light-seeking mode to obtain a target light beam, wherein a center point of a light spot of the target light beam coincides with a receiving window of the light beam receiving end.
[0073] In the embodiment of the present disclosure, after obtaining the first light beam by adjusting the initial light beam so that the beam direction coincides with a preset reference line, it is necessary to fine-tune the first light beam through a light-seeking mode so that the center point of the light spot coincides with the receiving window of the beam receiving end.
[0074] In order to facilitate understanding of the implementation process of the embodiment of the present disclosure, the present disclosure provides a schematic diagram of a light spot and a receiving window, such as Figure 2 As shown, it is a schematic diagram of the position of the light beam after light seeking, that is, the target light beam and the receiving window of the light beam receiving end.
[0075] Regarding the light-seeking process for the first light beam, the following methods may be used but are not limited to: use a light-seeker (or the receiver switches to the light-seeking mode by pressing and holding the mode button for 3 seconds), enter the light-seeking mode, first sweep the light-seeker back and forth in the horizontal direction, find the point with the strongest sound, and then sweep back and forth in the vertical direction. The center point of the laser beam is when the alarm sound at the receiving end is the strongest and the light intensity value at the receiving end reaches 90 (the indicator light is always on for the strongest point, and the indicator light flashes for the offset point). The sound of the seeker gradually weakens from the center point to the surrounding area. Since the light spot is in the shape of a long strip (approximately an elongated ellipse), the detector should be swung left and right or up and down with the receiving window as the center. According to the critical point of the sound, the range of the light spot can be inferred to ensure that the center point of the light spot coincides with the receiving window to obtain the target beam.
[0076] At the same time, in order to intuitively understand the light beam receiving end, the embodiment of the present disclosure provides a structural schematic diagram of the light beam receiving end, such as Figure 3 shown.
[0077] The light adjustment method provided by the present disclosure starts the light-seeking mode of the device to be adjusted in response to a triggered mode instruction; the device to be adjusted includes a light beam emitting end and a light beam receiving end; based on the light-seeking mode and a preset light-seeking instrument, the initial light beam emitted by the light beam emitting end is subjected to direction adjustment processing to obtain a first light beam; wherein the beam direction of the first light beam coincides with a preset reference line; based on the light-seeking mode, the first light beam is subjected to light-seeking processing to obtain a target light beam, wherein the center point of the light spot of the target light beam coincides with the receiving window of the light beam receiving end. Compared with the related art, the embodiment of the present disclosure first adjusts the direction of the light beam through a preset light-seeking instrument, and then, through an internal light-seeking mode, judges or corrects the light beam at the receiving end in detail, so that the center point of the light spot coincides with the receiving window of the light beam receiving end, thereby enabling rapid alignment, simplifying the alignment process, and shortening the alignment time.
[0078] In one implementable manner of the embodiment of the present disclosure, as a refinement of the above-mentioned step 102, when adjusting the direction of the initial light beam, it can be implemented in the following manner but not limited to: according to the preset light finder at a preset distance from the light beam emitting end, detecting whether the beam direction of the initial light beam coincides with the preset reference line; in the case that the beam direction of the initial light beam coincides with the preset reference line, taking the initial light beam as the first light beam; in the case that the beam direction of the initial light beam does not coincide with the preset reference line, adjusting the direction of the initial light beam until the beam direction of the initial light beam coincides with the preset reference line, thereby obtaining the first light beam.
[0079] In the embodiment of the present disclosure, the preset distance is a custom-set distance, for example: 2 meters, 5 meters, 10 meters, 20 meters, etc. Specifically, the setting of the preset distance can be determined according to actual conditions, and the embodiment of the present disclosure does not limit it.
[0080] In one implementable manner of the disclosed embodiment, as a refinement of the above-mentioned step 103, when performing light-seeking processing on the first light beam, it can be implemented in the following manner but not limited to: performing direction adjustment processing on the first light beam based on the light-seeking mode to obtain light intensity data and first sound data corresponding to the first light beam in different beam directions; wherein the light intensity data is acquired through a light intensity display digital tube at the light beam receiving end; extracting target light intensity data from the light intensity data and target sound data from the first sound data; wherein the target light intensity data is the largest light intensity data in the light intensity data, and the target sound data is the largest sound data in the first sound data; taking the first light beam corresponding to the target light intensity data and the target sound data as the target light beam.
[0081] In the disclosed embodiment, a preset light finder is used (or the receiver switches to the light finding mode by pressing and holding the mode button for 3 seconds) to enter the light finding mode. The light finder is first swept back and forth in the horizontal direction to find the point with the strongest sound, and then swept back and forth in the vertical direction until the center point of the light beam is found, so that the center point of the light beam coincides with the receiving window of the light beam receiving end.
[0082] In one implementable manner of the embodiment of the present disclosure, when performing light adjustment, it is necessary to pre-detect whether the beam emitting end can emit the beam normally. If the beam emitting end cannot emit the beam normally, it indicates that the device to be adjusted may be damaged. At this time, the light adjustment process cannot be performed. Only when the beam emitting end can emit the beam normally can the light adjustment process be performed. Therefore, in order to determine the prerequisite for light adjustment, the following method may also be used but is not limited to: obtaining the beam emission information of the beam emitting end; when it is determined according to the beam emission information that the beam emitting end is abnormally emitting light, turning off the device to be adjusted and ending the light adjustment process; when it is determined according to the beam emission information that the beam emitting end is emitting light normally, performing direction adjustment processing on the initial beam emitted by the beam emitting end based on the light-seeking mode and a preset light-seeking instrument.
[0083] In the embodiment of the present disclosure, the light beam emission information includes but is not limited to: the light beam emission state of the light beam emission end, the light beam intensity, etc., and specifically, the embodiment of the present disclosure does not limit this.
[0084] In one implementable manner of the embodiment of the present disclosure, after the light adjustment is completed, it is necessary to verify the device to be dimmed to determine whether the light adjustment is successful. Regarding the verification of the device to be dimmed, the following method may also be used but is not limited to: obtaining the alarm data of the light beam receiving end; wherein the alarm data is obtained by isolating the target light beam; when it is determined according to the alarm data that the light beam receiving end has alarmed normally, exiting the light-seeking mode and completing the light adjustment; when it is determined according to the alarm data that the light beam receiving end has alarmed abnormally, continuing to perform light-seeking processing on the target light beam.
[0085] In the disclosed embodiment, verification can be performed in the following ways but not limited to: after completing the light adjustment, block the light path, short-press the mode button to switch the amount of light beam blocking as needed, and after confirming that it is ok, install all the hole plugs behind the transmitter / receiver (when the receiver is used as a light finder, it is necessary to exit the light-seeking mode by long-pressing the mode button for 3 seconds).
[0086] In summary, the embodiments of the present disclosure can achieve the following effects:
[0087] The disclosed embodiment first adjusts the direction of the light beam through a preset light-seeking instrument, and then uses an internal light-seeking mode to make a detailed judgment or correction on the light beam at the receiving end, so that the center point of the light spot coincides with the receiving window of the light beam receiving end, thereby enabling rapid alignment, simplifying the alignment process, and shortening the alignment time.
[0088] Corresponding to the above light adjustment method, the present invention also provides a light adjustment device. Since the device embodiment of the present invention corresponds to the above method embodiment, details not disclosed in the device embodiment can be referred to the above method embodiment, and will not be repeated in the present invention.
[0089] Figure 4 A schematic diagram of the structure of a light adjustment device provided in an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, including:
[0090] An opening unit 41 is used to open a light-seeking mode of a device to be dimmed in response to a triggered mode instruction; the device to be dimmed comprises a light beam emitting end and a light beam receiving end;
[0091] An adjustment unit 42 is used to adjust the direction of the initial light beam emitted by the light beam emitting end based on the light-seeking mode and a preset light-seeking instrument to obtain a first light beam; wherein the beam direction of the first light beam coincides with a preset reference line;
[0092] The light-seeking unit 43 is used to perform light-seeking processing on the first light beam based on the light-seeking mode to obtain a target light beam, wherein a center point of a light spot of the target light beam coincides with a receiving window of the light beam receiving end.
[0093] The light adjustment device provided by the present disclosure starts the light-seeking mode of the device to be adjusted in response to a triggered mode instruction; the device to be adjusted includes a light beam emitting end and a light beam receiving end; based on the light-seeking mode and a preset light-seeking instrument, the initial light beam emitted by the light beam emitting end is subjected to direction adjustment processing to obtain a first light beam; wherein the beam direction of the first light beam coincides with a preset reference line; based on the light-seeking mode, the first light beam is subjected to light-seeking processing to obtain a target light beam, wherein the center point of the light spot of the target light beam coincides with the receiving window of the light beam receiving end. Compared with the related art, the embodiment of the present disclosure first adjusts the direction of the light beam through a preset light-seeking instrument, and then, through an internal light-seeking mode, judges or corrects the light beam at the receiving end in detail, so that the center point of the light spot coincides with the receiving window of the light beam receiving end, thereby enabling rapid alignment, simplifying the alignment process, and shortening the alignment time.
[0094] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 5 As shown, the adjustment unit 42 includes:
[0095] A detection module 421, configured to detect whether the beam direction of the initial light beam coincides with the preset reference line at a preset distance from the light beam emission end according to the preset light finder;
[0096] A determination module 422, configured to use the initial light beam as the first light beam when the light beam direction of the initial light beam coincides with the preset reference line;
[0097] The adjustment module 423 is used to adjust the direction of the initial light beam when the beam direction of the initial light beam does not coincide with the preset reference line, until the beam direction of the initial light beam coincides with the preset reference line, thereby obtaining the first light beam.
[0098] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 5 As shown, the light-seeking unit 43 includes:
[0099] The adjustment module 431 is used to adjust the direction of the first light beam based on the light-seeking mode to obtain light intensity data and first sound data corresponding to the first light beam in different light beam directions; wherein the light intensity data is obtained through the light intensity display digital tube at the light beam receiving end;
[0100] An extraction module 432 is used to extract target light intensity data from the light intensity data and target sound data from the first sound data; wherein the target light intensity data is the maximum light intensity data from the light intensity data, and the target sound data is the maximum sound data from the first sound data;
[0101] The determination module 433 is configured to use the first light beam corresponding to the target light intensity data and the target sound data as the target light beam.
[0102] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 5 As shown, the device also includes:
[0103] A first acquisition unit 44, used to acquire the light beam emission information of the light beam emitting end;
[0104] An ending unit 45 is used to turn off the device to be dimmed and end the light adjustment process when it is determined that the light beam emitting end emits abnormal light according to the light beam emission information;
[0105] The adjustment unit 42 is further configured to, when it is determined according to the light beam emission information that the light beam emission end is emitting light normally, adjust the direction of the initial light beam emitted by the light beam emission end based on the light finding mode and a preset light finder.
[0106] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 5 As shown, the device also includes:
[0107] A second acquisition unit 46 is used to acquire the alarm data of the light beam receiving end; wherein the alarm data is obtained by blocking the target light beam;
[0108] An exit unit 47 is used to exit the light-seeking mode and complete the light adjustment when it is determined according to the alarm data that the light beam receiving end normally alarms;
[0109] The light-seeking unit 43 is further configured to continue to perform light-seeking processing on the target light beam when it is determined according to the alarm data that the light beam receiving end has issued an abnormal alarm.
[0110] It should be noted that the above explanation of the method embodiment is also applicable to the device of the embodiment of the present disclosure, and the principle is the same, which is no longer limited in the embodiment of the present disclosure.
[0111] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0112] Figure 6A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0113] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 to a RAM (Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An I / O (Input / Output) interface 605 is also connected to the bus 604.
[0114] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0115] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as the method of light adjustment. For example, in some embodiments, the method of light adjustment may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the aforementioned light adjustment method in any other appropriate manner (for example, by means of firmware).
[0116] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a special purpose or general purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0117] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0118] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or a flash memory, an optical fiber, a CD-ROM (Compact Dis sc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0119] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0120] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0121] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0122] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0123] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0124] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for adjusting light, characterized in that: include: In response to the triggered mode instruction, a light-seeking mode of the device to be dimmed is turned on; the device to be dimmed comprises a light beam emitting end and a light beam receiving end; Based on the light-seeking mode and the preset light-seeking instrument, the direction of the initial light beam emitted by the light-emitting end is adjusted to obtain a first light beam; wherein the beam direction of the first light beam coincides with a preset reference line; The first light beam is subjected to light-seeking processing based on the light-seeking mode to obtain a target light beam, wherein a center point of a light spot of the target light beam coincides with a receiving window of the light beam receiving end.
2. The method according to claim 1, characterized in that The step of performing a direction adjustment process on the initial light beam emitted by the light beam emitting end based on the light-seeking mode and a preset light-seeking instrument to obtain the first light beam comprises: Detecting, by means of the preset light finder at a preset distance from the light beam emission end, whether the beam direction of the initial light beam coincides with the preset reference line; In a case where the beam direction of the initial beam coincides with the preset reference line, using the initial beam as the first beam; When the beam direction of the initial light beam does not coincide with the preset reference line, the initial light beam is subjected to a direction adjustment process until the beam direction of the initial light beam coincides with the preset reference line, thereby obtaining the first light beam.
3. The method according to claim 1, characterized in that The performing light-seeking processing on the first light beam based on the light-seeking mode to obtain a target light beam comprises: The first light beam is directional-adjusted based on the light-seeking mode to obtain light intensity data and first sound data corresponding to the first light beam in different light beam directions; wherein the light intensity data is obtained through a light intensity display digital tube at the light beam receiving end; Extracting target light intensity data from the light intensity data and target sound data from the first sound data; wherein the target light intensity data is the maximum light intensity data from the light intensity data, and the target sound data is the maximum sound data from the first sound data; The first light beam corresponding to the target light intensity data and the target sound data is used as the target light beam.
4. The method according to claim 1, characterized in that: After starting the light-seeking mode of the device to be dimmed in response to the triggered mode instruction, the method further includes: Acquiring light beam emission information of the light beam emitting end; When it is determined according to the light beam emission information that the light beam emission end emits abnormal light, the device to be dimmed is turned off to end the light adjustment process; When it is determined according to the light beam emission information that the light beam emitting end emits light normally, a direction adjustment process is performed on the initial light beam emitted by the light beam emitting end based on the light-seeking mode and a preset light-seeking instrument.
5. The method according to claim 1, characterized in that After performing light-seeking processing on the first light beam based on the light-seeking mode to obtain a target light beam, the method further includes: Acquiring alarm data of the light beam receiving end; wherein the alarm data is obtained by interrupting the target light beam; When it is determined according to the alarm data that the light beam receiving end is in normal alarm, exiting the light-seeking mode and completing the light adjustment; When it is determined according to the alarm data that the light beam receiving end has issued an abnormal alarm, the target light beam continues to be searched for.
6. A light adjustment device, characterized in that: include: An opening unit, used for opening a light-seeking mode of the device to be dimmed in response to a triggered mode instruction; The device to be dimmed comprises a light beam emitting end and a light beam receiving end; An adjustment unit, configured to adjust the direction of an initial light beam emitted by the light beam emitting end based on the light-seeking mode and a preset light-seeking instrument, so as to obtain a first light beam; wherein the beam direction of the first light beam coincides with a preset reference line; A light-seeking unit is used to perform light-seeking processing on the first light beam based on the light-seeking mode to obtain a target light beam, wherein a center point of a light spot of the target light beam coincides with a receiving window of the light beam receiving end.
7. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.
9. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 5.