WO2019205322A1 - Interactive projection lamp control method and device, and interactive projection lamp - Google Patents

Interactive projection lamp control method and device, and interactive projection lamp Download PDF

Info

Publication number
WO2019205322A1
WO2019205322A1 PCT/CN2018/097390 CN2018097390W WO2019205322A1 WO 2019205322 A1 WO2019205322 A1 WO 2019205322A1 CN 2018097390 W CN2018097390 W CN 2018097390W WO 2019205322 A1 WO2019205322 A1 WO 2019205322A1
Authority
WO
WIPO (PCT)
Prior art keywords
projection
distance
interactive
projection lamp
surface reference
Prior art date
Application number
PCT/CN2018/097390
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 WO2019205322A1 publication Critical patent/WO2019205322A1/en

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B21/00Projectors or projection-type viewers; Accessories therefor
    • G03B21/14Details
    • G03B21/20Lamp housings
    • G03B21/206Control of light source other than position or intensity

Definitions

  • the present invention relates to the field of projection display technology, and in particular, to a method and an apparatus for controlling an interactive projection lamp and an interactive projection lamp.
  • a projection lamp also known as an imaging lamp, is a new type of projection device that integrates a projector and an illuminated LED light to project images or text onto the ground or wall.
  • the projector lamp is a lighting system designed for various types of commercial places, such as: it is widely used in special entertainment venues, exhibition halls, brand stores, hotels, hotels, bars, coffee houses, tea houses, shopping malls, etc.
  • the lamp Since the lamp has been fixed at the time of installation, its projected area is limited. In actual use, due to various reasons such as the environment and personal preferences, there are often cases where the projected area of the projection lamp is different.
  • the projection area of the existing projection lamp is single and fixed, and cannot meet the needs of different users for the projected area.
  • the object of the present invention is to provide a method and a device for controlling an interactive projection lamp and an interactive projection lamp to solve the problem that the projection area of the existing projection lamp is single and cannot meet the needs of different users.
  • the present invention provides a method for controlling an interactive projection lamp, comprising:
  • Projection is performed in accordance with the target projected area.
  • the method before determining the distance between the projection surface reference and the interactive projection lamp, the method further includes:
  • a projection surface reference object is identified from the projection surface image.
  • the projection surface reference object is a gesture
  • the recognizing the projection surface reference object from the projection surface image comprises:
  • the gesture is taken as the identified projection surface reference.
  • the method before the determining the distance between the projection surface reference object and the interactive projection lamp, the method further includes:
  • the determining the distance between the projection surface reference object and the interactive projection lamp comprises:
  • a distance between the projection surface reference and the interactive projection lamp is determined using a ranging sensor.
  • the ranging sensor is a TOF camera
  • the TOF camera emits light, is received by the sensor after being reflected by the projection surface reference object, and determines the projection surface reference object and the interactive projection lamp by calculating a time difference or a phase difference between the emitted light and the reflected light. The distance between them.
  • the determining the distance between the projection surface reference object and the interactive projection lamp comprises:
  • the distance between the projection surface reference and the interactive projection lamp is measured using a binocular camera.
  • the invention also provides a control device for an interactive projection lamp, comprising:
  • a distance determining module for determining a distance between the projection surface reference object and the interactive projection lamp
  • a projection area determining module configured to invoke a mapping relationship between a preset distance and a projected area, and use a projected area corresponding to the distance as a target projected area;
  • An adjustment module for projecting according to the target projected area.
  • the invention also provides an interactive projection lamp, comprising: a projection light machine and a processor;
  • the processor is configured to determine a distance between the projection surface reference object and the interactive projection lamp; invoke a mapping relationship between the preset distance and the projected area, and use the projected area corresponding to the distance as the target projected area; generate a pair
  • the projection illuminator performs a controlled drive command to adjust the projection illuminator to the target projected area.
  • the method further includes: an RGB camera and a TOF camera;
  • the RGB camera is configured to acquire an image within a range of viewing angles, so that the processor identifies a projection surface reference object from the acquired image;
  • the TOF camera is configured to determine a distance between the projection surface reference object and the interactive projection lamp after the RGB camera recognizes the projection surface reference object, and send the distance to the processor.
  • the present invention also provides a computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the control method of the interactive projection lamp of any of claims 1-7.
  • the control method of the interactive projection lamp provided by the invention determines the distance between the projection surface reference object and the interactive projection lamp; and calls the mapping relationship between the preset distance and the projected area to target the projected area corresponding to the distance Projection area; projection according to the target projection area.
  • the projection area of the projection lamp provided by the present application can be adjusted according to the distance between the projection surface reference object and the projection lamp, which can meet the needs of different users for the projection area, and improves the user experience.
  • the preset mapping relationship can be directly called to quickly determine the target projection area that needs to be adjusted, thereby effectively solving the manual manual mechanical adjustment of the projection device. The problem has greatly improved the efficiency of use and saved labor costs.
  • the present application also provides a control device for an interactive projection lamp and an interactive projection lamp having the above technical effects.
  • FIG. 1 is a flow chart of a specific implementation manner of a method for controlling an interactive projection lamp provided by the present application
  • FIG. 2 is a schematic diagram showing a mapping relationship between a distance and a projected area
  • FIG. 3 is a flow chart of another specific implementation manner of a method for controlling an interactive projection lamp provided by the present application.
  • FIG. 4 is a flow chart of still another embodiment of a method for controlling an interactive projection lamp provided by the present application.
  • FIG. 5 is a schematic diagram of TOF ranging provided by the present application.
  • FIG. 6 is a structural block diagram of a control device for an interactive projection lamp according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of an interactive projection lamp according to an embodiment of the present invention.
  • FIG. 1 A flowchart of a specific implementation manner of a method for controlling an interactive projection lamp provided by the present application is as shown in FIG. 1 .
  • the method is applied to an interactive projection device, and specifically includes:
  • Step S11 determining a distance between the projection surface reference object and the interactive projection lamp
  • the projection surface is an area where the projection lamp projects to form an image, and may be a wall, a projection screen, or the like.
  • the projection surface reference object is an object that plays a role in marking the projection surface, and may be an actual projection surface, such as an object such as a wall arm, a table, a curtain, or the like, or may be a user, such as a user's gesture, shape, or the like. Any object that can serve as a reference can be used herein without limitation.
  • the projection surface reference object Before determining the distance between the projection surface reference and the interactive projection lamp, the projection surface reference object needs to be identified. There are many ways to recognize, and in this embodiment, an image recognition method can be employed.
  • the process can specifically include:
  • a projection surface reference object is identified from the projection surface image.
  • An image capture of the projection surface of the interactive projection lamp can be performed using an RGB camera to identify whether there is a projection surface reference object from the acquired image.
  • the process of recognition is to determine whether there is gesture intervention in the projection surface image; if so, the acquired gesture image is matched with the standard image in the preset gesture library; if the matching is passed, The gesture is then used as the identified projection surface reference.
  • the method may further include: determining whether the dwell time of the gesture in the gesture image exceeds a preset threshold, and if yes, performing subsequent determination of the projection surface reference object and the interactive projection lamp The operation of the distance between.
  • the preset threshold can be set by the user, which does not affect the implementation of the present invention.
  • Determining the distance between the projection surface reference and the interactive projection lamp can be determined in a number of ways.
  • the distance between the projection surface reference object and the interactive projection lamp can be directly measured by using the distance measuring sensor, and the distance measuring sensor can specifically adopt an ultrasonic distance measuring sensor, a laser ranging sensor, an infrared distance measuring sensor, and a 24 GHz radar sensor. Wait.
  • the embodiment of the present application may be specifically an ultrasonic ranging sensor, which adopts an ultrasonic echo ranging principle, and uses an accurate time difference measurement technology to detect a distance between the sensor and the target, and has accurate measurement, no contact, waterproof, anti-corrosion, and the like. Low cost and other advantages.
  • a binocular camera can also be used to measure the distance between the projection surface reference and the interactive projection lamp. The specific process of measuring the distance by using a binocular camera is known in the prior art, and will not be described herein.
  • the present application uses a TOF camera to perform ranging.
  • the TOF camera emits light, is received by the sensor after being reflected by the projection surface reference object, and determines the projection surface reference object and the interactive projection lamp by calculating a time difference or a phase difference between the emitted light and the reflected light. The distance between them.
  • Step S12 calling a mapping relationship between the preset distance and the projected area, and using the projected area corresponding to the distance as the target projected area;
  • the mapping relationship between the distance and the projected area in the present application may be preset, by which the projected area corresponding to the distance may be quickly determined according to the distance.
  • the mapping relationship between the distance and the projected area can be established in advance, or can be updated in real time according to the actual situation.
  • L can be divided into a plurality of regions, each region corresponding to a corresponding projected area. Assume that the maximum projected area of the projection device is set at L/2, the projected area is increased in the 0-L/2 area, and the projected area is reduced in the L/2-L area.
  • Step S13 Projecting according to the target projected area.
  • a drive command is generated and sent to the corresponding drive device, so that the drive device performs a corresponding action, thereby controlling the interactive projection lamp to project according to the target projected area.
  • the control method of the interactive projection lamp provided by the invention determines the distance between the projection surface reference object and the interactive projection lamp; and calls the mapping relationship between the preset distance and the projected area to target the projected area corresponding to the distance Projection area; projection according to the target projection area.
  • the projection area of the projection lamp provided by the present application can be adjusted according to the distance between the projection surface reference object and the projection lamp, which can meet the needs of different users for the projection area, and improves the user experience.
  • the preset mapping relationship can be directly called to quickly determine the target projection area to be adjusted, thereby effectively solving the manual manual mechanical adjustment of the projection device. The problem has greatly improved the efficiency of use and saved labor costs.
  • the method for controlling the interactive projection lamp provided by the present application is further described in detail below by taking the projection surface reference object as an example. Referring to FIG. 3, the process includes:
  • Step S21 Acquire a projection surface image of the interactive projection lamp
  • the camera can be used to capture the projection surface image of the interactive projection lamp.
  • the acquired frequency can be obtained in real time, for example, once every preset time interval, or under a fixed trigger condition, for example, after the interactive lamp is powered on or the reset button is triggered.
  • Step S22 determining whether there is gesture intervention in the projection surface image; if yes, matching the acquired gesture image with the standard image in the preset gesture library;
  • the standard image in the preset gesture library may horizontally place the captured image for the palm, such that the difference in the N depth values of the palm measured by the TOF camera is small for further processing.
  • Step S23 if the matching is passed, determining whether the dwell time of the gesture in the gesture image exceeds a preset threshold; if yes, determining the distance between the gesture and the interactive projection lamp;
  • the acquired gesture image is matched with the standard image, and the gesture and the interactive projection lamp are further determined only when the gesture meets the specified gesture and the time when the gesture motion stays exceeds the preset threshold.
  • the preset threshold may be a value set by the user, and may be more than 3s.
  • the N depth values on the palm surface can be measured by the TOF camera, according to the N
  • the depth values calculate the distance between the gesture and the interactive lamp.
  • the N depth values can be averaged and the calculated average value used as the distance between the gesture and the interactive projection lamp. It is also possible to remove the maximum and minimum values of the N depth values, and then take the average value, and use the calculated average value as the distance between the gesture and the interactive projection lamp.
  • there are other ways of calculating which do not affect the implementation of the present invention.
  • Step S24 calling a mapping relationship between the preset distance and the projected area, and using the projected area corresponding to the distance as the target projected area;
  • Step S25 generating a driving instruction for controlling the interactive projection lamp to control the interactive projection lamp to project according to the target projection area.
  • the gesture recognition algorithm automatically adjusts the size of the projection area according to the gesture position at the software level, which is convenient and quick to operate, saves the user's time, improves the control efficiency, and can meet the needs of different users for the projected area. At the same time, device damage due to manual mechanical adjustment of the projected area is also avoided.
  • FIG. 4 A flow chart of still another embodiment of the control method of the interactive projection lamp provided by the present application is shown in FIG. 4 .
  • a TOF camera is specifically used for ranging, and the process includes:
  • Step S31 After the projector is powered on, it is determined whether the local database has saved location information; if not, the default initialized projection area is displayed; if yes, the saved location information is read, and the corresponding projected area is displayed.
  • an initial projected area S is set. Assuming S2, this projected area S2 is an initial projected area, independent of the distance, which can be set by default.
  • Step S32 detecting whether there is gesture intervention; if yes, proceeding to step S33; if not, proceeding to step S38;
  • Step S33 sending the acquired gesture image to the gesture recognition module
  • Step S34 the gesture recognition module compares the sent image with the image in the gesture library to determine whether the specified gesture is met; if yes, proceeds to step S35; if not, proceeds to step S38;
  • Step S35 determining whether the time when the gesture action stays exceeds a preset threshold; if yes, proceeding to step S36; if not, proceeding to step S38;
  • Step S36 The distance between the depth of field module and the gesture in the interactive projector is measured by the TOF camera.
  • the schematic diagram of the TOF ranging shows that the sensor emits modulated near-infrared light and reflects after the object, and the sensor calculates the distance of the captured object by calculating the time difference or phase difference between the light emission and the reflection.
  • the specific implementation process turns on the light source for the control unit on the camera and then turns it off to emit a light pulse.
  • the control unit turns the electronic shutter of the receiving end on and off.
  • the charge S0 received at the receiving end is stored in the photosensitive element.
  • the control unit then turns the light source on and off for the second time. This time the shutter is opened later, that is, when the light source is turned off.
  • the newly received charge S1 is also stored.
  • Step S37 Adjust the size of the projected area according to the distance, and save the gesture position information.
  • Step S38 Keep the current projected area unchanged.
  • the acquired location information is written into the projection device by the write node according to the difference of the projected area size corresponding to the different gesture positions, and the device performs the corresponding action according to the obtained node information. That is, the purpose of automatically adjusting the projected area is achieved, and the position information of the current gesture and the current projected area are locally saved.
  • the position information in the database can be directly read, and the corresponding projection area is automatically set, so that the projection has a "memory" function, and the cumbersome adjustment of the projection area is avoided.
  • the program uses the TOF camera in the depth of field module to detect the distance between the gesture and the depth of field module and the image of the gesture, and sends the captured image to the gesture recognition module, and then sets different projection areas according to different distances to realize automatic adjustment.
  • the purpose of the projected area is to avoid artificially adjusting the height and position of the projection lamp, causing damage to the device, greatly improving the use efficiency and meeting the needs of different users.
  • control device of the interactive projection lamp provided by the embodiment of the present invention is described below.
  • the control device of the interactive projection lamp described below and the control method of the interactive projection lamp described above can be referred to each other.
  • FIG. 6 is a structural block diagram of a control device for an interactive projection lamp according to an embodiment of the present invention.
  • the control device for an interactive projection lamp according to FIG. 6 may include:
  • a distance determining module 100 configured to determine a distance between the projection surface reference object and the interactive projection lamp
  • the projected area determining module 200 is configured to invoke a mapping relationship between the preset distance and the projected area, and use the projected area corresponding to the distance as the target projected area;
  • the adjustment module 300 is configured to perform projection according to the target projected area.
  • the control device for the interactive projection lamp determines the distance between the projection surface reference object and the interactive projection lamp; and calls the mapping relationship between the preset distance and the projected area to target the projected area corresponding to the distance Projection area; projection according to the target projection area.
  • the projection area of the projection lamp provided by the present application can be adjusted according to the distance between the projection surface reference object and the projection lamp, which can meet the needs of different users for the projection area, and improves the user experience.
  • the preset mapping relationship can be directly called to quickly determine the target projection area that needs to be adjusted, thereby effectively solving the manual manual mechanical adjustment of the projection device. The problem has greatly improved the efficiency of use and saved labor costs.
  • the control device of the interactive projection lamp of the present embodiment is used to implement the foregoing control method of the interactive projection lamp. Therefore, the specific implementation of the control device for the interactive projection lamp can be seen from the implementation of the control method of the interactive projection lamp in the foregoing.
  • the distance determining module 100, the projected area determining module 200, and the adjusting module 300 are respectively used to implement steps S101, S102, and S103 in the method for controlling the interactive projection lamp. Therefore, the specific implementation manner may refer to corresponding Descriptions of various partial embodiments are not described herein again.
  • an interactive projection lamp comprising: a projector illuminator 1 and a processor 2;
  • the processor 2 is configured to determine a distance between the projection surface reference object and the interactive projection lamp; and call a mapping relationship between the preset distance and the projected area, and use the projected area corresponding to the distance as the target projected area; A drive command for controlling the projector is generated to adjust the projector 1 to the target projected area.
  • the interactive projection lamp provided by the present application may further include: an RGB camera 3 and a TOF camera 4;
  • the RGB camera 3 is configured to acquire an image within a range of viewing angles, so that the processor 2 identifies a projection surface reference object from the acquired image;
  • the TOF camera 4 is configured to determine a distance between the projection surface reference object and the interactive projection lamp after the RGB camera recognizes the projection surface reference object, and send the distance to the processor 2.
  • an RGB camera can present a three-dimensional contour of an object in a topographical representation of different colors representing different distances to identify a projected surface reference from the image.
  • the TOF camera determines the distance between the projection surface reference and the projection lamp by optical pulse ranging.
  • the projected area of the projection lamp can be adjusted according to the distance between the projection surface reference object and the projection lamp, which can meet the needs of different users for the projected area, and improves the user experience.
  • the preset mapping relationship can be directly called to quickly determine the target projection area that needs to be adjusted, thereby effectively solving the manual manual mechanical adjustment of the projection device. The problem has greatly improved the efficiency of use and saved labor costs.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Projection Apparatus (AREA)

