Movatterモバイル変換


[0]ホーム

URL:


CN107273402A - Method and device for searching test questions by using double cameras - Google Patents

Method and device for searching test questions by using double cameras
Download PDF

Info

Publication number
CN107273402A
CN107273402ACN201710269848.8ACN201710269848ACN107273402ACN 107273402 ACN107273402 ACN 107273402ACN 201710269848 ACN201710269848 ACN 201710269848ACN 107273402 ACN107273402 ACN 107273402A
Authority
CN
China
Prior art keywords
image
similarity
search
camera
examination question
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710269848.8A
Other languages
Chinese (zh)
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 LtdfiledCriticalGuangdong Genius Technology Co Ltd
Priority to CN201710269848.8ApriorityCriticalpatent/CN107273402A/en
Publication of CN107273402ApublicationCriticalpatent/CN107273402A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The invention is suitable for the technical field of computers, and provides a method and a device for searching test questions by using double cameras, wherein the method comprises the following steps: respectively acquiring a first image and a second image, wherein the first image is an image shot by a first camera, and the second image is an image shot by a second camera; calculating the similarity of the first image and the second image; and when the similarity is lower than the preset similarity, performing first synthesis operation on the first image and the second image to obtain a third image, and performing test question search according to the third image. According to the invention, two images are obtained through the double cameras, only a part of the two images are overlapped for the image which cannot be shot to obtain the complete test question content, the image of the complete test question content can be obtained by combining the two images, the test questions with more test question stem content can be shot completely, the searched keywords are completely reserved, and the searching efficiency and the searching precision are improved.

Description

Translated fromChinese
一种用双摄像头搜索试题的方法及装置A method and device for searching test questions with dual cameras

技术领域technical field

本发明属于计算机技术领域,尤其涉及一种用双摄像头搜索试题的方法及装置。The invention belongs to the technical field of computers, and in particular relates to a method and a device for searching test questions with dual cameras.

背景技术Background technique

目前用户在使用终端设备进行试题搜索时,通常通过单摄像头进行拍照获取图片,根据图像进行试题搜索,但是在拍照过程中,经常会出现由于题干太长,内容太多,拍摄的图像不完整,导致搜索试题的时候缺失关键词,影响搜索精准度,搜索效率较低。At present, when users use terminal devices to search for test questions, they usually use a single camera to take pictures to obtain pictures, and search for test questions based on the images. However, during the process of taking pictures, it often happens that the captured images are incomplete due to too long questions and too many contents. , leading to the lack of keywords when searching for test questions, which affects the search accuracy and low search efficiency.

发明内容Contents of the invention

本发明的目的在于提供一种用双摄像头搜索试题的方法及装置,旨在解决现有技术中在使用单摄像头拍摄试题时,无法获取完整的试题图像,导致内容缺失,影响试题搜索结果的问题。The purpose of the present invention is to provide a method and device for searching test questions with dual cameras, aiming to solve the problem in the prior art that when using a single camera to shoot test questions, it is impossible to obtain a complete test question image, resulting in missing content and affecting the search results of test questions. .

一方面,本发明提供了一种用双摄像头搜索试题的方法,所述方法包括下述步骤:On the one hand, the present invention provides a kind of method for searching test questions with dual camera, and described method comprises the following steps:

分别获取第一图像及第二图像,所述第一图像为由第一摄像头拍摄的图像,所述第二图像为由第二摄像头拍摄的图像;Obtaining a first image and a second image respectively, the first image is an image taken by a first camera, and the second image is an image taken by a second camera;

计算所述第一图像及第二图像的相似度;calculating the similarity between the first image and the second image;

当所述相似度低于预设相似度时,将所述第一图像及第二图像进行第一合成操作,得到第三图像,并根据所述第三图像进行试题搜索。When the similarity is lower than the preset similarity, a first compositing operation is performed on the first image and the second image to obtain a third image, and a test question search is performed based on the third image.

另一方面,本发明提供了一种用双摄像头搜索试题的装置,所述装置包括:In another aspect, the present invention provides a device for searching test questions with dual cameras, said device comprising:

图像获取单元,用于分别获取第一图像及第二图像,所述第一图像为由第一摄像头拍摄的图像,所述第二图像为由第二摄像头拍摄的图像;An image acquisition unit, configured to acquire a first image and a second image respectively, the first image is an image captured by a first camera, and the second image is an image captured by a second camera;

相似度计算单元,用于计算所述第一图像及第二图像的相似度;以及a similarity calculation unit, configured to calculate the similarity between the first image and the second image; and

第三图像搜索单元,用于当所述相似度低于预设相似度时,将所述第一图像及第二图像进行第一合成操作,得到第三图像,并根据所述第三图像进行试题搜索。A third image search unit, configured to perform a first compositing operation on the first image and the second image to obtain a third image when the similarity is lower than the preset similarity, and perform the operation according to the third image Question search.

本发明实施例通过双摄像头获取两个图像,对于能够拍摄得到完整试题内容的图像,两个图像基本一致,对于不能够拍摄得到完整试题内容的图像,两个图像只有一部分重叠,通过对两个图像进行合并,可以得到完整试题内容的图像,实现了可以完整地拍摄题干内容较多的试题,完整了保留了搜索的关键词,提高搜索效率及搜索精度。The embodiment of the present invention acquires two images through dual cameras. For images that can be photographed to obtain complete test question content, the two images are basically the same. For images that cannot be photographed to obtain complete test question content, only a part of the two images overlaps. The image is merged to obtain the image of the complete test content, which realizes that the test questions with more content can be completely captured, and the search keywords are completely retained, and the search efficiency and search accuracy are improved.

附图说明Description of drawings

图1是本发明实施例一提供的用双摄像头搜索试题的方法的实现流程图;Fig. 1 is the implementation flowchart of the method for searching test questions with dual cameras provided by Embodiment 1 of the present invention;

图2是本发明实施例二提供的用双摄像头搜索试题的方法的实现流程图;Fig. 2 is the implementation flowchart of the method for searching test questions with dual cameras provided by Embodiment 2 of the present invention;

图3是本发明实施例三提供的用双摄像头搜索试题的装置的结构示意图;以及FIG. 3 is a schematic structural diagram of a device for searching test questions with dual cameras provided in Embodiment 3 of the present invention; and

图4是本发明实施例四提供的用双摄像头搜索试题的装置的结构示意图。FIG. 4 is a schematic structural diagram of a device for searching test questions with dual cameras provided by Embodiment 4 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 specific realization of the present invention is described in detail below in conjunction with specific embodiment:

实施例一:Embodiment one:

图1示出了本发明实施例一提供的用双摄像头搜索试题的方法的实现流程图,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:Fig. 1 shows the implementation flowchart of the method for searching test questions with dual cameras provided by Embodiment 1 of the present invention. For the convenience of explanation, only the parts related to the embodiment of the present invention are shown, and the details are as follows:

在步骤S101中,分别获取第一图像及第二图像,该第一图像为由第一摄像头拍摄的图像,该第二图像为由第二摄像头拍摄的图像。In step S101, a first image and a second image are acquired respectively, the first image is an image captured by a first camera, and the second image is an image captured by a second camera.

在本发明实施例中,在终端设备上设置两个摄像头,在用户遇到需要搜索试题时,通过两个摄像头对试题进行拍摄,两个摄像头在通过用户对拍摄参数进行调整,得到两张图像,分别为第一图像及第二图像,其中,第一图像为由第一摄像头拍摄的图像,该第二图像为由第二摄像头拍摄的图像。In the embodiment of the present invention, two cameras are set on the terminal device, and when the user needs to search for a test question, the two cameras shoot the test question, and the two cameras adjust the shooting parameters by the user to obtain two images , are respectively a first image and a second image, wherein the first image is an image captured by the first camera, and the second image is an image captured by the second camera.

在步骤S102中,计算第一图像及第二图像的相似度。In step S102, the similarity between the first image and the second image is calculated.

在本发明实施例中,由于用户在拍摄时,会根据试题的题干长度,内容长短,对两个摄像头进行拍摄参数调整,因此,得到的第一图像及第二图像,可能相同或不相同或部分相同,对此,通过计算第一图像及第二图像的相似度,对两个图像进行对应处理。In the embodiment of the present invention, since the user will adjust the shooting parameters of the two cameras according to the length of the test question and the length of the content when shooting, the first image and the second image obtained may be the same or different Or they are partially the same. For this, by calculating the similarity between the first image and the second image, corresponding processing is performed on the two images.

