[go: up one dir, main page]

CN106407977A - Method and device for positioning and searching target content - Google Patents

Method and device for positioning and searching target content Download PDF

Info

Publication number
CN106407977A
CN106407977A CN201610804751.8A CN201610804751A CN106407977A CN 106407977 A CN106407977 A CN 106407977A CN 201610804751 A CN201610804751 A CN 201610804751A CN 106407977 A CN106407977 A CN 106407977A
Authority
CN
China
Prior art keywords
content
light area
search
hot spot
instruction
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.)
Granted
Application number
CN201610804751.8A
Other languages
Chinese (zh)
Other versions
CN106407977B (en
Inventor
罗亚平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201610804751.8A priority Critical patent/CN106407977B/en
Publication of CN106407977A publication Critical patent/CN106407977A/en
Application granted granted Critical
Publication of CN106407977B publication Critical patent/CN106407977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a method for positioning and searching target content, which comprises the following steps: receiving a photographing instruction, and acquiring an original image comprising an illumination area; searching a target image according to the position of the illumination area in the original image; according to the searched target image, identifying the content; and searching according to the identified content, and displaying a result matched with the content. The method can quickly determine the searched area through the illumination area, is more convenient to operate and has higher searching efficiency.

Description

目标内容的定位搜索的方法和装置Method and device for location search of target content

技术领域technical field

本发明属于图像处理领域,尤其涉及目标内容的定位搜索方法和装置。The invention belongs to the field of image processing, in particular to a method and device for positioning and searching for target content.

背景技术Background technique

随着科技的发展,越来越多的电子设备上设置了摄像头。通过摄像头获取的图像,可以方便用户对现场数据进行快速有效的采集。比如,通过学习机的摄像头拍摄包括题目信息的图像,结合文字识别工具,可以获取图像中的文字信息。根据获取的文字信息进行匹配,可以有效的进行题目搜索。With the development of science and technology, cameras are installed on more and more electronic devices. The images acquired by the camera can facilitate users to quickly and effectively collect on-site data. For example, the camera of the learning machine can capture the image containing the topic information, combined with the text recognition tool, the text information in the image can be obtained. Matching according to the acquired text information can effectively search for topics.

在摄像头采集的图像中,用户需要的图像可能是其中一部分区域。比如对图像中的文字进行识别时,用户只需要识别包括部分题目内容信息。因此,用户通常会对图像进行截取。目前对于图像的截取方式通常是由用户调整选框的区域大小,使其能够覆盖用户所要截取的题目,在调整完成后,点击确认按键完成截图,然后识别截图内容,根据识别结果进行相应的搜索。Among the images collected 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 part of the topic content information. Therefore, users usually intercept images. At present, the image capture method is usually that the user adjusts the area size of the marquee so that it can cover the topic that the user wants to capture. After the adjustment is completed, click the OK button to complete the screenshot, and then identify the content of the screenshot, and perform a corresponding search based on the recognition result. .

由于现有技术中对于图像的截取需要对选框的大小进行调整,在调整完成后点击确认都操作,截取操作过程较为麻烦,不利于提高图像截取和搜索的效率。Because the size of the marquee needs to be adjusted for image interception in the prior art, it is necessary to click and confirm after the adjustment is completed. The interception operation process is cumbersome, which is not conducive to improving the efficiency of image interception and search.

发明内容Contents of the invention

本发明的目的在于提供一种目标内容的定位搜索方法,以解决现有技术中对于图像的截取需要对选框的大小进行调整,在调整完成后点击确认都操作,截取操作过程较为麻烦,不利于提高图像截取和搜索的效率的问题。The purpose of the present invention is to provide a method for locating and searching target content to solve the need to adjust the size of the marquee for image interception in the prior art. After the adjustment is completed, click to confirm the operation. The interception operation process is cumbersome and unnecessary. It is beneficial to improve the efficiency of image interception and search.

第一方面,本发明实施例提供了一种目标内容的定位搜索方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for locating and searching for target content, the method comprising:

接收拍照指令,获取包括光照区域的原始图像;Receive the camera command and obtain the original image including the illuminated area;

根据所述原始图像中的光照区域的位置查找目标图像;Searching for a target image according to the position of the illuminated area in the original image;

根据查找的所述目标图像,进行内容识别;Perform content identification according to the searched target image;

根据所识别的内容进行搜索,并显示与所述内容相匹配的结果。Searches based on identified content and displays results that match that content.

结合第一方面,在第一方面的第一种可能实现方式中,所述方法还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the method further includes:

接收光照区域调整指令,根据所述调整指令确定光照区域的大小。An illumination area adjustment instruction is received, and the size of the illumination area is determined according to the adjustment instruction.

结合第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式中,所述接收光照区域调整指令,根据所述调整指令确定光照区域的大小步骤具体包括:With reference to the first possible implementation of the first aspect, in the second possible implementation of the first aspect, the step of receiving an illumination area adjustment instruction, and determining the size of the illumination area according to the adjustment instruction specifically includes:

启动摄像头并发射第一光斑;Start the camera and emit the first light spot;

根据所述第一光斑的位置,以及第一光斑所在位置的文字的换行标识调整目标图像。The target image is adjusted according to the position of the first light spot and the newline mark of the text at the position of the first light spot.

结合第一方面,在第一方面的第三种可能实现方式中,所述接收光照区域调整指令,根据所述调整指令确定光照区域的大小步骤具体包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, the step of receiving an illumination area adjustment instruction, and determining the size of the illumination area according to the adjustment instruction specifically includes:

启动摄像头并发射第一光斑;Start the camera and emit the first light spot;

接收用户的触摸调整指令,根据横向触摸指令调整第一光斑的宽度,根据纵向触摸指令调整第一光斑的高度。A user's touch adjustment instruction is received, the width of the first light spot is adjusted according to the horizontal touch instruction, and the height of the first light spot is adjusted according to the vertical touch instruction.

结合第一方面,在第一方面的第四种可能实现方式中,在所述根据所识别的内容进行搜索,并显示与所述内容相匹配的结果步骤之前,所述方法还包括:With reference to the first aspect, in a fourth possible implementation manner of the first aspect, before the step of performing a search based on the identified content and displaying a result matching the content, the method further includes:

切换所述光照区域的形状;switching the shape of the illuminated area;

所述根据所识别的内容进行搜索,并显示与所述内容相匹配的结果步骤具体为:The steps of searching according to the identified content and displaying results matching the content are as follows:

根据所述光照区域的形状查找对应的搜索类型,根据所述搜索类型以及识别的内容进行搜索,并显示与所述内容相匹配的结果。Searching for a corresponding search type according to the shape of the illuminated area, performing a search according to the search type and identified content, and displaying a result matching the content.

第二方面,本发明实施例提供了一种目标内容的定位搜索装置,所述装置包括:In a second aspect, an embodiment of the present invention provides an apparatus for locating and searching target content, the apparatus comprising:

原始图像获取单元,用于接收拍照指令,获取包括光照区域的原始图像;an original image acquisition unit, configured to receive a photographing instruction, and acquire an original image including the illuminated area;

目标图像查找单元,用于根据所述原始图像中的光照区域的位置查找目标图像;a target image search unit, configured to search for a target image according to the position of the illuminated area in the original image;

图像识别单元,用于根据查找的所述目标图像,进行内容识别;An image recognition unit, configured to perform content recognition according to the searched target image;

搜索单元,用于根据所识别的内容进行搜索,并显示与所述内容相匹配的结果。The search unit is used for searching according to the identified content and displaying the result matching the content.

结合第二方面,在第二方面的第一种可能实现方式中,所述装置还包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the device further includes:

光照区域调整单元,用于接收光照区域调整指令,根据所述调整指令确定光照区域的大小。The illumination area adjustment unit is configured to receive an illumination area adjustment instruction, and determine the size of the illumination area according to the adjustment instruction.

结合第二方面的第一种可能实现方式,在第二方面的第二种可能实现方式中,所述光照区域调整单元包括:With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the illumination area adjustment unit includes:

第一光斑发射子单元,用于启动摄像头并发射第一光斑;The first light spot emitting subunit is used to start the camera and emit the first light spot;

智能调整子单元,用于根据所述第一光斑的位置,以及第一光斑所在位置的文字的换行标识调整目标图像。The intelligent adjustment subunit is configured to adjust the target image according to the position of the first light spot and the line break mark of the text at the position of the first light spot.

结合第二方面的第一种可能实现方式,在第二方面的第三种可能实现方式中,所述光照区域调整单元包括:With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the illumination area adjustment unit includes:

第二光斑发射子单元,启动摄像头并发射第一光斑;The second light spot emitting subunit starts the camera and emits the first light spot;

触摸调整子单元,用于接收用户的触摸调整指令,根据横向触摸指令调整第一光斑的宽度,根据纵向触摸指令调整第一光斑的高度。The touch adjustment subunit is configured to receive a user's touch adjustment instruction, adjust the width of the first light spot according to the horizontal touch instruction, and adjust the height of the first light spot according to the vertical touch instruction.

结合第二方面,在第二方面的第四种可能实现方式中,所述装置还包括:With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the device further includes:

形状切换单元,用于切换所述光照区域的形状;a shape switching unit, configured to switch the shape of the illumination area;

所述搜索单元具体用于根据所述光照区域的形状查找对应的搜索类型,根据所述搜索类型以及识别的内容进行搜索,并显示与所述内容相匹配的结果。The search unit is specifically configured to find a corresponding search type according to the shape of the illuminated area, perform a search according to the search type and identified content, and display a result matching the content.

在本发明中,当用户进行目标内容的定位搜索时,只需要通过拍照获取包括光照区域的原始图像,在原始图像中截取光照区域,并对截取的光照区域进行识别,根据识别结果进行内容匹配搜索,并将所匹配的结果进行显示。本发明通过光照区域即可快速的确定搜索的区域,操作更为方便,搜索效率更高。In the present invention, when the user searches for the location of the target content, he only needs to obtain the original image including the illuminated area by taking a photo, intercept the illuminated area in the original image, identify the intercepted illuminated area, and perform content matching according to the recognition result Search and display the matching results. The present invention can quickly determine the search area through the illumination area, and the operation is more convenient and the search efficiency is higher.

附图说明Description of drawings

图1是本发明第一实施例提供的目标内容的定位搜索方法的实现流程图;Fig. 1 is the implementation flowchart of the method for locating and searching target content provided by the first embodiment of the present invention;

图2是本发明第二实施例提供的目标内容的定位搜索方法的实现流程图;FIG. 2 is a flow chart of the implementation of the method for locating and searching for target content provided by the second embodiment of the present invention;

图3是本发明第三实施例提供的目标内容的定位搜索方法的实现流程图;FIG. 3 is a flow chart of the implementation of the method for locating and searching for target content provided by the third embodiment of the present invention;

图4是本发明第四实施例提供的目标内容的定位搜索方法的实现流程图;FIG. 4 is a flow chart of realizing a method for locating and searching for target content provided by the fourth embodiment of the present invention;

图5为本发明第五实施例提供的目标内容的定位搜索装置的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus for locating and searching for target content provided by a fifth embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例的目的在于提供一种目标内容的定位搜索方法,以解决现有技术对于目标区域图像的获取过程中,需要用户在拍摄的图像上进行框选,在框选完成后,再点击确认按键,生成所需要的图像,然后根据该图像进行识别搜索。这内容搜索方式,需要用户多个操作步骤,并且操作较为麻烦,使得内容定位和搜索的效率较低。下面结合附图,对本发明作进一步的说明。The purpose of the embodiments of the present invention is to provide a method for locating and searching target content, so as to solve the problem that in the process of obtaining images of target areas in the prior art, the user needs to select a frame on the captured image, and after the frame selection is completed, click Confirm the key, generate the required image, and then perform a recognition search based on the image. This method of content search requires multiple operation steps for the user, and the operation is cumbersome, so that the efficiency of content location and search is low. Below in conjunction with accompanying drawing, the present invention will be further described.

实施例一:Embodiment one:

图1示出了本发明第一实施例提供的目标内容的定位搜索方法的实现流程,详述如下:Figure 1 shows the implementation process of the method for positioning and searching target content provided by the first embodiment of the present invention, which is described in detail as follows:

在步骤S101中,接收拍照指令,获取包括光照区域的原始图像;In step S101, a photographing instruction is received, and the original image including the illuminated area is acquired;

在本发明实施例中,所述拍照指令,可以通过照相机应用程序界面下的拍摄按键触发。所述照相机应用程序可以为需要获取目标区域图像的应用程序所调用的照相机程序。In the embodiment of the present invention, the photographing instruction may be triggered by a photographing button under the camera application interface. The camera application program may be a camera program invoked by an application program that needs to acquire an image of the target area.

所述原始图像中的光照区域,可以由设备上设置的LED灯或者激光灯发射。可以在设备上设置两个或者两个以上的光束发射管,从而形成两个或者两个以上的光照区域。当用于获取目标区域图像的应用程序调用照相机程序时,打开所述光束发射管,当调用的照相机程序关闭时,相应的关闭所述光束发射管。所述光照区域的大小,可以由硬件结构控制。The illuminated area in the original image may be emitted by an LED light or a laser light set on the device. Two or more beam emitting tubes can be arranged on the device to form two or more illumination areas. When the application program for acquiring the image of the target area calls the camera program, the light beam emitting tube is turned on, and when the called camera program is closed, the light beam emitting tube is correspondingly closed. The size of the illuminated area can be controlled by the hardware structure.

本发明实施例中,在接收拍照指令之前,所述方法还可以包括:In the embodiment of the present invention, before receiving the photographing instruction, the method may further include:

获取由硬件开关产生的应用程序的启动指令,根据所述启动指令开启摄像头,打开光束发射管。所述图像截取类应用程序可以为用题目搜索的应用程序等。The starting instruction of the application program generated by the hardware switch is obtained, the camera is turned on according to the starting instruction, and the light beam emitting tube is turned on. The image-capturing application program may be an application program for searching by topic, and the like.

本发明实施例所述的硬件开关,可以为预先设定的用于启动图像截取类应用程序而设定的专门的开关。当然,所述开关可以是在终端中增加的新开关,也可以为现有终端的开关基础上的某个开关所定义,也可以现有终端的两个或者两个开关的组合。The hardware switch described in the embodiment of the present invention may be a preset special switch for starting an application program of image capture type. Certainly, the switch may be a new switch added to the terminal, or may be defined by a certain switch based on the switch of the existing terminal, or may be two or a combination of two switches of the existing terminal.

所述启动指令,可以在终端处于待机状态或者关机状态时触发,也可以为终端处于其它应用程序激活状态下触发。当终于处于关机状态时,则先触发终端开机,然后在开机状态下处理所述图像截取类应用程序的启动指令。The start instruction may be triggered when the terminal is in a standby state or a power-off state, or may be triggered when the terminal is in an activated state of other applications. When it is finally in the shutdown state, the terminal is first triggered to start up, and then the start instruction of the image capture application is processed in the startup state.

当然,在本步骤之前,还可包括接收光照区域调整指令,根据所述调整指令确定光照区域的大小的步骤。所述光照区域调整指令,可以自动进行调整,也可以接收用户对光照区域的细微调整。所述光照区域可以预先设定大小。也可以根据使用记录数据,选用使用次数较多的光照区域。Certainly, before this step, a step of receiving an illumination area adjustment instruction and determining the size of the illumination area according to the adjustment instruction may also be included. The illumination area adjustment instruction may be adjusted automatically, or may receive a user's fine adjustment to the illumination area. The size of the illuminated area can be preset. It is also possible to select a lighting area with more usage times according to the usage record data.

在步骤S102中,根据所述原始图像中的光照区域的位置查找目标图像;In step S102, searching for a target image according to the position of the illuminated area in the original image;

具体的,本发明实施例中所述原始图像,是指由摄像头直接拍摄的图像,所述原始图像中包括部分用户需要的信息,还包括部分不需要的信息,因此原始图像需要进行后续的截取处理。在所述原始图像中,对于题目搜索时,除了包括用户需要的题目画面,还包括其它非题目内容的画面。如果用户使用原始图像中的全部内容进行题目搜索,则不仅会使得搜索效率降低,而且不利于提高搜索的准确率。Specifically, the original image in the embodiment of the present invention refers to the image directly taken by the camera, and the original image includes some information needed by the user, and also includes some unnecessary information, so the original image needs to be subsequently intercepted deal with. In the original image, when searching for a title, in addition to the title screen required by the user, it also includes other non-title content screens. If the user uses all the content in the original image to search for the topic, it will not only reduce the search efficiency, but also go against improving the accuracy of the search.

所述原始图像中的光照区域,可以对图像进行亮度检测,当亮度值明显超过图像中的平均亮度值的位置,即可确认为光照区域所在的位置。The brightness of the illuminated area in the original image can be detected on the image, and when the brightness value obviously exceeds the average brightness value in the image, it can be confirmed as the position of the illuminated area.

在本发明实施例中,所述光照区域的个数可以为一个,也可以为两个,或者两个以上。可以根据预先设定的光照区域的个数,在原始图像上进行比较查找,查找的光照区域的个数与预定的个数相同时,则可以实现对光照区域更准确的查找。In the embodiment of the present invention, the number of the illumination areas may be one, or two, or more than two. The original image can be compared and searched according to the preset number of illuminated areas. When the number of searched illuminated areas is the same as the predetermined number, a more accurate search for illuminated areas can be realized.

在步骤S103中,根据查找的所述目标图像,进行内容识别。In step S103, content identification is performed according to the searched target image.

在本发明实施例中,所述内容的识别,可以在本地进行图片识别,得到光照区域中的内容,以将所述内容发送至题目服务器进行题目的匹配,或者在本地进行题目的匹配。所述内容包括文字、条码等)。In the embodiment of the present invention, the identification of the content can be performed locally by image identification to obtain the content in the illuminated area, so that the content can be sent to the title server for title matching, or the title can be matched locally. The content includes text, barcode, etc.).

