WO2021013149A1 - Lamp, lamp control method and system, and computer readable storage medium - Google Patents

Lamp, lamp control method and system, and computer readable storage medium Download PDF

Info

Publication number
WO2021013149A1
WO2021013149A1 PCT/CN2020/103295 CN2020103295W WO2021013149A1 WO 2021013149 A1 WO2021013149 A1 WO 2021013149A1 CN 2020103295 W CN2020103295 W CN 2020103295W WO 2021013149 A1 WO2021013149 A1 WO 2021013149A1
Authority
WO
WIPO (PCT)
Prior art keywords
lamp
head
rotation angle
angle
pitch
Prior art date
Application number
PCT/CN2020/103295
Other languages
French (fr)
Chinese (zh)
Inventor
高友权
Original Assignee
东莞市霍晶光电科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 东莞市霍晶光电科技有限公司 filed Critical 东莞市霍晶光电科技有限公司
Publication of WO2021013149A1 publication Critical patent/WO2021013149A1/en

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V21/00Supporting, suspending, or attaching arrangements for lighting devices; Hand grips
    • F21V21/08Devices for easy attachment to any desired place, e.g. clip, clamp, magnet
    • F21V21/084Head fittings
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V21/00Supporting, suspending, or attaching arrangements for lighting devices; Hand grips
    • F21V21/14Adjustable mountings
    • F21V21/30Pivoted housings or frames
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V23/00Arrangement of electric circuit elements in or on lighting devices
    • F21V23/003Arrangement of electric circuit elements in or on lighting devices the elements being electronics drivers or controllers for operating the light source, e.g. for a LED array
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V23/00Arrangement of electric circuit elements in or on lighting devices
    • F21V23/04Arrangement of electric circuit elements in or on lighting devices the elements being switches
    • F21V23/0435Arrangement of electric circuit elements in or on lighting devices the elements being switches activated by remote control means