在步骤S103中,当相似度低于预设相似度时,将第一图像及第二图像进行第一合成操作,得到第三图像,并根据第三图像进行试题搜索。In step S103, when the similarity is lower than the preset similarity, the first composite operation is performed on the first image and the second image to obtain a third image, and the test question search is performed based on the third image.

在本发明实施例中,当相似度低于预设相似度时,代表着两个图像不相同或者部分相同,这种情况说明所需搜索的试题题干内容较多,需要通过两个摄像头分别获取部分图像才能拍摄完整,对于相似度低于预设相似度的第一图像及第二图像,需要进行第一合成操作,得到第三图像,该第三图像包含完整的试题内容,以便于在搜索时提取完整的关键词,进行精确搜索。In the embodiment of the present invention, when the similarity is lower than the preset similarity, it means that the two images are not the same or partially the same. This situation shows that the content of the test questions to be searched is more, and it is necessary to use two cameras to Part of the image can only be taken completely. For the first image and the second image whose similarity is lower than the preset similarity, the first synthesis operation is required to obtain the third image. The third image contains the complete test content, so that it can be used in When searching, extract complete keywords and conduct precise searches.

进一步地,提取第一图像及第二图像相同部分及差异部分;Further, extracting the same part and the difference part of the first image and the second image;

将第一图像及第二图像相同部分进行合并,将第一图像及第二图像的差异部分进行拼接,得到第三图像。The same parts of the first image and the second image are combined, and the different parts of the first image and the second image are spliced to obtain a third image.

具体地,对于相似度低于预设相似度的第一图像及第二图像,代表着两个图像不相同或者部分相同,因此,需要提取第一图像及第二图像相同部分及差异部分,在存在相同部分时,将第一图像及第二图像相同部分进行合并,将第一图像及第二图像的差异部分进行拼接,得到第三图像。Specifically, for the first image and the second image whose similarity is lower than the preset similarity, it means that the two images are not the same or partially the same. Therefore, it is necessary to extract the same part and the difference part of the first image and the second image, and then When there are identical parts, the same parts of the first image and the second image are merged, and the difference parts of the first image and the second image are spliced to obtain a third image.

进一步地,识别出第三图像中的试题内容,根据试题内容在题库中进行试题搜索。Further, the test question content in the third image is recognized, and the test question search is performed in the test question bank according to the test question content.

具体地,识别出第三图像中的试题内容,该试题内容为试题题干的关键词,利用关键词在试题题库中进行试题搜索,不但能够缩短搜索时间、提高搜索效率,还能够提高搜索准确性。Specifically, identifying the content of the test question in the third image, the content of the test question is the keyword of the test question, and using the keyword to search the test question in the test question database can not only shorten the search time, improve the search efficiency, but also improve the accuracy of the search. sex.

在本发明实施例中,通过双摄像头获取两个图像,对于能够拍摄得到完整试题内容的图像,两个图像基本一致,对于不能够拍摄得到完整试题内容的图像,两个图像只有一部分重叠,通过对两个图像进行合并,可以得到完整试题内容的图像,实现了可以完整地拍摄题干内容较多的试题,完整了保留了搜索的关键词,提高搜索效率及搜索精度。In the embodiment of the present invention, two images are acquired by dual cameras. For the images that can be photographed to obtain the complete test content, the two images are basically the same. For the images that cannot be photographed to obtain the complete test content, the two images are only partly overlapped. By merging the two images, an image of the complete content of the test questions can be obtained, which realizes that the test questions with more content can be completely photographed, and the search keywords are completely preserved, and the search efficiency and search accuracy are improved.

实施例二:Embodiment two:

图2示出了本发明实施例二提供的用双摄像头搜索试题的方法的实现流程图,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:Fig. 2 shows the implementation flowchart of the method for searching test questions with dual cameras provided by Embodiment 2 of the present invention. For the convenience of explanation, only the parts related to the embodiment of the present invention are shown, and the details are as follows:

在步骤S201中,分别获取第一图像及第二图像,该第一图像为由第一摄像头拍摄的图像,该第二图像为由第二摄像头拍摄的图像。In step S201, a first image and a second image are obtained respectively, the first image is an image captured by a first camera, and the second image is an image captured by a second camera.

在步骤S202中,计算第一图像及第二图像的相似度。In step S202, the similarity between the first image and the second image is calculated.

在步骤S203中,当相似度低于预设相似度时,将第一图像及第二图像进行第一合成操作,得到第三图像,并根据第三图像进行试题搜索。In step S203, when the similarity is lower than the preset similarity, the first composite operation is performed on the first image and the second image to obtain a third image, and the test question search is performed based on the third image.

在本发明实施例中,步骤S201—S203的实施方式可对应参考前述实施例一中步骤S101—S103的描述,在此不再赘述。In the embodiment of the present invention, the implementation manner of steps S201-S203 can refer to the description of steps S101-S103 in the first embodiment, which will not be repeated here.

在步骤S204中,当相似度超出预设相似度时,将第一图像及第二图像进行第二合成操作,得到第四图像,并根据第四图像进行试题搜索。In step S204, when the similarity exceeds the preset similarity, the first image and the second image are subjected to a second synthesis operation to obtain a fourth image, and the test question search is performed based on the fourth image.

在本发明实施例中,当相似度超出预设相似度时,说明第一图像及第二图像基本相同,为了得到质量较高的图像,可以对第一图像及第二图像进行第二合成操作,也就是将两个图像进行叠加合成一个图像,得到第四图像。In the embodiment of the present invention, when the similarity exceeds the preset similarity, it means that the first image and the second image are basically the same, and in order to obtain a higher quality image, the second composite operation can be performed on the first image and the second image , that is, two images are superimposed and synthesized into one image to obtain a fourth image.

进一步地,根据第一图像及第二图像计算位移矢量,并进行补偿,得到第四图像。Further, a displacement vector is calculated and compensated according to the first image and the second image to obtain a fourth image.

具体地,为了进一步提高图像质量,尤其是在拍摄时存在抖动的情况,第一图像及第二图像的图像边缘存在位移矢量,通过计算位移矢量,再边缘进行补偿,可以得到质量较高的第四图像,从而提升了图像质量,有利于提高试题的搜索效率。Specifically, in order to further improve the image quality, especially when there is shaking during shooting, there are displacement vectors on the image edges of the first image and the second image. By calculating the displacement vectors and then compensating the edges, a higher quality second image can be obtained. Four images, thereby improving the image quality and helping to improve the search efficiency of test questions.

进一步地,对于相似度较高的第一图像及第二图像,可以获取第一图像及第二图像的清晰度值;将清晰度值较高的图像,作为第四图像。Further, for the first image and the second image with higher similarity, the sharpness values of the first image and the second image may be acquired; and the image with higher sharpness value is used as the fourth image.

在本发明实施例中,通过双摄像头获取两个图像,对于能够拍摄得到完整试题内容的图像,两个图像基本一致,对于不能够拍摄得到完整试题内容的图像,两个图像只有一部分重叠,通过对两个图像进行合并,可以得到完整试题内容的图像,实现了可以完整地拍摄题干内容较多的试题,完整了保留了搜索的关键词,提高搜索效率及搜索精度。In the embodiment of the present invention, two images are acquired by dual cameras. For the images that can be photographed to obtain the complete test content, the two images are basically the same. For the images that cannot be photographed to obtain the complete test content, the two images are only partly overlapped. By merging the two images, an image of the complete content of the test questions can be obtained, which realizes that the test questions with more content can be completely photographed, and the search keywords are completely preserved, and the search efficiency and search accuracy are improved.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage Media such as ROM/RAM, magnetic disk, optical disk, etc.

实施例三:Embodiment three:

图3示出了本发明实施例三提供的用双摄像头搜索试题的装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。在本发明实施例中,用双摄像头搜索试题的装置包括:图像获取单元31、相似度计算单元32及第三图像搜索单元33,其中:FIG. 3 shows a schematic structural diagram of a device for searching test questions with dual cameras provided by Embodiment 3 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown. In the embodiment of the present invention, the device for searching test questions with dual cameras includes: an image acquisition unit 31, a similarity calculation unit 32 and a third image search unit 33, wherein:

图像获取单元31,用于分别获取第一图像及第二图像,该第一图像为由第一摄像头拍摄的图像,该第二图像为由第二摄像头拍摄的图像。The image acquiring unit 31 is configured to respectively acquire a first image and a second image, the first image is an image captured by the first camera, and the second image is an image captured by the second camera.

在本发明实施例中,在终端设备上设置两个摄像头,在用户遇到需要搜索试题时,通过两个摄像头对试题进行拍摄,两个摄像头在通过用户对拍摄参数进行调整,得到两张图像,分别为第一图像及第二图像,其中,第一图像为由第一摄像头拍摄的图像,该第二图像为由第二摄像头拍摄的图像。In the embodiment of the present invention, two cameras are set on the terminal device, and when the user needs to search for a test question, the two cameras shoot the test question, and the two cameras adjust the shooting parameters by the user to obtain two images , are respectively a first image and a second image, wherein the first image is an image captured by the first camera, and the second image is an image captured by the second camera.

相似度计算单元32,用于计算第一图像及第二图像的相似度。The similarity calculation unit 32 is configured to calculate the similarity between the first image and the second image.

在本发明实施例中,由于用户在拍摄时,会根据试题的题干长度,内容长短,对两个摄像头进行拍摄参数调整,因此,得到的第一图像及第二图像,可能相同或不相同或部分相同,对此,通过计算第一图像及第二图像的相似度,对两个图像进行对应处理。In the embodiment of the present invention, since the user will adjust the shooting parameters of the two cameras according to the length of the test question and the length of the content when shooting, the first image and the second image obtained may be the same or different Or they are partially the same. For this, by calculating the similarity between the first image and the second image, corresponding processing is performed on the two images.

第三图像搜索单元33,用于当相似度低于预设相似度时,将第一图像及第二图像进行第一合成操作,得到第三图像,并根据第三图像进行试题搜索。The third image search unit 33 is configured to perform a first synthesis operation on the first image and the second image to obtain a third image when the similarity is lower than the preset similarity, and to search for test questions based on the third image.

在本发明实施例中,当相似度低于预设相似度时,代表着两个图像不相同或者部分相同,这种情况说明所需搜索的试题题干内容较多,需要通过两个摄像头分别获取部分图像才能拍摄完整,对于相似度低于预设相似度的第一图像及第二图像,需要进行第一合成操作,得到第三图像,该第三图像包含完整的试题内容,以便于在搜索时提取完整的关键词,进行精确搜索。In the embodiment of the present invention, when the similarity is lower than the preset similarity, it means that the two images are not the same or partially the same. This situation shows that the content of the test questions to be searched is more, and it is necessary to use two cameras to Part of the image can only be taken completely. For the first image and the second image whose similarity is lower than the preset similarity, the first synthesis operation is required to obtain the third image. The third image contains the complete test content, so that it can be used in When searching, extract complete keywords and conduct precise searches.

进一步地,第三图像搜索单元33,包括:Further, the third image search unit 33 includes:

提取单元331,用于提取第一图像及第二图像相同部分及差异部分;An extracting unit 331, configured to extract the same part and the difference part between the first image and the second image;

第三图像处理单元332,用于将第一图像及第二图像相同部分进行合并,将第一图像及第二图像的差异部分进行拼接,得到第三图像。The third image processing unit 332 is configured to combine the same parts of the first image and the second image, and stitch the different parts of the first image and the second image to obtain a third image.

具体地,对于相似度低于预设相似度的第一图像及第二图像,代表着两个图像不相同或者部分相同,因此,需要提取第一图像及第二图像相同部分及差异部分,在存在相同部分时,将第一图像及第二图像相同部分进行合并,将第一图像及第二图像的差异部分进行拼接,得到第三图像。Specifically, for the first image and the second image whose similarity is lower than the preset similarity, it means that the two images are not the same or partially the same. Therefore, it is necessary to extract the same part and the difference part of the first image and the second image, and then When there are identical parts, the same parts of the first image and the second image are merged, and the difference parts of the first image and the second image are spliced to obtain a third image.

进一步地,第三图像搜索单元33,还包括:Further, the third image search unit 33 also includes:

内容识别单元333,用于识别出第三图像中的试题内容,根据试题内容在题库中进行试题搜索。The content identification unit 333 is configured to identify the content of the test questions in the third image, and search for the test questions in the question bank according to the content of the test questions.

具体地,识别出第三图像中的试题内容,该试题内容为试题题干的关键词,利用关键词在试题题库中进行试题搜索,不但能够缩短搜索时间、提高搜索效率,还能够提高搜索准确性。Specifically, identifying the content of the test question in the third image, the content of the test question is the keyword of the test question, and using the keyword to search the test question in the test question database can not only shorten the search time, improve the search efficiency, but also improve the accuracy of the search. sex.

在本发明实施例中,通过双摄像头获取两个图像,对于能够拍摄得到完整试题内容的图像,两个图像基本一致,对于不能够拍摄得到完整试题内容的图像,两个图像只有一部分重叠,通过对两个图像进行合并,可以得到完整试题内容的图像,实现了可以完整地拍摄题干内容较多的试题,完整了保留了搜索的关键词,提高搜索效率及搜索精度。In the embodiment of the present invention, two images are acquired by dual cameras. For the images that can be photographed to obtain the complete test content, the two images are basically the same. For the images that cannot be photographed to obtain the complete test content, the two images are only partly overlapped. By merging the two images, an image of the complete content of the test questions can be obtained, which realizes that the test questions with more content can be completely photographed, and the search keywords are completely preserved, and the search efficiency and search accuracy are improved.

实施例四:Embodiment four:

图4示出了本发明实施例四提供的用双摄像头搜索试题的装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。在本发明实施例中,用双摄像头搜索试题的装置包括:FIG. 4 shows a schematic structural diagram of a device for searching test questions with dual cameras provided in Embodiment 4 of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown. In an embodiment of the present invention, the device for searching test questions with dual cameras includes:

图像获取单元41,用于分别获取第一图像及第二图像,该第一图像为由第一摄像头拍摄的图像,该第二图像为由第二摄像头拍摄的图像。The image acquiring unit 41 is configured to respectively acquire a first image and a second image, the first image is an image captured by the first camera, and the second image is an image captured by the second camera.

相似度计算单元42,用于计算第一图像及第二图像的相似度。The similarity calculation unit 42 is configured to calculate the similarity between the first image and the second image.

第三图像搜索单元43,用于当相似度低于预设相似度时,将第一图像及第二图像进行第一合成操作,得到第三图像,并根据第三图像进行试题搜索。The third image search unit 43 is configured to perform a first synthesis operation on the first image and the second image to obtain a third image when the similarity is lower than the preset similarity, and to search for test questions based on the third image.

第四图像搜索单元44,用于当相似度超出预设相似度时,将第一图像及第二图像进行第二合成操作,得到第四图像,并根据第四图像进行试题搜索。The fourth image search unit 44 is configured to perform a second synthesis operation on the first image and the second image to obtain a fourth image when the similarity exceeds the preset similarity, and to search for test questions based on the fourth image.

在本发明实施例中,当相似度超出预设相似度时,说明第一图像及第二图像基本相同,为了得到质量较高的图像,可以对第一图像及第二图像进行第二合成操作,也就是将两个图像进行叠加合成一个图像,得到第四图像。In the embodiment of the present invention, when the similarity exceeds the preset similarity, it means that the first image and the second image are basically the same, and in order to obtain a higher quality image, the second composite operation can be performed on the first image and the second image , that is, two images are superimposed and synthesized into one image to obtain a fourth image.

进一步地,第四图像搜索单元44,包括:Further, the fourth image search unit 44 includes:

第四图像处理单元441,用于根据第一图像及第二图像计算位移矢量,并进行补偿,得到第四图像。The fourth image processing unit 441 is configured to calculate a displacement vector according to the first image and the second image, and perform compensation to obtain a fourth image.

具体地,为了进一步提高图像质量,尤其是在拍摄时存在抖动的情况,第一图像及第二图像的图像边缘存在位移矢量,通过计算位移矢量,再边缘进行补偿,可以得到质量较高的第四图像,从而提升了图像质量,有利于提高试题的搜索效率。Specifically, in order to further improve the image quality, especially when there is shaking during shooting, there are displacement vectors on the image edges of the first image and the second image. By calculating the displacement vectors and then compensating the edges, a higher quality second image can be obtained. Four images, thereby improving the image quality and helping to improve the search efficiency of test questions.