当然,所述内容识别也可以由服务器进行识别,通过服务器接收所述目标图像,对目标图像识别后,再进行后续的匹配操作。Of course, the content identification can also be identified by the server, and the target image is received by the server, and the subsequent matching operation is performed after the target image is identified.

在步骤S104中,根据所识别的内容进行搜索,并显示与所述内容相匹配的结果。In step S104, a search is performed according to the identified content, and results matching the content are displayed.

查找的所述目标图像,只会占有原始图像的一部分。因此,通过光照区域确定的搜索内容,和整个原始图像的内容相比,需要匹配的有效文字的准确率更高。比如原始图像中包括100个文字,但有效的文字只有20个,那么使用原始图像进行搜索时,一方面需要浪费大量的搜索资源去完成无效的匹配,另一方面,使得匹配的精度也会大大的降低。而通过光照区域确定的搜索内容只有用户需要的20个文字,从而能够有效的提高搜索效率和搜索精度。The target image to be searched will only occupy a part of the original image. Therefore, compared with the content of the entire original image, the search content determined by the illumination area has a higher accuracy rate of valid text to be matched. For example, the original image contains 100 characters, but there are only 20 valid characters. Then, when using the original image for searching, on the one hand, a lot of search resources need to be wasted to complete invalid matches; on the other hand, the matching accuracy will be greatly improved. decrease. However, the search content determined by the illumination area is only 20 characters required by the user, so that the search efficiency and search accuracy can be effectively improved.