Definitions

  • This application relates to the technical field of smart terminals, and in particular to a lamp, a lamp control method, system, and computer-readable storage medium.
  • the lighting fixtures When working in dark scenes, the lighting fixtures need to be maneuvered to follow the operator's visual direction.
  • the existing lamps are mainly operated by remote control handles, which are difficult to achieve accurate and timely steering.
  • the lamps on the machinery are installed in a fixed direction.
  • the direction of the whole machine needs to be adjusted, so the work efficiency is low, the flexibility is also poor, and the blind spot of the light will increase the occurrence of safety accidents.
  • the main purpose of this application is to provide a lamp, a lamp control method, system, and computer-readable storage medium, so that the lamp can be turned accurately and timely according to the visual direction of the operator.
  • a lamp includes: a lamp body, a horizontal rotation driving device, a pitch rotation driving device, a head-mounted controller and an angle position sensor, the angle position sensor being configured to collect the horizontal rotation angle information and the pitch angle of the operator's head Information, the head-mounted controller is configured to control the lamp body to rotate by a corresponding angle through the horizontal rotation driving device and the pitch rotation driving device according to the horizontal rotation angle information and the pitch angle information .
  • the present application also provides a lamp, including: a lamp body, a horizontal rotation drive device, a pitch rotation drive device, and a face front visual recognition module, the face front visual recognition module is configured to collect the horizontal rotation angle of the operator's head Information and pitch angle information, and according to the horizontal rotation angle information and the pitch angle information, the horizontal rotation driving device and the pitch rotation driving device are used to control the lamp body to rotate by a corresponding angle.
  • This application also provides a lamp control method, which includes the following steps:
  • the first rotation angle of the operator’s head is collected based on the head-mounted position sensor, and the lamp position sensor is used to collect the The second rotation angle, where the rotation angle includes horizontal rotation angle information and pitch angle information;
  • a target rotation angle of the lamp is calculated, and the lamp is controlled to turn to a target position corresponding to the target rotation angle.
  • This application also provides a lamp control system, wherein the lamp control system includes a processor, a memory, and a lamp control program stored on the memory and executable by the processor, wherein the lamp control program is When the processor is executed, the steps of the above lamp control method are realized.
  • the present application also provides a computer-readable storage medium, wherein a lamp control program is stored on the computer-readable storage medium, and when the lamp control program is executed by a processor, the steps of the above-mentioned lamp control method are realized.
  • the lamp and the lamp control method provided by the present application include: a lamp body, a horizontal rotation driving device, a pitch rotation driving device, a head-mounted controller and an angle position sensor.
  • the angle position sensor is configured to collect the horizontal rotation angle of the operator's head Information and pitch angle information
  • the head-mounted controller is configured to control the lamp body to rotate the corresponding angle through the horizontal rotation drive device and the pitch rotation drive device according to the horizontal rotation angle information and the pitch angle information.
  • FIG. 1 is a schematic structural diagram of a lamp body of a lamp provided by a specific embodiment of this application;
  • FIG. 2 is a schematic structural diagram of a head-mounted controller for a lamp provided in an embodiment of this application;
  • FIG. 3 is a schematic diagram of a design of a visual recognition module in front of a face provided by a specific implementation of this application;
  • FIG. 4 is a schematic diagram of the hardware structure of a lamp control system provided by a specific implementation of this application;
  • FIG. 5 is a schematic flowchart of a lamp control method provided by a specific embodiment of this application.
  • Lamp body 1. Lamp body; 2. Head-mounted controller; 3. Bracket; 4. Base; 5. Control unit.
  • a lamp provided by an embodiment of the present application includes: a lamp body 1, a horizontal rotation driving device, a pitch rotation driving device, a head-mounted controller 2 and an angular position sensor, wherein the head-mounted type
  • the controller 2 includes a carrier worn on the head of the operator.
  • the carrier is provided with an angular position sensor and a control board.
  • the angular position sensor is configured to collect the horizontal rotation angle information and the pitch angle information of the operator's head, and collect the information The two angle information of the head-mounted controller 2 is transmitted to the control board.
  • the control board of the head-mounted controller 2 is configured to send a control signal to the horizontal rotation driving device according to the horizontal rotation angle information, so that the lamp body 1 rotates the corresponding angle horizontally, and according to the pitch
  • the angle information sends a control signal to the pitch rotation driving device to control the lamp body 1 to perform corresponding pitch actions, wherein the horizontal rotation driving device and the pitch rotation driving device are preferably motors that provide rotation torque.
  • the angular position sensor includes a head-mounted end position sensor set on the head-mounted controller 2 and a lamp end position sensor set on the lamp body 1.
  • the lamp body 1 is provided with a lamp end controller, and the head-mounted end position The angle information collected by the sensor and the lamp end position sensor is transmitted to the lamp controller.
  • the lamp end controller is configured to rotate the drive device and the lamp according to the angle difference collected by the head-mounted end position sensor and the lamp end position sensor.
  • the pitch rotation driving device controls the lamp body 1 to rotate a corresponding angle.
  • the illumination direction of the lamp body 1 should be the same as the front view direction of the operator, that is, the angles collected by the head-mounted end position sensor and the lamp end position sensor are zero at the initial stage.
  • the head-mounted position sensor will collect a horizontal rotation angle value, and the lamp end controller will control the lamp body 1 to rotate the corresponding angle.
  • the horizontal rotation angle value collected by the lamp end position sensor calibration should be It is consistent with the horizontal rotation angle value collected by the head-mounted end position sensor.
  • the above-mentioned embodiment collects data through two position sensors respectively arranged on the lamp end and the head-mounted controller end.
  • it can also be collected by an angular position sensor separately arranged on the head-mounted controller 2
  • the horizontal rotation and pitch information of the head are then directly controlled by the horizontal rotation driving device and the pitch rotation driving device to control the lamp body 1 to rotate the corresponding angle.
  • the angular position sensor and the controller reference may be made to the prior art, which will not be repeated here.
  • the head-mounted controller 2 and the lamp-side controller are connected through a wireless transmission module.
  • bracket 3 is connected to the base 4 in horizontal rotation.
  • the horizontal rotation of the bracket 3 can be realized by a vertically arranged hinge shaft.
  • the lamp body 1 is hinged with the bracket 3 through a horizontal hinge shaft.
  • the bracket 3 is preferably a U-shaped bracket 3, the lamp body 1 is located in the groove of the U-shaped bracket 3, and both ends of the lamp body 1 are hinged in the U-shaped bracket 3 through horizontal hinge shafts to ensure that the lamp body 1 is tilted The stability.
  • the head-mounted controller is further provided with a control part 5 configured to control the operation of the horizontal rotation driving device and the pitch rotation driving device.
  • the operator can manually operate the lamp body 1 through the control unit 5 to perform corresponding horizontal rotation and tilting actions, that is, the head-mounted controller 2 not only has the function of automatically following the head rotation to send control signals, but also allows the operator to manually Control to improve the flexibility of the head-mounted controller 2.
  • a lamp including: a lamp body, a horizontal rotation driving device, a pitch rotation driving device, and a face front visual recognition module.
  • the front visual recognition module is configured to collect the horizontal rotation angle information and the pitch angle information of the operator’s head.
  • the front face visual recognition module is set in front of the operator’s head to identify the person on the operator’s head. Face turn, and determine the horizontal rotation angle information and pitch angle information of the operator's head according to the face rotation, and then control the lamp body to rotate the corresponding angle through the horizontal rotation driving device and the pitch rotation driving device respectively.
  • this application also provides a lamp control method.
  • the lamp control method is mainly applied to a lamp control system.
  • the lamp control system may include a PC, a portable computer, a mobile terminal, and other devices with display and processing functions.
  • the lamp control system may include a processor 1001 (for example, a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to realize the connection and communication between these components;
  • the user interface 1003 may include a display (Display), an input unit such as a keyboard (Keyboard);
  • the network interface 1004 may optionally include a standard wired interface, a wireless interface (Such as WI-FI interface);
  • the memory 1005 can be a high-speed RAM memory or a non-volatile memory, such as a disk memory.
  • the memory 1005 can optionally be a storage device independent of the aforementioned processor 1001 .
  • FIG. 4 does not constitute a limitation on the lamp control system, and may include more or less components than shown in the figure, or a combination of certain components, or different component arrangements.
  • the memory 1005 in FIG. 4 as a computer-readable storage medium may include an operating system, a network communication module, and a lamp control program.
  • the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the lamp control program stored in the memory 1005 and execute the lamp control method provided in the embodiment of the present application.
  • the application also provides a lamp control method.
  • the lamp control method includes the following steps:
  • Step S10 if the first reset instruction triggered based on the reset button of the head-mounted controller is detected, control the lamp to turn to the reset position corresponding to the first reset instruction;
  • Step S20 If an automatic command triggered by the automatic switch of the head-mounted controller is detected, the first rotation angle of the operator’s head is collected based on the head-mounted position sensor, and the second rotation of the lamp is collected based on the lamp-end position sensor Angle, where the rotation angle includes horizontal rotation angle information and pitch angle information;
  • Step S30 Calculate the target rotation angle of the lamp based on the first rotation angle and the second rotation angle, and control the lamp to turn to the target position corresponding to the target rotation angle.
  • the lamp control method of this embodiment is applied to a lamp control system.
  • the lamp control system is referred to as control system.
  • the control system includes a lamp platform and a lamp, and the lamp also includes an information collection module.
  • the information collection module is used to collect the rotation angle of the head of the operator.
  • the information collection module may be a head-mounted controller and an angular position sensor.
  • the head-mounted controller is worn on the head of the operator and is working When, according to the rotation of the operator’s head, the rotation angle of the operator’s head is collected;
  • the information collection module can also be a visual recognition module in front of the face, which is installed on the lamp platform, specifically on the front of the face of the lamp platform For example, when the lamp platform is a vehicle, the visual recognition module in front of the face can be installed on the A-pillar of the vehicle. When working, it can recognize the turning angle of the face in front, so as to collect the rotation angle of the operator’s head.
  • the lamp platform is used to carry lamps.
  • the lamp platform may be a platform such as a vehicle or construction machinery, such as a patrol car, an excavator, and the like.
  • Lamps are used to emit lights, where the lamps may include a master control template, which is used to calculate the target rotation angle of the lamps according to the rotation angles collected by the information collection module, so as to control the lamp to turn.
  • the lamps may be LED lamps .
  • the angle position sensor is not designed with the entire lamp. The reason is that in the specific implementation, the angle position sensor needs to be calibrated. The design with the lamp is not conducive to taking out the angle position sensor for correction. Separate design.
  • This embodiment first uses the reset instruction triggered by the reset button to turn the lamp to the reset position.
  • the automatic switch When it is detected that the automatic switch is turned on, it enters the automatic mode.
  • the information collection module that is, the head-mounted terminal on the head-mounted controller
  • the position sensor collects the first rotation angle of the operator's head, and the second rotation angle of the lamp is collected by the lamp end position sensor, so as to calculate the target rotation angle of the lamp to be rotated according to the first rotation angle and the second rotation angle, and
  • the lamp is controlled to rotate, so that the lamp can automatically illuminate the corresponding place according to the turning of the operator's head, and realize the intelligent control of the lamp.
  • Step S10 if a first reset instruction triggered based on the reset button of the head-mounted controller is detected, the lamp is controlled to turn to the reset position corresponding to the first reset instruction.
  • the control system detects the first reset instruction triggered based on the reset button, thereby controlling the lamp to turn to the first reset instruction
  • the corresponding reset position specifically, by driving the corresponding motor of the lamp to turn to the center angle of the rotating position of the lamp, it can be understood that in order to avoid the entanglement of various lines in the lamp, the rotating range of the lamp is limited and does not rotate more than 360 degrees. Therefore, The center angle of the rotating position of the lamp can be used as the reset position.
  • Step S20 If an automatic command triggered by the automatic switch of the head-mounted controller is detected, the first rotation angle of the operator’s head is collected based on the head-mounted position sensor, and the second rotation of the lamp is collected based on the lamp-end position sensor Angle, where the rotation angle includes horizontal rotation angle information and pitch angle information.
  • control system includes an automatic control mode and a manual control mode.
  • the user can switch between modes through the mode switch button on the head-mounted controller, that is, the automatic switch.
  • mode switch button on the head-mounted controller that is, the automatic switch.
  • the control system is in the manual control mode, The user can manually control the lamps through the control buttons on the head-mounted controller.
  • the information collection module that is, the head-mounted end position sensor on the head-mounted controller, automatically works to collect the first rotation angle of the operator’s head.
  • the first rotation angle includes the first horizontal angle (a1) and the first pitch angle (b1); similarly, the lamp end position sensor also works automatically to collect the second rotation angle of the lamp, where the second rotation angle includes the first Two horizontal angles (x1) and a second pitch angle (y1).
  • Step S30 Calculate the target rotation angle of the lamp based on the first rotation angle and the second rotation angle, and control the lamp to turn to the target position corresponding to the target rotation angle.
  • the target rotation angle of the lamp is calculated according to the first rotation angle and the second rotation angle, specifically:
  • the target rotation angle of the lamp is calculated.
  • the second initial rotation angle includes a second initial horizontal angle (x) and a second initial pitch angle (y).
  • the first initial rotation angle of the head of the operator and the second initial rotation angle of the lamp are recorded at that time.
  • the first rotation angle difference specifically, calculate the horizontal angle difference between the first initial horizontal angle (a) and the second initial horizontal angle (x), and the first A pitch angle difference between an initial pitch angle (b) and a second initial pitch angle (y), that is, the first rotation angle difference includes a horizontal angle difference (ax) and a pitch angle difference (by).
  • the pitch angle difference between) and the second initial pitch angle (y1), that is, the second rotation angle difference includes the horizontal angle difference (a1-x1) and the pitch angle difference (b1-y1).
  • the target rotation angle of the luminaire is calculated according to the first rotation angle difference and the second rotation angle difference, where the target rotation angle includes the target horizontal angle and the target pitch angle.
  • the target horizontal angle (a1-x1)-(ax)
  • the target pitch angle (b1-y1)-(by).
  • the first initial rotation angle and the second initial rotation angle may also be the rotation angle of the operator’s head and the rotation angle of the lamp collected at the previous time.
  • the current time is t1
  • the collected rotation angle of the head of the operator is (a1, b1)
  • the rotation angle of the lamp is (x1, y1)
  • the rotation angle of the head of the operator collected by the information collection module at t0 is determined as ( a0, b0)
  • the rotation angle of the lamp is (x0, y0) so as to calculate the target rotation angle (a1-x1)-(a0-x0), (b1-y1)- that the main control module of the lamp drives the internal motor to rotate (b0-y0).
  • the lamp can be controlled to turn according to the target rotation angle, and the lamp can be specifically controlled to turn to the target position corresponding to the target rotation angle.
  • the position of the stop point can be set according to the actual situation. For example, the position of 360 degrees sets the gear point. Can only rotate 360 degrees.
  • the user presses the reset button of the head-mounted controller to trigger the first reset instruction, and the control system turns the lamp to the reset position according to the first reset instruction, where the reset position can be the center angle of the rotating position of the lamp, that is, the lamp In the reset position, the maximum angle of turning left or right is the same, and the maximum angle of turning up and down is also the same.
  • the user looks in the direction corresponding to the preset position, that is, the user's line of sight is consistent with the direction of the lamp, and records the first initial rotation angle of the operator's head and the second initial rotation angle of the lamp at this time.
  • the user presses the automatic switch again to trigger the automatic control instruction, and the control system enters the automatic control mode according to the automatic control instruction.
  • the head-mounted end position sensor on the head-mounted controller and the lamp end position sensor on the lamp work automatically .
  • the target rotation angle ((a1-x1) -(ax), (b1-y1)-(by)), so as to control the lamp to turn to the direction of the user's eyes.
  • the lamp platform is a patrol car.
  • the lamp can be installed on the roof of the patrol car.
  • the head-mounted controller is worn on the head of the car owner, that is, the user’s head.
  • the user presses the reset button and the lamp turns to the center of the rotating position of the lamp Angle, the user looks straight ahead, and then presses the automatic switch, the head-mounted position sensor starts to automatically collect the rotation angle of the car owner, and the lamp end position sensor also starts to automatically collect the rotation angle of the lamp. It is assumed that the initial rotation angle of the owner’s head and The initial rotation angles of the lamps are all (0, 0).
  • This embodiment provides a lamp control method. If the first reset instruction triggered by the reset button of the head-mounted controller is detected, the lamp is controlled to turn to the reset position corresponding to the first reset instruction; if the detection is based on the head-mounted control
  • the automatic command triggered by the automatic switch of the device is based on the head-mounted end position sensor collecting the first rotation angle of the operator’s head, and the lamp end position sensor collecting the second rotation angle of the lamp platform; based on the first rotation angle and the second rotation Angle, calculate the target rotation angle of the lamp, and control the lamp to turn to the target position corresponding to the target rotation angle.
  • the target rotation angle is calculated by collecting the rotation angle of the operator's head, and according to the target rotation angle, the direction of the lamp turning to the operator's head is automatically controlled to realize timely and accurate turning of the lamp.
  • the lamp control method further includes:
  • Step a After the lamp is turned to the reset position, it is determined whether the line of sight of the operator's head matches the illumination direction of the lamp;
  • step b if it matches, monitor whether there is an automatic command triggered by the automatic switch of the head-mounted controller.
  • the automatic control mode in order to ensure that the turning position of the lamp is the user's visual direction, before entering the automatic control mode, it is also necessary to determine whether the user's operator's head line of sight matches the illumination direction of the lamp, that is, the user needs to look After the illuminating direction of the luminaire, the automatic control mode is activated, so that where the head of the subsequent operator is turned, the luminaire is irradiated, and the accurate turning of the luminaire is realized.
  • Step a After the lamp is turned to the reset position, it is determined whether the line of sight of the operator's head matches the illumination direction of the lamp.
  • the control system determines whether the line of sight of the operator's head matches the illumination direction of the lamp.
  • the automatic control mode can be entered as long as the line of sight of the current operator's head matches the illumination direction of the lamp, and it is specifically determined whether the current rotation angle of the operator's head is consistent with the rotation angle of the lamp.
  • step a includes:
  • the first initial rotation angle is a preset value, it is determined that the line of sight of the operator's head matches the illumination direction of the lamp.
  • the control system is allowed to enter the automatic control mode.
  • the preset value corresponds to the central angle of the rotation position of the lamp, that is, when the rotation angle of the user's head is the preset value, the line of sight is consistent with the illumination direction of the central angle of the lamp rotation position.
  • step b if it matches, monitor whether there is an automatic command triggered by the automatic switch of the head-mounted controller.
  • the user faces the front as the origin in the patrol car, that is, the rotation angle of the user's head at this time is (0, 0) is the preset value, and the center angle of the lamp in the rotating position, that is, the lamp is directly in front of the patrol car is the preset position.
  • the user presses the automatic switch and the control system enters the automatic control mode .
  • the automatic control mode to ensure that the turning position of the lamp is the user's visual direction, before entering the automatic control mode, it is necessary to determine whether the line of sight of the user's operator's head matches the illumination direction of the lamp, that is, the user needs to look at the direction of the lamp. After the irradiation direction, the automatic control mode is activated, so that where the head of the follow-up operator turns, the lamp is irradiated, and the accurate turning of the lamp is realized.
  • the information collection module includes a visual recognition module in front of the face.
  • the visual recognition module in front of the face is installed on the lamp platform.
  • Step c if a second reset instruction triggered by the reset button of the visual recognition module in front of the face is detected, control the lamp to turn to the reset position corresponding to the second reset instruction;
  • Step d If an automatic command triggered by the automatic switch of the front face visual recognition module is detected, the face front visual recognition module recognizes the face turn of the operator's head, and based on the face turn, collects the head of the operator The angle of rotation;
  • Step e Control the target position corresponding to the turning angle of the lamp based on the turning angle.
  • the information collection module includes a visual recognition module in front of the face, which is installed on the lighting platform, specifically at the front of the face of the lighting platform.
  • the visual recognition module in front of the face can be installed On the A-pillar of the vehicle, it recognizes the turning angle of the front face during work, so as to collect the rotation angle of the operator's head.
  • the user first presses the reset button to make the lamp turn to the reset position, and then presses the automatic switch, so that the visual recognition module in front of the face automatically collects the face turning of the operator's head to identify the job
  • the rotation angle of the head of the person controls the lamp to rotate.
  • the lighting platform is a patrol car.
  • the lighting can be installed on the roof of the patrol car.
  • the front face visual recognition module is installed on the A-pillar of the patrol car. After the user gets on the car, press the reset button to control the lamp to return In the middle, that is, the lamp is directly in front of the patrol car. Then, the user looks straight in front of the patrol car, presses the automatic switch, and enters the automatic control mode.
  • the reset button and the automatic switch can be set on the lamp platform, such as the steering wheel of a vehicle, or on the visual recognition module in front of the face.
  • the visual recognition module in front of the face of this embodiment is shown in Figure 3, including two cameras, a reset button and an automatic switch (wherein, the The dot, the left dot can be the reset button, the right dot can be the automatic switch, or vice versa), the two cameras collect the user’s face image in real time and analyze the face image to identify the turning of the face. In order to determine the rotation angle of the face head.
  • This embodiment provides a lamp control method. If a second reset instruction triggered by the reset button of the visual recognition module in front of the face is detected, the lamp is controlled to turn to the reset position corresponding to the second reset instruction; if the detection is based on the front of the face.
  • the automatic command triggered by the automatic switch of the visual recognition module is based on the visual recognition module in front of the face to recognize the face turn of the operator's head, and based on the face turn, collect the rotation angle of the operator's head; control the lamp based on the rotation angle The target position corresponding to the steering angle.
  • This application collects the rotation angle of the operator's head, calculates the target rotation angle, and automatically controls the direction of the lamp turning to the operator's head according to the target rotation angle, so as to realize the timely and accurate steering of the lamp.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium of the present application stores a lamp control program, where the lamp control program is executed by the processor to realize the steps of the above solution.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , Magnetic disk, optical disk), including several instructions to make a terminal device (can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the method described in each embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Abstract

The present application discloses a lamp, a lamp control method and system, and a computer readable storage medium. The lamp comprises a lamp body, a horizontal rotation driving device, a pitch rotation driving device, a head-mounted controller and an angle position sensor; the angle position sensor is configured to acquire horizontal rotation angle information and pitch angle information of the head of an operator, and the head-mounted controller is configured to control, according to the horizontal rotation angle information and the pitch angle information and by means of the horizontal rotation driving device and the pitch rotation driving device, respectively, the lamp body to rotate by a corresponding angle. By separately providing the lamp body and the control end controlling the rotation thereof the problem that the lamp body is not suitable for being worn on the head due to large weight and high power of the lamp body can be solved, and the lamp body can accordingly rotate with the rotation of the head, without manual manipulation by an operator, thereby having a high working efficiency and usage safety.

Description

灯具、灯具控制方法、系统及计算机可读存储介质Lamp, lamp control method, system and computer readable storage medium 技术领域Technical field
本申请涉及智能终端技术领域,特别是涉及一种灯具、灯具控制方法、系统及计算机可读存储介质。This application relates to the technical field of smart terminals, and in particular to a lamp, a lamp control method, system, and computer-readable storage medium.
背景技术Background technique
在黑暗场景作业时,需要照明灯具按照作业人员的目视方向机动转向。When working in dark scenes, the lighting fixtures need to be maneuvered to follow the operator's visual direction.
现有的灯具主要采用遥控手柄操作,难以起到准确、及时转向的作用,此外在工程机械等黑暗场景作业时,机械上的灯具为固定方向安装,在作业人员需要望向其它的方位时,需要将整机的方向进行调整,因此工作效率较低,灵活性也较差,灯光死角也会增加安全事故的发生。The existing lamps are mainly operated by remote control handles, which are difficult to achieve accurate and timely steering. In addition, when working in dark scenes such as construction machinery, the lamps on the machinery are installed in a fixed direction. When the operator needs to look at other directions, The direction of the whole machine needs to be adjusted, so the work efficiency is low, the flexibility is also poor, and the blind spot of the light will increase the occurrence of safety accidents.
对于功率较小的灯具,可以采用头戴式来进行解决,但是对于大功率的灯具,通常重量较重,产生的热量也较高,因此不适合直接佩戴在头部进行作业。For low-power lamps, you can use a head-mounted type to solve the problem, but for high-power lamps, they are usually heavier and generate higher heat, so they are not suitable for direct wear on the head for work.
发明内容Summary of the invention
本申请的主要目的在于提供一种灯具、灯具控制方法、系统及计算机可读存储介质,使得灯具能够根据作业人员的目视方向进行精确及时的转向。The main purpose of this application is to provide a lamp, a lamp control method, system, and computer-readable storage medium, so that the lamp can be turned accurately and timely according to the visual direction of the operator.
一种灯具,包括:灯具本体、水平转动驱动装置、俯仰转动驱动装置以及头戴式控制器和角度位置传感器,所述角度位置传感器被配置为采集作业人员头部的水平转动角度信息和俯仰角度信息,所述头戴式控制器被配置为根据所述水平转动角度信息和所述俯仰角度信息,分别通过所述水平转动驱动装置和所述俯仰转动驱动装置控制所述灯具本体转动相应的角度。A lamp includes: a lamp body, a horizontal rotation driving device, a pitch rotation driving device, a head-mounted controller and an angle position sensor, the angle position sensor being configured to collect the horizontal rotation angle information and the pitch angle of the operator's head Information, the head-mounted controller is configured to control the lamp body to rotate by a corresponding angle through the horizontal rotation driving device and the pitch rotation driving device according to the horizontal rotation angle information and the pitch angle information .
本申请还提供一种灯具,包括:灯具本体、水平转动驱动装置、俯仰转动驱动装置以及人脸前方视觉识别模块,所述人脸前方视觉识别模块被配置 为采集作业人员头部的水平转动角度信息和俯仰角度信息,并根据所述水平转动角度信息和所述俯仰角度信息,分别通过所述水平转动驱动装置和所述俯仰转动驱动装置控制所述灯具本体转动相应的角度。The present application also provides a lamp, including: a lamp body, a horizontal rotation drive device, a pitch rotation drive device, and a face front visual recognition module, the face front visual recognition module is configured to collect the horizontal rotation angle of the operator's head Information and pitch angle information, and according to the horizontal rotation angle information and the pitch angle information, the horizontal rotation driving device and the pitch rotation driving device are used to control the lamp body to rotate by a corresponding angle.
本申请还提供一种灯具控制方法,所述灯具控制方法包括以下步骤:This application also provides a lamp control method, which includes the following steps:
若检测到基于头戴式控制器的复位键触发的第一复位指令,则控制所述灯具转向所述第一复位指令对应的复位位置;If the first reset instruction triggered based on the reset button of the head-mounted controller is detected, control the lamp to turn to the reset position corresponding to the first reset instruction;
若检测到基于所述头戴式控制器的自动开关触发的自动指令,则基于头戴端位置传感器采集所述作业人员头部的第一转动角度,并基于灯具端位置传感器采集所述灯具的第二转动角度,其中,转动角度包括水平转动角度信息和俯仰角度信息;If an automatic command triggered by the automatic switch of the head-mounted controller is detected, the first rotation angle of the operator’s head is collected based on the head-mounted position sensor, and the lamp position sensor is used to collect the The second rotation angle, where the rotation angle includes horizontal rotation angle information and pitch angle information;
基于所述第一转动角度和所述第二转动角度,计算所述灯具的目标转动角度,并控制所述灯具转向所述目标转动角度对应的目标位置。Based on the first rotation angle and the second rotation angle, a target rotation angle of the lamp is calculated, and the lamp is controlled to turn to a target position corresponding to the target rotation angle.
本申请还提供一种灯具控制系统,其中,所述灯具控制系统包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的灯具控制程序,其中所述灯具控制程序被所述处理器执行时,实现如上述的灯具控制方法的步骤。This application also provides a lamp control system, wherein the lamp control system includes a processor, a memory, and a lamp control program stored on the memory and executable by the processor, wherein the lamp control program is When the processor is executed, the steps of the above lamp control method are realized.
本申请还提供一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有灯具控制程序,其中所述灯具控制程序被处理器执行时,实现如上述的灯具控制方法的步骤。The present application also provides a computer-readable storage medium, wherein a lamp control program is stored on the computer-readable storage medium, and when the lamp control program is executed by a processor, the steps of the above-mentioned lamp control method are realized.
本申请提供的灯具和灯具控制方法,包括:灯具本体、水平转动驱动装置、俯仰转动驱动装置以及头戴式控制器和角度位置传感器,角度位置传感器被配置为采集作业人员头部的水平转动角度信息和俯仰角度信息,头戴式控制器被配置为根据水平转动角度信息和俯仰角度信息,分别通过水平转动驱动装置和俯仰转动驱动装置控制灯具本体转动相应的角度。通过将灯具本体和控制其转动的控制端分离设置,不仅可解决由于灯具本体重量大、功率高而不适用于头戴的问题,而且无需作业人员手动操控,灯具本体可跟随头部的转动做相应地转动,因此具有更高的工作效率和使用安全性。The lamp and the lamp control method provided by the present application include: a lamp body, a horizontal rotation driving device, a pitch rotation driving device, a head-mounted controller and an angle position sensor. The angle position sensor is configured to collect the horizontal rotation angle of the operator's head Information and pitch angle information, the head-mounted controller is configured to control the lamp body to rotate the corresponding angle through the horizontal rotation drive device and the pitch rotation drive device according to the horizontal rotation angle information and the pitch angle information. By separating the lamp body from the control end that controls its rotation, it not only solves the problem that the lamp body is not suitable for head wear due to its heavy weight and high power, but also does not require manual operation by the operator. The lamp body can follow the rotation of the head. Rotate accordingly, so it has higher work efficiency and use safety.
附图说明Description of the drawings
为了更好地描述和说明这里公开的那些发明的实施例和/或示例,可以参考一幅或多幅附图。被配置为描述附图的附加细节或示例不应当被认为是对所公开的发明、目前描述的实施例和/或示例以及目前理解的这些发明的最佳模式中的任何一者的范围的限制。In order to better describe and illustrate the embodiments and/or examples of the inventions disclosed herein, one or more drawings may be referred to. The additional details or examples configured to describe the drawings should not be considered as limiting the scope of any of the disclosed inventions, the currently described embodiments and/or examples, and the best mode of these inventions currently understood .
图1为本申请一种具体实施方式所提供的一种灯具的灯具本体的结构示意图;FIG. 1 is a schematic structural diagram of a lamp body of a lamp provided by a specific embodiment of this application;
图2为本申请一种具体实施方式所提供的一种灯具的头戴式控制器的结构示意图;FIG. 2 is a schematic structural diagram of a head-mounted controller for a lamp provided in an embodiment of this application;
图3为本申请一种具体实施方式所提供的人脸前方视觉识别模块的设计示意图;3 is a schematic diagram of a design of a visual recognition module in front of a face provided by a specific implementation of this application;
图4为本申请一种具体实施方式所提供的灯具控制系统的硬件结构示意图;4 is a schematic diagram of the hardware structure of a lamp control system provided by a specific implementation of this application;
图5为本申请一种具体实施方式所提供的灯具控制方法的流程示意图。FIG. 5 is a schematic flowchart of a lamp control method provided by a specific embodiment of this application.
附图标记如下:The reference signs are as follows:
1、灯具本体;2、头戴式控制器;3、支架;4、底座;5、操控部。1. Lamp body; 2. Head-mounted controller; 3. Bracket; 4. Base; 5. Control unit.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
请参考图1和图2,本申请实施例所提供的一种灯具,包括:灯具本体1、水平转动驱动装置、俯仰转动驱动装置以及头戴式控制器2和角度位置传感器,其中头戴式控制器2包括穿戴在作业人员头部的载体,该载体上设置有角度位置传感器和控制板,角度位置传感器被配置为采集作业人员头部的水 平转动角度信息和俯仰角度信息,并将采集到的两条角度信息传送给控制板,头戴式控制器2的控制板被配置为根据水平转动角度信息给水平转动驱动装置发送控制信号,以使灯具本体1水平转动相应的角度,同时根据俯仰角度信息给俯仰转动驱动装置发送控制信号,以使控制灯具本体1做相应的俯仰动作,其中水平转动驱动装置和俯仰转动驱动装置优选提供转动扭矩的电机。通过将灯具本体1和控制其转动的控制端分离设置,不仅可解决由于灯具本体1重量大、功率高而不适被配置为头戴的问题,而且无需作业人员手动操控,灯具本体1可跟随头部的转动做相应地转动,因此具有更高的工作效率和使用安全性。Please refer to Figures 1 and 2, a lamp provided by an embodiment of the present application includes: a lamp body 1, a horizontal rotation driving device, a pitch rotation driving device, a head-mounted controller 2 and an angular position sensor, wherein the head-mounted type The controller 2 includes a carrier worn on the head of the operator. The carrier is provided with an angular position sensor and a control board. The angular position sensor is configured to collect the horizontal rotation angle information and the pitch angle information of the operator's head, and collect the information The two angle information of the head-mounted controller 2 is transmitted to the control board. The control board of the head-mounted controller 2 is configured to send a control signal to the horizontal rotation driving device according to the horizontal rotation angle information, so that the lamp body 1 rotates the corresponding angle horizontally, and according to the pitch The angle information sends a control signal to the pitch rotation driving device to control the lamp body 1 to perform corresponding pitch actions, wherein the horizontal rotation driving device and the pitch rotation driving device are preferably motors that provide rotation torque. By separating the lamp body 1 and the control end that controls its rotation, the lamp body 1 can not only solve the problem that the lamp body 1 is not suitable for being configured as a head due to its heavy weight and high power, but also does not require manual operation by the operator. The lamp body 1 can follow the head The rotation of the part rotates accordingly, so it has higher work efficiency and use safety.
具体地,角度位置传感器包括设置在头戴式控制器2上的头戴端位置传感器和设置在灯具本体1上的灯具端位置传感器,灯具本体1上设有灯具端控制器,头戴端位置传感器和灯具端位置传感器所采集的角度信息均传送给灯具控制器,灯具端控制器被配置为根据头戴端位置传感器和灯具端位置传感器两者所采集的角度差,通过水平转动驱动装置和俯仰转动驱动装置控制灯具本体1转动相应的角度。在应用之前,灯具本体1的照射方向应与作业人员的正视方向相同,即头戴端位置传感器和灯具端位置传感器在初始时采集的角度均为零,在具体应用时,例如当作业人员的头部水平转动一定角度时,头戴端位置传感器会采集到一个水平转动角度值,灯具端控制器会控制灯具本体1转动相应的角度,此时灯具端位置传感器校采集的水平转动角度值应和头戴端位置传感器采集到的水平转动角度值相一致。Specifically, the angular position sensor includes a head-mounted end position sensor set on the head-mounted controller 2 and a lamp end position sensor set on the lamp body 1. The lamp body 1 is provided with a lamp end controller, and the head-mounted end position The angle information collected by the sensor and the lamp end position sensor is transmitted to the lamp controller. The lamp end controller is configured to rotate the drive device and the lamp according to the angle difference collected by the head-mounted end position sensor and the lamp end position sensor. The pitch rotation driving device controls the lamp body 1 to rotate a corresponding angle. Before application, the illumination direction of the lamp body 1 should be the same as the front view direction of the operator, that is, the angles collected by the head-mounted end position sensor and the lamp end position sensor are zero at the initial stage. In specific applications, for example, when the operator’s When the head rotates horizontally for a certain angle, the head-mounted position sensor will collect a horizontal rotation angle value, and the lamp end controller will control the lamp body 1 to rotate the corresponding angle. At this time, the horizontal rotation angle value collected by the lamp end position sensor calibration should be It is consistent with the horizontal rotation angle value collected by the head-mounted end position sensor.
需要说明的是,上述实施例是通过两个分别设置在灯具端和头戴控制器端的位置传感器来采集数据,此外也可通过一个单独设置在头戴式控制器2上的角度位置传感器来采集头部的水平转动和俯仰信息,然后直接通过水平转动驱动装置和俯仰转动驱动装置控制灯具本体1转动相应的角度即可。另外,关于角度位置传感器和控制器的具体工作原理可参考现有技术,此处不再赘述。It should be noted that the above-mentioned embodiment collects data through two position sensors respectively arranged on the lamp end and the head-mounted controller end. In addition, it can also be collected by an angular position sensor separately arranged on the head-mounted controller 2 The horizontal rotation and pitch information of the head are then directly controlled by the horizontal rotation driving device and the pitch rotation driving device to control the lamp body 1 to rotate the corresponding angle. In addition, for the specific working principles of the angular position sensor and the controller, reference may be made to the prior art, which will not be repeated here.
具体地,头戴式控制器2与灯具端控制器通过无线传输模块连接。Specifically, the head-mounted controller 2 and the lamp-side controller are connected through a wireless transmission module.
具体地,还包括底座4和支架3,支架3水平转动连接在底座4上,例如可通过竖直设置的铰接轴实现支架3的水平转动,灯具本体1通过水平铰接轴与支架3铰接。Specifically, it also includes a base 4 and a bracket 3. The bracket 3 is connected to the base 4 in horizontal rotation. For example, the horizontal rotation of the bracket 3 can be realized by a vertically arranged hinge shaft. The lamp body 1 is hinged with the bracket 3 through a horizontal hinge shaft.
其中,支架3优选为U型支架3,灯具本体1位于U型支架3的凹槽内,且灯具本体1的两端通过水平铰接轴铰接在U型支架3内,以保证灯具本体1俯仰时的稳定性。Among them, the bracket 3 is preferably a U-shaped bracket 3, the lamp body 1 is located in the groove of the U-shaped bracket 3, and both ends of the lamp body 1 are hinged in the U-shaped bracket 3 through horizontal hinge shafts to ensure that the lamp body 1 is tilted The stability.
为了优化上述实施例提供的头戴式控制器的使用效果,在本实施例中,头戴式控制器上还设有被配置为控制水平转动驱动装置和俯仰转动驱动装置工作的操控部5。作业人员可通过操控部5手动操作灯具本体1做相应的水平转动和俯仰动作,即头戴式控制器2除了具备自动跟随头部转动发送控制信号的作用之外,还可供作业人员进行手动操控,以提高头戴式控制器2的使用灵活性。In order to optimize the use effect of the head-mounted controller provided by the foregoing embodiment, in this embodiment, the head-mounted controller is further provided with a control part 5 configured to control the operation of the horizontal rotation driving device and the pitch rotation driving device. The operator can manually operate the lamp body 1 through the control unit 5 to perform corresponding horizontal rotation and tilting actions, that is, the head-mounted controller 2 not only has the function of automatically following the head rotation to send control signals, but also allows the operator to manually Control to improve the flexibility of the head-mounted controller 2.
此外,请参考图1和图3,在另一具体实施方式中所提供的一种灯具,包括:灯具本体、水平转动驱动装置、俯仰转动驱动装置以及人脸前方视觉识别模块,其中,人脸前方视觉识别模块被配置为采集作业人员头部的水平转动角度信息和俯仰角度信息,在具体实施时,人脸前方视觉识别模块设置与作业人员头部前方,用于识别作业人员头部的人脸转向,并根据人脸转向确定作业人员头部的水平转动角度信息和俯仰角度信息,然后,分别通过水平转动驱动装置和俯仰转动驱动装置控制灯具本体转动相应的角度。In addition, please refer to FIGS. 1 and 3, in another specific embodiment, a lamp is provided, including: a lamp body, a horizontal rotation driving device, a pitch rotation driving device, and a face front visual recognition module. The front visual recognition module is configured to collect the horizontal rotation angle information and the pitch angle information of the operator’s head. In specific implementation, the front face visual recognition module is set in front of the operator’s head to identify the person on the operator’s head. Face turn, and determine the horizontal rotation angle information and pitch angle information of the operator's head according to the face rotation, and then control the lamp body to rotate the corresponding angle through the horizontal rotation driving device and the pitch rotation driving device respectively.
此外,本申请还提供一种灯具控制方法,灯具控制方法主要应用于灯具控制系统,该灯具控制系统可以包括PC、便携计算机、移动终端等具有显示和处理功能的设备。In addition, this application also provides a lamp control method. The lamp control method is mainly applied to a lamp control system. The lamp control system may include a PC, a portable computer, a mobile terminal, and other devices with display and processing functions.
参照图4,本申请实施例中,灯具控制系统可以包括处理器1001(例如CPU)、通信总线1002、用户接口1003、网络接口1004、存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信;用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard);网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口);存储器1005可以是 高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器,存储器1005可选的还可以是独立于前述处理器1001的存储装置。4, in this embodiment of the application, the lamp control system may include a processor 1001 (for example, a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display (Display), an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (Such as WI-FI interface); the memory 1005 can be a high-speed RAM memory or a non-volatile memory, such as a disk memory. The memory 1005 can optionally be a storage device independent of the aforementioned processor 1001 .
本领域技术人员可以理解,图4中示出的硬件结构并不构成对灯具控制系统的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the hardware structure shown in FIG. 4 does not constitute a limitation on the lamp control system, and may include more or less components than shown in the figure, or a combination of certain components, or different component arrangements.
继续参照图4,图4中作为一种计算机可读存储介质的存储器1005可以包括操作系统、网络通信模块以及灯具控制程序。Continuing to refer to FIG. 4, the memory 1005 in FIG. 4 as a computer-readable storage medium may include an operating system, a network communication module, and a lamp control program.
在图4中,网络通信模块主要用于连接服务器,与服务器进行数据通信;而处理器1001可以调用存储器1005中存储的灯具控制程序,并执行本申请实施例提供的灯具控制方法。In FIG. 4, the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the lamp control program stored in the memory 1005 and execute the lamp control method provided in the embodiment of the present application.
本申请还提供了一种灯具控制方法。The application also provides a lamp control method.
参照图5,本实施例中,灯具控制方法包括以下步骤:5, in this embodiment, the lamp control method includes the following steps:
步骤S10,若检测到基于头戴式控制器的复位键触发的第一复位指令,则控制灯具转向第一复位指令对应的复位位置;Step S10, if the first reset instruction triggered based on the reset button of the head-mounted controller is detected, control the lamp to turn to the reset position corresponding to the first reset instruction;
步骤S20,若检测到基于头戴式控制器的自动开关触发的自动指令,则基于头戴端位置传感器采集作业人员头部的第一转动角度,并基于灯具端位置传感器采集灯具的第二转动角度,其中,转动角度包括水平转动角度信息和俯仰角度信息;Step S20: If an automatic command triggered by the automatic switch of the head-mounted controller is detected, the first rotation angle of the operator’s head is collected based on the head-mounted position sensor, and the second rotation of the lamp is collected based on the lamp-end position sensor Angle, where the rotation angle includes horizontal rotation angle information and pitch angle information;
步骤S30,基于第一转动角度和第二转动角度,计算灯具的目标转动角度,并控制灯具转向目标转动角度对应的目标位置。Step S30: Calculate the target rotation angle of the lamp based on the first rotation angle and the second rotation angle, and control the lamp to turn to the target position corresponding to the target rotation angle.
本实施例的灯具控制方法应用于灯具控制系统,为描述方便,灯具控制系统而以控制系统简称,控制系统包括灯具平台和灯具,灯具还包括信息采集模块。The lamp control method of this embodiment is applied to a lamp control system. For ease of description, the lamp control system is referred to as control system. The control system includes a lamp platform and a lamp, and the lamp also includes an information collection module.
其中,信息采集模块用于采集作业人员头部的转动角度,在一实施例中信息采集模块可为头戴式控制器和角度位置传感器,头戴式控制器佩戴于作业人员头部,在工作时,根据作业人员头部的转动采集作业人员头部的转动角度;在另一实施例中信息采集模块还可为人脸前方视觉识别模块,安装于 灯具平台,具体安装在灯具平台人脸前部的位置,如灯具平台为车辆时,可将人脸前方视觉识别模块安装于车辆的A柱上,在工作时,识别前面的人脸的转向,从而采集作业人员头部的转动角度。Among them, the information collection module is used to collect the rotation angle of the head of the operator. In one embodiment, the information collection module may be a head-mounted controller and an angular position sensor. The head-mounted controller is worn on the head of the operator and is working When, according to the rotation of the operator’s head, the rotation angle of the operator’s head is collected; in another embodiment, the information collection module can also be a visual recognition module in front of the face, which is installed on the lamp platform, specifically on the front of the face of the lamp platform For example, when the lamp platform is a vehicle, the visual recognition module in front of the face can be installed on the A-pillar of the vehicle. When working, it can recognize the turning angle of the face in front, so as to collect the rotation angle of the operator’s head.
灯具平台,用于承载灯具,在一实施例中,灯具平台可为车辆或工程机械等平台,如巡逻车,挖掘机等。The lamp platform is used to carry lamps. In one embodiment, the lamp platform may be a platform such as a vehicle or construction machinery, such as a patrol car, an excavator, and the like.
灯具,用于发出灯光,其中,灯具可包括主控模板,用于根据信息采集模块采集的转动角度计算灯具的目标转动角度,从而控制灯具进行转向,在一实施例中,灯具可为LED灯具。Lamps are used to emit lights, where the lamps may include a master control template, which is used to calculate the target rotation angle of the lamps according to the rotation angles collected by the information collection module, so as to control the lamp to turn. In one embodiment, the lamps may be LED lamps .
需要说明的是,角度位置传感器不与灯具整机设计,其原因在于,在具体实施时,需要对角度位置传感器进行参数校正,与灯具整机设计不利于将角度位置传感器取出校正,因此与灯具分离设计。It should be noted that the angle position sensor is not designed with the entire lamp. The reason is that in the specific implementation, the angle position sensor needs to be calibrated. The design with the lamp is not conducive to taking out the angle position sensor for correction. Separate design.
本实施例先通过复位键触发的复位指令,将灯具转向复位位置,在检测到自动开关开启时,进入自动模式,此时,通过信息采集模块,也即头戴式控制器上的头戴端位置传感器采集作业人员头部的第一转动角度,以及通过灯具端位置传感器采集灯具的第二转动角度,从而根据第一转动角度和第二转动角度计算出灯具即将要转动的目标转动角度,并控制灯具进行转动,使得灯具根据作业人员的头部的转向,自动照射到相应的地方,实现灯具的智能控制。This embodiment first uses the reset instruction triggered by the reset button to turn the lamp to the reset position. When it is detected that the automatic switch is turned on, it enters the automatic mode. At this time, through the information collection module, that is, the head-mounted terminal on the head-mounted controller The position sensor collects the first rotation angle of the operator's head, and the second rotation angle of the lamp is collected by the lamp end position sensor, so as to calculate the target rotation angle of the lamp to be rotated according to the first rotation angle and the second rotation angle, and The lamp is controlled to rotate, so that the lamp can automatically illuminate the corresponding place according to the turning of the operator's head, and realize the intelligent control of the lamp.
以下将对各个步骤进行详细的说明:The following will give a detailed description of each step:
步骤S10,若检测到基于头戴式控制器的复位键触发的第一复位指令,则控制灯具转向第一复位指令对应的复位位置。Step S10, if a first reset instruction triggered based on the reset button of the head-mounted controller is detected, the lamp is controlled to turn to the reset position corresponding to the first reset instruction.
在本实施例中,用户若想要使用灯具,则先按下头戴式控制器的复位键,使得控制系统检测到基于该复位键触发的第一复位指令,从而控制灯具转向第一复位指令对应的复位位置,具体的,通过驱动灯具对应的电机转向灯具旋转位置的中心角度,可以理解的,为避免灯具内各种线路缠绕,灯具转动范围有限,并不是360度以上进行旋转,因此,可以灯具旋转位置的中心角度作为复位位置。In this embodiment, if the user wants to use the lamp, he first presses the reset button of the head-mounted controller, so that the control system detects the first reset instruction triggered based on the reset button, thereby controlling the lamp to turn to the first reset instruction The corresponding reset position, specifically, by driving the corresponding motor of the lamp to turn to the center angle of the rotating position of the lamp, it can be understood that in order to avoid the entanglement of various lines in the lamp, the rotating range of the lamp is limited and does not rotate more than 360 degrees. Therefore, The center angle of the rotating position of the lamp can be used as the reset position.
步骤S20,若检测到基于头戴式控制器的自动开关触发的自动指令,则基于头戴端位置传感器采集作业人员头部的第一转动角度,并基于灯具端位置传感器采集灯具的第二转动角度,其中,转动角度包括水平转动角度信息和俯仰角度信息。Step S20: If an automatic command triggered by the automatic switch of the head-mounted controller is detected, the first rotation angle of the operator’s head is collected based on the head-mounted position sensor, and the second rotation of the lamp is collected based on the lamp-end position sensor Angle, where the rotation angle includes horizontal rotation angle information and pitch angle information.
在本实施例中,控制系统包括自动控制模式和手动控制模式,用户可通过头戴式控制器上的模式切换按钮,也即自动开关,进行模式的切换,在控制系统处于手动控制模式时,用户可通过头戴式控制器上的控制按钮进行灯具的手动控制。In this embodiment, the control system includes an automatic control mode and a manual control mode. The user can switch between modes through the mode switch button on the head-mounted controller, that is, the automatic switch. When the control system is in the manual control mode, The user can manually control the lamps through the control buttons on the head-mounted controller.
在用户按压模式切换按钮,也即自动开关,进入自动控制模式时,信息采集模块,也即头戴式控制器上的头戴端位置传感器自动工作,采集作业人员头部的第一转动角度,其中,第一转动角度包括第一水平角度(a1)和第一俯仰角度(b1);同样的,灯具端位置传感器也自动工作,采集灯具的第二转动角度,其中,第二转动角度包括第二水平角度(x1)和第二俯仰角度(y1)。When the user presses the mode switch button, that is, the automatic switch, and enters the automatic control mode, the information collection module, that is, the head-mounted end position sensor on the head-mounted controller, automatically works to collect the first rotation angle of the operator’s head. Wherein, the first rotation angle includes the first horizontal angle (a1) and the first pitch angle (b1); similarly, the lamp end position sensor also works automatically to collect the second rotation angle of the lamp, where the second rotation angle includes the first Two horizontal angles (x1) and a second pitch angle (y1).
步骤S30,基于第一转动角度和第二转动角度,计算灯具的目标转动角度,并控制灯具转向目标转动角度对应的目标位置。Step S30: Calculate the target rotation angle of the lamp based on the first rotation angle and the second rotation angle, and control the lamp to turn to the target position corresponding to the target rotation angle.
在本实施例中,根据第一转动角度和第二转动角度,计算灯具的目标转动角度,具体的:In this embodiment, the target rotation angle of the lamp is calculated according to the first rotation angle and the second rotation angle, specifically:
确定作业人员头部的第一初始转动角度,以及灯具的第二初始转动角度;Determine the first initial rotation angle of the operator’s head and the second initial rotation angle of the lamp;
基于第一初始转动角度和第二初始转动角度,计算第一转动角度差;Calculating the first rotation angle difference based on the first initial rotation angle and the second initial rotation angle;
基于第一转动角度和第二转动角度,计算第二转动角度差;Calculating the second rotation angle difference based on the first rotation angle and the second rotation angle;
基于第一转动角度差和第二转动角度差,计算灯具的目标转动角度。Based on the first rotation angle difference and the second rotation angle difference, the target rotation angle of the lamp is calculated.
也即,先确定作业人员头部的第一初始转动角度,以及灯具的第二初始转动角度,其中,第一初始转动角度包括第一初始水平角度(a)和第一初始俯仰角度(b),第二初始转动角度包括第二初始水平角度(x)和第二初始俯仰角度(y)。That is, first determine the first initial rotation angle of the operator's head and the second initial rotation angle of the lamp, where the first initial rotation angle includes the first initial horizontal angle (a) and the first initial pitch angle (b) , The second initial rotation angle includes a second initial horizontal angle (x) and a second initial pitch angle (y).
在一实施例中,在控制系统进入自动控制模式时,即记录此时作业人员头部的第一初始转动角度以及灯具的第二初始转动角度。In one embodiment, when the control system enters the automatic control mode, the first initial rotation angle of the head of the operator and the second initial rotation angle of the lamp are recorded at that time.
然后,根据第一初始转动角度和第二初始转动角度,计算第一转动角度差,具体的,计算第一初始水平角度(a)与第二初始水平角度(x)的水平角度差,以及第一初始俯仰角度(b)与第二初始俯仰角度(y)的俯仰角度差,也即第一转动角度差包括水平角度差(a-x)和俯仰角度差(b-y)。Then, according to the first initial rotation angle and the second initial rotation angle, calculate the first rotation angle difference, specifically, calculate the horizontal angle difference between the first initial horizontal angle (a) and the second initial horizontal angle (x), and the first A pitch angle difference between an initial pitch angle (b) and a second initial pitch angle (y), that is, the first rotation angle difference includes a horizontal angle difference (ax) and a pitch angle difference (by).
接着计算第一转动角度和第二转动角度的第二转动角度差,具体的,计算第一水平角度(a1)与第二水平角度(x1)的水平角度差,以及第一初始俯仰角度(b1)与第二初始俯仰角度(y1)的俯仰角度差,也即第二转动角度差包括水平角度差(a1-x1)和俯仰角度差(b1-y1)。Then calculate the second rotation angle difference between the first rotation angle and the second rotation angle. Specifically, calculate the horizontal angle difference between the first horizontal angle (a1) and the second horizontal angle (x1), and the first initial pitch angle (b1) The pitch angle difference between) and the second initial pitch angle (y1), that is, the second rotation angle difference includes the horizontal angle difference (a1-x1) and the pitch angle difference (b1-y1).
最后根据第一转动角度差和第二转动角度差计算灯具的目标转动角度,其中,目标转动角度包括目标水平角度和目标俯仰角度,具体的,目标水平角度=(a1-x1)-(a-x),目标俯仰角度=(b1-y1)-(b-y)。Finally, the target rotation angle of the luminaire is calculated according to the first rotation angle difference and the second rotation angle difference, where the target rotation angle includes the target horizontal angle and the target pitch angle. Specifically, the target horizontal angle=(a1-x1)-(ax) , The target pitch angle=(b1-y1)-(by).
也即,记录作业人员头部的初始位置(a,b)和灯具的初始位置(x,y),然后,在自动控制模式的某一时刻采集到作业人员头部的转动角度(a1,b1),以及灯具的转动角度(x1,y1),从而计算出灯具的主控模块驱动内部电机转动的目标转动角度(a1-x1)-(a-x)、(b1-y1)-(b-y)。That is, record the initial position of the operator's head (a, b) and the initial position of the lamp (x, y), and then collect the rotation angle of the operator's head (a1, b1) at a certain moment in the automatic control mode ), and the rotation angle of the lamp (x1, y1), so as to calculate the target rotation angle (a1-x1)-(ax), (b1-y1)-(by) that the main control module of the lamp drives the internal motor to rotate.
在另一实施例中,第一初始转动角度和第二初始转动角度还可以是上一时刻采集到的作业人员头部的转动角度和灯具的转动角度,如当前为t1时刻,通过信息采集模块采集到的作业人员头部的转动角度为(a1,b1),灯具的转动角度为(x1,y1),则确定t0时刻时,通过信息采集模块采集到的作业人员头部的转动角度为(a0,b0),灯具的转动角度为(x0,y0),从而计算出灯具的主控模块驱动内部电机转动的目标转动角度(a1-x1)-(a0-x0)、(b1-y1)-(b0-y0)。In another embodiment, the first initial rotation angle and the second initial rotation angle may also be the rotation angle of the operator’s head and the rotation angle of the lamp collected at the previous time. For example, the current time is t1, through the information collection module The collected rotation angle of the head of the operator is (a1, b1), and the rotation angle of the lamp is (x1, y1), then the rotation angle of the head of the operator collected by the information collection module at t0 is determined as ( a0, b0), the rotation angle of the lamp is (x0, y0), so as to calculate the target rotation angle (a1-x1)-(a0-x0), (b1-y1)- that the main control module of the lamp drives the internal motor to rotate (b0-y0).
在计算出目标转动角度之后,即可根据目标转动角度控制灯具进行转向,具体控制灯具转向目标转动角度对应的目标位置。After the target rotation angle is calculated, the lamp can be controlled to turn according to the target rotation angle, and the lamp can be specifically controlled to turn to the target position corresponding to the target rotation angle.
需要说明的是,为避免灯具转向造成内部线路缠绕,在具体实施时,灯具中设有挡点,挡点位置可根据实际情况进行设置,如360度的位置设置档点,这意味着灯具最大只能旋转360度。It should be noted that, in order to avoid the internal circuit entanglement caused by the turning of the lamp, in the specific implementation, there is a stop point in the lamp. The position of the stop point can be set according to the actual situation. For example, the position of 360 degrees sets the gear point. Can only rotate 360 degrees.
在具体实施时,用户按压头戴式控制器的复位键触发第一复位指令,控制系统根据第一复位指令将灯具转向复位位置,其中,复位位置可为灯具旋转位置的中心角度,也即灯具在复位位置往左或者往右转向的最大角度一致,往上往下转向的最大角度也一致。然后,用户望向预设位置对应的方向,也即用户的视线与灯具照射的方向一致,记录此时作业人员头部的第一初始转动角度和灯具的第二初始转动角度。用户再按压自动开关,触发自动控制指令,控制系统根据自动控制指令进入自动控制模式,在自动控制模式下,头戴式控制器上的头戴端位置传感器和灯具上的灯具端位置传感器自动工作,在某一时刻,若检测到作业人员头部的第一转动角度为(a1,b1),灯具的第二转动角度为(x1,y1),则计算出目标转动角度((a1-x1)-(a-x),(b1-y1)-(b-y)),从而控制灯具转向用户目视的方向。In specific implementation, the user presses the reset button of the head-mounted controller to trigger the first reset instruction, and the control system turns the lamp to the reset position according to the first reset instruction, where the reset position can be the center angle of the rotating position of the lamp, that is, the lamp In the reset position, the maximum angle of turning left or right is the same, and the maximum angle of turning up and down is also the same. Then, the user looks in the direction corresponding to the preset position, that is, the user's line of sight is consistent with the direction of the lamp, and records the first initial rotation angle of the operator's head and the second initial rotation angle of the lamp at this time. The user presses the automatic switch again to trigger the automatic control instruction, and the control system enters the automatic control mode according to the automatic control instruction. In the automatic control mode, the head-mounted end position sensor on the head-mounted controller and the lamp end position sensor on the lamp work automatically , At a certain moment, if it is detected that the first rotation angle of the operator’s head is (a1, b1) and the second rotation angle of the lamp is (x1, y1), then the target rotation angle ((a1-x1) -(ax), (b1-y1)-(by)), so as to control the lamp to turn to the direction of the user's eyes.
以夜间巡逻为例,灯具平台为巡逻车,灯具可安装于巡逻车车顶,头戴式控制器佩戴于车主,也即用户的头部,用户按下复位键,灯具转向灯具旋转位置的中心角度,用户直视前方,然后,按下自动开关,头戴端位置传感器开始自动采集车主的转动角度,灯具端位置传感器也开始自动采集灯具的转动角度,假设车主的头部的初始转动角度和灯具的初始转动角度都为(0,0),在某一时刻,车主往左水平转动45度,则灯具需要转动的角度为((-45-0)-(0-0),(0-0)-(0-0))=(-45,0),其中,-45表示向左转动水平45度,若为+,则向右转动,0表示俯仰角度不变。Take night patrol as an example. The lamp platform is a patrol car. The lamp can be installed on the roof of the patrol car. The head-mounted controller is worn on the head of the car owner, that is, the user’s head. The user presses the reset button and the lamp turns to the center of the rotating position of the lamp Angle, the user looks straight ahead, and then presses the automatic switch, the head-mounted position sensor starts to automatically collect the rotation angle of the car owner, and the lamp end position sensor also starts to automatically collect the rotation angle of the lamp. It is assumed that the initial rotation angle of the owner’s head and The initial rotation angles of the lamps are all (0, 0). At a certain moment, if the owner rotates 45 degrees to the left, the angle the lamps need to rotate is ((-45-0)-(0-0), (0- 0)-(0-0))=(-45, 0), where -45 means turning to the left by 45 degrees, if it is +, turning to the right, and 0 means that the pitch angle remains unchanged.
本实施例提供一种灯具控制方法,若检测到基于头戴式控制器的复位键触发的第一复位指令,则控制灯具转向第一复位指令对应的复位位置;若检测到基于头戴式控制器的自动开关触发的自动指令,则基于头戴端位置传感器采集作业人员头部的第一转动角度,基于灯具端位置传感器采集灯具平台的第二转动角度;基于第一转动角度和第二转动角度,计算灯具的目标转动角度,并控制灯具转向目标转动角度对应的目标位置。本申请通过采集作业人员头部的转动角度,计算目标转动角度,并根据目标转动角度,自动控制灯具转向作业人员头部的方向,实现灯具及时且准确的转向。This embodiment provides a lamp control method. If the first reset instruction triggered by the reset button of the head-mounted controller is detected, the lamp is controlled to turn to the reset position corresponding to the first reset instruction; if the detection is based on the head-mounted control The automatic command triggered by the automatic switch of the device is based on the head-mounted end position sensor collecting the first rotation angle of the operator’s head, and the lamp end position sensor collecting the second rotation angle of the lamp platform; based on the first rotation angle and the second rotation Angle, calculate the target rotation angle of the lamp, and control the lamp to turn to the target position corresponding to the target rotation angle. In this application, the target rotation angle is calculated by collecting the rotation angle of the operator's head, and according to the target rotation angle, the direction of the lamp turning to the operator's head is automatically controlled to realize timely and accurate turning of the lamp.
进一步地,基于第一实施例提出本申请灯具控制方法的第二实施例。Further, a second embodiment of the lamp control method of this application is proposed based on the first embodiment.
灯具控制方法的第二实施例与灯具控制方法的第一实施例的区别在于,步骤S20之前,灯具控制方法还包括:The difference between the second embodiment of the lamp control method and the first embodiment of the lamp control method is that, before step S20, the lamp control method further includes:
步骤a,在灯具转向复位位置之后,确定作业人员头部的视线是否与灯具的照射方向匹配;Step a: After the lamp is turned to the reset position, it is determined whether the line of sight of the operator's head matches the illumination direction of the lamp;
步骤b,若匹配,则监测是否存在基于头戴式控制器的自动开关触发的自动指令。In step b, if it matches, monitor whether there is an automatic command triggered by the automatic switch of the head-mounted controller.
本实施例中,为确保灯具转向的位置就是用户目视的方向,在进入自动控制模式之前,还需确定用户的作业人员头部的视线是否与灯具的照射方向匹配,也即需要用户望向灯具的照射方向之后,再启动自动控制模式,使得后续作业人员头部转动到哪里,灯具即照射到哪里,实现灯具的准确转向。In this embodiment, in order to ensure that the turning position of the lamp is the user's visual direction, before entering the automatic control mode, it is also necessary to determine whether the user's operator's head line of sight matches the illumination direction of the lamp, that is, the user needs to look After the illuminating direction of the luminaire, the automatic control mode is activated, so that where the head of the subsequent operator is turned, the luminaire is irradiated, and the accurate turning of the luminaire is realized.
以下将对各个步骤进行详细说明:Each step will be described in detail below:
步骤a,在灯具转向复位位置之后,确定作业人员头部的视线是否与灯具的照射方向匹配。Step a: After the lamp is turned to the reset position, it is determined whether the line of sight of the operator's head matches the illumination direction of the lamp.
本实施例中,若检测到自动控制指令,意味着用户按了自动开关,控制系统即将进入自动控制模式,控制系统则确定作业人员头部的视线是否与灯具的照射方向匹配。In this embodiment, if the automatic control instruction is detected, it means that the user has pressed the automatic switch, the control system is about to enter the automatic control mode, and the control system determines whether the line of sight of the operator's head matches the illumination direction of the lamp.
在一实施例中,只需满足当前作业人员头部的视线与灯具的照射方向匹配即可进入自动控制模式,具体确定当前作业人员头部的转动角度与灯具的转动角度是否一致。In one embodiment, the automatic control mode can be entered as long as the line of sight of the current operator's head matches the illumination direction of the lamp, and it is specifically determined whether the current rotation angle of the operator's head is consistent with the rotation angle of the lamp.
在一实施例中,步骤a包括:In one embodiment, step a includes:
在灯具转向复位位置之后,检测灯具是否处于灯具旋转位置的中心角度;After the lamp turns to the reset position, check whether the lamp is at the center angle of the rotating position of the lamp;
若处于灯具旋转位置的中心角度,则检测作业人员头部的第一初始转动角度是否为预设值;If it is at the center angle of the rotating position of the lamp, detecting whether the first initial angle of rotation of the operator's head is a preset value;
其中,若第一初始转动角度为预设值,则确定作业人员头部的视线与灯具的照射方向匹配。Wherein, if the first initial rotation angle is a preset value, it is determined that the line of sight of the operator's head matches the illumination direction of the lamp.
也即,需确定灯具是否处于灯具旋转位置的中心角度,在灯具处于灯具 旋转位置的中心角度,且作业人员头部的第一初始转动角度为预设值时,允许控制系统进入自动控制模式,其中,而预设值与灯具旋转位置的中心角度对应,也即当用户的头部的转动角度为预设值时,其视线与灯具在灯具旋转位置的中心角度的照射方向一致。That is, it is necessary to determine whether the lamp is at the center angle of the rotating position of the lamp. When the lamp is at the center angle of the rotating position of the lamp, and the first initial angle of rotation of the operator's head is a preset value, the control system is allowed to enter the automatic control mode. Wherein, the preset value corresponds to the central angle of the rotation position of the lamp, that is, when the rotation angle of the user's head is the preset value, the line of sight is consistent with the illumination direction of the central angle of the lamp rotation position.
步骤b,若匹配,则监测是否存在基于头戴式控制器的自动开关触发的自动指令。In step b, if it matches, monitor whether there is an automatic command triggered by the automatic switch of the head-mounted controller.
在确定匹配时,监测用户是否按下自动开关,从而触发自动指令,如以巡逻车为例,用户在巡逻车中正视前方为原点,也即用户的头部此时的转动角度为(0,0)即为预设值,而灯具在旋转位置的中心角度,也即灯具直射巡逻车的正前方为预设位置,两个条件都满足时,用户按下自动开关,控制系统进入自动控制模式。When determining the match, monitor whether the user presses the automatic switch to trigger the automatic instruction. For example, in the patrol car, the user faces the front as the origin in the patrol car, that is, the rotation angle of the user's head at this time is (0, 0) is the preset value, and the center angle of the lamp in the rotating position, that is, the lamp is directly in front of the patrol car is the preset position. When both conditions are met, the user presses the automatic switch and the control system enters the automatic control mode .
本实施例为确保灯具转向的位置就是用户目视的方向,在进入自动控制模式之前,还需确定用户的作业人员头部的视线是否与灯具的照射方向匹配,也即需要用户望向灯具的照射方向之后,再启动自动控制模式,使得后续作业人员头部转动到哪里,灯具即照射到哪里,实现灯具的准确转向。In this embodiment, to ensure that the turning position of the lamp is the user's visual direction, before entering the automatic control mode, it is necessary to determine whether the line of sight of the user's operator's head matches the illumination direction of the lamp, that is, the user needs to look at the direction of the lamp. After the irradiation direction, the automatic control mode is activated, so that where the head of the follow-up operator turns, the lamp is irradiated, and the accurate turning of the lamp is realized.
进一步地,基于第一、第二实施例提出本申请灯具控制方法的第三实施例。Further, a third embodiment of the lamp control method of this application is proposed based on the first and second embodiments.
灯具控制方法的第三实施例与灯具控制方法的第一、第二实施例的区别在于,信息采集模块包括人脸前方视觉识别模块,人脸前方视觉识别模块安装于灯具平台,灯具控制方法还包括:The difference between the third embodiment of the lamp control method and the first and second embodiments of the lamp control method is that the information collection module includes a visual recognition module in front of the face. The visual recognition module in front of the face is installed on the lamp platform. include:
步骤c,若检测到基于人脸前方视觉识别模块的复位键触发的第二复位指令,则控制灯具转向第二复位指令对应的复位位置;Step c, if a second reset instruction triggered by the reset button of the visual recognition module in front of the face is detected, control the lamp to turn to the reset position corresponding to the second reset instruction;
步骤d,若检测到基于人脸前方视觉识别模块的自动开关触发的自动指令,则基于人脸前方视觉识别模块识别作业人员头部的人脸转向,并基于人脸转向,采集作业人员头部的转动角度;Step d: If an automatic command triggered by the automatic switch of the front face visual recognition module is detected, the face front visual recognition module recognizes the face turn of the operator's head, and based on the face turn, collects the head of the operator The angle of rotation;
步骤e,基于转动角度,控制灯具转向转动角度对应的目标位置。Step e: Control the target position corresponding to the turning angle of the lamp based on the turning angle.
在本实施例中,信息采集模块包括人脸前方视觉识别模块,安装于灯具 平台,具体安装在灯具平台人脸前部的位置,如灯具平台为车辆时,可将人脸前方视觉识别模块安装于车辆的A柱上,在工作时,识别前面的人脸的转向,从而采集作业人员头部的转动角度。In this embodiment, the information collection module includes a visual recognition module in front of the face, which is installed on the lighting platform, specifically at the front of the face of the lighting platform. For example, when the lighting platform is a vehicle, the visual recognition module in front of the face can be installed On the A-pillar of the vehicle, it recognizes the turning angle of the front face during work, so as to collect the rotation angle of the operator's head.
同样的,用户在使用过程中,先按下复位键,使得灯具转向复位位置,然后再按下自动开关,使得人脸前方视觉识别模块自动采集作业人员头部的人脸转向,从而识别出作业人员头部的转动角度,再按照转动角度,控制灯具进行转动。Similarly, in the process of use, the user first presses the reset button to make the lamp turn to the reset position, and then presses the automatic switch, so that the visual recognition module in front of the face automatically collects the face turning of the operator's head to identify the job The rotation angle of the head of the person, and then according to the rotation angle, controls the lamp to rotate.
以夜间巡逻为例,灯具平台为巡逻车,灯具可安装于巡逻车车顶,人脸前方视觉识别模块安装于巡逻车的A柱上,在用户上车后,按下复位键,控制灯具回归正中间,也即灯具直射巡逻车前方,然后,用户直视巡逻车前方,按下自动开关,进入自动控制模式,此时记录用户的头部的转动角度和灯具的转动角度,假设都为(0,0),在某一时刻,用户往左水平转动45度,则灯具需要转动的角度为((-45-0)-(0-0),(0-0)-(0-0))=(-45,0),其中,-45表示向左转动水平45度,若为+,则向右转动,0表示俯仰角度不变。Take night patrol as an example. The lighting platform is a patrol car. The lighting can be installed on the roof of the patrol car. The front face visual recognition module is installed on the A-pillar of the patrol car. After the user gets on the car, press the reset button to control the lamp to return In the middle, that is, the lamp is directly in front of the patrol car. Then, the user looks straight in front of the patrol car, presses the automatic switch, and enters the automatic control mode. At this time, the rotation angle of the user's head and the rotation angle of the lamp are recorded, assuming both are ( 0, 0), at a certain moment, the user rotates 45 degrees to the left, the angle that the lamp needs to rotate is ((-45-0)-(0-0), (0-0)-(0-0) )=(-45, 0), where -45 means turning to the left by 45 degrees, if it is +, turning to the right, and 0 means that the pitch angle remains unchanged.
需要说明的是,复位键和自动开关可设于灯具平台,如车辆的方向盘上,也可设于人脸前方视觉识别模块。为确保能精准的识别人脸,并识别出人脸的转向,本实施例的人脸前方视觉识别模块如图3所示,包括两个摄像头、复位键和自动开关(其中,图示中的圆点,左圆点可为复位键,右圆点可为自动开关,或者反过来),两个摄像头实时采集用户的人脸图像,并对人脸图像进行分析,识别出人脸的转向,从而确定人脸头部的转动角度。It should be noted that the reset button and the automatic switch can be set on the lamp platform, such as the steering wheel of a vehicle, or on the visual recognition module in front of the face. In order to ensure that the face can be accurately recognized and the turning of the face can be recognized, the visual recognition module in front of the face of this embodiment is shown in Figure 3, including two cameras, a reset button and an automatic switch (wherein, the The dot, the left dot can be the reset button, the right dot can be the automatic switch, or vice versa), the two cameras collect the user’s face image in real time and analyze the face image to identify the turning of the face. In order to determine the rotation angle of the face head.
本实施例提供一种灯具控制方法,若检测到基于人脸前方视觉识别模块的复位键触发的第二复位指令,则控制灯具转向第二复位指令对应的复位位置;若检测到基于人脸前方视觉识别模块的自动开关触发的自动指令,则基于人脸前方视觉识别模块识别作业人员头部的人脸转向,并基于人脸转向,采集作业人员头部的转动角度;基于转动角度,控制灯具转向转动角度对应的目标位置。本申请通过采集作业人员头部的转动角度,计算目标转动角度,并根据目标转动角度,自动控制灯具转向作业人员头部的方向,实现灯具及 时且准确的转向。This embodiment provides a lamp control method. If a second reset instruction triggered by the reset button of the visual recognition module in front of the face is detected, the lamp is controlled to turn to the reset position corresponding to the second reset instruction; if the detection is based on the front of the face The automatic command triggered by the automatic switch of the visual recognition module is based on the visual recognition module in front of the face to recognize the face turn of the operator's head, and based on the face turn, collect the rotation angle of the operator's head; control the lamp based on the rotation angle The target position corresponding to the steering angle. This application collects the rotation angle of the operator's head, calculates the target rotation angle, and automatically controls the direction of the lamp turning to the operator's head according to the target rotation angle, so as to realize the timely and accurate steering of the lamp.
此外,本申请实施例还提供一种计算机可读存储介质。In addition, the embodiment of the present application also provides a computer-readable storage medium.
本申请计算机可读存储介质上存储有灯具控制程序,其中灯具控制程序被处理器执行时,实现如上所述方案的步骤。The computer-readable storage medium of the present application stores a lamp control program, where the lamp control program is executed by the processor to realize the steps of the above solution.
其中,灯具控制程序被执行时所实现的方法可参照本申请灯具控制方法的各个实施例,此处不再赘述。For the method implemented when the lamp control program is executed, please refer to the various embodiments of the lamp control method of this application, which will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or system. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The sequence numbers of the foregoing embodiments of the present invention are only for description, and do not represent the superiority of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , Magnetic disk, optical disk), including several instructions to make a terminal device (can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the method described in each embodiment of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and do not limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied to other related technical fields , The same reason is included in the scope of patent protection of the present invention.

Claims (13)

  1. 一种灯具,其中,包括:灯具本体、水平转动驱动装置、俯仰转动驱动装置以及头戴式控制器和角度位置传感器,所述角度位置传感器被配置为采集作业人员头部的水平转动角度信息和俯仰角度信息,所述头戴式控制器被配置为根据所述水平转动角度信息和所述俯仰角度信息,分别通过所述水平转动驱动装置和所述俯仰转动驱动装置控制所述灯具本体转动相应的角度。A lamp, comprising: a lamp body, a horizontal rotation driving device, a pitch rotation driving device, a head-mounted controller and an angle position sensor, the angle position sensor being configured to collect information on the horizontal rotation angle of the head of an operator and Pitch angle information, the head-mounted controller is configured to control the rotation of the lamp body through the horizontal rotation drive device and the pitch rotation drive device respectively according to the horizontal rotation angle information and the pitch angle information Angle.
  2. 根据权利要求1所述的灯具,其中,所述角度位置传感器包括设置在所述头戴式控制器上的头戴端位置传感器和设置在所述灯具本体上的灯具端位置传感器,所述灯具本体上设有灯具端控制器,所述灯具端控制器被配置为根据所述头戴端位置传感器和所述灯具端位置传感器两者所采集的角度差,通过所述水平转动驱动装置和所述俯仰转动驱动装置控制所述灯具本体转动相应的角度。The lamp according to claim 1, wherein the angular position sensor comprises a head-mounted end position sensor arranged on the head-mounted controller and a lamp end position sensor arranged on the lamp body, the lamp The main body is provided with a lamp end controller, and the lamp end controller is configured to use the horizontal rotation drive device and the lamp according to the angle difference collected by the head-mounted end position sensor and the lamp end position sensor. The pitch and rotation driving device controls the rotation of the lamp body by a corresponding angle.
  3. 根据权利要求2所述的灯具,其中,所述头戴式控制器与所述灯具端控制器通过无线传输模块连接。The lamp according to claim 2, wherein the head-mounted controller and the lamp end controller are connected through a wireless transmission module.
  4. 根据权利要求3所述的灯具,其中,还包括底座和支架,所述支架水平转动连接在所述底座上,所述灯具本体通过水平铰接轴与所述支架铰接。The lamp according to claim 3, further comprising a base and a bracket, the bracket is connected to the base in a horizontal rotation, and the lamp body is hinged with the bracket through a horizontal hinge shaft.
  5. 根据权利要求4所述的灯具,其中,所述支架为U型支架,所述灯具本体位于所述U型支架的凹槽内。The lamp according to claim 4, wherein the bracket is a U-shaped bracket, and the lamp body is located in a groove of the U-shaped bracket.
  6. 根据权利要求1至5任一项所述的灯具,其中,所述头戴式控制器上还设有被配置为控制所述水平转动驱动装置和所述俯仰转动驱动装置工作的操控部。The lamp according to any one of claims 1 to 5, wherein the head-mounted controller is further provided with a control part configured to control the operation of the horizontal rotation driving device and the pitch rotation driving device.
  7. 一种灯具,其中,包括:灯具本体、水平转动驱动装置、俯仰转动驱动装置以及人脸前方视觉识别模块,所述人脸前方视觉识别模块被配置为采集作业人员头部的水平转动角度信息和俯仰角度信息,并根据所述水平转动角度信息和所述俯仰角度信息,分别通过所述水平转动驱动装置和所述俯仰转动驱动装置控制所述灯具本体转动相应的角度。A lamp, comprising: a lamp body, a horizontal rotation drive device, a pitch rotation drive device, and a face front visual recognition module, the face front visual recognition module is configured to collect the horizontal rotation angle information of the operator's head and The pitch angle information, and according to the horizontal rotation angle information and the pitch angle information, the horizontal rotation driving device and the pitch rotation driving device are used to control the lamp body to rotate by a corresponding angle.
  8. 一种灯具控制方法,其中,所述灯具控制方法包括以下步骤:A lamp control method, wherein the lamp control method includes the following steps:
    若检测到基于头戴式控制器的复位键触发的第一复位指令,则控制所述灯具转向所述第一复位指令对应的复位位置;If the first reset instruction triggered based on the reset button of the head-mounted controller is detected, control the lamp to turn to the reset position corresponding to the first reset instruction;
    若检测到基于所述头戴式控制器的自动开关触发的自动指令,则基于头戴端位置传感器采集所述作业人员头部的第一转动角度,并基于灯具端位置传感器采集所述灯具的第二转动角度,其中,转动角度包括水平转动角度信息和俯仰角度信息;If an automatic command triggered by the automatic switch of the head-mounted controller is detected, the first rotation angle of the operator’s head is collected based on the head-mounted position sensor, and the lamp position sensor is used to collect the The second rotation angle, where the rotation angle includes horizontal rotation angle information and pitch angle information;
    基于所述第一转动角度和所述第二转动角度,计算所述灯具的目标转动角度,并控制所述灯具转向所述目标转动角度对应的目标位置。Based on the first rotation angle and the second rotation angle, a target rotation angle of the lamp is calculated, and the lamp is controlled to turn to a target position corresponding to the target rotation angle.
  9. 根据权利要求8所述的灯具控制方法,其中,所述若检测到基于所述头戴式控制器的自动开关触发的自动指令,则基于头戴端位置传感器采集所述作业人员头部的第一水平转动角度信息和第一俯仰角度信息,并基于灯具端位置传感器采集所述灯具的第二水平转动角度信息和第二俯仰角度信息的步骤之前,所述灯具控制方法还包括:The lamp control method according to claim 8, wherein, if an automatic instruction triggered by an automatic switch of the head-mounted controller is detected, the first head of the operator is collected based on a head-mounted end position sensor. Before the step of collecting the second horizontal rotation angle information and the second pitch angle information of the lamp based on the lamp end position sensor and the horizontal rotation angle information and the first pitch angle information, the lamp control method further includes:
    在所述灯具转向所述复位位置之后,确定所述作业人员头部的视线是否与所述灯具的照射方向匹配;After the lamp is turned to the reset position, determining whether the line of sight of the operator's head matches the illumination direction of the lamp;
    若匹配,则监测是否存在基于所述头戴式控制器的自动开关触发的自动指令。If it matches, it is monitored whether there is an automatic command triggered by the automatic switch of the head-mounted controller.
  10. 根据权利要求8所述的灯具控制方法,其中,所述基于所述第一转动角度和所述第二转动角度,计算所述灯具的目标转动角度的步骤包括:The lamp control method according to claim 8, wherein the step of calculating the target rotation angle of the lamp based on the first rotation angle and the second rotation angle comprises:
    确定所述作业人员头部的第一初始转动角度,以及所述灯具的第二初始转动角度;Determining the first initial rotation angle of the operator's head and the second initial rotation angle of the lamp;
    基于所述第一初始转动角度和所述第二初始转动角度,计算第一转动角 度差;Calculating a first rotation angle difference based on the first initial rotation angle and the second initial rotation angle;
    基于所述第一转动角度和所述第二转动角度,计算第二转动角度差;Calculating a second rotation angle difference based on the first rotation angle and the second rotation angle;
    基于所述第一转动角度差和所述第二转动角度差,计算所述灯具的目标转动角度。Based on the first rotation angle difference and the second rotation angle difference, a target rotation angle of the lamp is calculated.
  11. 一种灯具控制方法,其中,所述灯具控制方法包括以下步骤:A lamp control method, wherein the lamp control method includes the following steps:
    若检测到基于人脸前方视觉识别模块的复位键触发的第二复位指令,则控制所述灯具转向所述第二复位指令对应的复位位置;If a second reset instruction triggered by the reset button of the visual recognition module in front of the face is detected, control the lamp to turn to the reset position corresponding to the second reset instruction;
    若检测到基于所述人脸前方视觉识别模块的自动开关触发的自动指令,则基于所述人脸前方视觉识别模块识别所述作业人员头部的人脸转向,并基于所述人脸转向,采集所述作业人员头部的转动角度;If an automatic command triggered by the automatic switch of the visual recognition module in front of the face is detected, the visual recognition module in front of the face recognizes the face turn of the operator's head based on the face turn, Collecting the rotation angle of the operator's head;
    基于所述转动角度,控制所述灯具转向所述转动角度对应的目标位置。Based on the rotation angle, control the lamp to turn to the target position corresponding to the rotation angle.
  12. 一种灯具控制系统,其中,所述灯具控制系统包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的灯具控制程序,其中所述灯具控制程序被所述处理器执行时,实现根据权利要求8至11中任一项所述的灯具控制方法的步骤。A lamp control system, wherein the lamp control system includes a processor, a memory, and a lamp control program stored on the memory and executable by the processor, wherein the lamp control program is executed by the processor When executed, the steps of the lamp control method according to any one of claims 8 to 11 are realized.
  13. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有灯具转向控制程序,其中所述灯具转向控制程序被处理器执行时,实现根据权利要求8至11中任一项所述的灯具转向控制方法的步骤。A computer-readable storage medium, wherein a lamp steering control program is stored on the computer-readable storage medium, and when the lamp steering control program is executed by a processor, the method according to any one of claims 8 to 11 is realized. The steps of the lamp steering control method described.
PCT/CN2020/103295 2019-07-22 2020-07-21 Lamp, lamp control method and system, and computer readable storage medium WO2021013149A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910661375.5 2019-07-22
CN201910661375.5A CN110260278A (en) 2019-07-22 2019-07-22 A kind of intelligent-induction follow-up steering lamps and lanterns

Publications (1)

Publication Number Publication Date
WO2021013149A1 true WO2021013149A1 (en) 2021-01-28

Family

ID=67927602

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103295 WO2021013149A1 (en) 2019-07-22 2020-07-21 Lamp, lamp control method and system, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN110260278A (en)
WO (1) WO2021013149A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110260278A (en) * 2019-07-22 2019-09-20 东莞市霍晶光电科技有限公司 A kind of intelligent-induction follow-up steering lamps and lanterns
CN111880577A (en) * 2020-07-21 2020-11-03 东莞市霍晶光电科技有限公司 Lamp steering control method, device and system and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202253271U (en) * 2011-08-11 2012-05-30 冯金勋 Vision synchronizing lamp
CN102705766A (en) * 2011-08-11 2012-10-03 冯金勋 Sight synchronizing lamp
US20170254527A1 (en) * 2016-03-02 2017-09-07 Amtai Medical Equipment, Inc. Automatic light intensity compansating device of surgical light
CN108025781A (en) * 2016-07-13 2018-05-11 杨壬豪 Intelligent illuminating system and control method
CN108758576A (en) * 2018-06-22 2018-11-06 梁建军 A kind of intelligent lighting following control system
CN110260278A (en) * 2019-07-22 2019-09-20 东莞市霍晶光电科技有限公司 A kind of intelligent-induction follow-up steering lamps and lanterns

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050111223A1 (en) * 2005-01-26 2005-05-26 Wade Lee Worklight with aimable head
DK2443381T3 (en) * 2009-06-18 2015-11-02 Martin Professional Aps INTELLIGENT Light fixture with manual FOLLOW SPOT SHOOTING
JP5749298B2 (en) * 2013-07-10 2015-07-15 株式会社スノーピーク Head front lighting device
CN204406085U (en) * 2015-02-09 2015-06-17 绵阳雍宙科技有限公司 Novel head-wearing type telepilot
CN106322166A (en) * 2015-06-15 2017-01-11 李文嵩 Head induction head lamp device
WO2016201597A1 (en) * 2015-06-15 2016-12-22 李文嵩 Head-sensing headlamp device
CN105698069A (en) * 2016-03-18 2016-06-22 嘉兴星网通信技术有限公司 Intelligent searchlight system, control method thereof and circuit signal connecting method
CN108105654A (en) * 2018-01-15 2018-06-01 贵州省人民医院 Lamp supporting device, hospital bed of gynecopathy and lamps and lanterns adjusting method
CN207911087U (en) * 2018-03-10 2018-09-25 刘婧妍 It is a kind of based on the detection posture intention lamp automatically controlled
CN209944263U (en) * 2019-07-22 2020-01-14 东莞市霍晶光电科技有限公司 Intelligent induction follow-up steering lamp

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202253271U (en) * 2011-08-11 2012-05-30 冯金勋 Vision synchronizing lamp
CN102705766A (en) * 2011-08-11 2012-10-03 冯金勋 Sight synchronizing lamp
US20170254527A1 (en) * 2016-03-02 2017-09-07 Amtai Medical Equipment, Inc. Automatic light intensity compansating device of surgical light
CN108025781A (en) * 2016-07-13 2018-05-11 杨壬豪 Intelligent illuminating system and control method
CN108758576A (en) * 2018-06-22 2018-11-06 梁建军 A kind of intelligent lighting following control system
CN110260278A (en) * 2019-07-22 2019-09-20 东莞市霍晶光电科技有限公司 A kind of intelligent-induction follow-up steering lamps and lanterns

Also Published As

Publication number Publication date
CN110260278A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
EP3691417B1 (en) Automatic stage lighting tracking system and control method therefor
WO2021013149A1 (en) Lamp, lamp control method and system, and computer readable storage medium
CN107972569B (en) Vehicle lamp set control method, device and system and vehicle
CN105667386B (en) A kind of automobile light control system
CN104203632A (en) Method, device, and computer program product for controlling at least one function of at least one display device for a vehicle interior
WO2021249495A1 (en) Vehicle light control method, apparatus and system
CN110303979A (en) Control method, system, electronic equipment and the storage medium of headlamp
CN103914016A (en) Intelligent detection system based on WIFI
TWI669687B (en) Road light monitoring device and monitoring system and monitoring method using same
CN206826514U (en) A kind of large-scale passenger-cargo carriage intelligent and safe warning device
CN205686298U (en) The system of the trailer of detection vehicle and vehicle
CN205081853U (en) Intelligent monitoring camera
CN110187711A (en) Trick vehicle control method, system, equipment and the storage medium of autonomous driving vehicle
US11453413B2 (en) Driving warning method and vehicle-mounted device
WO2021100723A1 (en) Vehicle diagnosing system, and moving body diagnosing system
CN110920541B (en) Method and system for realizing automatic control of vehicle based on vision
CN205389287U (en) Energy -conserving illumination remote control system of intelligence
CN111873901A (en) Traffic accident front line warning system
CN106183964A (en) A kind of new automobile long-and-short distant light intelligent switching system
CN111152869A (en) Automatic steering prompting method and system for new energy riding vehicle
CN106168804A (en) A kind of intelligent carriage control system based on laser automatic seeking footpath
WO2023115619A1 (en) Vehicle driving method, television and storage medium
CN205971076U (en) Automatic anti -dazzle inside rear -view mirror control panel of electron of high photometry scope
CN205768982U (en) A kind of automobile intelligent back-sight visual system
CN205389288U (en) Energy -conserving lighting control system of intelligence

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20844855

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20844855

Country of ref document: EP

Kind code of ref document: A1