Abstract

An interactive projection lamp control method, comprising: determining the distance between a projection surface reference object and an interactive projection lamp (S11); invoking a preset mapping relationship between distance and projection area, and setting the projection area corresponding to the distance as a target projection area (S12); and performing projection according to the target projection area (S13). The projection area of the projection lamp can be adjusted according to the distance between the projection surface reference object and the projection lamp, and thereby needs of different users for the projection area can be satisfied. Also provided are an interactive projection lamp control device and an interactive projection lamp having the above effects.

Description

一种交互式投影灯的控制方法、装置及交互式投影灯Method, device and interactive projection lamp for controlling interactive projection lamp
本申请要求于2018年4月24日提交中国专利局、申请号为201810372170.0、发明名称为“一种交互式投影灯的控制方法、装置及交互式投影灯”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201101372170.0, entitled "Control Method, Apparatus and Interactive Projection Lamp of Interactive Projection Lamp", which is filed on April 24, 2018, the Chinese Patent Office. The entire contents are incorporated herein by reference.
技术领域Technical field
本发明涉及投影显示技术领域,特别是涉及一种交互式投影灯的控制方法、装置以及交互式投影灯。The present invention relates to the field of projection display technology, and in particular, to a method and an apparatus for controlling an interactive projection lamp and an interactive projection lamp.
背景技术Background technique
投影灯,又称成像灯,是一种集投影仪和照明LED灯为一体、可以将图像或文字投射到地面或墙上的新型投影设备。投影灯是专为各种类型的商业场所所设计的灯光系统,如:广泛应用在特色娱乐活动场所、展览馆、品牌专卖店、宾馆、酒店、酒吧、咖啡屋、茶馆、商场等。A projection lamp, also known as an imaging lamp, is a new type of projection device that integrates a projector and an illuminated LED light to project images or text onto the ground or wall. The projector lamp is a lighting system designed for various types of commercial places, such as: it is widely used in special entertainment venues, exhibition halls, brand stores, hotels, hotels, bars, coffee houses, tea houses, shopping malls, etc.
由于投影灯在安装时已被固定,限制了其投影面积。而在实际使用过程中,由于环境、个人喜好等多种原因,往往会存在对投影灯投影面积要求不一的情况。现有的投影灯投影面积单一且固定,不能够满足不同用户对投影面积的需求。Since the lamp has been fixed at the time of installation, its projected area is limited. In actual use, due to various reasons such as the environment and personal preferences, there are often cases where the projected area of the projection lamp is different. The projection area of the existing projection lamp is single and fixed, and cannot meet the needs of different users for the projected area.
发明内容Summary of the invention
本发明的目的是提供一种交互式投影灯的控制方法、装置以及交互式投影灯,以解决现有投影灯的投影面积单一、不能满足不同用户的使用需求的问题。The object of the present invention is to provide a method and a device for controlling an interactive projection lamp and an interactive projection lamp to solve the problem that the projection area of the existing projection lamp is single and cannot meet the needs of different users.
为解决上述技术问题,本发明提供一种交互式投影灯的控制方法,包括:To solve the above technical problem, the present invention provides a method for controlling an interactive projection lamp, comprising:
确定投射面参照物与交互式投影灯之间的距离;Determining the distance between the projection surface reference and the interactive projection lamp;
调用预设的距离与投影面积的映射关系,将与所述距离对应的投影面积作为目标投影面积;Calling a mapping relationship between the preset distance and the projected area, and using the projected area corresponding to the distance as the target projected area;
按照所述目标投影面积进行投影。Projection is performed in accordance with the target projected area.
可选地,在确定投射面参照物与交互式投影灯之间的距离之前还包括:Optionally, before determining the distance between the projection surface reference and the interactive projection lamp, the method further includes:
获取交互式投影灯的投射面图像;Obtaining a projection surface image of the interactive projection lamp;
从所述投射面图像中识别出投射面参照物。A projection surface reference object is identified from the projection surface image.
可选地,所述投射面参照物为手势,所述从所述投射面图像中识别出投射 面参照物包括:Optionally, the projection surface reference object is a gesture, and the recognizing the projection surface reference object from the projection surface image comprises:
判断所述投射面图像中是否有手势介入;Determining whether there is a gesture intervention in the projection surface image;
如果有,则将获取到的手势图像与预设手势库中的标准图像相匹配;If so, matching the acquired gesture image with the standard image in the preset gesture library;
若匹配通过,则将手势作为识别出的投射面参照物。If the match passes, the gesture is taken as the identified projection surface reference.
可选地,在所述确定投射面参照物与交互式投影灯之间的距离之前还包括:Optionally, before the determining the distance between the projection surface reference object and the interactive projection lamp, the method further includes:
判断所述手势图像中手势的停留时间是否超过预设阈值,如果是,则执行后续确定投射面参照物与交互式投影灯之间的距离的操作。Determining whether the dwell time of the gesture in the gesture image exceeds a preset threshold, and if so, performing an operation of subsequently determining a distance between the projection surface reference object and the interactive projection lamp.
可选地,所述确定投射面参照物与交互式投影灯之间的距离包括:Optionally, the determining the distance between the projection surface reference object and the interactive projection lamp comprises:
利用测距传感器,确定所述投射面参照物与所述交互式投影灯之间的距离。A distance between the projection surface reference and the interactive projection lamp is determined using a ranging sensor.
可选地,所述测距传感器为TOF相机;Optionally, the ranging sensor is a TOF camera;
其中,TOF相机出射光线,经所述投射面参照物反射之后由传感器接收,通过计算出射光线和反射光线之间的时间差或者相位差,确定所述投射面参照物与所述交互式投影灯之间的距离。Wherein, the TOF camera emits light, is received by the sensor after being reflected by the projection surface reference object, and determines the projection surface reference object and the interactive projection lamp by calculating a time difference or a phase difference between the emitted light and the reflected light. The distance between them.
可选地,所述确定投射面参照物与交互式投影灯之间的距离包括:Optionally, the determining the distance between the projection surface reference object and the interactive projection lamp comprises:
利用双目摄像机测量所述投射面参照物与所述交互式投影灯之间的距离。The distance between the projection surface reference and the interactive projection lamp is measured using a binocular camera.
本发明还提供了一种交互式投影灯的控制装置,包括:The invention also provides a control device for an interactive projection lamp, comprising:
距离确定模块,用于确定投射面参照物与交互式投影灯之间的距离;a distance determining module for determining a distance between the projection surface reference object and the interactive projection lamp;
投影面积确定模块,用于调用预设的距离与投影面积的映射关系,将与所述距离对应的投影面积作为目标投影面积;a projection area determining module, configured to invoke a mapping relationship between a preset distance and a projected area, and use a projected area corresponding to the distance as a target projected area;
调节模块,用于按照所述目标投影面积进行投影。An adjustment module for projecting according to the target projected area.
本发明还提供了一种交互式投影灯,包括:投影光机以及处理器;The invention also provides an interactive projection lamp, comprising: a projection light machine and a processor;
其中,所述处理器用于确定投射面参照物与交互式投影灯之间的距离;调用预设的距离与投影面积的映射关系,将与所述距离对应的投影面积作为目标投影面积;生成对所述投影光机进行控制的驱动指令,以使所述投影光机调节至所述目标投影面积。The processor is configured to determine a distance between the projection surface reference object and the interactive projection lamp; invoke a mapping relationship between the preset distance and the projected area, and use the projected area corresponding to the distance as the target projected area; generate a pair The projection illuminator performs a controlled drive command to adjust the projection illuminator to the target projected area.
可选地,还包括:RGB相机以及TOF相机;Optionally, the method further includes: an RGB camera and a TOF camera;
其中,所述RGB相机用于获取视角范围内的图像,以便所述处理器从获 取到的图像中识别出投射面参照物;Wherein the RGB camera is configured to acquire an image within a range of viewing angles, so that the processor identifies a projection surface reference object from the acquired image;
所述TOF相机用于在所述RGB相机识别出投射面参照物之后,确定所述投射面参照物与交互式投影灯之间的距离,并将距离发送至所述处理器。The TOF camera is configured to determine a distance between the projection surface reference object and the interactive projection lamp after the RGB camera recognizes the projection surface reference object, and send the distance to the processor.
本发明还提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-7任意一项所述的交互式投影灯的控制方法。The present invention also provides a computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the control method of the interactive projection lamp of any of claims 1-7.
本发明所提供的交互式投影灯的控制方法,通过确定投射面参照物与交互式投影灯之间的距离;调用预设的距离与投影面积的映射关系,将与距离对应的投影面积作为目标投影面积;按照该目标投影面积进行投影。本申请提供的投影灯的投影面积可以根据投射面参照物与投影灯之间的距离进行调节,能够满足不同的用户对投影面积的需求,提升了用户的使用体验。此外,在得到投射面参照物与交互式投影灯之间的距离数据之后,可以直接调用预设的映射关系,快速确定需要调节到的目标投影面积,有效解决了人工手动机械调整投影装置速度慢的问题,极大地提高了使用的效率,节约了人力成本。此外,本申请还提供了一种具有上述技术效果的交互式投影灯的控制装置以及交互式投影灯。The control method of the interactive projection lamp provided by the invention determines the distance between the projection surface reference object and the interactive projection lamp; and calls the mapping relationship between the preset distance and the projected area to target the projected area corresponding to the distance Projection area; projection according to the target projection area. The projection area of the projection lamp provided by the present application can be adjusted according to the distance between the projection surface reference object and the projection lamp, which can meet the needs of different users for the projection area, and improves the user experience. In addition, after obtaining the distance data between the projection surface reference object and the interactive projection lamp, the preset mapping relationship can be directly called to quickly determine the target projection area that needs to be adjusted, thereby effectively solving the manual manual mechanical adjustment of the projection device. The problem has greatly improved the efficiency of use and saved labor costs. In addition, the present application also provides a control device for an interactive projection lamp and an interactive projection lamp having the above technical effects.
附图说明DRAWINGS
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are merely Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the art.
图1为本申请所提供的交互式投影灯的控制方法的一种具体实施方式的流程图;1 is a flow chart of a specific implementation manner of a method for controlling an interactive projection lamp provided by the present application;
图2为距离与投影面积的映射关系示意图;2 is a schematic diagram showing a mapping relationship between a distance and a projected area;
图3为本申请所提供的交互式投影灯的控制方法的另一种具体实施方式的流程图;3 is a flow chart of another specific implementation manner of a method for controlling an interactive projection lamp provided by the present application;
图4为本申请所提供的交互式投影灯的控制方法的又一种具体实施方式的流程图;4 is a flow chart of still another embodiment of a method for controlling an interactive projection lamp provided by the present application;
图5为本申请所提供的TOF测距原理图;FIG. 5 is a schematic diagram of TOF ranging provided by the present application; FIG.
图6为本发明实施例提供的交互式投影灯的控制装置的结构框图;6 is a structural block diagram of a control device for an interactive projection lamp according to an embodiment of the present invention;
图7为本发明实施例提供的交互式投影灯的结构框图。FIG. 7 is a structural block diagram of an interactive projection lamp according to an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The present invention will be further described in detail below in conjunction with the drawings and embodiments. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本申请所提供的交互式投影灯的控制方法的一种具体实施方式的流程图如图1所示,该方法应用于交互式投影设备,具体包括:A flowchart of a specific implementation manner of a method for controlling an interactive projection lamp provided by the present application is as shown in FIG. 1 . The method is applied to an interactive projection device, and specifically includes:
步骤S11:确定投射面参照物与交互式投影灯之间的距离;Step S11: determining a distance between the projection surface reference object and the interactive projection lamp;
需要指出的是,投射面为投影灯投影形成图像的区域,可以墙壁、投影屏幕等。本申请中投射面参照物为对投射面起到标识作用的物体,具体可以为实际的投射面,例如墙臂、桌子、幕布等物体,也可以为用户,例如用户的手势、形体等。只要能够起到参照作用的物体均可,在此不做限定。It should be noted that the projection surface is an area where the projection lamp projects to form an image, and may be a wall, a projection screen, or the like. In this application, the projection surface reference object is an object that plays a role in marking the projection surface, and may be an actual projection surface, such as an object such as a wall arm, a table, a curtain, or the like, or may be a user, such as a user's gesture, shape, or the like. Any object that can serve as a reference can be used herein without limitation.
在确定投射面参照物与交互式投影灯之间的距离之前,需要先识别出投射面参照物。识别的方式可以有多种,在本实施例中可以采用图像识别的方式。该过程可以具体包括:Before determining the distance between the projection surface reference and the interactive projection lamp, the projection surface reference object needs to be identified. There are many ways to recognize, and in this embodiment, an image recognition method can be employed. The process can specifically include:
获取交互式投影灯的投射面图像;Obtaining a projection surface image of the interactive projection lamp;
从所述投射面图像中识别出投射面参照物。A projection surface reference object is identified from the projection surface image.
可以采用RGB相机对交互式投影灯的投射面进行图像采集,从采集到的图像中识别出是否存在投射面参照物。以投射面参照物为手势为例,识别的过程为判断投射面图像中是否有手势介入;如果有,则将获取到的手势图像与预设手势库中的标准图像相匹配;若匹配通过,则将手势作为识别出的投射面参照物。An image capture of the projection surface of the interactive projection lamp can be performed using an RGB camera to identify whether there is a projection surface reference object from the acquired image. Taking the projection surface reference object as an example, the process of recognition is to determine whether there is gesture intervention in the projection surface image; if so, the acquired gesture image is matched with the standard image in the preset gesture library; if the matching is passed, The gesture is then used as the identified projection surface reference.
进一步地,为防止误触发,在匹配通过之后,还可以包括:判断所述手势图像中手势的停留时间是否超过预设阈值,如果是,则执行后续确定投射面参照物与交互式投影灯之间的距离的操作。预设阈值可以由用户自行设定,这均不影响本发明的实现。Further, in order to prevent false triggering, after the matching is passed, the method may further include: determining whether the dwell time of the gesture in the gesture image exceeds a preset threshold, and if yes, performing subsequent determination of the projection surface reference object and the interactive projection lamp The operation of the distance between. The preset threshold can be set by the user, which does not affect the implementation of the present invention.
确定投射面参照物与交互式投影灯之间的距离可以采用多种方式来确定。 具体地,可以为采用测距传感器直接测量出投射面参照物与交互式投影灯之间的距离,测距传感器可以具体采用超声波测距传感器、激光测距传感器、红外线测距传感器、24GHZ雷达传感器等。本申请实施例可以具体为超声波测距传感器,其采用超声波回波测距原理,运用精确的时差测量技术,检测传感器与目标物之间的距离,具有测量准确、无接触、防水、防腐蚀、低成本等优点。当然,还可以采用双目摄像机测量投射面参照物与交互式投影灯之间的距离。采用双目摄像机测量距离的具体过程为现有技术,在此不做赘述。Determining the distance between the projection surface reference and the interactive projection lamp can be determined in a number of ways. Specifically, the distance between the projection surface reference object and the interactive projection lamp can be directly measured by using the distance measuring sensor, and the distance measuring sensor can specifically adopt an ultrasonic distance measuring sensor, a laser ranging sensor, an infrared distance measuring sensor, and a 24 GHz radar sensor. Wait. The embodiment of the present application may be specifically an ultrasonic ranging sensor, which adopts an ultrasonic echo ranging principle, and uses an accurate time difference measurement technology to detect a distance between the sensor and the target, and has accurate measurement, no contact, waterproof, anti-corrosion, and the like. Low cost and other advantages. Of course, a binocular camera can also be used to measure the distance between the projection surface reference and the interactive projection lamp. The specific process of measuring the distance by using a binocular camera is known in the prior art, and will not be described herein.
作为一种具体实施方式,本申请采用TOF相机的方式进行测距。其中,TOF相机出射光线,经所述投射面参照物反射之后由传感器接收,通过计算出射光线和反射光线之间的时间差或者相位差,确定所述投射面参照物与所述交互式投影灯之间的距离。As a specific implementation manner, the present application uses a TOF camera to perform ranging. Wherein, the TOF camera emits light, is received by the sensor after being reflected by the projection surface reference object, and determines the projection surface reference object and the interactive projection lamp by calculating a time difference or a phase difference between the emitted light and the reflected light. The distance between them.
步骤S12:调用预设的距离与投影面积的映射关系,将与所述距离对应的投影面积作为目标投影面积;Step S12: calling a mapping relationship between the preset distance and the projected area, and using the projected area corresponding to the distance as the target projected area;
本申请中距离与投影面积之间的映射关系可以为预先设置,通过该映射关系,可以根据距离快速确定到该距离对应的投影面积。距离与投影面积的映射关系可以预先建立得到,也可以根据实际情况实时进行更新。参照图2距离与投影面积的映射关系示意图所示,设交互式投影灯与投射面参照物之间的距离为L,投影面积为S。根据图2所示:可将L划分为多个区域,每个区域对应相应的投影面积。假设L/2处设置投影设备最大的投影面积,0-L/2区域内为增大投影面积,L/2-L区域内减小投影面积。The mapping relationship between the distance and the projected area in the present application may be preset, by which the projected area corresponding to the distance may be quickly determined according to the distance. The mapping relationship between the distance and the projected area can be established in advance, or can be updated in real time according to the actual situation. Referring to the schematic diagram of the mapping relationship between the distance and the projected area, the distance between the interactive projection lamp and the projection surface reference object is L, and the projection area is S. According to FIG. 2, L can be divided into a plurality of regions, each region corresponding to a corresponding projected area. Assume that the maximum projected area of the projection device is set at L/2, the projected area is increased in the 0-L/2 area, and the projected area is reduced in the L/2-L area.
步骤S13:按照所述目标投影面积进行投影。Step S13: Projecting according to the target projected area.
在确定到需要调节至的目标投影面积之后,生成驱动指令,并发送至相应的驱动设备,以便该驱动设备执行相应的动作,从而控制交互式投影灯按照该目标投影面积进行投影。After determining the target projected area to be adjusted to, a drive command is generated and sent to the corresponding drive device, so that the drive device performs a corresponding action, thereby controlling the interactive projection lamp to project according to the target projected area.
本发明所提供的交互式投影灯的控制方法,通过确定投射面参照物与交互式投影灯之间的距离;调用预设的距离与投影面积的映射关系,将与距离对应的投影面积作为目标投影面积;按照该目标投影面积进行投影。本申请提供的投影灯的投影面积可以根据投射面参照物与投影灯之间的距离进行调节,能够满足不同的用户对投影面积的需求,提升了用户的使用体验。此外,在得到投 射面参照物与交互式投影灯之间的距离数据之后,可以直接调用预设的映射关系,快速确定需要调节至的目标投影面积,有效解决了人工手动机械调整投影装置速度慢的问题,极大地提高了使用的效率,节约了人力成本。The control method of the interactive projection lamp provided by the invention determines the distance between the projection surface reference object and the interactive projection lamp; and calls the mapping relationship between the preset distance and the projected area to target the projected area corresponding to the distance Projection area; projection according to the target projection area. The projection area of the projection lamp provided by the present application can be adjusted according to the distance between the projection surface reference object and the projection lamp, which can meet the needs of different users for the projection area, and improves the user experience. In addition, after obtaining the distance data between the projection surface reference object and the interactive projection lamp, the preset mapping relationship can be directly called to quickly determine the target projection area to be adjusted, thereby effectively solving the manual manual mechanical adjustment of the projection device. The problem has greatly improved the efficiency of use and saved labor costs.
下面以投射面参照物为手势为例,对本申请所提供的交互式投影灯的控制方法进行进一步详细阐述,参照图3所示,该过程包括:The method for controlling the interactive projection lamp provided by the present application is further described in detail below by taking the projection surface reference object as an example. Referring to FIG. 3, the process includes:
步骤S21:获取交互式投影灯的投射面图像;Step S21: Acquire a projection surface image of the interactive projection lamp;
具体可以利用相机对交互式投影灯的投射面图像进行拍摄。获取的频率可以为实时获取,例如每隔预设时间间隔即获取一次,也可以为在固定的触发条件下进行获取,例如在交互式投影灯上电或者重置按钮触发之后。Specifically, the camera can be used to capture the projection surface image of the interactive projection lamp. The acquired frequency can be obtained in real time, for example, once every preset time interval, or under a fixed trigger condition, for example, after the interactive lamp is powered on or the reset button is triggered.
步骤S22:判断投射面图像中是否有手势介入;如果有,则将获取到的手势图像与预设手势库中的标准图像相匹配;Step S22: determining whether there is gesture intervention in the projection surface image; if yes, matching the acquired gesture image with the standard image in the preset gesture library;
优选地,预设手势库中的标准图像可以为手掌水平放置所捕捉的图像,这样使得TOF相机测得的手掌的N个深度值的差别较小,便于进一步进行处理。Preferably, the standard image in the preset gesture library may horizontally place the captured image for the palm, such that the difference in the N depth values of the palm measured by the TOF camera is small for further processing.
步骤S23:若匹配通过,则判断手势图像中手势的停留时间是否超过预设阈值;如果是,则确定手势与交互式投影灯之间的距离;Step S23: if the matching is passed, determining whether the dwell time of the gesture in the gesture image exceeds a preset threshold; if yes, determining the distance between the gesture and the interactive projection lamp;
进行手势识别过程中,将获取到的手势图像与标准图像进行匹配,只有在手势符合指定的手势,并且判断手势动作停留的时间超过预设阈值的情况下,则进一步确定手势与交互式投影灯之间的距离,以便对投影面积进行调整。其中,预设阈值可以为用户设置的数值,具体可以为3s以上。通过对手势动作停留的时间的判断,能够防止误触发而影响用户的使用体验。During the gesture recognition process, the acquired gesture image is matched with the standard image, and the gesture and the interactive projection lamp are further determined only when the gesture meets the specified gesture and the time when the gesture motion stays exceeds the preset threshold. The distance between them to adjust the projected area. The preset threshold may be a value set by the user, and may be more than 3s. By judging the time that the gesture action stays, it is possible to prevent the false trigger and affect the user's use experience.
具体地,在预设手势库中的标准图像为手掌水平放置所捕捉的图像的情况下,由于手掌具有一定的面积,因此通过TOF相机可以测得手掌面上的N个深度值,根据该N个深度值计算得出手势与交互式投影灯之间的距离。例如,可以对N个深度值求取平均值,将计算得到的平均值作为手势与交互式投影灯之间的距离。还可以去掉N个深度值中的最大值以及最小值后,再取平均值,将计算得到的平均值作为手势与交互式投影灯之间的距离。当然还可以有其他计算方式,这均不影响本发明的实现。Specifically, in the case where the standard image in the preset gesture library is the horizontally placed captured image of the palm, since the palm has a certain area, the N depth values on the palm surface can be measured by the TOF camera, according to the N The depth values calculate the distance between the gesture and the interactive lamp. For example, the N depth values can be averaged and the calculated average value used as the distance between the gesture and the interactive projection lamp. It is also possible to remove the maximum and minimum values of the N depth values, and then take the average value, and use the calculated average value as the distance between the gesture and the interactive projection lamp. Of course, there are other ways of calculating, which do not affect the implementation of the present invention.
步骤S24:调用预设的距离与投影面积的映射关系,将与距离对应的投影 面积作为目标投影面积;Step S24: calling a mapping relationship between the preset distance and the projected area, and using the projected area corresponding to the distance as the target projected area;
步骤S25:生成对交互式投影灯进行控制的驱动指令,以控制交互式投影灯按照该目标投影面积进行投影。Step S25: generating a driving instruction for controlling the interactive projection lamp to control the interactive projection lamp to project according to the target projection area.
本实施例采用手势识别算法在软件层次上根据手势位置自动调节投射面积的大小,操作方便快捷,节省了用户的时间,提高了控制的效率,并能满足不同用户对投影面积的需求。同时,也避免了因手动机械调节投影面积导致的器件损坏。In this embodiment, the gesture recognition algorithm automatically adjusts the size of the projection area according to the gesture position at the software level, which is convenient and quick to operate, saves the user's time, improves the control efficiency, and can meet the needs of different users for the projected area. At the same time, device damage due to manual mechanical adjustment of the projected area is also avoided.
本申请所提供的交互式投影灯的控制方法的又一种具体实施方式的流程图如图4所示,本实施例中具体采用TOF相机进行测距,该过程包括:A flow chart of still another embodiment of the control method of the interactive projection lamp provided by the present application is shown in FIG. 4 . In this embodiment, a TOF camera is specifically used for ranging, and the process includes:
步骤S31:投影灯上电后,判断本地数据库是否有保存的位置信息;如果没有,则显示默认初始化的投影面积;如果有,则读取保存的位置信息,显示对应的投影面积。Step S31: After the projector is powered on, it is determined whether the local database has saved location information; if not, the default initialized projection area is displayed; if yes, the saved location information is read, and the corresponding projected area is displayed.
本地数据库没有位置信息时,会设置一个初始化的投影面积S。假设为S2,这个投影面积S2是一个初始化投影面积,与距离无关,可以为默认设置的。When the local database has no location information, an initial projected area S is set. Assuming S2, this projected area S2 is an initial projected area, independent of the distance, which can be set by default.
步骤S32:检测是否有手势介入;如果有,则进入步骤S33;如果无,则进入步骤S38;Step S32: detecting whether there is gesture intervention; if yes, proceeding to step S33; if not, proceeding to step S38;
步骤S33:将获取的手势图像送往手势识别模块;Step S33: sending the acquired gesture image to the gesture recognition module;
步骤S34:手势识别模块将送来的图像和手势库中的图像进行比对,判断是否符合指定的手势;如果是,则进入步骤S35;如果否,则进入步骤S38;Step S34: the gesture recognition module compares the sent image with the image in the gesture library to determine whether the specified gesture is met; if yes, proceeds to step S35; if not, proceeds to step S38;
步骤S35:判断手势动作停留的时间是否超过预设阈值;如果是,则进入步骤S36;如果否,则进入步骤S38;Step S35: determining whether the time when the gesture action stays exceeds a preset threshold; if yes, proceeding to step S36; if not, proceeding to step S38;
步骤S36:通过TOF相机测量交互式投影机中景深模组和手势之间的距离。Step S36: The distance between the depth of field module and the gesture in the interactive projector is measured by the TOF camera.
参照图5本申请所提供的TOF测距原理图所示,传感器发出经调制的近红外光,遇物体后反射,传感器通过计算光线发射和反射时间差或相位差,来换算被拍摄景物的距离,以产生深度信息。具体实施过程为相机上的控制单元打开光源然后再关闭,发出一个光脉冲。在同一时刻,控制单元打开和关闭接收端的电子快门。接收端接收到的电荷S0被存储在感光元件中。然后,控制 单元第二次打开并关闭光源。这次快门打开时间较晚,即在光源被关闭的时间点打开。新接收到的电荷S1也被存储起来。因为单个光脉冲的持续时间非常短,此过程会重复几千次,直到曝光时间。然后感光传感器中的值会被读出,实际距离可以根据这些值来计算。设光的速度为c,tp为光脉冲的持续时间,S0表示较早的快门收集的电荷,S1表示延迟的快门收集的电荷,那么距离d的公式可表示为:Referring to FIG. 5, the schematic diagram of the TOF ranging provided by the present application shows that the sensor emits modulated near-infrared light and reflects after the object, and the sensor calculates the distance of the captured object by calculating the time difference or phase difference between the light emission and the reflection. To generate depth information. The specific implementation process turns on the light source for the control unit on the camera and then turns it off to emit a light pulse. At the same time, the control unit turns the electronic shutter of the receiving end on and off. The charge S0 received at the receiving end is stored in the photosensitive element. The control unit then turns the light source on and off for the second time. This time the shutter is opened later, that is, when the light source is turned off. The newly received charge S1 is also stored. Because the duration of a single light pulse is very short, this process is repeated thousands of times until the exposure time. The values in the sensor are then read and the actual distance can be calculated from these values. Let the speed of the light be c, tp be the duration of the light pulse, S0 denote the charge collected by the earlier shutter, and S1 denote the charge collected by the delayed shutter, then the formula of the distance d can be expressed as:
Figure PCTCN2018097390-appb-000001
Figure PCTCN2018097390-appb-000001
当S1为0的时候,表示测得的最小距离为0;当S0为0时,表示最大的测量距离为
Figure PCTCN2018097390-appb-000002
When S1 is 0, it means that the measured minimum distance is 0; when S0 is 0, it means that the maximum measurement distance is
Figure PCTCN2018097390-appb-000002
步骤S37:根据距离调整投影面积的大小,并对手势位置信息进行保存。Step S37: Adjust the size of the projected area according to the distance, and save the gesture position information.
步骤S38:保持当前的投影面积不变。Step S38: Keep the current projected area unchanged.
按照图2的映射关系,针对划分的不同手势位置对应的投影面积大小的不同,将获取到的位置信息通过写节点的形式写入投影设备中,设备会根据拿到的节点信息执行相应的动作即实现自动调节投影面积的目的,并将当前的手势所处的位置信息以及当前的投影面积进行本地保存。According to the mapping relationship of FIG. 2, the acquired location information is written into the projection device by the write node according to the difference of the projected area size corresponding to the different gesture positions, and the device performs the corresponding action according to the obtained node information. That is, the purpose of automatically adjusting the projected area is achieved, and the position information of the current gesture and the current projected area are locally saved.
投影灯上电后如若有位置信息,则可以直接读取数据库中的位置信息,并自动设置相对应的投影面积,使投影具有“记忆”功能,避免多次调节投射面积的繁琐。If there is position information after the lamp is powered on, the position information in the database can be directly read, and the corresponding projection area is automatically set, so that the projection has a "memory" function, and the cumbersome adjustment of the projection area is avoided.
本方案采用景深模组中的TOF相机检测手势和景深模组之间的距离以及采集手势的图像,将采集的图像送到手势识别模块,然后根据不同的距离设置不同的投影面积,实现自动调节投影面积的目的,避免了人为手动调节投影灯的高度和位置,造成设备的损坏,极大的提高了使用效率,满足不同用户的需求。The program uses the TOF camera in the depth of field module to detect the distance between the gesture and the depth of field module and the image of the gesture, and sends the captured image to the gesture recognition module, and then sets different projection areas according to different distances to realize automatic adjustment. The purpose of the projected area is to avoid artificially adjusting the height and position of the projection lamp, causing damage to the device, greatly improving the use efficiency and meeting the needs of different users.
下面对本发明实施例提供的交互式投影灯的控制装置进行介绍,下文描述的交互式投影灯的控制装置与上文描述的交互式投影灯的控制方法可相互对应参照。The control device of the interactive projection lamp provided by the embodiment of the present invention is described below. The control device of the interactive projection lamp described below and the control method of the interactive projection lamp described above can be referred to each other.
图6为本发明实施例提供的交互式投影灯的控制装置的结构框图,参照图 6交互式投影灯的控制装置可以包括:FIG. 6 is a structural block diagram of a control device for an interactive projection lamp according to an embodiment of the present invention. The control device for an interactive projection lamp according to FIG. 6 may include:
距离确定模块100,用于确定投射面参照物与交互式投影灯之间的距离;a distance determining module 100, configured to determine a distance between the projection surface reference object and the interactive projection lamp;
投影面积确定模块200,用于调用预设的距离与投影面积的映射关系,将与所述距离对应的投影面积作为目标投影面积;The projected area determining module 200 is configured to invoke a mapping relationship between the preset distance and the projected area, and use the projected area corresponding to the distance as the target projected area;
调节模块300,用于按照所述目标投影面积进行投影。The adjustment module 300 is configured to perform projection according to the target projected area.
本发明所提供的交互式投影灯的控制装置,通过确定投射面参照物与交互式投影灯之间的距离;调用预设的距离与投影面积的映射关系,将与距离对应的投影面积作为目标投影面积;按照该目标投影面积进行投影。本申请提供的投影灯的投影面积可以根据投射面参照物与投影灯之间的距离进行调节,能够满足不同的用户对投影面积的需求,提升了用户的使用体验。此外,在得到投射面参照物与交互式投影灯之间的距离数据之后,可以直接调用预设的映射关系,快速确定需要调节到的目标投影面积,有效解决了人工手动机械调整投影装置速度慢的问题,极大地提高了使用的效率,节约了人力成本。The control device for the interactive projection lamp provided by the invention determines the distance between the projection surface reference object and the interactive projection lamp; and calls the mapping relationship between the preset distance and the projected area to target the projected area corresponding to the distance Projection area; projection according to the target projection area. The projection area of the projection lamp provided by the present application can be adjusted according to the distance between the projection surface reference object and the projection lamp, which can meet the needs of different users for the projection area, and improves the user experience. In addition, after obtaining the distance data between the projection surface reference object and the interactive projection lamp, the preset mapping relationship can be directly called to quickly determine the target projection area that needs to be adjusted, thereby effectively solving the manual manual mechanical adjustment of the projection device. The problem has greatly improved the efficiency of use and saved labor costs.
本实施例的交互式投影灯的控制装置用于实现前述的交互式投影灯的控制方法,因此交互式投影灯的控制装置中的具体实施方式可见前文中的交互式投影灯的控制方法的实施例部分,例如,距离确定模块100,投影面积确定模块200,调节模块300,分别用于实现上述交互式投影灯的控制方法中步骤S101,S102,S103,所以,其具体实施方式可以参照相应的各个部分实施例的描述,在此不再赘述。The control device of the interactive projection lamp of the present embodiment is used to implement the foregoing control method of the interactive projection lamp. Therefore, the specific implementation of the control device for the interactive projection lamp can be seen from the implementation of the control method of the interactive projection lamp in the foregoing. For example, the distance determining module 100, the projected area determining module 200, and the adjusting module 300 are respectively used to implement steps S101, S102, and S103 in the method for controlling the interactive projection lamp. Therefore, the specific implementation manner may refer to corresponding Descriptions of various partial embodiments are not described herein again.
参照图7,本申请还提供了一种交互式投影灯,包括:投影光机1以及处理器2;Referring to Figure 7, the present application also provides an interactive projection lamp, comprising: a projector illuminator 1 and a processor 2;
其中,所述处理器2用于确定投射面参照物与交互式投影灯之间的距离;调用预设的距离与投影面积的映射关系,将与所述距离对应的投影面积作为目标投影面积;生成对所述投影光机进行控制的驱动指令,以使所述投影光机1调节至所述目标投影面积。The processor 2 is configured to determine a distance between the projection surface reference object and the interactive projection lamp; and call a mapping relationship between the preset distance and the projected area, and use the projected area corresponding to the distance as the target projected area; A drive command for controlling the projector is generated to adjust the projector 1 to the target projected area.
作为一种具体实施方式,本申请所提供的交互式投影灯还可以进一步包括:RGB相机3以及TOF相机4;As an embodiment, the interactive projection lamp provided by the present application may further include: an RGB camera 3 and a TOF camera 4;
其中,所述RGB相机3用于获取视角范围内的图像,以便所述处理器2 从获取到的图像中识别出投射面参照物;Wherein, the RGB camera 3 is configured to acquire an image within a range of viewing angles, so that the processor 2 identifies a projection surface reference object from the acquired image;
所述TOF相机4用于在所述RGB相机识别出投射面参照物之后,确定所述投射面参照物与交互式投影灯之间的距离,并将距离发送至所述处理器2。The TOF camera 4 is configured to determine a distance between the projection surface reference object and the interactive projection lamp after the RGB camera recognizes the projection surface reference object, and send the distance to the processor 2.
具体地,RGB相机能够将物体的三维轮廓以不同颜色代表不同距离的地形图形式呈现出来,以从图像中识别出投射面参照物。TOF相机通过光脉冲测距,确定出投射面参照物与投影灯之间的距离。这样,投影灯的投影面积可以根据投射面参照物与投影灯之间的距离进行调节,能够满足不同的用户对投影面积的需求,提升了用户的使用体验。此外,在得到投射面参照物与交互式投影灯之间的距离数据之后,可以直接调用预设的映射关系,快速确定需要调节到的目标投影面积,有效解决了人工手动机械调整投影装置速度慢的问题,极大地提高了使用的效率,节约了人力成本。In particular, an RGB camera can present a three-dimensional contour of an object in a topographical representation of different colors representing different distances to identify a projected surface reference from the image. The TOF camera determines the distance between the projection surface reference and the projection lamp by optical pulse ranging. In this way, the projected area of the projection lamp can be adjusted according to the distance between the projection surface reference object and the projection lamp, which can meet the needs of different users for the projected area, and improves the user experience. In addition, after obtaining the distance data between the projection surface reference object and the interactive projection lamp, the preset mapping relationship can be directly called to quickly determine the target projection area that needs to be adjusted, thereby effectively solving the manual manual mechanical adjustment of the projection device. The problem has greatly improved the efficiency of use and saved labor costs.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts of the respective embodiments may be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art will further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate the hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
以上对本发明所提供的交互式投影灯的控制方法、装置以及交互式投影灯进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐 述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The control method, device and interactive projection lamp of the interactive projection lamp provided by the present invention are described in detail above. The principles and embodiments of the present invention have been described herein with reference to specific examples. The description of the above embodiments is only to assist in understanding the method of the present invention and its core idea. It should be noted that those skilled in the art can make various modifications and changes to the present invention without departing from the spirit and scope of the invention.