本发明在用户进行目标内容的定位搜索时,只需要通过拍照获取包括光照区域的原始图像,在原始图像中截取光照区域,并对截取的光照区域进行识别,根据识别结果进行内容匹配搜索,并将所匹配的结果进行显示。本发明通过光照区域即可快速的确定搜索的区域,操作更为方便,搜索效率更高。When the user locates and searches the target content, the present invention only needs to obtain the original image including the illuminated area by taking a photo, intercept the illuminated area in the original image, identify the intercepted illuminated area, perform content matching search according to the identification result, and Display the matching results. The present invention can quickly determine the search area through the illumination area, and the operation is more convenient and the search efficiency is higher.

实施例二:Embodiment two:

图2示出了本发明第二实施例提供的目标内容的定位搜索方法的实现流程,详述如下:FIG. 2 shows the implementation flow of the target content location search method provided by the second embodiment of the present invention, which is described in detail as follows:

在步骤S201中,启动摄像头并发射第一光斑。In step S201, start the camera and emit the first light spot.

具体的,本发明实施例中启动摄像头,是指用于搜索的应用在调整调用的照相机应用时所开启的摄像头。通过开启所述摄像头进行原始图像的获取的同时,开始发射第一光斑,使得摄像头获取的原始图像中包括光照区域。Specifically, starting the camera in this embodiment of the present invention refers to the camera that is turned on when the search application adjusts the invoked camera application. When the camera is turned on to acquire the original image, the first light spot starts to be emitted, so that the original image acquired by the camera includes the illuminated area.

