CN105975566A - Image-based information searching method and device - Google Patents
Image-based information searching method and device Download PDFInfo
- Publication number
- CN105975566A CN105975566A CN201610286565.XA CN201610286565A CN105975566A CN 105975566 A CN105975566 A CN 105975566A CN 201610286565 A CN201610286565 A CN 201610286565A CN 105975566 A CN105975566 A CN 105975566A
- Authority
- CN
- China
- Prior art keywords
- image
- search
- light projection
- vertex
- camera
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
Landscapes
- Engineering & Computer Science (AREA)
- Library & Information Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明属于电子终端技术领域,尤其涉及基于图像的信息搜索方法及装置。The invention belongs to the technical field of electronic terminals, and in particular relates to an image-based information search method and device.
背景技术Background technique
目前,市面上的很多电子教育产品都可以实现拍照搜题功能,通过拍摄单词或词组以搜索对应的释义,或者通过拍摄题目以搜索对应的答案。拍照搜题功能的实现需要经过以下步骤:启动摄像头-对焦拍照-在图像中截取搜索对象-通过OCR技术将搜索对象转换成文本-服务器搜索并匹配搜索结果-服务器将搜索结果反馈给电子终端。At present, many electronic education products on the market can realize the function of searching for questions by taking photos, searching for corresponding definitions by taking photos of words or phrases, or searching for corresponding answers by taking photos of questions. The realization of the photo search function needs to go through the following steps: start the camera - focus and take a picture - intercept the search object in the image - convert the search object into text through OCR technology - search and match the search result by the server - feed back the search result to the electronic terminal.
在拍照搜索功能的实现过程中,页面中搜索对象与非搜索对象的间距可能非常窄,或者由于摄像头与页面不平行导致拍摄出的搜索对象在图像中倾斜,以上情况均会提高在图像中对搜索对象进行截取的难度,由此加大了系统后台对搜索对象的识别难度,降低了拍照搜题过程中的信息匹配效率。In the process of realizing the photo search function, the distance between the search object and the non-search object on the page may be very narrow, or the search object captured by the camera is not parallel to the page, which may cause the image to be tilted. The difficulty of intercepting the search object increases the difficulty of identifying the search object in the background of the system, and reduces the information matching efficiency in the process of taking pictures and searching for questions.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了基于图像的信息搜索方法及装置,以解决现有技术会提高在图像中对搜索对象进行截取的难度,降低搜索过程中的信息匹配效率的问题。In view of this, the embodiments of the present invention provide an image-based information search method and device to solve the problem that the prior art increases the difficulty of intercepting search objects in images and reduces the efficiency of information matching in the search process.
第一方面,提供了基于图像的信息搜索方法,包括:In the first aspect, an image-based information search method is provided, including:
启动移动终端的摄像头,并启动光发射装置;Start the camera of the mobile terminal, and start the light emitting device;
获取所述摄像头拍摄的第一图像,在所述第一图像中,所述光发射装置的光投射点位于搜索对象所处矩形区域的第一顶点;Acquiring a first image taken by the camera, in the first image, the light projection point of the light emitting device is located at the first vertex of the rectangular area where the search object is located;
获取所述摄像头拍摄的第二图像,在所述第二图像中,所述光发射装置的光投射点位于所述矩形区域的第二顶点,所述第二顶点与所述第一顶点为所述矩形区域的对角顶点;Acquiring a second image taken by the camera, in the second image, the light projection point of the light emitting device is located at a second vertex of the rectangular area, and the second vertex and the first vertex are the same The diagonal vertices of the rectangular area;
基于所述第一图像和所述第二图像中光投射点的位置构建矩形框;constructing a rectangular frame based on positions of light projection points in the first image and the second image;
对所述矩形框中的图像进行内容识别以确定搜索对象,并获取搜索结果。Perform content recognition on the images in the rectangular frame to determine the search object, and obtain search results.
第二方面,提供了基于图像的信息搜索装置,包括:In a second aspect, an image-based information search device is provided, including:
启动单元,用于启动移动终端的摄像头,并启动光发射装置;The starting unit is used to start the camera of the mobile terminal and start the light emitting device;
第一获取单元,用于获取所述摄像头拍摄的第一图像,在所述第一图像中,所述光发射装置的光投射点位于搜索对象所处矩形区域的第一顶点;A first acquiring unit, configured to acquire a first image captured by the camera, in the first image, the light projection point of the light emitting device is located at the first vertex of the rectangular area where the search object is located;
第二获取单元,用于获取所述摄像头拍摄的第二图像,在所述第二图像中,所述光发射装置的光投射点位于所述矩形区域的第二顶点,所述第二顶点与所述第一顶点为所述矩形区域的对角顶点;The second acquiring unit is configured to acquire a second image captured by the camera, in the second image, the light projection point of the light emitting device is located at a second vertex of the rectangular area, and the second vertex is in the same position as the second vertex. The first vertex is a diagonal vertex of the rectangular area;
构建单元,用于基于所述第一图像和所述第二图像中光投射点的位置构建矩形框;a construction unit, configured to construct a rectangular frame based on positions of light projection points in the first image and the second image;
搜索单元,用于对所述矩形框中的图像进行内容识别以确定搜索对象,并获取搜索结果。The search unit is configured to identify the content of the images in the rectangular frame to determine the search object, and obtain the search result.
在本发明实施例中,通过光发射装置产生的光投射点来对搜索对象进行定位,以高效地截取搜索对象所处的矩形区域,减少了非搜索对象对搜索结果的干扰,由此降低了在图像中对搜索对象进行截取的难度,提高了搜索过程中的信息匹配效率。In the embodiment of the present invention, the search object is positioned through the light projection point generated by the light emitting device, so as to efficiently intercept the rectangular area where the search object is located, reducing the interference of non-search objects on the search results, thereby reducing the The difficulty of intercepting the search object in the image improves the information matching efficiency in the search process.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是本发明实施例提供的基于图像的信息搜索方法的实现流程图;Fig. 1 is the implementation flowchart of the image-based information search method provided by the embodiment of the present invention;
图2是本发明实施例提供的光投射点示例图;Fig. 2 is an example diagram of light projection points provided by an embodiment of the present invention;
图3是本发明实施例提供的基于图像的信息搜索方法S104的具体实现流程图;Fig. 3 is a specific implementation flowchart of the image-based information search method S104 provided by the embodiment of the present invention;
图4是本发明另一实施例提供的基于图像的信息搜索方法的实现流程图;FIG. 4 is a flow chart of an image-based information search method provided by another embodiment of the present invention;
图5是本发明实施例提供的基于图像的信息搜索装置的结构框图。Fig. 5 is a structural block diagram of an image-based information search device provided by an embodiment of the present invention.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
本发明实施例中,启动移动终端的摄像头,并启动光发射装置;获取所述摄像头拍摄的第一图像,在所述第一图像中,所述光发射装置的光投射点位于搜索对象所处矩形区域的第一顶点;获取所述摄像头拍摄的第二图像,在所述第二图像中,所述光发射装置的光投射点位于所述矩形区域的第二顶点,所述第二顶点与所述第一顶点为所述矩形区域的对角顶点;基于所述第一图像和所述第二图像中光投射点的位置构建矩形框;对所述矩形框中的图像进行内容识别以确定搜索对象,并获取搜索结果。In the embodiment of the present invention, start the camera of the mobile terminal, and start the light emitting device; obtain the first image taken by the camera, in the first image, the light projection point of the light emitting device is located at the location of the search object The first vertex of the rectangular area; acquire the second image taken by the camera, in the second image, the light projection point of the light emitting device is located at the second vertex of the rectangular area, and the second vertex and The first vertex is a diagonal vertex of the rectangular area; a rectangular frame is constructed based on the positions of light projection points in the first image and the second image; content recognition is performed on images in the rectangular frame to determine Search for objects, and get search results.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.
图1示出了本发明实施例提供的基于图像的信息搜索方法的实现流程,在本发明实施例中,基于图像的信息搜索,其图像是通过摄像头拍摄的包含搜索对象的图像。图1所对应的实施例的实现流程详述如下:Fig. 1 shows the implementation process of the image-based information search method provided by the embodiment of the present invention. In the embodiment of the present invention, the image-based information search includes images captured by a camera that contain search objects. The implementation process of the embodiment corresponding to Fig. 1 is described in detail as follows:
在S101中,启动移动终端的摄像头,并启动光发射装置。In S101, start the camera of the mobile terminal, and start the light emitting device.
本发明实施例的实现首先需要通过摄像头完成对搜索对象的拍照,所述搜索对象包括但不限于单词、词组、题目、文本块等。在本发明实施例中,启动摄像头,以使用户通过操控摄像头对纸面或其他平面上的搜索对象进行拍摄,此外,在本发明实施例中,还会在摄像头的邻近区域设置一个光发射装置,该光发射装置所发射的光包括但不限于红外光、激光等,这样一来,该光发射装置发出的光会投射在摄像头的拍摄主体上,从而使得摄像头拍摄的图像中会显示该光发射装置在纸面上的光投射点。The implementation of the embodiment of the present invention first needs to take pictures of the search objects through the camera, and the search objects include but not limited to words, phrases, titles, text blocks, and the like. In the embodiment of the present invention, the camera is activated so that the user can take pictures of the search object on paper or other planes by manipulating the camera. In addition, in the embodiment of the present invention, a light emitting device will be set in the vicinity of the camera , the light emitted by the light emitting device includes but not limited to infrared light, laser light, etc. In this way, the light emitted by the light emitting device will be projected on the subject of the camera, so that the image captured by the camera will display the light The light projection point of the emitter on the paper.
在S102中,获取所述摄像头拍摄的第一图像,在所述第一图像中,所述光发射装置的光投射点位于搜索对象所处矩形区域的第一顶点。In S102, acquire a first image captured by the camera, in the first image, the light projection point of the light emitting device is located at a first vertex of the rectangular area where the search object is located.
在S103中,获取所述摄像头拍摄的第二图像,在所述第二图像中,所述光发射装置的光投射点位于所述矩形区域的第二顶点,所述第二顶点与所述第一顶点为所述矩形区域的对角顶点。In S103, acquire a second image taken by the camera, in the second image, the light projection point of the light emitting device is located at a second vertex of the rectangular area, and the second vertex is the same as the first A vertex is a diagonal vertex of the rectangular area.
通常,平面中的搜索对象是以文本块或图像块的格式被印刷或显示的,因此,可以基于该搜索对象在平面中的所占区域,确定一个矩形区域,在该矩形区域中仅包含该搜索对象。因此,基于上述情况,在本发明实施例中,将光发射装置发出的光分别投射在该矩形区域的一对对角顶点上,将分别对这两次投射情况进行拍摄,由此可以记录下这两次投射的光投射点在拍摄平面中的位置。Usually, the search object in the plane is printed or displayed in the format of text block or image block, therefore, based on the area occupied by the search object in the plane, a rectangular area can be determined, in which only the Search objects. Therefore, based on the above situation, in the embodiment of the present invention, the light emitted by the light-emitting device is respectively projected on a pair of diagonal vertices of the rectangular area, and the two projections are respectively photographed, so that it can be recorded The position of the light cast point in the capture plane for these two casts.
如图2所示,题目2为搜索对象,光发射装置的光投射点为图2中的十字光标,则可以将光标分两次投射至图2中的位置1和位置2,并分别拍摄得到这两次投射的页面,那么实际上,位置1为题目2文本块所处的矩形区域的左上顶点,位置2为题目2文本块所处的矩形区域的右下顶点,位置1和位置2构成了该矩形区域的一对对角顶点。As shown in Figure 2, topic 2 is the search object, and the light projection point of the light emitting device is the cross cursor in Figure 2, then the cursor can be projected twice to position 1 and position 2 in Figure 2, and taken separately to obtain For the pages projected twice, in fact, position 1 is the upper left vertex of the rectangular area where the text block of title 2 is located, and position 2 is the lower right vertex of the rectangular area where the text block of title 2 is located. Position 1 and position 2 constitute A pair of diagonal vertices of the rectangular area.
作为本发明的一个实施例中,在所述摄像头拍摄所述第一图像和所述第二图像之前,通过所述移动终端提示光投射点的投射位置,以使所述发射装置的光投射点分别投射至所述矩形区域中的对角顶点。As an embodiment of the present invention, before the camera captures the first image and the second image, the mobile terminal prompts the projection position of the light projection point, so that the light projection point of the emitting device are respectively projected to the diagonal vertices in the rectangular area.
在本实施例中,对光发射装置发出的光的投射位置在移动终端屏幕上进行文字提示,或者通过移动终端进行语音提示,这样一来,可以使得用户更加明确光投射点的投射位置,加快第一图像和第二图像的获取速度,以此提高整个信息搜索过程的操作效率。In this embodiment, text prompts are given on the screen of the mobile terminal for the projection position of the light emitted by the light emitting device, or voice prompts are given through the mobile terminal. In this way, the user can be more clear about the projection position of the light projection point and speed up. The acquisition speed of the first image and the second image, thereby improving the operational efficiency of the entire information search process.
在S104中,基于所述第一图像和所述第二图像中光投射点的位置构建矩形框。In S104, construct a rectangular frame based on positions of light projection points in the first image and the second image.
在应用后台,以上述第一图像和第二图像中光投射点的位置为未知矩形区域的一对对角顶点,可以构建出一个唯一的矩形框,该矩形框中仅包含搜索对象的图像内容。In the background of the application, using the position of the light projection point in the above first image and the second image as a pair of diagonal vertices of the unknown rectangular area, a unique rectangular frame can be constructed, which only contains the image content of the search object .
作为本发明实施例的一种实现方式,S104可以通过如图3所示的方式实现:As an implementation of the embodiment of the present invention, S104 can be implemented as shown in Figure 3:
S301,根据所述第一图像中光投射点的位置,在所述第二图像的相同位置进行标注。S301. Mark the same position in the second image according to the position of the light projection point in the first image.
S302,在所述第二图像中光投射点的位置及标注的位置分别作为所述矩形框的对角顶点,构建所述矩形框。S302. The position of the light projection point and the marked position in the second image are respectively used as diagonal vertices of the rectangular frame, and the rectangular frame is constructed.
基于图像识别的相关技术,在本发明实施例中,可以通过解析第一图像中的像素,在第一图像中查找具有特定像素特性的一块连续像素区域,该区域即为光投射点在图像中所呈现出的光块,并通过形状匹配,确定该光块的形状与预设的光标图形的形状相同或近似,由此确定该光块即为光投射点,完成光投射点的定位,并在第二图像的相同位置上进行标注,从而在第二图像上完成对两次投射操作产生的光投射点的定位,再将这两个定位点作为未知矩形区域的一对对角顶点,完成矩形框的构建。Based on the related technology of image recognition, in the embodiment of the present invention, by analyzing the pixels in the first image, a continuous pixel area with specific pixel characteristics can be found in the first image, and this area is the light projection point in the image The presented light block, and through shape matching, determine that the shape of the light block is the same as or similar to the shape of the preset cursor graphic, thereby determining that the light block is the light projection point, and completing the positioning of the light projection point, and Mark the same position in the second image, so as to complete the positioning of the light projection points generated by the two projection operations on the second image, and then use these two positioning points as a pair of diagonal vertices of the unknown rectangular area to complete Construction of rectangular boxes.
在S105中,对所述矩形框中的图像进行内容识别以确定搜索对象,并获取搜索结果。In S105, content recognition is performed on the images in the rectangular frame to determine a search object, and a search result is obtained.
基于该矩形框中的图像,应用后台对其中的搜索对象进行内容识别,例如,采用光学字符识别(Optical Character Recognition,OCR)技术,通过检测暗、亮的模式确定搜索对象的形状,然后用字符识别方法将形状翻译成计算机文字,从而得到文本格式的搜索对象。Based on the image in the rectangular frame, the application background performs content recognition on the search object in it, for example, using Optical Character Recognition (Optical Character Recognition, OCR) technology to determine the shape of the search object by detecting dark and bright patterns, and then use the character Recognition methods translate shapes into computer words, resulting in search objects in text format.
具体地,移动终端将文本格式的搜索对象上传至服务器,服务器在接收到搜索对象之后,进行数据矫正及解析,在数据库中对解析出的内容进行搜索匹配,从而获取到该搜索对象对应的搜索结果,并将该搜索结果返回至移动终端,移动终端显示该搜索结果,从而完成整个基于图像的信息搜索过程。Specifically, the mobile terminal uploads the search object in text format to the server. After receiving the search object, the server performs data correction and analysis, searches and matches the parsed content in the database, and obtains the search object corresponding to the search object. result, and return the search result to the mobile terminal, and the mobile terminal displays the search result, thereby completing the entire image-based information search process.
进一步地,作为本发明的一个实施例,如图4所示,在所述对所述矩形框中的图像进行内容识别以确定搜索对象之后,所述获取搜索结果之前,所述方法还包括:Further, as an embodiment of the present invention, as shown in FIG. 4, after performing content identification on the image in the rectangular frame to determine the search object and before obtaining the search result, the method further includes:
S401,显示所述内容识别的结果,以使用户根据所述内容识别的结果输入指令。S401. Display the result of the content recognition, so that the user can input an instruction according to the result of the content recognition.
S402,若检测到用户输入的为确认指令,基于所述内容识别的结果进行搜索。S402, if it is detected that the input by the user is a confirmation instruction, perform a search based on the result of the content identification.
在图4所示实施例中,完成对矩形框内图像的内容识别之后,显示识别出的内容,以便用户确认该内容识别结果的正确性,只有在用户确认并输入了确认指令之后,才与服务器后台进行通信,上传搜索对象,以保证搜索结果的正确性。In the embodiment shown in Figure 4, after the content recognition of the image in the rectangular frame is completed, the recognized content is displayed, so that the user can confirm the correctness of the content recognition result, and only after the user confirms and enters the confirmation instruction, is it connected with The server background communicates and uploads search objects to ensure the correctness of search results.
S403,若检测到用户输入的为重新拍照指令,则返回执行所述启动移动终端的摄像头,并启动光发射装置的操作。S403. If it is detected that the user input is a re-photographing instruction, return to the operation of starting the camera of the mobile terminal and starting the operation of the light emitting device.
而若用户输入的为重新拍照指令,则代表此前的光投射点定位不正确,导致内容识别错误,此时重新返回S101执行图1所示的相关操作,以确保信息搜索的准确性。And if the user input is a re-photographing command, it means that the previous light projection point positioning is incorrect, resulting in content recognition errors. At this time, return to S101 to perform the related operations shown in Figure 1 to ensure the accuracy of information search.
在本发明实施例中,通过光发射装置产生的光投射点来对搜索对象进行定位,以高效地截取搜索对象所处的矩形区域,减少了非搜索对象对搜索结果的干扰,同时,当光投射点为十字光标时,也可以为图像的倾斜校正提供水平和垂直参考线,由此降低了在图像中对搜索对象进行截取的难度,提高了搜索过程中的信息匹配效率。In the embodiment of the present invention, the search object is positioned by the light projection point generated by the light emitting device, so as to efficiently intercept the rectangular area where the search object is located, reducing the interference of non-search objects on the search results. At the same time, when the light When the projection point is a cross cursor, it can also provide horizontal and vertical reference lines for image tilt correction, thereby reducing the difficulty of intercepting the search object in the image and improving the information matching efficiency in the search process.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.
对应于上文实施例所述的基于图像的信息搜索方法,图5示出了本发明实施例提供的基于图像的信息搜索装置的结构框图,所述基于图像的信息搜索装置可以内置于移动终端或移动终端的应用系统内。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the image-based information search method described in the above embodiments, Fig. 5 shows a structural block diagram of an image-based information search device provided by an embodiment of the present invention, and the image-based information search device can be built into a mobile terminal Or in the application system of the mobile terminal. For ease of description, only the parts related to this embodiment are shown.
参照图5,该装置包括:Referring to Figure 5, the device includes:
启动单元51,启动移动终端的摄像头,并启动光发射装置;The starting unit 51 starts the camera of the mobile terminal and starts the light emitting device;
第一获取单元52,获取所述摄像头拍摄的第一图像,在所述第一图像中,所述光发射装置的光投射点位于搜索对象所处矩形区域的第一顶点;The first acquisition unit 52 is configured to acquire a first image captured by the camera, in which the light projection point of the light emitting device is located at the first vertex of the rectangular area where the search object is located;
第二获取单元53,获取所述摄像头拍摄的第二图像,在所述第二图像中,所述光发射装置的光投射点位于所述矩形区域的第二顶点,所述第二顶点与所述第一顶点为所述矩形区域的对角顶点;The second acquisition unit 53 is configured to acquire a second image captured by the camera, in the second image, the light projection point of the light emitting device is located at the second vertex of the rectangular area, and The first vertex is a diagonal vertex of the rectangular area;
构建单元54,基于所述第一图像和所述第二图像中光投射点的位置构建矩形框;A construction unit 54, configured to construct a rectangular frame based on the positions of light projection points in the first image and the second image;
搜索单元55,对所述矩形框中的图像进行内容识别以确定搜索对象,并获取搜索结果。The search unit 55 performs content recognition on the images in the rectangular frame to determine the search object, and obtains the search result.
可选地,所述装置还包括:Optionally, the device also includes:
提示单元,在所述摄像头拍摄所述第一图像和所述第二图像之前,通过所述移动终端提示光投射点的投射位置,以使所述发射装置的光投射点分别投射至所述矩形区域中的对角顶点。A prompting unit, before the camera captures the first image and the second image, prompts the projection position of the light projection point through the mobile terminal, so that the light projection point of the emitting device is respectively projected to the rectangular Diagonal vertices in the region.
可选地,所述构建单元54包括:Optionally, the construction unit 54 includes:
标注子单元,根据所述第一图像中光投射点的位置,在所述第二图像的相同位置进行标注;The marking subunit is used to mark the same position of the second image according to the position of the light projection point in the first image;
构建子单元,在所述第二图像中光投射点的位置及标注的位置分别作为所述矩形框的对角顶点,构建所述矩形框。The construction subunit uses the position of the light projection point and the marked position in the second image as diagonal vertices of the rectangular frame to construct the rectangular frame.
可选地,所述装置还包括:Optionally, the device also includes:
显示单元,显示所述内容识别的结果,以使用户根据所述内容识别的结果输入指令;a display unit, displaying the result of the content recognition, so that the user can input an instruction according to the result of the content recognition;
所述搜索单元55还用于,若检测到用户输入的为确认指令,基于所述内容识别的结果进行搜索。The search unit 55 is further configured to, if it is detected that the input by the user is a confirmation instruction, perform a search based on the result of the content identification.
可选地,所述装置还包括;Optionally, the device also includes;
返回单元,若检测到用户输入的为重新拍照指令,则返回执行所述启动移动终端的摄像头,并启动光发射装置的操作。The return unit, if it is detected that the user input is a re-photographing instruction, returns to execute the operation of starting the camera of the mobile terminal and starting the light emitting device.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, 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.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random AccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。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 technical solution of the embodiment 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 In the medium, several instructions are included to make a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the 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-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still carry out the foregoing embodiments Modifications to the technical solutions recorded in the examples, or equivalent replacement of some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should be included in within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610286565.XA CN105975566B (en) | 2016-04-29 | 2016-04-29 | Image-based information searching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610286565.XA CN105975566B (en) | 2016-04-29 | 2016-04-29 | Image-based information searching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105975566A true CN105975566A (en) | 2016-09-28 |
CN105975566B CN105975566B (en) | 2019-03-29 |
Family
ID=56993534
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610286565.XA Active CN105975566B (en) | 2016-04-29 | 2016-04-29 | Image-based information searching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105975566B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108227910A (en) * | 2017-11-24 | 2018-06-29 | 广东小天才科技有限公司 | Input method and device for search content, mobile terminal and storage medium |
CN113393418A (en) * | 2021-04-19 | 2021-09-14 | 北京沃东天骏信息技术有限公司 | User interface component retrieval method and device, equipment and storage medium |
CN113553457A (en) * | 2021-08-02 | 2021-10-26 | 杭州拼便宜网络科技有限公司 | Image-based commodity retrieval method, device, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130298162A1 (en) * | 2012-05-07 | 2013-11-07 | Sungil Cho | Media system and method of providing recommended search term corresponding to an image |
CN103593171A (en) * | 2012-08-15 | 2014-02-19 | 阿里巴巴集团控股有限公司 | Multi-zone screenshot method and device |
CN105306084A (en) * | 2014-05-26 | 2016-02-03 | Lg电子株式会社 | Eyewear type terminal and control method thereof |
-
2016
- 2016-04-29 CN CN201610286565.XA patent/CN105975566B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130298162A1 (en) * | 2012-05-07 | 2013-11-07 | Sungil Cho | Media system and method of providing recommended search term corresponding to an image |
CN103593171A (en) * | 2012-08-15 | 2014-02-19 | 阿里巴巴集团控股有限公司 | Multi-zone screenshot method and device |
CN105306084A (en) * | 2014-05-26 | 2016-02-03 | Lg电子株式会社 | Eyewear type terminal and control method thereof |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108227910A (en) * | 2017-11-24 | 2018-06-29 | 广东小天才科技有限公司 | Input method and device for search content, mobile terminal and storage medium |
CN113393418A (en) * | 2021-04-19 | 2021-09-14 | 北京沃东天骏信息技术有限公司 | User interface component retrieval method and device, equipment and storage medium |
CN113553457A (en) * | 2021-08-02 | 2021-10-26 | 杭州拼便宜网络科技有限公司 | Image-based commodity retrieval method, device, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105975566B (en) | 2019-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111507251B (en) | Method and device for positioning answering area in test question image, electronic equipment and computer storage medium | |
CN107656922B (en) | A translation method, device, terminal and storage medium | |
US9785627B2 (en) | Automated form fill-in via form retrieval | |
CN103548025B (en) | Method and terminal device for supporting acquisition of objects contained in an input image | |
CN105260733A (en) | Method and device for processing image information | |
CN111428717A (en) | Text recognition method and device, electronic equipment and computer readable storage medium | |
CN110516672A (en) | Card information identification method, device and terminal | |
WO2015062275A1 (en) | Method, apparatus and system for information identification | |
CN108196782A (en) | Photographing question searching method and electronic equipment | |
CN110263792B (en) | Image recognition and data processing method, smart pen, system and storage medium | |
CN108304562B (en) | Question-searching method, question-searching device and intelligent terminal | |
CN106528742A (en) | Information query method and device | |
CN115174824B (en) | Video generation method and device, promotional video generation method and device | |
CN104424472B (en) | An image recognition method and user terminal | |
CN111753715B (en) | Method and device for shooting test questions in click-to-read scene, electronic equipment and storage medium | |
CN105975566A (en) | Image-based information searching method and device | |
CN106326415A (en) | Method and device for searching questions by photographing | |
CN105956555A (en) | Method and device for searching questions by photographing | |
CN106202359A (en) | Method and device for searching questions by photographing | |
CN106202539B (en) | Aggregate search method and device | |
CN106599275A (en) | Photographing search method and device | |
WO2023272656A1 (en) | Picture book recognition method and apparatus, family education machine, and storage medium | |
US9514451B2 (en) | Method, apparatus and system for information identification | |
CN111401365A (en) | OCR image automatic generation method and device | |
US20250037491A1 (en) | Method and device for scanning multiple documents for further processing |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250801 Address after: 277700 Shandong Province Linyi City Cangshan County Dazhongzhen Town Chazishan Village 196.NO Patentee after: Liu Guangyuan Country or region after: China Patentee after: Liuzhonglin Address before: 126 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue Patentee before: Guangdong GENIUS Technology Co., Ltd. Country or region before: China |