在本发明实施例中,用双摄像头搜索试题的装置各单元可由相应的硬件或软件单元实现,各单元可以为独立的软、硬件单元,也可以集成为一个软、硬件单元,在此不用以限制本发明。该装置各单元的实施方式具体可参考前述实施例一的描述,在此不再赘述。In the embodiment of the present invention, each unit of the device for searching test questions with dual cameras can be realized by corresponding hardware or software units, and each unit can be an independent software and hardware unit, or can be integrated into a software and hardware unit. limit the invention. For the implementation manner of each unit of the device, reference may be made to the description of the first embodiment above, and details are not repeated here.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。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)

CN201710269848.8A2017-04-242017-04-24Method and device for searching test questions by using double camerasPendingCN107273402A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710269848.8ACN107273402A (en)2017-04-242017-04-24Method and device for searching test questions by using double cameras

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710269848.8ACN107273402A (en)2017-04-242017-04-24Method and device for searching test questions by using double cameras

Publications (1)

Publication NumberPublication Date
CN107273402Atrue CN107273402A (en)2017-10-20

Family

ID=60073818

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710269848.8APendingCN107273402A (en)2017-04-242017-04-24Method and device for searching test questions by using double cameras

Country Status (1)

CountryLink
CN (1)CN107273402A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103916582A (en)*2013-01-072014-07-09华为技术有限公司Image processing method and device
CN106023073A (en)*2016-05-062016-10-12安徽伟合电子科技有限公司Image splicing system
CN106095998A (en)*2016-06-212016-11-09广东小天才科技有限公司Precise question searching method and device applied to intelligent terminal
CN106899781A (en)*2017-03-062017-06-27宇龙计算机通信科技(深圳)有限公司A kind of image processing method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103916582A (en)*2013-01-072014-07-09华为技术有限公司Image processing method and device
CN106023073A (en)*2016-05-062016-10-12安徽伟合电子科技有限公司Image splicing system
CN106095998A (en)*2016-06-212016-11-09广东小天才科技有限公司Precise question searching method and device applied to intelligent terminal
CN106899781A (en)*2017-03-062017-06-27宇龙计算机通信科技(深圳)有限公司A kind of image processing method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
柯友良: ""高等学校档案管理基础"", 《高等学校档案管理基础》*

Similar Documents

PublicationPublication DateTitle
US20240330372A1 (en)Visual Recognition Using User Tap Locations
CN108875492B (en) Face detection and key point location method, device, system and storage medium
JP2017518556A (en) Image display method and apparatus
CN110489951A (en)Method, apparatus, computer equipment and the storage medium of risk identification
CN105303161A (en) Method and device for taking pictures of multiple people
US20100331047A1 (en)Methods and apparatuses for facilitating generation and editing of multiframe images
US9805282B2 (en)Local feature descriptor extracting apparatus, method for extracting local feature descriptor, and program
JP2019520662A (en) Content-based search and retrieval of trademark images
JP6456031B2 (en) Image recognition apparatus, image recognition method, and program
JP2015504220A5 (en)
CN112257664B (en) Image fusion method, device, computer equipment and storage medium
CN105678778A (en)Image matching method and device
KR20110131949A (en) Image processing apparatus and method
CN110557556A (en)Multi-object shooting method and device
WO2017120794A1 (en)Image matching method and apparatus
CN103609098B (en) Method and apparatus for registering in a telepresence system
CN104573085B (en)Image search method, image retrieving apparatus and terminal
US10924637B2 (en)Playback method, playback device and computer-readable storage medium
KR20210036609A (en)Apparatus and method for processing image
US9286707B1 (en)Removing transient objects to synthesize an unobstructed image
CN105574155A (en) A photo search method and device
CN107273402A (en)Method and device for searching test questions by using double cameras
CN104573132A (en)Method and device for finding songs
CN110971781B (en)Image processing method, image processing device, storage medium and electronic equipment
US20230306564A1 (en)System and Methods for Photo In-painting of Unwanted Objects with Auxiliary Photos on Smartphone

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20171020


[8]ページ先頭

©2009-2025 Movatter.jp