在步骤S202中,接收拍照指令,根据所述第一光斑的位置,以及第一光斑所在位置的文字的换行标识调整目标图像。In step S202, a photographing instruction is received, and the target image is adjusted according to the position of the first light spot and the line break mark of the text at the position of the first light spot.

在通常情况下,第一光斑所覆盖的区域,可能不会完整的包括用户所需要查找的全部内容。为了能够更加智能的对内容进行查找和识别,本发明通过第一光斑的位置以及第一光斑所在位置的文字的换行标识进行区域的查找,根据查找结果确定目标图像,并且所述目标图像包括较为完整的用户所需要的内容。Under normal circumstances, the area covered by the first light spot may not completely include all the content that the user needs to find. In order to be able to search and identify content more intelligently, the present invention uses the position of the first light spot and the newline mark of the text at the position of the first light spot to search for the area, and determines the target image according to the search result, and the target image includes relatively Complete user needs.

其中,所述换行标识的查找,可以根据行首的两个字符是否为空白确定在该行之前是否存在换行标识。如果行首的两个字符为空白,则在该行之前包括换行标识,否则没有换行标识。Wherein, the search for the line break mark can determine whether there is a line break mark before the line according to whether the two characters at the beginning of the line are blank. If the first two characters of the line are blank, a newline is included before the line, otherwise there is no newline.