Claims (11)

  1. 一种交互式投影灯的控制方法,其特征在于,包括:A method for controlling an interactive projection lamp, comprising:
    确定投射面参照物与交互式投影灯之间的距离;Determining the distance between the projection surface reference and the interactive projection lamp;
    调用预设的距离与投影面积的映射关系,将与所述距离对应的投影面积作为目标投影面积;Calling a mapping relationship between the preset distance and the projected area, and using the projected area corresponding to the distance as the target projected area;
    按照所述目标投影面积进行投影。Projection is performed in accordance with the target projected area.
  2. 如权利要求1所述的交互式投影灯的控制方法,其特征在于,在确定投射面参照物与交互式投影灯之间的距离之前还包括:The method of controlling an interactive projection lamp according to claim 1, wherein before determining the distance between the projection surface reference object and the interactive projection lamp, the method further comprises:
    获取交互式投影灯的投射面图像;Obtaining a projection surface image of the interactive projection lamp;
    从所述投射面图像中识别出投射面参照物。A projection surface reference object is identified from the projection surface image.
  3. 如权利要求2所述的交互式投影灯的控制方法,其特征在于,所述投射面参照物为手势,所述从所述投射面图像中识别出投射面参照物包括:The method of controlling an interactive projection lamp according to claim 2, wherein the projection surface reference object is a gesture, and the recognizing the projection surface reference object from the projection surface image comprises:
    判断所述投射面图像中是否有手势介入;Determining whether there is a gesture intervention in the projection surface image;
    如果有,则将获取到的手势图像与预设手势库中的标准图像相匹配;If so, matching the acquired gesture image with the standard image in the preset gesture library;
    若匹配通过,则将手势作为识别出的投射面参照物。If the match passes, the gesture is taken as the identified projection surface reference.
  4. 如权利要求3所述的交互式投影灯的控制方法,其特征在于,在所述确定投射面参照物与交互式投影灯之间的距离之前还包括:The method of controlling an interactive projection lamp according to claim 3, further comprising: before the determining the distance between the projection surface reference object and the interactive projection lamp:
    判断所述手势图像中手势的停留时间是否超过预设阈值,如果是,则执行后续确定投射面参照物与交互式投影灯之间的距离的操作。Determining whether the dwell time of the gesture in the gesture image exceeds a preset threshold, and if so, performing an operation of subsequently determining a distance between the projection surface reference object and the interactive projection lamp.
  5. 如权利要求1至4任一项所述的交互式投影灯的控制方法,其特征在于,所述确定投射面参照物与交互式投影灯之间的距离包括:The control method of the interactive projection lamp according to any one of claims 1 to 4, wherein the determining the distance between the projection surface reference object and the interactive projection lamp comprises:
    利用测距传感器,确定所述投射面参照物与所述交互式投影灯之间的距离。A distance between the projection surface reference and the interactive projection lamp is determined using a ranging sensor.
  6. 如权利要求5所述的交互式投影灯的控制方法,其特征在于,所述测距传感器为TOF相机;The method of controlling an interactive projection lamp according to claim 5, wherein the distance measuring sensor is a TOF camera;
    其中,TOF相机出射光线,经所述投射面参照物反射之后由传感器接收,通过计算出射光线和反射光线之间的时间差或者相位差,确定所述投射面参照物与所述交互式投影灯之间的距离。Wherein, the TOF camera emits light, is received by the sensor after being reflected by the projection surface reference object, and determines the projection surface reference object and the interactive projection lamp by calculating a time difference or a phase difference between the emitted light and the reflected light. The distance between them.
  7. 如权利要求1至4任一项所述的交互式投影灯的控制方法,其特征在 于,所述确定投射面参照物与交互式投影灯之间的距离包括:The control method of the interactive projection lamp according to any one of claims 1 to 4, wherein the determining the distance between the projection surface reference object and the interactive projection lamp comprises:
    利用双目摄像机测量所述投射面参照物与所述交互式投影灯之间的距离。The distance between the projection surface reference and the interactive projection lamp is measured using a binocular camera.
  8. 一种交互式投影灯的控制装置,其特征在于,包括:A control device for an interactive projection lamp, comprising:
    距离确定模块,用于确定投射面参照物与交互式投影灯之间的距离;a distance determining module for determining a distance between the projection surface reference object and the interactive projection lamp;
    投影面积确定模块,用于调用预设的距离与投影面积的映射关系,将与所述距离对应的投影面积作为目标投影面积;a projection area determining module, configured to invoke a mapping relationship between a preset distance and a projected area, and use a projected area corresponding to the distance as a target projected area;
    调节模块,用于按照所述目标投影面积进行投影。An adjustment module for projecting according to the target projected area.
  9. 一种交互式投影灯,其特征在于,包括:投影光机以及处理器;An interactive projection lamp, comprising: a projection light machine and a processor;
    其中,所述处理器用于确定投射面参照物与交互式投影灯之间的距离;调用预设的距离与投影面积的映射关系,将与所述距离对应的投影面积作为目标投影面积;生成对所述投影光机进行控制的驱动指令,以使所述投影光机调节至所述目标投影面积。The processor is configured to determine a distance between the projection surface reference object and the interactive projection lamp; invoke a mapping relationship between the preset distance and the projected area, and use the projected area corresponding to the distance as the target projected area; generate a pair The projection illuminator performs a controlled drive command to adjust the projection illuminator to the target projected area.
  10. 如权利要求9所述的交互式投影灯,其特征在于,还包括:RGB相机以及TOF相机;The interactive projection lamp of claim 9 further comprising: an RGB camera and a TOF camera;
    其中,所述RGB相机用于获取视角范围内的图像,以便所述处理器从获取到的图像中识别出投射面参照物;Wherein the RGB camera is configured to acquire an image within a range of viewing angles, so that the processor identifies a projection surface reference object from the acquired image;
    所述TOF相机用于在所述RGB相机识别出投射面参照物之后,确定所述投射面参照物与交互式投影灯之间的距离,并将距离发送至所述处理器。The TOF camera is configured to determine a distance between the projection surface reference object and the interactive projection lamp after the RGB camera recognizes the projection surface reference object, and send the distance to the processor.
  11. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-7任意一项所述的交互式投影灯的控制方法。A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of controlling the interactive projection lamp of any of claims 1-7.
