CN106408560B - Method and device for rapidly acquiring effective image - Google Patents
Method and device for rapidly acquiring effective image Download PDFInfo
- Publication number
- CN106408560B CN106408560B CN201610804565.4A CN201610804565A CN106408560B CN 106408560 B CN106408560 B CN 106408560B CN 201610804565 A CN201610804565 A CN 201610804565A CN 106408560 B CN106408560 B CN 106408560B
- Authority
- CN
- China
- Prior art keywords
- image
- original image
- camera
- infrared sensor
- infrared signal
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/017—Gesture based interaction, e.g. based on a set of recognized hand gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10048—Infrared image
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
技术领域technical field
本发明属于图像处理领域,尤其涉及一种快速获取有效图像的方法和装置。The invention belongs to the field of image processing, and in particular relates to a method and a device for rapidly acquiring an effective image.
背景技术Background technique
随着科技的发展,越来越多的电子设备上设置了摄像头。通过摄像头获取的图像,可以方便用户对现场数据进行快速有效的采集。比如,通过学习机的摄像头拍摄包括题目信息的图像,结合文字识别工具,可以获取图像中的文字信息。根据获取的文字信息进行匹配,可以有效的进行题目搜索。With the development of technology, more and more electronic devices are equipped with cameras. The images obtained by the camera can facilitate users to quickly and effectively collect on-site data. For example, by using the camera of the learning machine to capture an image including topic information, and combining with a text recognition tool, the text information in the image can be obtained. Matching according to the acquired text information can effectively carry out topic search.
在摄像头采集的图像中,用户需要的图像可能是其中一部分区域。比如对图像中的文字进行识别时,用户只需要识别包括部分题目内容信息。因此,用户通常会对图像进行截取。目前对于图像的截取方式通常是由用户调整选框的区域大小,使其能够覆盖用户所要截取的题目,在调整完成后,点击确认按键完成截图。In the image captured by the camera, the image required by the user may be a part of the area. For example, when recognizing text in an image, the user only needs to recognize and include part of the topic content information. Therefore, users usually take screenshots of images. The current way of capturing an image is usually that the user adjusts the size of the area of the marquee so that it can cover the subject to be captured by the user, and after the adjustment is completed, click the OK button to complete the screenshot.
由于现有技术中对于图像的截取需要对选框的大小进行调整,在调整完成后点击确认都操作,截取过程较为麻烦,不利于提高截取效率。Since the size of the selection frame needs to be adjusted for image capture in the prior art, after the adjustment is completed, click and confirm all operations, the capture process is troublesome, which is not conducive to improving the capture efficiency.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种快速获取有效图像的方法,以解决现有技术对于图像的截取需要对选框的大小进行调整,在调整完成后点击确认都操作,截取过程较为麻烦,不利于提高截取效率的问题。The purpose of the present invention is to provide a method for quickly obtaining an effective image, so as to solve the need to adjust the size of the selection frame for the image interception in the prior art. The question of interception efficiency.
第一方面,本发明实施例提供了一种快速获取有效图像的方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for quickly acquiring an effective image, the method comprising:
接收预先设置的启动指令,启动摄像头和红外传感器;Receive pre-set startup instructions, activate the camera and infrared sensor;
在所述摄像头拍摄的原始图像中,由所述红外传感器所采集的用户的手指的位置,确定有效内容的位置;In the original image captured by the camera, the position of the user's finger collected by the infrared sensor determines the position of the valid content;
根据所述有效内容的位置,在所述原始图像中进行截取得到有效图像。According to the position of the valid content, a valid image is obtained by intercepting the original image.
结合第一方面,在第一方面的第一种可能实现方式中,In combination with the first aspect, in a first possible implementation manner of the first aspect,
所述在所述摄像头拍摄的原始图像中,由所述红外传感器所采集的用户的手指的位置,确定有效内容的位置步骤包括:The step of determining the position of the valid content based on the position of the user's finger collected by the infrared sensor in the original image captured by the camera includes:
检测到设备处于稳定状态时,通过摄像头拍摄包括有效图像的原始图像;When it is detected that the device is in a stable state, the original image including the valid image is captured by the camera;
通过红外传感器检测第一红外信号,根据所述第一红外信号的指尖末端位置作为所述有效图像的起始位置;The first infrared signal is detected by an infrared sensor, and the position of the fingertip end of the first infrared signal is used as the starting position of the effective image;
通过红外传感器检测第二红外信号,根据所述第二红外信号的指尖末端位置作为所述有效图像的结束位置。The second infrared signal is detected by an infrared sensor, and the end position of the effective image is taken as the end position of the fingertip according to the second infrared signal.
结合第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式中,所述通过红外传感器检测第一红外信号,根据所述第一红外信号的末端位置作为所述有效图像的起始位置步骤还包括:在所述原始图像中显示第一光标,所述第一光标的位置与所述起始位置对应;In combination with the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first infrared signal is detected by an infrared sensor, and an end position of the first infrared signal is used as the effective The step of starting the image further includes: displaying a first cursor in the original image, the position of the first cursor corresponding to the starting position;
所述通过红外传感器检测第二红外信号,根据所述第二红外信号的末端位置作为所述有效图像的结束位置步骤还包括:在所述原始图像中显示第二光标,所述第二光标的位置与所述结束位置对应。The step of detecting the second infrared signal by the infrared sensor and using the end position of the second infrared signal as the end position of the effective image further includes: displaying a second cursor in the original image, and the second cursor is The position corresponds to the end position.
结合第一方面,在第一方面的第三种可能实现方式中,所述在所述摄像头拍摄的原始图像中,由所述红外传感器所采集的用户的手指的位置,确定有效内容的位置步骤具体为:With reference to the first aspect, in a third possible implementation manner of the first aspect, in the original image captured by the camera, the position of the user's finger collected by the infrared sensor is used to determine the position of the valid content. Specifically:
检测到设备处于稳定状态时,通过摄像头拍摄包括有效图像的原始图像;When it is detected that the device is in a stable state, the original image including the valid image is captured by the camera;
通过红外传感器检测第三红外信号,根据所述第三红外信号包括的两个指尖末端位置分别作为所述有效图像的起始位置和结束位置。The third infrared signal is detected by an infrared sensor, and the end positions of the two fingertips included in the third infrared signal are used as the starting position and the ending position of the effective image, respectively.
结合第一方面,在第一方面的第四种可能实现方式中,所述预先设置的启动指令包括预设的硬件开关启动指令、解锁图案启动指令、指纹解锁启动指令中的一种或者多种。With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the preset startup instruction includes one or more of a preset hardware switch startup instruction, an unlock pattern startup instruction, and a fingerprint unlock startup instruction .
第二方面,本发明实施例提供了一种快速获取有效图像的装置,所述装置包括:In a second aspect, an embodiment of the present invention provides a device for rapidly acquiring an effective image, the device comprising:
启动单元,用于接收预先设置的启动指令,启动摄像头和红外传感器;A start-up unit, used to receive a preset start-up instruction and start the camera and the infrared sensor;
位置确定单元,用于在所述摄像头拍摄的原始图像中,由所述红外传感器所采集的用户的手指的位置,确定有效内容的位置;a position determination unit, configured to determine the position of the valid content from the position of the user's finger collected by the infrared sensor in the original image captured by the camera;
有效图像截取单元,根据所述有效内容的位置,在所述原始图像中进行截取得到有效图像。The effective image intercepting unit, according to the position of the effective content, intercepts the original image to obtain an effective image.
结合第二方面,在第二方面的第一种可能实现方式中,所述位置确定单元包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the location determination unit includes:
第一拍摄子单元,用于检测到设备处于稳定状态时,通过摄像头拍摄包括有效图像的原始图像;a first photographing subunit, configured to photograph an original image including a valid image through a camera when it is detected that the device is in a stable state;
起始位置确定子单元,用于通过红外传感器检测第一红外信号,根据所述第一红外信号的指尖末端位置作为所述有效图像的起始位置;a starting position determination subunit, configured to detect a first infrared signal through an infrared sensor, and use the fingertip end position of the first infrared signal as the starting position of the effective image;
结束位置确定子单元,用于通过红外传感器检测第二红外信号,根据所述第二红外信号的指尖末端位置作为所述有效图像的结束位置。The end position determination subunit is used to detect the second infrared signal through the infrared sensor, and use the end position of the fingertip according to the second infrared signal as the end position of the effective image.
结合第二方面的第一种可能实现方式,在第二方面的第二种可能实现方式中,所述起始位置确定子单元还用于:在所述原始图像中显示第一光标,所述第一光标的位置与所述起始位置对应;With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the starting position determination subunit is further configured to: display the first cursor in the original image, and the the position of the first cursor corresponds to the starting position;
所述结束位置确定子单元还用于:在所述原始图像中显示第二光标,所述第二光标的位置与所述结束位置对应。The end position determination subunit is further configured to: display a second cursor in the original image, where the position of the second cursor corresponds to the end position.
结合第二方面,在第二方面的第三种可能实现方式中,所述位置确定单元包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, the location determination unit includes:
第二拍摄子单元,用于检测到设备处于稳定状态时,通过摄像头拍摄包括有效图像的原始图像;The second shooting subunit is used to shoot the original image including the valid image through the camera when it is detected that the device is in a stable state;
位置同时确定子单元,用于通过红外传感器检测第三红外信号,根据所述第三红外信号包括的两个指尖末端位置分别作为所述有效图像的起始位置和结束位置。The simultaneous position determination subunit is used for detecting the third infrared signal through the infrared sensor, and the two fingertip end positions included in the third infrared signal are respectively used as the starting position and the ending position of the effective image.
结合第二方面,在第二方面的第四种可能实现方式中,所述预先设置的启动指令包括预设的硬件开关启动指令、解锁图案启动指令、指纹解锁启动指令中的一种或者多种。With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the preset startup instruction includes one or more of a preset hardware switch startup instruction, an unlock pattern startup instruction, and a fingerprint unlock startup instruction .
在本发明中,通过启动摄像头和红外传感器,由摄像头拍摄原始图像,红外传感器检测所述原始图像中用户手指所对应的红外信号,根据检测的红外信号确定有效内容的位置,根据所述位置从而能够对原始图像截取得到有效图像。本发明通过用户手指点触实际位置的方式即可有效的获得有效图像,操作更加方便,图像截取的效率高。In the present invention, by activating the camera and the infrared sensor, the camera captures the original image, the infrared sensor detects the infrared signal corresponding to the user's finger in the original image, and determines the position of the effective content according to the detected infrared signal, and according to the position, A valid image can be obtained from the original image. In the present invention, an effective image can be effectively obtained by touching the actual position with the user's finger, the operation is more convenient, and the image capturing efficiency is high.
附图说明Description of drawings
图1是本发明第一实施例提供的快速获取有效图像的方法的实现流程图;Fig. 1 is the realization flow chart of the method for rapidly acquiring valid images provided by the first embodiment of the present invention;
图2是本发明第二实施例提供的快速获取有效图像的方法的实现流程图;Fig. 2 is the realization flow chart of the method for rapidly acquiring valid images provided by the second embodiment of the present invention;
图3是本发明第三实施例提供的快速获取有效图像的方法的实现流程图;Fig. 3 is the realization flow chart of the method for rapidly acquiring valid images provided by the third embodiment of the present invention;
图4是本发明第四实施例提供的快速获取有效图像的装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for rapidly acquiring an effective image provided by a fourth embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
本发明实施例的目的在于提供一种快速获取有效图像的方法,以解决现有技术对于目标区域图像的获取过程中,需要用户在拍摄的图像上进行框选,在框选完成后,再点击确认按键,生成所需要的图像。这种图像获取方式,需要用户多个操作步骤,并且操作较为麻烦,使得目标区域图像获取的效率较低。下面结合附图,对本发明作进一步的说明。The purpose of the embodiments of the present invention is to provide a method for quickly acquiring an effective image, so as to solve the problem that in the process of acquiring an image of a target area in the prior art, the user needs to make a frame selection on the captured image, and after the frame selection is completed, click Confirm the button to generate the desired image. This image acquisition method requires multiple operation steps by the user, and the operation is relatively troublesome, which makes the image acquisition efficiency of the target area low. The present invention will be further described below in conjunction with the accompanying drawings.
实施例一:Example 1:
图1示出了本发明第一实施例提供的快速获取有效图像的方法的实现流程,详述如下:FIG. 1 shows the implementation process of the method for quickly acquiring an effective image provided by the first embodiment of the present invention, which is described in detail as follows:
在步骤S101中,接收预先设置的启动指令,启动摄像头和红外传感器。In step S101, a preset activation instruction is received, and the camera and the infrared sensor are activated.
具体的,本发明实施例中所述启动指令,可以为硬件开关的启动指令,也可以为解锁图像中的解锁路径对应的启动指令,或者还可以预先设定指纹的特征信息,对指纹解锁时所接收的指纹特征进行对比,在满足匹配要求时,直接生成启动指令。Specifically, the startup instruction in the embodiment of the present invention may be a startup instruction of a hardware switch, or may be a startup instruction corresponding to an unlocking path in an unlocking image, or may also preset feature information of a fingerprint. The received fingerprint features are compared, and when the matching requirements are met, a start-up instruction is directly generated.
本发明实施例所述的硬件开关,可以为预先设定的用于启动图像截取类应用程序而设定的专门的开关。当然,所述开关可以是在终端中增加的新开关,也可以为现有终端的开关基础上的某个开关所定义,也可以现有终端的两个或者两个开关的组合。The hardware switch described in the embodiment of the present invention may be a preset special switch set for starting an application program of image capture type. Of course, the switch may be a new switch added to the terminal, may also be defined by a switch based on the switch of the existing terminal, or may be two or a combination of two switches of the existing terminal.
所述启动指令,可以在终端处于待机状态或者关机状态时触发,也可以为终端处于其它应用程序激活状态下触发。当终于处于关机状态时,则先触发终端开机,然后在开机状态下处理所述图像截取类应用程序的启动指令。The startup instruction can be triggered when the terminal is in a standby state or a shutdown state, or can be triggered when the terminal is in an activated state of other applications. When the terminal is finally turned off, the terminal is first triggered to turn on, and then the startup instruction of the image capture class application is processed in the turned-on state.
所述红外传感器可用于检测红外对象,比如可以为人体部分等。当用户的手部放置在检测区域时,通过所述红外传感器可以得到检测区域中的手部的外形等特征信息。The infrared sensor can be used to detect infrared objects, such as human body parts. When the user's hand is placed in the detection area, characteristic information such as the shape of the hand in the detection area can be obtained through the infrared sensor.
在步骤S102中,在所述摄像头拍摄的原始图像中,由所述红外传感器所采集的用户的手指的位置,确定有效内容的位置。In step S102, in the original image captured by the camera, the position of the user's finger collected by the infrared sensor determines the position of the valid content.
具体的,本发明实施例中所述原始图像,可以在设备保持稳定状态下,即设备中摄像头获取的画面内容不发生变化时所对应的图像。Specifically, the original image in the embodiment of the present invention may be an image corresponding to when the device remains in a stable state, that is, when the content of the picture acquired by the camera in the device does not change.
另外,为了更方便用户进行有效图像的获取,在检测到设备当前处于稳定状态时,可以发出进行有效图像的位置的提示信息,比如可以发出文字提示、图像提示、声音提示等。In addition, in order to make it more convenient for users to obtain valid images, when it is detected that the device is currently in a stable state, prompt information about the location of valid images can be issued, such as text prompts, image prompts, and sound prompts.
在拍摄原始图像后,继续保持设备稳定状态,从而确定有效图像的位置。所述有效图像的位置可以包括起始位置和结束位置,当然也可以通过一个位置查找对应的有效图像。Continue to hold the device steady after taking the original image to determine the location of the valid image. The position of the valid image may include a start position and an end position, of course, a corresponding valid image may also be searched through a position.
比如,对于起始位置和结束位置的确定方式,用户可将手指指向所有效图像对应的起始位置,设备通过红外传感器检测到用户的手指后,根据所述手指的位置,在原始图像上查找对应的位置作为有效图像的起始位置。在查找起始位置完成后,发出确定指令,该确定指令可以表现为设备屏幕上显示的光标的状态的变化,比如有闪烁状态变化为静止状态。For example, for the way of determining the starting position and ending position, the user can point the finger to the starting position corresponding to all valid images. After the device detects the user's finger through the infrared sensor, it searches the original image according to the position of the finger. The corresponding position is taken as the starting position of the valid image. After the search for the starting position is completed, a determination instruction is issued, and the determination instruction can be expressed as a change in the state of the cursor displayed on the device screen, such as a change from a blinking state to a static state.
同样,在确定起始位置后,继续保持设备稳定状态,用户可将手指指向所有效图像对应的结束位置,设备通过红外传感器检测到用户的手指后,根据所述手指的位置,在原始图像上查找对应的位置作为有效图像的结束位置。在查找起始位置完成后,发出确定指令,该确定指令可以表现为设备屏幕上显示的光标的状态的变化,比如有闪烁状态变化为静止状态。Similarly, after determining the starting position, continue to keep the device in a stable state, the user can point the finger to the end position corresponding to all valid images, after the device detects the user's finger through the infrared sensor, according to the position of the finger, on the original image Find the corresponding position as the end position of the valid image. After the search for the starting position is completed, a determination instruction is issued, and the determination instruction can be expressed as a change in the state of the cursor displayed on the device screen, such as a change from a blinking state to a static state.
在步骤S103中,根据所述有效内容的位置,在所述原始图像中进行截取得到有效图像。In step S103, according to the position of the valid content, a valid image is obtained by intercepting the original image.
根据有效内容的位置,比如起始位置和结束位置,可以直接成生有效图像的区域,对该区域进行截取即可得到有效图像。根据所述有效图像进行后续的搜索或者处理,可以使得后续的操作更加有针对性,精度也会更高。According to the position of the valid content, such as the start position and the end position, an area for generating a valid image can be directly generated, and a valid image can be obtained by intercepting the area. Performing subsequent searching or processing according to the valid images can make the subsequent operations more targeted and more accurate.
实施例二:Embodiment 2:
图2示出了本发明第二实施例提供的快速获取有效图像的方法的实现流程,详述如下:FIG. 2 shows the implementation process of the method for quickly acquiring a valid image provided by the second embodiment of the present invention, which is described in detail as follows:
在步骤S201中,接收预先设置的启动指令,启动摄像头和红外传感器。In step S201, a preset activation instruction is received, and the camera and the infrared sensor are activated.
在步骤S202中,检测到设备处于稳定状态时,通过摄像头拍摄包括有效图像的原始图像。In step S202, when it is detected that the device is in a stable state, an original image including a valid image is captured by a camera.
本发明实施例中所述稳定状态,表示设备当前没有来回晃动、旋转或前后运动,在设备的摄像头所获取的图像内容没有发生改变。The stable state in the embodiment of the present invention means that the device is not currently shaking, rotating, or moving back and forth, and the image content obtained by the camera of the device has not changed.
所述摄像头获取的原始图像中,包括用户所希望获取的有效图像的内容。所述原始图像为自动获取,不需要用户点击拍摄按键等操作。因此,通过稳定状态的判断,自动获取的原始图像有利于减少用户操作步骤,提高用户使用的便利性。The original image acquired by the camera includes the content of the effective image that the user wishes to acquire. The original image is obtained automatically, and does not require the user to click a shooting button or other operations. Therefore, by judging the stable state, the automatically acquired original image is beneficial to reduce the user's operation steps and improve the convenience of the user.
在步骤S203中,通过红外传感器检测第一红外信号,根据所述第一红外信号的指尖末端位置作为所述有效图像的起始位置。In step S203, a first infrared signal is detected by an infrared sensor, and a fingertip end position of the first infrared signal is used as a starting position of the effective image.
当设备继续保持稳定状态时,可提示用户输入第一红外信号,即用户可用手指点击需要截取的图像对应的起始位置处。红外传感器检测到用户手部位置,当手指停止运动时,根据手指的特征信息识别出手指所指向的位置,从而能够有效的确定在原始图像中的,有效图像的起始位置。When the device continues to maintain a stable state, the user may be prompted to input the first infrared signal, that is, the user may click on the starting position corresponding to the image to be captured with a finger. The infrared sensor detects the position of the user's hand, and when the finger stops moving, the position pointed to by the finger is identified according to the characteristic information of the finger, so that the starting position of the effective image in the original image can be effectively determined.
作为可优化的实施方式,在有效图像的起始位置确定后,可以在所述原始图像中显示第一光标,所述第一光标的位置与所述起始位置对应。或者也可以在检测过程中显示第一光标,当确定起始位置后,改变第一光标的状态,比如由闪烁状态切换为静止状态等。As an optimizable implementation manner, after the starting position of the valid image is determined, a first cursor may be displayed in the original image, and the position of the first cursor corresponds to the starting position. Alternatively, the first cursor may also be displayed during the detection process, and after the starting position is determined, the state of the first cursor is changed, for example, switching from a blinking state to a static state, and the like.
在步骤S204中,通过红外传感器检测第二红外信号,根据所述第二红外信号的指尖末端位置作为所述有效图像的结束位置。In step S204, a second infrared signal is detected by an infrared sensor, and the end position of the effective image is taken as the end position of the fingertip according to the second infrared signal.
同样,当设备继续保持稳定状态,可提示用户输入的第二红外信号,即用户可用手指点击需要截取的图像对应的结束位置处。红外传感器检测到用户手部位置,当手指停止运动时,根据手指的特征信息识别出手指所指向的位置,从而能够有效的确定在原始图像中的,有效图像的结束位置。Likewise, when the device continues to maintain a stable state, the user can be prompted for the input of the second infrared signal, that is, the user can click on the end position corresponding to the image to be captured with a finger. The infrared sensor detects the position of the user's hand, and when the finger stops moving, it identifies the position pointed to by the finger according to the characteristic information of the finger, so that the end position of the valid image in the original image can be effectively determined.
作为可优化的实施方式,在有效图像的结束位置确定后,可以在所述原始图像中显示第二光标,所述第二光标的位置与所述结束位置对应。或者也可以在检测过程中显示第二光标,当确定结束位置后,改变第二光标的状态,比如由闪烁状态切换为静止状态等。As an optimizable implementation manner, after the end position of the valid image is determined, a second cursor may be displayed in the original image, and the position of the second cursor corresponds to the end position. Alternatively, the second cursor can also be displayed during the detection process, and after the end position is determined, the state of the second cursor is changed, such as switching from a blinking state to a static state.
在步骤S205中,根据所述有效内容的位置,在所述原始图像中进行截取得到有效图像。In step S205, according to the position of the valid content, a valid image is obtained by intercepting the original image.
在确定第二光标的位置后,可自动对有效图像进行截取,从而进一步提高图像截取的便利性。After the position of the second cursor is determined, the effective image can be automatically captured, thereby further improving the convenience of image capturing.
本发明在实施例一的基础上,具体介绍了通过两次手指的指向来确定有效图像的位置,在提高了操作的便利性的同时,有利于有效图像截取的精度。On the basis of the first embodiment, the present invention specifically introduces determining the position of an effective image by pointing two fingers, which improves the convenience of operation and facilitates the precision of effective image interception.
实施例三:Embodiment three:
图3示出了本发明第三实施例提供的快速获取有效图像的方法的实现流程,详述如下:FIG. 3 shows the implementation process of the method for quickly acquiring an effective image provided by the third embodiment of the present invention, which is described in detail as follows:
在步骤S301中,接收预先设置的启动指令,启动摄像头和红外传感器。In step S301, a preset activation instruction is received, and the camera and the infrared sensor are activated.
在步骤S302中,检测到设备处于稳定状态时,通过摄像头拍摄包括有效图像的原始图像。In step S302, when it is detected that the device is in a stable state, an original image including a valid image is captured by a camera.
在步骤S303中,通过红外传感器检测第三红外信号,根据所述第三红外信号包括的两个指尖末端位置分别作为所述有效图像的起始位置和结束位置。In step S303, a third infrared signal is detected by an infrared sensor, and the end positions of the two fingertips included in the third infrared signal are used as the starting position and the ending position of the effective image, respectively.
为了进一步提高有效图像截取的效率,本发明实施例可包括对第三红外信号中的可检测到的指尖个数的判断,当指尖个数为两个时,则同时确定有效图像的起始位置和结束位置。In order to further improve the efficiency of effective image interception, the embodiment of the present invention may include judging the number of detectable fingertips in the third infrared signal. When the number of fingertips is two, the starting point of the effective image is determined at the same time. start and end positions.
当同时检测的指尖的个数超过两个时,则表示用户可能是输入错误,或者直接以最上端的手指的位置作为有效图像的起始位置,最下端的手指的位置作为有效图像的结束位置。When the number of fingertips detected at the same time exceeds two, it means that the user may have made an input error, or directly use the position of the uppermost finger as the starting position of the valid image, and the position of the lowermost finger as the ending position of the valid image .
本发明实施例在实施例二的基础上,进一步对红外传感器所识别的图像中的指尖的个数进行判断,并且在指尖个数为两个时,可直接确定有效图像的起始位置和结束位置,更进一步提高识别的便利性。On the basis of the second embodiment, the embodiment of the present invention further judges the number of fingertips in the image recognized by the infrared sensor, and when the number of fingertips is two, the starting position of the valid image can be directly determined and the end position, further improving the convenience of identification.
实施例四:Embodiment 4:
图4为本发明实施例提供的快速获取有效图像的装置的结构示意图,详述如下:FIG. 4 is a schematic structural diagram of a device for rapidly acquiring a valid image provided by an embodiment of the present invention, and the details are as follows:
本发明实施例所述快速获取有效图像的装置,包括:The device for rapidly acquiring an effective image according to the embodiment of the present invention includes:
启动单元401,用于接收预先设置的启动指令,启动摄像头和红外传感器;A start-up
位置确定单元402,用于在所述摄像头拍摄的原始图像中,由所述红外传感器所采集的用户的手指的位置,确定有效内容的位置;a
有效图像截取单元403,根据所述有效内容的位置,在所述原始图像中进行截取得到有效图像。The effective
优选的,所述位置确定单元包括:Preferably, the position determination unit includes:
第一拍摄子单元,用于检测到设备处于稳定状态时,通过摄像头拍摄包括有效图像的原始图像;a first photographing subunit, configured to photograph an original image including a valid image through a camera when it is detected that the device is in a stable state;
起始位置确定子单元,用于通过红外传感器检测第一红外信号,根据所述第一红外信号的指尖末端位置作为所述有效图像的起始位置;a starting position determination subunit, configured to detect a first infrared signal through an infrared sensor, and use the fingertip end position of the first infrared signal as the starting position of the effective image;
结束位置确定子单元,用于通过红外传感器检测第二红外信号,根据所述第二红外信号的指尖末端位置作为所述有效图像的结束位置。The end position determination subunit is used to detect the second infrared signal through the infrared sensor, and use the end position of the fingertip according to the second infrared signal as the end position of the effective image.
优选的,所述起始位置确定子单元还用于:在所述原始图像中显示第一光标,所述第一光标的位置与所述起始位置对应;Preferably, the starting position determination subunit is further configured to: display a first cursor in the original image, and the position of the first cursor corresponds to the starting position;
所述结束位置确定子单元还用于:在所述原始图像中显示第二光标,所述第二光标的位置与所述结束位置对应。The end position determination subunit is further configured to: display a second cursor in the original image, where the position of the second cursor corresponds to the end position.
优选的,所述位置确定单元包括:Preferably, the position determination unit includes:
第二拍摄子单元,用于检测到设备处于稳定状态时,通过摄像头拍摄包括有效图像的原始图像;The second shooting subunit is used to shoot the original image including the valid image through the camera when it is detected that the device is in a stable state;
位置同时确定子单元,用于通过红外传感器检测第三红外信号,根据所述第三红外信号包括的两个指尖末端位置分别作为所述有效图像的起始位置和结束位置。The simultaneous position determination subunit is used for detecting the third infrared signal through the infrared sensor, and the two fingertip end positions included in the third infrared signal are respectively used as the starting position and the ending position of the effective image.
优选的,所述预先设置的启动指令包括预设的硬件开关启动指令、解锁图案启动指令、指纹解锁启动指令中的一种或者多种。Preferably, the preset activation instruction includes one or more of preset hardware switch activation instructions, unlock pattern activation instructions, and fingerprint unlock activation instructions.
本发明实施例所述快速获取有效图像的装置,与实施例一至三所述快速获取有效图像的方法对应,在此不作重复赘述。The apparatus for rapidly acquiring an effective image according to the embodiment of the present invention corresponds to the method for rapidly acquiring an effective image in the first to third embodiments, and will not be repeated here.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610804565.4A CN106408560B (en) | 2016-09-05 | 2016-09-05 | Method and device for rapidly acquiring effective image |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610804565.4A CN106408560B (en) | 2016-09-05 | 2016-09-05 | Method and device for rapidly acquiring effective image |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106408560A CN106408560A (en) | 2017-02-15 |
| CN106408560B true CN106408560B (en) | 2020-01-03 |
Family
ID=57999728
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610804565.4A Expired - Fee Related CN106408560B (en) | 2016-09-05 | 2016-09-05 | Method and device for rapidly acquiring effective image |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106408560B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110059678A (en) * | 2019-04-17 | 2019-07-26 | 上海肇观电子科技有限公司 | A kind of detection method, device and computer readable storage medium |
| CN110633027A (en) * | 2019-09-16 | 2019-12-31 | 广东小天才科技有限公司 | A method, system, computer equipment and storage medium for realizing point reading |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102662510A (en) * | 2012-03-24 | 2012-09-12 | 上海量明科技发展有限公司 | Method for realizing screen-capture by multipoint touching |
| CN102662525A (en) * | 2012-04-27 | 2012-09-12 | 上海量明科技发展有限公司 | Method and terminal for carrying out screenshot operation through touch screen |
| US20120249595A1 (en) * | 2011-03-31 | 2012-10-04 | Feinstein David Y | Area selection for hand held devices with display |
| CN103019597A (en) * | 2012-12-10 | 2013-04-03 | 中兴通讯股份有限公司 | Intelligent terminal with built-in screenshot functionality and realizing method of intelligent terminal |
| US20130120434A1 (en) * | 2009-08-18 | 2013-05-16 | Nayoung Kim | Methods and Apparatus for Image Editing Using Multitouch Gestures |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100504777C (en) * | 2005-10-21 | 2009-06-24 | 神基科技股份有限公司 | Method for quickly starting multimedia playing from shortcut key standby state |
| CN102918828B (en) * | 2010-05-31 | 2015-11-25 | 株式会社Pfu | Overhead scanner device and image processing method |
| CN102289957B (en) * | 2011-09-01 | 2015-03-04 | 中国科学院深圳先进技术研究院 | Reading machine and sounding method thereof |
| CN102929390A (en) * | 2012-10-16 | 2013-02-13 | 广东欧珀移动通信有限公司 | Method and device for starting application program in standby state |
| CN103761893B (en) * | 2013-01-25 | 2018-11-16 | 陈旭 | a book reader |
| CN104157171B (en) * | 2014-08-13 | 2016-11-09 | 三星电子(中国)研发中心 | A kind of point-of-reading system and method thereof |
| CN104217197B (en) * | 2014-08-27 | 2018-04-13 | 华南理工大学 | A kind of reading method and device of view-based access control model gesture |
| CN104217152A (en) * | 2014-09-23 | 2014-12-17 | 陈包容 | Implementation method and device for mobile terminal to enter application program under stand-by state |
| CN104239770A (en) * | 2014-09-23 | 2014-12-24 | 陈包容 | Method and system for enabling mobile terminal to enter application program under standby state |
-
2016
- 2016-09-05 CN CN201610804565.4A patent/CN106408560B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130120434A1 (en) * | 2009-08-18 | 2013-05-16 | Nayoung Kim | Methods and Apparatus for Image Editing Using Multitouch Gestures |
| US20120249595A1 (en) * | 2011-03-31 | 2012-10-04 | Feinstein David Y | Area selection for hand held devices with display |
| CN102662510A (en) * | 2012-03-24 | 2012-09-12 | 上海量明科技发展有限公司 | Method for realizing screen-capture by multipoint touching |
| CN102662525A (en) * | 2012-04-27 | 2012-09-12 | 上海量明科技发展有限公司 | Method and terminal for carrying out screenshot operation through touch screen |
| CN103019597A (en) * | 2012-12-10 | 2013-04-03 | 中兴通讯股份有限公司 | Intelligent terminal with built-in screenshot functionality and realizing method of intelligent terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106408560A (en) | 2017-02-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107395969B (en) | A shooting method and mobile terminal | |
| CN105224195B (en) | Terminal operation method and device | |
| CN103455742B (en) | Method, machine readable storage medium and the portable terminal of shortcut key based on fingerprint are provided | |
| WO2019001152A1 (en) | Photographing method and mobile terminal | |
| US10860857B2 (en) | Method for generating video thumbnail on electronic device, and electronic device | |
| CN104935812B (en) | A kind of method and device for controlling self-timer mode to open | |
| WO2017000798A1 (en) | Method and terminal device for controlling application by fingerprint recognition | |
| CN106713764A (en) | Photographic method and mobile terminal | |
| EP3518522B1 (en) | Image capturing method and device | |
| TW201135517A (en) | Cursor control device, display device and portable electronic device | |
| CN107977146B (en) | A mask-based topic search method and electronic device | |
| WO2022111458A1 (en) | Image capture method and apparatus, electronic device, and storage medium | |
| WO2017161824A1 (en) | Method and device for controlling terminal | |
| CN112699796A (en) | Operation method and device of electronic equipment | |
| CN105956079A (en) | Test question searching method and device applied to electronic terminal | |
| CN107526515A (en) | A kind of method and electronic equipment of focusing of taking pictures | |
| CN106408560B (en) | Method and device for rapidly acquiring effective image | |
| CN104914982A (en) | Control method and device of electronic equipment | |
| CN111201768B (en) | A method and device for shooting and focusing | |
| CN110519517B (en) | Copy guiding method, electronic device and computer readable storage medium | |
| CN111077992B (en) | Click-to-read method, electronic equipment and storage medium | |
| CN116027892A (en) | Electronic equipment protection method, device and electronic equipment | |
| US20190324548A1 (en) | Gesture-based designation of regions of interest in images | |
| CN105159583B (en) | It is triggered by touch-control and performs operational order method and relevant apparatus | |
| CN110069208A (en) | Touch operation method and related equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200103 |