根据所述第一光斑的位置以及与所述第一光斑相邻的两个换行标识,可以用于确定目标图像。According to the position of the first light spot and the two newline markers adjacent to the first light spot, it can be used to determine the target image.

在步骤S203中,根据查找的所述目标图像,进行内容识别。In step S203, content identification is performed according to the searched target image.

在步骤S204中,根据所识别的内容进行搜索,并显示与所述内容相匹配的结果。In step S204, a search is performed according to the identified content, and results matching the content are displayed.

本发明实施例在实施例一的基础上,进一步对光照区域的自动查找过程进行了具体的介绍,通过第一光斑的位置以及该位置的换行标识的查找,可以对光照区域进行精确的调整,从而能够获取更为完整的内容,提高搜索的精度。On the basis of Embodiment 1, the embodiment of the present invention further introduces the automatic search process of the illumination area in detail. Through the search of the position of the first light spot and the line break mark at this position, the illumination area can be precisely adjusted, In this way, more complete content can be obtained and the search accuracy can be improved.

实施例三:Embodiment three:

图3示出了本发明第三实施例提供的目标内容的定位搜索方法的实现流程,详述如下:FIG. 3 shows the implementation process of the method for locating and searching target content provided by the third embodiment of the present invention, which is described in detail as follows:

在步骤S301中,启动摄像头并发射第一光斑。In step S301, start the camera and emit the first light spot.

具体的,本发明实施例中启动摄像头,是指用于搜索的应用在调整调用的照相机应用时所开启的摄像头。通过开启所述摄像头进行原始图像的获取的同时,开始发射第一光斑,使得摄像头获取的原始图像中包括光照区域。Specifically, starting the camera in this embodiment of the present invention refers to the camera that is turned on when the search application adjusts the invoked camera application. When the camera is turned on to acquire the original image, the first light spot starts to be emitted, so that the original image acquired by the camera includes the illuminated area.

在步骤S302中,接收用户的触摸调整指令,根据横向触摸指令调整第一光斑的宽度,根据纵向触摸指令调整第一光斑的高度。In step S302, a user's touch adjustment instruction is received, the width of the first light spot is adjusted according to the horizontal touch instruction, and the height of the first light spot is adjusted according to the vertical touch instruction.

所述光照区域位置,可以通过调整光束发射管的方向进行调整。所述光束发射管可通过驱动电机调整其发射角度,所述驱动电机的控制端可与控制器相连。所述控制器可通过检测屏幕的特定区域,或者设备的特定区域,生成与触摸方向相应的控制指令,从而有效的控制光束发射管的发射方向,实现对光照区域位置的调整的目的。The position of the illumination area can be adjusted by adjusting the direction of the beam emitting tube. The emitting angle of the beam emitting tube can be adjusted by a driving motor, and the control end of the driving motor can be connected with a controller. The controller can generate control instructions corresponding to the touch direction by detecting a specific area of the screen or a specific area of the device, so as to effectively control the emission direction of the beam emitting tube and achieve the purpose of adjusting the position of the illuminated area.

其中,所述触摸指令包括横向触摸和纵向触摸,可以定义向左滑动时,缩小第一光斑的宽度,向右滑动时,增加第一光斑的宽度,向上滑动时,增加第一光斑的高度,向下滑动时,减小第一光斑的高度。Wherein, the touch command includes horizontal touch and vertical touch, and it can be defined that when sliding to the left, the width of the first light spot is reduced; when sliding to the right, the width of the first light spot is increased; when sliding upward, the height of the first light spot is increased. When swiping down, decrease the height of the first spot.

在步骤S303中,接收拍照指令,获取包括光照区域的原始图像。In step S303, a photographing instruction is received, and an original image including the illuminated area is acquired.