PCT/CN2018/097390 2018-04-24 2018-07-27 Interactive projection lamp control method and device, and interactive projection lamp WO2019205322A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810372170.0A CN108549187A (en) 2018-04-24 2018-04-24 A kind of control method of interactive projection lamp, device and interactive projection lamp
CN201810372170.0 2018-04-24

Publications (1)

Publication Number Publication Date
WO2019205322A1 true WO2019205322A1 (en) 2019-10-31

Family

ID=63512193

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/097390 WO2019205322A1 (en) 2018-04-24 2018-07-27 Interactive projection lamp control method and device, and interactive projection lamp

Country Status (2)

Country Link
CN (1) CN108549187A (en)
WO (1) WO2019205322A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110491316A (en) * 2019-07-08 2019-11-22 青岛小鸟看看科技有限公司 A kind of projector and its method for controlling projection
CN111123625B (en) * 2019-12-13 2021-05-18 成都极米科技股份有限公司 Projector and projection method
CN112716117B (en) * 2020-12-28 2023-07-14 维沃移动通信有限公司 Intelligent bracelet and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571776A (en) * 2008-04-21 2009-11-04 株式会社理光 Electronics device having projector module
JP2012003521A (en) * 2010-06-17 2012-01-05 Panasonic Corp Image projector, determination method and determination program
CN103929603A (en) * 2013-01-16 2014-07-16 株式会社理光 Image Projection Device, Image Projection System, And Control Method
CN106990650A (en) * 2016-01-20 2017-07-28 中兴通讯股份有限公司 The adjusting method and device of projected picture
CN107908061A (en) * 2017-11-20 2018-04-13 北京数码视讯软件技术发展有限公司 Set-top box and its projecting method
CN108900820A (en) * 2018-05-14 2018-11-27 河南大学 A kind of control method and device of projector

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571776A (en) * 2008-04-21 2009-11-04 株式会社理光 Electronics device having projector module
JP2012003521A (en) * 2010-06-17 2012-01-05 Panasonic Corp Image projector, determination method and determination program
CN103929603A (en) * 2013-01-16 2014-07-16 株式会社理光 Image Projection Device, Image Projection System, And Control Method
CN106990650A (en) * 2016-01-20 2017-07-28 中兴通讯股份有限公司 The adjusting method and device of projected picture
CN107908061A (en) * 2017-11-20 2018-04-13 北京数码视讯软件技术发展有限公司 Set-top box and its projecting method
CN108900820A (en) * 2018-05-14 2018-11-27 河南大学 A kind of control method and device of projector

