CN104618698A - Method and device for terminal control - Google Patents
Method and device for terminal control Download PDFInfo
- Publication number
- CN104618698A CN104618698A CN201310537982.3A CN201310537982A CN104618698A CN 104618698 A CN104618698 A CN 104618698A CN 201310537982 A CN201310537982 A CN 201310537982A CN 104618698 A CN104618698 A CN 104618698A
- Authority
- CN
- China
- Prior art keywords
- projection
- projection image
- terminal
- image
- unit
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本发明公开了一种终端操控方法及装置,所述方法包括:通过视频获取单元获取投影单元的部分投影光路被操控物体遮挡时所形成的投影图像;将获取到的投影图像和终端显存中投出的与所述获取到的投影图像相对应的原始投影图像进行对比,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息;将所述位置信息作为操控数据信息发送给终端当前应用,指示所述当前应用根据所述操控数据信息执行相应的操控动作。在本发明所述技术方案中,在不改变终端硬件配置的前提下,提出了一种基于终端投影的新的操控方式,在扩展了终端操控方式的基础上,达到了提高终端操控的灵活性与智能性的目的。
The present invention discloses a terminal control method and device. The method includes: acquiring a projection image formed when a part of the projection light path of a projection unit is blocked by a manipulated object through a video acquisition unit; Compared with the obtained original projection image corresponding to the obtained projection image, determine the position information of the shadow formed by the manipulation object in the obtained projection image relative to the original projection image; The information is sent to the current application of the terminal as manipulation data information, instructing the current application to perform a corresponding manipulation action according to the manipulation data information. In the technical solution of the present invention, without changing the terminal hardware configuration, a new control method based on terminal projection is proposed. On the basis of expanding the terminal control method, the flexibility of terminal control is improved. with the purpose of intelligence.
Description
技术领域technical field
本发明涉及终端技术领域,尤其涉及一种终端操控方法及装置。The present invention relates to the technical field of terminals, in particular to a method and device for controlling a terminal.
背景技术Background technique
目前,常见的终端操控方式主要可以包括鼠标操控、键盘操控、触摸屏操控以及动作识别操控等几种。其中,鼠标操控、键盘操控等操控方式相对较为传统、智能程度较低;触摸屏操控智能性相对较高,但由于其仅能应用于具备触摸屏的终端设备当中,因而操控成本相对较高;动作识别操控的智能性也相对较高,但由于其技术尚未成熟、且具备动作识别能力的识别设备需要作为外设接入,因而导致操控成本相对较高,再有,由于在进行动作识别时,用于进行动作识别的摄像头需要设置于操作者前方且面向操作者,在具备投影的情况下所述摄像头将正对投影镜头,强光的干扰会对动作识别的准确度造成极大的影响,因此,操控效果并不佳。Currently, common terminal control methods mainly include mouse control, keyboard control, touch screen control, and motion recognition control. Among them, the control methods such as mouse control and keyboard control are relatively traditional and low in intelligence; touch screen control is relatively high in intelligence, but because it can only be applied to terminal devices with touch screens, the cost of control is relatively high; motion recognition The intelligence of the control is also relatively high, but because its technology is not yet mature, and the recognition device with motion recognition capability needs to be connected as a peripheral device, the cost of control is relatively high. The camera for motion recognition needs to be set in front of the operator and facing the operator. In the case of projection, the camera will face the projection lens. The interference of strong light will greatly affect the accuracy of motion recognition. Therefore, , the control effect is not good.
也就是说,目前存在的终端操控方式的类别有限,且在一定程度上存在智能性较低或操控效果并不佳等问题。That is to say, currently there are limited types of terminal control methods, and to a certain extent, there are problems such as low intelligence or poor control effects.
发明内容Contents of the invention
本发明实施例提供了一种终端操控方法及装置,用以解决终端操控方式类别有限所导致的操控智能性较低或效果并不佳等问题。Embodiments of the present invention provide a method and device for controlling a terminal, which are used to solve problems such as low control intelligence or poor effect caused by limited types of terminal control methods.
本发明实施例提供了一种终端操控方法,包括:An embodiment of the present invention provides a terminal manipulation method, including:
通过视频捕获单元获取投影单元的部分投影光路被操控物体遮挡时所形成的投影图像;Obtaining a projection image formed when part of the projection light path of the projection unit is blocked by a manipulated object through the video capture unit;
将获取到的投影图像和终端显存中投出的与所述获取到的投影图像相对应的原始投影图像进行对比,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息;Comparing the acquired projection image with the original projection image projected in the video memory of the terminal corresponding to the acquired projection image, and determining that the shadow formed by the manipulated object in the acquired projection image is relatively location information of the original projected image;
将所述位置信息作为操控数据信息发送给终端当前应用,指示所述当前应用根据所述操控数据信息执行相应的操控动作。Sending the location information as manipulation data information to a current application of the terminal, instructing the current application to perform a corresponding manipulation action according to the manipulation data information.
具体地,通过视频捕获单元获取投影单元的部分投影光路被操控物体遮挡时所形成的投影图像,包括:Specifically, the video capture unit acquires the projection image formed when part of the projection light path of the projection unit is blocked by the manipulated object, including:
采用实时获取或定时获取的方式,通过所述视频捕获单元获取所述投影单元的部分投影光路被操控物体遮挡时所形成的投影图像。The projection image formed when a part of the projection light path of the projection unit is blocked by a manipulated object is obtained through the video capture unit by means of real-time acquisition or timing acquisition.
其中,所述视频捕获单元获取投影图像时所采用的图像获取帧数与所述投影单元进行投影时所采用的投射帧数相同。Wherein, the number of image acquisition frames used by the video capture unit to acquire the projected image is the same as the number of projection frames used by the projection unit to perform projection.
进一步地,将获取到的投影图像和与所述获取到的投影图像相对应的原始投影图像进行对比,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息,包括:Further, the acquired projection image is compared with the original projection image corresponding to the acquired projection image, and it is determined that the shadow formed by the manipulation object in the acquired projection image is relative to the original projection image. location information, including:
将所述获取到的投影图像转换为与所述原始投影图像尺寸一致的图像,并在确定转换后的投影图像中的满足设定条件的像素点的个数大于设定阈值时,根据所述满足设定条件的像素点所在区域,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息;converting the acquired projection image into an image of the same size as the original projection image, and when it is determined that the number of pixels satisfying the set condition in the converted projection image is greater than a set threshold, according to the Determine the location information of the shadow formed by the manipulated object in the acquired projection image relative to the original projection image in the region where the pixel points satisfy the set condition;
其中,所述设定条件为:相互之间连续排列且投影颜色深于所述原始投影图像相应区域像素点所能投射的最深投影颜色。Wherein, the setting condition is: they are arranged continuously with each other and the projection color is darker than the deepest projection color that can be projected by the pixels in the corresponding area of the original projection image.
进一步地,所述视频捕获单元与所述投影单元设置于终端同一侧。Further, the video capture unit and the projection unit are arranged on the same side of the terminal.
在本发明实施例所述技术方案中,可通过视频捕获单元捕获终端投影单元的部分投影光路被操控物体遮挡时所形成的有阴影投影图像,并与原投影图像进行比较,来确定操控物体相对所述原始投影图像的位置信息,并将此位置信息转换为操控数据信息后反馈给当前运行应用,以达到操控和交互的目的,从而在不改变终端硬件配置的前提下,提出了一种基于终端投影的新的操控方式,在扩展了终端操控方式的基础上,达到了提高终端操控的灵活性与智能性的目的。In the technical solution described in the embodiment of the present invention, the shadowed projection image formed when part of the projected light path of the terminal projection unit is blocked by the manipulated object can be captured by the video capture unit, and compared with the original projected image, it can be determined that the manipulated object is relatively The position information of the original projection image is converted into manipulation data information and then fed back to the current running application to achieve the purpose of manipulation and interaction. Therefore, without changing the terminal hardware configuration, a method based on The new control mode of terminal projection, on the basis of expanding the terminal control mode, achieves the purpose of improving the flexibility and intelligence of terminal control.
本发明实施例还提供了一种终端操控装置,包括:The embodiment of the present invention also provides a terminal control device, including:
投影单元,用于对终端中的待投影图像进行投影操作;a projection unit, configured to perform a projection operation on the image to be projected in the terminal;
视频捕获单元,用于获取所述投影单元的部分投影光路被操控物体遮挡时所形成的投影图像;A video capture unit, configured to acquire a projection image formed when part of the projection light path of the projection unit is blocked by a manipulated object;
位置确定单元,用于将所述视频捕获单元获取到的投影图像和终端显存中投出的与所述获取到的投影图像相对应的原始投影图像进行对比,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息;A position determination unit, configured to compare the projection image acquired by the video capture unit with the original projection image corresponding to the acquired projection image projected in the terminal video memory, and determine that the manipulated object is within the acquired projection image. Position information of the shadow formed in the projected image relative to the original projected image;
指示发送单元,用于将所述位置信息作为操控数据信息发送给终端当前应用,指示所述当前应用根据所述操控数据信息执行相应的操控动作。An instruction sending unit, configured to send the position information as manipulation data information to a current application of the terminal, and instruct the current application to perform a corresponding manipulation action according to the manipulation data information.
具体地,所述视频捕获单元,具体用于采用实时获取或定时获取的方式,获取所述投影单元的部分投影光路被操控物体遮挡时所形成的投影图像。Specifically, the video capture unit is specifically configured to acquire a projection image formed when a part of the projection light path of the projection unit is blocked by a manipulated object by means of real-time acquisition or timing acquisition.
其中,所述视频捕获单元获取投影图像时所采用的图像获取帧数与所述投影单元进行投影时所采用的投射帧数相同。Wherein, the number of image acquisition frames used by the video capture unit to acquire the projected image is the same as the number of projection frames used by the projection unit to perform projection.
进一步地,所述位置确定单元,具体用于将所述视频捕获单元获取到的投影图像转换为与所述原始投影图像尺寸一致的图像,并在确定转换后的投影图像中的满足设定条件的像素点的个数大于设定阈值时,根据所述满足设定条件的像素点所在区域,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息;Further, the position determination unit is specifically configured to convert the projection image acquired by the video capture unit into an image of the same size as the original projection image, and determine whether the converted projection image satisfies the set condition When the number of pixels is greater than the set threshold, according to the area where the pixels satisfying the set conditions are located, determine the position of the shadow formed by the manipulation object in the acquired projection image relative to the original projection image information;
其中,所述设定条件为:相互之间连续排列且投影颜色深于所述原始投影图像相应区域像素点所能投射的最深投影颜色。Wherein, the setting condition is: they are arranged continuously with each other and the projection color is darker than the deepest projection color that can be projected by the pixels in the corresponding area of the original projection image.
进一步地,所述视频捕获单元与所述投影单元设置于终端同一侧。Further, the video capture unit and the projection unit are arranged on the same side of the terminal.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
本发明实施例提供了一种终端操控方法及装置,通过视频捕获单元捕获终端投影单元的部分投影光路被操控物体遮挡时所形成的有阴影投影图像,并与原投影图像进行比较,来确定操控物体相对所述原始投影图像的位置信息,并将此位置信息作为操控数据信息反馈给当前运行应用,以达到操控和交互的目的,从而在不改变终端硬件配置的前提下,提出了一种基于终端投影的新的操控方式,在扩展了终端操控方式的基础上,达到了提高终端操控的灵活性与智能性的目的。The embodiment of the present invention provides a method and device for controlling a terminal. The video capture unit captures the shadowed projection image formed when part of the projected light path of the terminal projection unit is blocked by the manipulated object, and compares it with the original projected image to determine the control. The position information of the object relative to the original projected image, and this position information is fed back to the current running application as the control data information to achieve the purpose of control and interaction. Therefore, without changing the terminal hardware configuration, a method based on The new control mode of terminal projection, on the basis of expanding the terminal control mode, achieves the purpose of improving the flexibility and intelligence of terminal control.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1所示为本发明实施例一中所述终端操控方法的流程示意图;FIG. 1 is a schematic flowchart of the terminal manipulation method described in Embodiment 1 of the present invention;
图2所示为本发明实施例二中所述终端操控方法的操控示意图一;FIG. 2 is a schematic diagram 1 of the terminal manipulation method described in Embodiment 2 of the present invention;
图3所示为本发明实施例二中所述终端操控方法的操控示意图二;FIG. 3 is a schematic diagram 2 of the terminal manipulation method described in Embodiment 2 of the present invention;
图4所示为本发明实施例二中所述终端操控方法的操控示意图三;FIG. 4 is a schematic diagram 3 of the terminal manipulation method described in Embodiment 2 of the present invention;
图5所示为本发明实施例二中所述终端操控方法的操控示意图四;FIG. 5 is a schematic diagram 4 of the terminal manipulation method described in Embodiment 2 of the present invention;
图6所示为本发明实施例二中所述终端操控方法的操控示意图五;FIG. 6 is a schematic diagram 5 of the terminal manipulation method described in Embodiment 2 of the present invention;
图7所示为本发明实施例三中所述终端操控装置的结构示意图。FIG. 7 is a schematic structural diagram of the terminal control device in Embodiment 3 of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种终端操控方法及装置,所述方法包括:通过视频获取单元获取投影单元的部分投影光路被操控物体遮挡时所形成的投影图像;将获取到的投影图像和终端显存中投出的与所述获取到的投影图像相对应的原始投影图像进行对比,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息;将所述位置信息作为操控数据信息发送给终端当前应用,指示所述当前应用根据所述操控数据信息执行相应的操控动作。在本发明实施例所述技术方案中,在不改变终端硬件配置的前提下,提出了一种基于终端投影的新的操控方式,在扩展了终端操控方式的基础上,达到了提高终端操控的灵活性与智能性的目的。An embodiment of the present invention provides a terminal control method and device. The method includes: acquiring a projection image formed when a part of the projection light path of the projection unit is blocked by a manipulated object through a video acquisition unit; comparing the original projected image corresponding to the obtained projected image, to determine the position information of the shadow formed by the manipulated object in the obtained projected image relative to the original projected image; The location information is sent to the current application of the terminal as manipulation data information, instructing the current application to perform a corresponding manipulation action according to the manipulation data information. In the technical solution described in the embodiment of the present invention, without changing the hardware configuration of the terminal, a new control method based on terminal projection is proposed. On the basis of expanding the terminal control method, the terminal control is improved. The purpose of flexibility and intelligence.
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
实施例一:Embodiment one:
如图1所示,其为本发明实施例一中所述终端操控方法的流程示意图,所述终端操控方法可适用于手机、平板电脑、PDA(Personal Digital Assistant,掌上电脑)等终端设备,本发明实施例对此不作任何限定。具体地,所述终端操控方法可包括以下步骤:As shown in Figure 1, it is a schematic flow chart of the terminal control method described in Embodiment 1 of the present invention. The terminal control method can be applied to terminal devices such as mobile phones, tablet computers, and PDAs (Personal Digital Assistant, handheld computers). The embodiment of the invention does not make any limitation on this. Specifically, the terminal manipulation method may include the following steps:
步骤101:通过视频捕获单元获取投影单元的部分投影光路被操控物体遮挡时所形成的投影图像。Step 101: Obtain a projection image formed when part of the projection light path of the projection unit is blocked by a manipulated object through the video capture unit.
需要说明的是,在本发明所述实施例中,所涉及到的可适用所述终端操控方法的终端通常可为具备视频捕获单元(如摄像单元等)以及投影单元的终端,并且,通常情况下,所述视频捕获单元以及所述投影单元常处于关闭状态,在采用本发明实施例所述的终端操控方式时,可采用手动或自动的方式将所述视频捕获单元以及所述投影单元设置为开启状态,本发明实施例对此不作赘述。It should be noted that, in the embodiments of the present invention, the terminal applicable to the terminal manipulation method involved may generally be a terminal equipped with a video capture unit (such as a camera unit, etc.) and a projection unit, and usually Next, the video capture unit and the projection unit are always in the closed state. When using the terminal control method described in the embodiment of the present invention, the video capture unit and the projection unit can be set manually or automatically. is in an open state, which will not be described in detail in this embodiment of the present invention.
具体地,所述视频捕获单元与所述投影单元可设置于终端同一侧;进一步地,为了避免投影单元的投影镜头与视频捕获单元的视频捕获镜头距离太近时所造成的操控物体遮挡视频捕获镜头的问题,可采用将所述视频捕获镜头设置为外置镜头的方式,或者,可采用将所述视频捕获镜头(如内置的视频捕获镜头)与所述投影镜头的距离设置为大于设定阈值的方式来使其与所述投影镜头保持一定距离,以避免两者的光路有较大的重叠;再有,若所述视频捕获镜头(如内置的视频捕获镜头)与所述投影镜头位于终端同一侧面的两端,也可通过改变终端放置方式(如横置或竖置)的方法来避免操控物体遮挡视频捕获镜头;另外,还可通过软件智能识别来过滤操控物体遮挡视频捕获镜头所造成的干扰,以使所述终端操控方式能够在绝大多数状态下正常工作,本发明实施例对此不作任何限定。Specifically, the video capture unit and the projection unit can be arranged on the same side of the terminal; further, in order to avoid the video capture being blocked by the manipulation object caused when the projection lens of the projection unit is too close to the video capture lens of the video capture unit lens problem, you can set the video capture lens as an external lens, or you can set the distance between the video capture lens (such as the built-in video capture lens) and the projection lens to be greater than the set Threshold to keep a certain distance from the projection lens, so as to avoid a large overlap between the two optical paths; moreover, if the video capture lens (such as a built-in video capture lens) and the projection lens are located At both ends of the same side of the terminal, you can also change the way the terminal is placed (such as horizontal or vertical) to avoid manipulating objects from blocking the video capture lens; in addition, software intelligent recognition can also be used to filter out the effects of manipulating objects blocking the video capture lens. The interference caused so that the terminal control method can work normally in most states, which is not limited in this embodiment of the present invention.
进一步地,在本发明所述实施例中,通常可采用实时获取或定时获取的方式,通过设置于终端中的视频捕获单元获取设置于终端中的投影单元的部分投影光路被操控物体遮挡时所形成的投影图像。较优地,为了达到对投影单元所形成的投影图像进行实时采集以提高操控准确性的目的,通常可采用实时获取的方式,获取所述投影单元在投影时所形成的投影图像,以便即时地获取到投影单元的部分投影光路被操控物体遮挡时所形成的投影图像,从而较为准确、即时地完成终端的操控动作。Furthermore, in the embodiments of the present invention, real-time acquisition or timing acquisition can usually be adopted, and the video capture unit installed in the terminal can be used to acquire the partial projection optical path of the projection unit installed in the terminal when it is blocked by the manipulated object. The formed projected image. Preferably, in order to achieve the purpose of real-time acquisition of the projection image formed by the projection unit to improve the control accuracy, usually a real-time acquisition method can be used to obtain the projection image formed by the projection unit during projection, so as to instantly The projection image formed when part of the projection light path of the projection unit is blocked by the manipulation object is obtained, so as to complete the manipulation action of the terminal more accurately and in real time.
需要说明的是,在进行投影图像的获取时,所述视频捕获单元所采用的图像获取帧数与所述投影单元进行投影时所采用的投射帧数相同,以保证图像数据的一致性。It should be noted that, when acquiring projection images, the number of image acquisition frames used by the video capture unit is the same as the number of projection frames used by the projection unit when performing projection, so as to ensure the consistency of image data.
步骤102:将获取到的投影图像和终端显存中投出的与所述获取到的投影图像相对应的原始投影图像进行对比,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息。Step 102: Compare the acquired projection image with the original projection image projected in the video memory of the terminal corresponding to the acquired projection image, and determine the shadow formed by the manipulated object in the acquired projection image Position information relative to the original projected image.
具体地,在本发明所述实施例中,将获取到的投影图像和与所述获取到的投影图像相对应的原始投影图像进行对比,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息,可以包括:Specifically, in the embodiment of the present invention, the acquired projection image is compared with the original projection image corresponding to the acquired projection image, and it is determined that the manipulation object is in the acquired projection image The position information of the formed shadow relative to the original projected image may include:
将所述获取到的投影图像转换为与所述原始投影图像尺寸一致的图像,需要说明的是,当所述获取到的投影图像与所述原始投影图像的尺寸一致时,无需执行所述转换操作;以及,converting the acquired projection image into an image of the same size as the original projection image, it should be noted that, when the acquired projection image is of the same size as the original projection image, the conversion does not need to be performed operation; and,
在确定转换后的投影图像中的满足设定条件的像素点的个数大于设定阈值时,根据所述满足设定条件的像素点所在区域,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息,其中,所述设定条件为:相互之间连续排列(即所确定的满足设定条件的像素点不是相互孤立的像素点)且投影颜色深于所述原始投影图像相应区域像素点所能投射的最深投影颜色。When it is determined that the number of pixels satisfying the set condition in the converted projection image is greater than the set threshold, determine the obtained projection of the manipulated object according to the area where the pixel points satisfying the set condition are located. The position information of the shadow formed in the image relative to the original projected image, wherein the setting condition is: they are arranged consecutively with each other (that is, the determined pixel points satisfying the setting condition are not mutually isolated pixel points) and the projection The color is darker than the deepest projected color that can be projected by the pixels in the corresponding area of the original projected image.
具体地,所述设定阈值可以根据实际情况进行调整设置,本发明实施例对此不作任何限定。例如,当用于遮挡所述投影单元投影时的投影光路的操控物体为手指或木棒等遮挡面积较小的物体、或多采用对屏幕边缘位置进行遮挡的方式进行终端操控时,可将所述设定阈值设置为相对较小的数值;而当用于遮挡所述投影单元投影时的投影光路的操控物体为手等遮挡面积较大的物体、或多采用对屏幕中心位置进行遮挡的方式或利用双手进行遮挡的方式进行终端操控时,可将所述设定阈值设置为相对较大的数值,本发明实施例对此不作任何限定。Specifically, the set threshold may be adjusted and set according to actual conditions, which is not limited in this embodiment of the present invention. For example, when the control object used to block the projection light path of the projection unit is an object with a small block area such as a finger or a wooden stick, or the terminal control is mostly performed by blocking the edge position of the screen, the The above-mentioned setting threshold is set to a relatively small value; and when the manipulation object used to block the projection light path of the projection unit is an object with a large blocking area such as a hand, or the method of blocking the center of the screen is often used Or when the terminal is manipulated in a way of covering with both hands, the set threshold may be set to a relatively large value, which is not limited in this embodiment of the present invention.
步骤103:将所述位置信息作为操控数据信息发送给终端当前应用,指示所述当前应用根据所述操控数据信息执行相应的操控动作。Step 103: Send the location information as manipulation data information to a current application of the terminal, instructing the current application to perform a corresponding manipulation action according to the manipulation data information.
具体地,在本发明所述实施例中,终端当前应用在接收到所述位置信息时,可按照设定的软件处理方式对所述位置信息进行智能解析,并根据解析后的数据、按照设定的操控方式执行相应的操控动作,以达到操控和交互的目的;其中,所述操控动作可以为拨动操作、捏动操作、滑动操作、按动操作以及拖动窗口操作等,本发明实施例对此不作任何限定。Specifically, in the embodiment of the present invention, when the current application of the terminal receives the location information, it can intelligently analyze the location information according to the set software processing method, and according to the analyzed data, according to the set In order to achieve the purpose of manipulation and interaction, the corresponding manipulation actions can be performed in a certain manipulation mode; wherein, the manipulation actions can be toggle operations, pinch operations, slide operations, push operations, and window drag operations, etc., and the implementation of the present invention The example does not limit this.
本发明实施例一提供了一种终端操控方法,通过视频捕获单元捕获终端投影单元的部分投影光路被操控物体遮挡时所形成的有阴影投影图像,并与原投影图像进行比较,来确定操控物体相对所述原始投影图像的位置信息,并将此位置信息作为操控数据信息反馈给当前运行应用,以达到操控和交互的目的,从而在不改变终端硬件配置的前提下,提出了一种基于终端投影的新的操控方式,在扩展了终端操控方式的基础上,达到了提高终端操控的灵活性与智能性的目的。Embodiment 1 of the present invention provides a terminal control method. The video capture unit captures the shadowed projection image formed when part of the projection light path of the terminal projection unit is blocked by the control object, and compares it with the original projection image to determine the control object. Relative to the position information of the original projected image, this position information is fed back to the current running application as control data information, so as to achieve the purpose of control and interaction. Therefore, without changing the terminal hardware configuration, a terminal-based The new control method of projection achieves the purpose of improving the flexibility and intelligence of terminal control on the basis of expanding the terminal control method.
实施例二:Embodiment two:
本发明实施例二以在一个射门游戏中控制终端屏幕上的足球完成射门为例,对本发明实施例一中所述终端操控方法的流程进行具体说明,如图2~图6所示,其为本发明实施例二中所述终端操控方法对应的各操控示意图,所述终端操控方法具体可以包括以下步骤:Embodiment 2 of the present invention takes controlling a football on the terminal screen to complete a goal in a shooting game as an example, and specifically describes the process of the terminal control method described in Embodiment 1 of the present invention, as shown in FIGS. 2 to 6 , which are The schematic diagrams of each operation corresponding to the terminal operation method in Embodiment 2 of the present invention, the terminal operation method may specifically include the following steps:
步骤201:终端进入射门游戏,并开启设置于所述终端中的投影单元以及视频捕获单元,具体可如图2所示。Step 201: The terminal enters the shooting game, and turns on the projection unit and the video capture unit provided in the terminal, as shown in FIG. 2 .
此时,所述视频捕获单元可采用实时获取的方式,来获取所述投影单元在投影时所形成的各投影图像,并将获取到的每一幅投影图像与终端显存中投出的原始投影图像进行对比;其中,在进行投影图像的获取时,所述视频捕获单元所采用的图像获取帧数与所述投影单元进行投影时所采用的投射帧数相同,以保证图像数据的一致性。At this time, the video capture unit can acquire the projection images formed by the projection unit during projection in real time, and combine each acquired projection image with the original projection projected in the terminal video memory. The images are compared; wherein, when acquiring the projection image, the number of image acquisition frames used by the video capture unit is the same as the number of projection frames used by the projection unit to ensure the consistency of the image data.
步骤202:通过木棒等操控物体挡住投影单元的部分投影光路,来使视频捕获单元获取到的投影图像上出现阴影,具体可如图3所示。Step 202: block part of the projection light path of the projection unit by manipulating objects such as wooden sticks, so that shadows appear on the projection image acquired by the video capture unit, as shown in FIG. 3 .
此时,终端可将视频捕获单元获取到的有阴影投影图像和终端显存中投出的与所述获取到的有阴影投影图像相对应的原始投影图像进行对比,确定木棒在所述获取到的有阴影投影图像中形成的阴影相对所述原始投影图像的位置信息,并将所述位置信息反馈给终端射门游戏程序;终端射门游戏程序可根据终端反馈的位置信息,得到木棒位置信息,但因为所述木棒的位置信息并没有与图像中的足球进行接触,因此,终端射门游戏程序可不进行任何操作。At this time, the terminal can compare the shadowed projection image acquired by the video capture unit with the original projection image corresponding to the acquired shadowed projection image projected in the terminal video memory, and determine that the wooden stick is The position information of the shadow formed in the shadow projection image relative to the original projection image, and feed back the position information to the terminal shooting game program; the terminal shooting game program can obtain the stick position information according to the position information fed back by the terminal, But because the position information of the wooden stick is not in contact with the football in the image, the terminal shooting game program may not perform any operations.
步骤203:通过移动木棒使视频捕获单元获取到的投影图像上的阴影能够遮挡到足球旁的像素点,如图4所示。Step 203: By moving the wooden stick, the shadow on the projected image acquired by the video capture unit can block the pixels next to the football, as shown in FIG. 4 .
此时,由于终端射门游戏程序所得到的木棒位置信息与图像中的足球存在一定的接触,因此,可按照设定的操控方式,如拨动操控方式执行射门操作,具体可如图5以及图6所示。At this time, since the stick position information obtained by the terminal shooting game program has certain contact with the football in the image, the shooting operation can be performed according to the set control mode, such as the toggle control mode, as shown in Figure 5 and Figure 6 shows.
本发明实施例二提供了一种终端操控方法,通过视频捕获单元捕获终端投影单元的部分投影光路被操控物体遮挡时所形成的有阴影投影图像,并与原投影图像进行比较,来确定操控物体相对所述原始投影图像的位置信息,并将此位置信息作为操控数据信息反馈给当前运行应用,以达到操控和交互的目的,从而在不改变终端硬件配置的前提下,提出了一种基于终端投影的新的操控方式,在扩展了终端操控方式的基础上,达到了提高终端操控的灵活性与智能性的目的。Embodiment 2 of the present invention provides a terminal control method. The video capture unit captures the shadowed projection image formed when part of the projection light path of the terminal projection unit is blocked by the control object, and compares it with the original projection image to determine the control object. Relative to the position information of the original projected image, this position information is fed back to the current running application as control data information, so as to achieve the purpose of control and interaction. Therefore, without changing the terminal hardware configuration, a terminal-based The new control method of projection achieves the purpose of improving the flexibility and intelligence of terminal control on the basis of expanding the terminal control method.
实施例三:Embodiment three:
如图7所示,其为本发明实施例三中所述终端操控装置的结构示意图,所述终端操控装置可为手机、平板电脑、PDA等独立的终端设备或集成在上述各终端设备中的集成设备,本发明实施例对此不作任何限定。具体地,所述终端操控装置可以包括投影单元11、视频捕获单元12、位置确定单元13以及指示发送单元14,其中:As shown in Figure 7, it is a schematic structural diagram of the terminal control device described in Embodiment 3 of the present invention. The terminal control device can be an independent terminal device such as a mobile phone, a tablet computer, or a PDA, or a device integrated in each of the above-mentioned terminal devices. The integrated device is not limited in this embodiment of the present invention. Specifically, the terminal control device may include a projection unit 11, a video capture unit 12, a position determination unit 13, and an indication sending unit 14, wherein:
所述投影单元11可用于对终端中的待投影图像进行投影操作;其中,所述待投影图像可以为动态图像或静态图像,本发明实施例对此不作任何限定。The projection unit 11 may be used to project an image to be projected in the terminal; wherein, the image to be projected may be a dynamic image or a static image, which is not limited in this embodiment of the present invention.
所述视频捕获单元12可用于获取所述投影单元11的部分投影光路被操控物体遮挡时所形成的投影图像,其中,所述操控物体可以为手指、木棒等物体,本发明实施例对此不作任何限定。The video capture unit 12 can be used to acquire a projection image formed when a part of the projection optical path of the projection unit 11 is blocked by a manipulation object, wherein the manipulation object can be a finger, a stick, etc. Do not make any restrictions.
具体地,所述视频捕获单元12可用于采用实时获取或定时获取的方式,获取所述投影单元11的部分投影光路被操控物体遮挡时所形成的投影图像;较优地,为了达到对投影单元11所形成的投影图像进行实时采集以提高操控准确性的目的,所述视频捕获单元12通常可采用实时获取的方式,获取所述投影单元11在投影时所形成的投影图像,以便即时地获取到投影单元11的部分投影光路被操控物体遮挡时所形成的投影图像,从而较为准确、即时地完成终端的操控动作。其中,所述视频捕获单元12获取投影图像时所采用的图像获取帧数通常与所述投影单元11进行投影时所采用的投射帧数相同,以保证图像数据的一致性。Specifically, the video capture unit 12 can be used to obtain the projection image formed when part of the projection light path of the projection unit 11 is blocked by the manipulated object by means of real-time acquisition or timing acquisition; The projection image formed by 11 is collected in real time to improve the accuracy of manipulation. The video capture unit 12 can usually acquire the projection image formed by the projection unit 11 in real time in order to obtain the real-time The projection image formed when part of the projected optical path to the projection unit 11 is blocked by the manipulated object, thereby completing the terminal's manipulation action more accurately and in real time. Wherein, the number of image acquisition frames used by the video capture unit 12 to acquire the projected image is usually the same as the number of projection frames used by the projection unit 11 when performing projection, so as to ensure the consistency of image data.
所述位置确定单元13可用于将所述视频捕获单元12获取到的投影图像和终端显存中投出的与所述获取到的投影图像相对应的原始投影图像进行对比,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息。The position determination unit 13 can be configured to compare the projection image acquired by the video capture unit 12 with the original projection image corresponding to the acquired projection image projected in the terminal video memory, and determine that the manipulated object is Position information of the shadow formed in the acquired projection image relative to the original projection image.
具体地,所述位置确定单元13可用于将所述视频捕获单元12获取到的投影图像转换为与所述原始投影图像尺寸一致的图像,并在确定转换后的投影图像中的满足设定条件的像素点的个数大于设定阈值时,根据所述满足设定条件的像素点所在区域,确定所述操控物体在所述获取到的投影图像中形成的阴影相对所述原始投影图像的位置信息,其中,所述设定条件为:相互之间连续排列且投影颜色深于所述原始投影图像相应区域像素点所能投射的最深投影颜色。Specifically, the position determination unit 13 can be used to convert the projection image acquired by the video capture unit 12 into an image of the same size as the original projection image, and determine whether the converted projection image satisfies the set condition When the number of pixels is greater than the set threshold, according to the area where the pixels satisfying the set conditions are located, determine the position of the shadow formed by the manipulation object in the acquired projection image relative to the original projection image information, wherein, the setting condition is: they are arranged consecutively with each other and the projection color is deeper than the deepest projection color that can be projected by the pixels in the corresponding area of the original projection image.
所述指示发送单元14可用于将所述位置信息作为操控数据信息发送给终端当前应用,指示所述当前应用根据所述操控数据信息执行相应的操控动作。The instruction sending unit 14 may be configured to send the location information as manipulation data information to a current application of the terminal, and instruct the current application to perform a corresponding manipulation action according to the manipulation data information.
具体地,在本发明所述实施例中,终端当前应用在接收到所述位置信息时,可按照设定的软件处理方式对所述位置信息进行智能解析,并根据解析后的数据、按照设定的操控方式执行相应的操控动作,以达到操控和交互的目的;其中,所述操控动作可以为拨动操作、捏动操作、滑动操作、按动操作以及拖动窗口操作等,本发明实施例对此不作任何限定。Specifically, in the embodiment of the present invention, when the current application of the terminal receives the location information, it can intelligently analyze the location information according to the set software processing method, and according to the analyzed data, according to the set In order to achieve the purpose of manipulation and interaction, the corresponding manipulation actions can be performed in a certain manipulation mode; wherein, the manipulation actions can be toggle operations, pinch operations, slide operations, push operations, and window drag operations, etc., and the implementation of the present invention The example does not limit this.
本发明实施例三提供了一种终端操控装置,通过视频捕获单元捕获终端投影单元的部分投影光路被操控物体遮挡时所形成的有阴影投影图像,并与原投影图像进行比较,来确定操控物体相对所述原始投影图像的位置信息,并将此位置信息作为操控数据信息反馈给当前运行应用,以达到操控和交互的目的,从而在不改变终端硬件配置的前提下,提出了一种基于终端投影的新的操控方式,在扩展了终端操控方式的基础上,达到了提高终端操控的灵活性与智能性的目的。Embodiment 3 of the present invention provides a terminal control device, which uses a video capture unit to capture a shadowed projection image formed when part of the projection light path of the terminal projection unit is blocked by a control object, and compares it with the original projection image to determine the control object Relative to the position information of the original projected image, this position information is fed back to the current running application as control data information, so as to achieve the purpose of control and interaction. Therefore, without changing the terminal hardware configuration, a terminal-based The new control method of projection achieves the purpose of improving the flexibility and intelligence of terminal control on the basis of expanding the terminal control method.
本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices (devices), or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310537982.3A CN104618698A (en) | 2013-11-04 | 2013-11-04 | Method and device for terminal control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310537982.3A CN104618698A (en) | 2013-11-04 | 2013-11-04 | Method and device for terminal control |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104618698A true CN104618698A (en) | 2015-05-13 |
Family
ID=53152957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310537982.3A Pending CN104618698A (en) | 2013-11-04 | 2013-11-04 | Method and device for terminal control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104618698A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245804A (en) * | 2015-09-06 | 2016-01-13 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN106713879A (en) * | 2016-11-25 | 2017-05-24 | 重庆杰夫与友文化创意有限公司 | Obstacle avoidance projection method and apparatus |
CN106878509A (en) * | 2017-03-31 | 2017-06-20 | 努比亚技术有限公司 | A kind of control method of mobile terminal, mobile terminal and storage medium |
WO2021139502A1 (en) * | 2020-01-08 | 2021-07-15 | 深圳光峰科技股份有限公司 | Human eye protection method for projector, and projector |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009143878A1 (en) * | 2008-05-29 | 2009-12-03 | Sony Ericsson Mobile Communications Ab | Portable projector and method of operating a portable projector |
CN102221879A (en) * | 2010-04-15 | 2011-10-19 | 韩国电子通信研究院 | User interface device and method for recognizing user interaction using same |
WO2012173001A1 (en) * | 2011-06-13 | 2012-12-20 | シチズンホールディングス株式会社 | Information input device |
US20130027599A1 (en) * | 2011-07-28 | 2013-01-31 | Aptos Technology Inc. | Projection system and image processing method thereof |
-
2013
- 2013-11-04 CN CN201310537982.3A patent/CN104618698A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009143878A1 (en) * | 2008-05-29 | 2009-12-03 | Sony Ericsson Mobile Communications Ab | Portable projector and method of operating a portable projector |
CN102221879A (en) * | 2010-04-15 | 2011-10-19 | 韩国电子通信研究院 | User interface device and method for recognizing user interaction using same |
WO2012173001A1 (en) * | 2011-06-13 | 2012-12-20 | シチズンホールディングス株式会社 | Information input device |
US20130027599A1 (en) * | 2011-07-28 | 2013-01-31 | Aptos Technology Inc. | Projection system and image processing method thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245804A (en) * | 2015-09-06 | 2016-01-13 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN106713879A (en) * | 2016-11-25 | 2017-05-24 | 重庆杰夫与友文化创意有限公司 | Obstacle avoidance projection method and apparatus |
CN106878509A (en) * | 2017-03-31 | 2017-06-20 | 努比亚技术有限公司 | A kind of control method of mobile terminal, mobile terminal and storage medium |
WO2021139502A1 (en) * | 2020-01-08 | 2021-07-15 | 深圳光峰科技股份有限公司 | Human eye protection method for projector, and projector |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8818027B2 (en) | Computing device interface | |
US9690388B2 (en) | Identification of a gesture | |
CN108566516B (en) | Image processing method, device, storage medium and mobile terminal | |
JP6553692B2 (en) | Moving image background removal method and moving image background removal system | |
EP3912338B1 (en) | Sharing physical writing surfaces in videoconferencing | |
US20170168709A1 (en) | Object selection based on region of interest fusion | |
EP2880510B1 (en) | Improved video tracking | |
US20150331491A1 (en) | System and method for gesture based touchscreen control of displays | |
US20150227198A1 (en) | Human-computer interaction method, terminal and system | |
EP2998960A1 (en) | Method and device for video browsing | |
CN103500335A (en) | Photo shooting and browsing method and photo shooting and browsing device based on gesture recognition | |
WO2015184841A1 (en) | Method and apparatus for controlling projection display | |
WO2013078989A1 (en) | Method and system for triggering and controlling human-computer interaction operating instruction | |
CN103299342A (en) | Method and apparatus for providing a mechanism for gesture recognition | |
CN104618698A (en) | Method and device for terminal control | |
WO2020037924A1 (en) | Animation generation method and apparatus | |
WO2017084286A1 (en) | Multi-interactive projection system and method | |
WO2017206383A1 (en) | Method and device for controlling terminal, and terminal | |
CN103873759B (en) | A kind of image pickup method and electronic equipment | |
CN106774827B (en) | Projection interaction method, projection interaction device and intelligent terminal | |
CN106488106B (en) | A kind of image processing method and device | |
WO2020001015A1 (en) | Scenario control method and device, and electronic device | |
CN106201712B (en) | Method and device for adjusting target recognition frequency in augmented reality and mobile terminal | |
CN104461321B (en) | A kind of method and apparatus of gesture input instruction | |
TWI499943B (en) | Computing system, operation method thereof, and computer program product thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150513 |