在步骤S304中,根据所述原始图像中的光照区域的位置查找目标图像。In step S304, the target image is searched according to the position of the illuminated area in the original image.

在步骤S305中,根据查找的所述目标图像,进行内容识别。In step S305, content recognition is performed according to the searched target image.

在步骤S306中,根据所识别的内容进行搜索,并显示与所述内容相匹配的结果。In step S306, a search is performed according to the identified content, and results matching the content are displayed.

本发明在实施例一的基础上,通过简单的上、下、左、右四个方向的触摸滑动,即可有效的对光照区域进行调整,可以使得用户能够快速便利的将光照区域与目标匹配,并且可调整设备与拍摄页面之间的距离,使得同一光束发射管的位置可以适应不同高度的目标区域的搜索的功能,使用方便的同时,准确率高。On the basis of Embodiment 1, the present invention can effectively adjust the illumination area by simply touching and sliding in the four directions of up, down, left, and right, so that the user can quickly and conveniently match the illumination area with the target , and the distance between the device and the shooting page can be adjusted, so that the position of the same beam emitting tube can be adapted to the search function of target areas at different heights. It is easy to use and has high accuracy.

实施例四:Embodiment four:

图4示出了本发明第四实施例提供的目标内容的定位搜索方法的实现流程,详述如下:FIG. 4 shows the implementation flow of the method for locating and searching for target content provided by the fourth embodiment of the present invention, which is described in detail as follows:

在步骤S401中,切换所述光照区域的形状。In step S401, the shape of the illumination area is switched.

在步骤S402中,接收拍照指令,获取包括光照区域的原始图像。In step S402, a photographing instruction is received, and an original image including the illuminated area is acquired.

在步骤S403中,根据所述原始图像中的光照区域的位置查找目标图像。In step S403, a target image is searched according to the position of the illuminated area in the original image.

可以根据光照区域的位置与换行标识相结合的方式,智能的对目标图像进行查找。The target image can be searched intelligently according to the combination of the position of the illuminated area and the newline mark.

在步骤S404中,根据查找的所述目标图像,进行内容识别。In step S404, content identification is performed according to the searched target image.

具体的,本发明实话例所述光照区域的形状,可以为圆形、长方形、正方形或者三角形等等。切换所述光照区域的形状的指令,可以通过设备的音量调整按键触发。比如可以通过增加音量的按键按照第一顺序切换光照区域的形状,通过减小音量的按键按照第二顺序切换光照区域的形状。Specifically, the shape of the illumination area described in the examples of the present invention may be a circle, a rectangle, a square or a triangle, and the like. The command to switch the shape of the illumination area can be triggered by the volume adjustment button of the device. For example, the shape of the illuminated area can be switched according to the first sequence by pressing the volume-up button, and the shape of the illuminated area can be switched according to the second sequence by pressing the volume-down button.

在步骤S405中,根据所述光照区域的形状查找对应的搜索类型,根据所述搜索类型以及识别的内容进行搜索,并显示与所述内容相匹配的结果。In step S405, search for a corresponding search type according to the shape of the illuminated area, perform a search according to the search type and identified content, and display a result matching the content.

预先设定所述光照区域的形状与搜索类型的对应关系,可以查找出对应的搜索类型。所述搜索类型包括条码搜索类型、文字题目搜索类型等。根据相应的搜索类型进行条码识别或者文字识别。所述搜索类型还可以根据题目所属的科目进行分类,比如包括语文题目搜索类型、数学题目搜索类型等。By presetting the correspondence between the shape of the illumination area and the search type, the corresponding search type can be found. The search type includes a barcode search type, a text title search type, and the like. Perform barcode recognition or text recognition according to the corresponding search type. The search types can also be classified according to the subjects to which the questions belong, for example, including Chinese question search types, mathematics question search types, and the like.

本发明实施例与实施例二的不同之处在于,本发明实施例通过还包括对光照区域的形状的切换,并根据光照区域的形状相应的选择搜索类型,从而有效的提高对目标图像的内容的搜索效率。The difference between the embodiment of the present invention and the second embodiment is that the embodiment of the present invention also includes switching the shape of the illuminated area, and correspondingly selects the search type according to the shape of the illuminated area, thereby effectively improving the content of the target image. search efficiency.

实施例五:Embodiment five:

图5为本发明实施例提供的目标内容的定位搜索装置的结构示意图,详述如下:FIG. 5 is a schematic structural diagram of an apparatus for locating and searching target content provided by an embodiment of the present invention, which is described in detail as follows:

本发明实施例所述目标内容的定位搜索装置,包括:The device for locating and searching the target content described in the embodiment of the present invention includes:

原始图像获取单元501,用于接收拍照指令,获取包括光照区域的原始图像;An original image acquiring unit 501, configured to receive a photographing instruction, and acquire an original image including an illuminated area;

目标图像查找单元502,用于根据所述原始图像中的光照区域的位置查找目标图像;A target image search unit 502, configured to search for a target image according to the position of the illuminated area in the original image;

图像识别单元503,用于根据查找的所述目标图像,进行内容识别;An image recognition unit 503, configured to perform content recognition according to the searched target image;

搜索单元504,用于根据所识别的内容进行搜索,并显示与所述内容相匹配的结果。The search unit 504 is configured to perform a search according to the identified content, and display a result matching the content.

优选的,所述装置还包括:Preferably, the device also includes:

光照区域调整单元,用于接收光照区域调整指令,根据所述调整指令确定光照区域的大小。The illumination area adjustment unit is configured to receive an illumination area adjustment instruction, and determine the size of the illumination area according to the adjustment instruction.

优选的,所述光照区域调整单元包括:Preferably, the illumination area adjustment unit includes:

第一光斑发射子单元,用于启动摄像头并发射第一光斑;The first light spot emitting subunit is used to start the camera and emit the first light spot;

智能调整子单元,用于根据所述第一光斑的位置,以及第一光斑所在位置的文字的换行标识调整目标图像。The intelligent adjustment subunit is configured to adjust the target image according to the position of the first light spot and the line break mark of the text at the position of the first light spot.

优选的,所述光照区域调整单元包括:Preferably, the illumination area adjustment unit includes:

第二光斑发射子单元,启动摄像头并发射第一光斑;The second light spot emitting subunit starts the camera and emits the first light spot;

触摸调整子单元,用于接收用户的触摸调整指令,根据横向触摸指令调整第一光斑的宽度,根据纵向触摸指令调整第一光斑的高度。The touch adjustment subunit is configured to receive a user's touch adjustment instruction, adjust the width of the first light spot according to the horizontal touch instruction, and adjust the height of the first light spot according to the vertical touch instruction.

优选的,所述装置还包括:Preferably, the device also includes:

形状切换单元,用于切换所述光照区域的形状;a shape switching unit, configured to switch the shape of the illumination area;

所述搜索单元具体用于根据所述光照区域的形状查找对应的搜索类型,根据所述搜索类型以及识别的内容进行搜索,并显示与所述内容相匹配的结果。The search unit is specifically configured to find a corresponding search type according to the shape of the illuminated area, perform a search according to the search type and identified content, and display a result matching the content.

本发明实施例所述目标内容的定位搜索装置,与实施例一至四所述目标内容的定位搜索方法对应,在此不作重复赘述。The device for locating and searching for target content in the embodiments of the present invention corresponds to the method for locating and searching for target content in Embodiments 1 to 4, and will not be repeated here.

在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device 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 can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the essence of the technical solution of the present invention 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 to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in 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 should be included in the protection of the present invention. within range.

Claims (10)

1. a kind of positioning searching method of object content is it is characterised in that methods described includes:
Receive photographing instruction, obtain the original image including light area;
Location lookup target image according to the light area in described original image;
According to the described target image searched, carry out content recognition;
Content according to being identified scans for, and shows the result matching with described content.
2. according to claim 1 method it is characterised in that methods described also includes:
Receive light area adjust instruction, determine the size of light area according to described adjust instruction.
3. according to claim 2 method it is characterised in that described reception light area adjust instruction, according to described adjustment Instruction determines that the size step of light area specifically includes:
Start camera and launch the first hot spot;
According to the position of described first hot spot, and the line feed mark adjustment target image of the word of the first hot spot position.
4. according to claim 2 method it is characterised in that described reception light area adjust instruction, according to described adjustment Instruction determines that the size step of light area specifically includes:
Start camera and launch the first hot spot;
The touch adjust instruction of receive user, adjusts the width of the first hot spot according to horizontal touching instruction, is referred to according to longitudinally touch The height of order adjustment the first hot spot.
5. method, it is characterised in that being scanned for according to the content being identified described, and shows according to claim 1 Before the result step matching with described content, methods described also includes:
Switch the shape of described light area;
Described scanned for according to the content being identified, and show that the result step being matched with described content is specially:
Shape according to described light area searches corresponding search-type, is entered according to the content of described search-type and identification Line search, and show the result matching with described content.
6. a kind of positioning searcher of object content is it is characterised in that described device includes:
Original image acquiring unit, for receiving photographing instruction, obtains the original image including light area;
Target image searching unit, for the location lookup target image according to the light area in described original image;
Image identification unit, for according to the described target image searched, carrying out content recognition;
Search unit, for scanning for according to the content being identified, and shows the result matching with described content.
7. according to claim 6 device it is characterised in that described device also includes:
Light area adjustment unit, for receiving light area adjust instruction, determines light area according to described adjust instruction Size.
8. according to claim 7 device it is characterised in that described light area adjustment unit includes:
First hot spot transmitting subelement, for starting camera and launching the first hot spot;
Adjustment subelement, for the position according to described first hot spot, and the changing of the word of the first hot spot position Line identifier adjusts target image.
9. according to claim 7 device it is characterised in that described light area adjustment unit includes:
Second hot spot transmitting subelement, starts camera and launches the first hot spot;
Touch adjustment subelement, for the touch adjust instruction of receive user, the first hot spot is adjusted according to horizontal touching instruction Width, adjusts the height of the first hot spot according to longitudinal touching instruction.
10. according to claim 6 device it is characterised in that described device also includes:
Shape switch unit, for switching the shape of described light area;
Described search unit searches corresponding search-type specifically for the shape according to described light area, according to described search The content of type and identification scans for, and shows the result matching with described content.
CN201610804751.8A 2016-09-05 2016-09-05 Method and device for positioning and searching target content Active CN106407977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610804751.8A CN106407977B (en) 2016-09-05 2016-09-05 Method and device for positioning and searching target content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610804751.8A CN106407977B (en) 2016-09-05 2016-09-05 Method and device for positioning and searching target content