Also Published As

Publication number Publication date
CN108549187A (en) 2018-09-18

Similar Documents

Publication Publication Date Title
JP6186599B1 (en) Projection device
WO2019205322A1 (en) Interactive projection lamp control method and device, and interactive projection lamp
KR101861393B1 (en) Integrated low power depth camera and projection device
WO2020258300A1 (en) Identification apparatus and method
WO2018161758A1 (en) Exposure control method, exposure control device and electronic device
JP2001344069A (en) Indicated position detection using picture processing
EP2824923A1 (en) Apparatus, system and method for projecting images onto predefined portions of objects
JP2013033206A (en) Projection display device, information processing device, projection display system, and program
TW201520975A (en) Method and apparatus for generating depth map of a scene
US9690427B2 (en) User interface device, and projector device
WO2021004216A1 (en) Parameter adjustment method and apparatus for depth sensor, and electronic device
JP2014170511A (en) System, image projection device, information processing device, information processing method, and program
US10705604B2 (en) Eye tracking apparatus and light source control method thereof
TWI458532B (en) System and method for detecting a shot direction of a light gun
JP5061278B2 (en) Pointed position detection program and pointed position detection apparatus
US20190265842A1 (en) Process image according to mat characteristic
TW201351960A (en) Ambient light alert for an image sensor
JP6740614B2 (en) Object detection device and image display device including the object detection device
WO2021114502A1 (en) Projector and projection method
EP4036596A1 (en) High resolution lidar scanning
JP2010282661A (en) Program and device for detection of indicated position
JP2018055257A (en) Information processing device, control method thereof, and program
JP2019140698A (en) Imaging apparatus and program
WO2018161322A1 (en) Depth-based image processing method, processing device and electronic device
WO2023123697A1 (en) Control method and control system for vehicle trunk, and vehicle

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: 18916206

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: 18916206

Country of ref document: EP

Kind code of ref document: A1