Publications (2)

Publication Number Publication Date
CN106407977A true CN106407977A (en) 2017-02-15
CN106407977B CN106407977B (en) 2020-01-03

Family

ID=57999746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610804751.8A Active CN106407977B (en) 2016-09-05 2016-09-05 Method and device for positioning and searching target content

Country Status (1)

Country Link
CN (1) CN106407977B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255344A (en) * 2018-01-24 2018-07-06 广东小天才科技有限公司 Question searching method and system applied to handheld photographing equipment and handheld photographing equipment
CN108287895A (en) * 2018-01-19 2018-07-17 广东小天才科技有限公司 Dominant frame adjustment-based question searching method and system and handheld photographing device
CN109359582A (en) * 2018-10-15 2019-02-19 Oppo广东移动通信有限公司 Information search method, information search device and mobile terminal
CN109491519A (en) * 2018-10-09 2019-03-19 深圳市奥拓电子股份有限公司 Air mouse method for tracing, system and machine readable storage medium
CN111144414A (en) * 2019-01-25 2020-05-12 邹玉平 Image processing method, related device and system
CN111553366A (en) * 2020-04-30 2020-08-18 广东小天才科技有限公司 Method and system for matching questions

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060182367A1 (en) * 2005-02-14 2006-08-17 Baback Moghaddam Face relighting for normalization of directional lighting
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
CN103795467A (en) * 2013-11-05 2014-05-14 深圳光启创新技术有限公司 Method and apparatus for identifying visible light communication signal received by camera
CN104969240A (en) * 2013-02-27 2015-10-07 索尼公司 Method and system for image processing
CN105787480A (en) * 2016-02-26 2016-07-20 广东小天才科技有限公司 Method and device for shooting test questions
CN105912717A (en) * 2016-04-29 2016-08-31 广东小天才科技有限公司 Image-based information searching method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060182367A1 (en) * 2005-02-14 2006-08-17 Baback Moghaddam Face relighting for normalization of directional lighting
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
CN104969240A (en) * 2013-02-27 2015-10-07 索尼公司 Method and system for image processing
CN103795467A (en) * 2013-11-05 2014-05-14 深圳光启创新技术有限公司 Method and apparatus for identifying visible light communication signal received by camera
CN105787480A (en) * 2016-02-26 2016-07-20 广东小天才科技有限公司 Method and device for shooting test questions
CN105912717A (en) * 2016-04-29 2016-08-31 广东小天才科技有限公司 Image-based information searching method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287895A (en) * 2018-01-19 2018-07-17 广东小天才科技有限公司 Dominant frame adjustment-based question searching method and system and handheld photographing device
CN108255344A (en) * 2018-01-24 2018-07-06 广东小天才科技有限公司 Question searching method and system applied to handheld photographing equipment and handheld photographing equipment
CN109491519A (en) * 2018-10-09 2019-03-19 深圳市奥拓电子股份有限公司 Air mouse method for tracing, system and machine readable storage medium
CN109359582A (en) * 2018-10-15 2019-02-19 Oppo广东移动通信有限公司 Information search method, information search device and mobile terminal
CN109359582B (en) * 2018-10-15 2022-08-09 Oppo广东移动通信有限公司 Information searching method, information searching device and mobile terminal
CN111144414A (en) * 2019-01-25 2020-05-12 邹玉平 Image processing method, related device and system
CN111553366A (en) * 2020-04-30 2020-08-18 广东小天才科技有限公司 Method and system for matching questions

Also Published As

Publication number Publication date
CN106407977B (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN106407977B (en) Method and device for positioning and searching target content
CN105975560B (en) Question searching method and device of intelligent equipment
US10078376B2 (en) Multimodel text input by a keyboard/camera text input module replacing a conventional keyboard text input module on a mobile device
CN101667251B (en) OCR recognition method and device with auxiliary positioning function
US8325234B2 (en) Information processing apparatus, information processing method, and program for storing an image shot by a camera and projected by a projector
EP2704061A2 (en) Apparatus and method for recognizing a character in terminal equipment
WO2011009343A1 (en) Character input method and system, electronic device and keyboard thereof
CN105892685A (en) Question searching method and device of intelligent equipment
CN106469308A (en) Efficient question searching method and device
CN105975557B (en) Topic searching method and device applied to electronic equipment
CN108197299B (en) A method and system for searching questions by photographing based on a handheld photographing device
CN107451127A (en) Word translation method and system based on image and mobile device
CN105975550A (en) Question searching method and device of intelligent equipment
US11557138B2 (en) Display apparatus, control method, and recording medium
US11755849B2 (en) Information switching method, apparatus and translation device
CN105160236B (en) A kind of method and apparatus of input validation code
CN105975552A (en) Question searching method and device of intelligent equipment
CN106446884A (en) Method and device for rapidly intercepting image
US9641740B2 (en) Apparatus and method for auto-focusing in device having camera
CN105956555A (en) Method and device for searching questions by photographing
CN105956078B (en) Method and device for topic search for intelligent equipment
CN106354390B (en) Method and device for intercepting target image
CN106372223B (en) Content fast searching method and device
CN101867715B (en) Automatic image shooting system
CN106408560B (en) Method and device for rapidly acquiring effective image

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