CN111708903A - Method, device, electronic device and storage medium for time-consuming optimization of image search questions - Google Patents
Method, device, electronic device and storage medium for time-consuming optimization of image search questions Download PDFInfo
- Publication number
- CN111708903A CN111708903A CN202010554816.4A CN202010554816A CN111708903A CN 111708903 A CN111708903 A CN 111708903A CN 202010554816 A CN202010554816 A CN 202010554816A CN 111708903 A CN111708903 A CN 111708903A
- Authority
- CN
- China
- Prior art keywords
- rate
- compression
- target
- picture
- search
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
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/53—Querying
- G06F16/532—Query formulation, e.g. graphical querying
-
- 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/55—Clustering; Classification
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/60—Type of objects
- G06V20/62—Text, e.g. of license plates, overlay texts or captions on TV images
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明实施例涉及智能设备技术领域,公开了一种图片搜题耗时优化的方法、装置、电子设备和存储介质。该方法包括:获取目标图片;在接收到搜题指令时,获取所述目标图片所占内存的大小,在所述目标图片所占内存的大小大于或等于预设阈值时,对所述目标图片按照预定压缩率进行压缩,得到压缩图片;采用所述压缩图片进行搜题。实施本发明实施例,可以通过对图片进行压缩来降低图片的内存占有率,提高识别和搜题相应速度,提升用户体验。
Embodiments of the present invention relate to the technical field of intelligent devices, and disclose a method, an apparatus, an electronic device and a storage medium for time-consuming optimization of a picture search question. The method includes: obtaining a target picture; when receiving a question search instruction, obtaining the size of the memory occupied by the target picture, and when the size of the memory occupied by the target picture is greater than or equal to a preset threshold Compression is performed according to a predetermined compression rate to obtain a compressed picture; the question is searched by using the compressed picture. By implementing the embodiments of the present invention, the memory occupancy rate of the picture can be reduced by compressing the picture, the corresponding speed of recognition and question search can be improved, and the user experience can be improved.
Description
技术领域technical field
本发明涉及智能设备技术领域,具体涉及一种图片搜题耗时优化的方法、装置、电子设备和存储介质。The present invention relates to the technical field of intelligent devices, in particular to a method, device, electronic device and storage medium for time-consuming optimization of image search questions.
背景技术Background technique
当前很多电子教辅设备,大多具有点读场景,点读场景是指用户通过手指指向书本、练习册或试卷等承载体时,教辅设备会通过图像采集装置对承载体进行拍照,并识别手指的位置,从而根据手指位置确定用户意图,进而得到用户意图对应的图像,用于搜题等。搜题时,一般采用的方法是通过将图像通过OCR识别后,在资源库或者互联网中搜索OCR识别后文字相关的内容,例如,可以是搜答案、搜读音或语义等。当搜题使用的图像所占内存较大,识别和搜索响应速度较慢,影响用户体验的效果。Most of the current electronic teaching aids have point-to-read scenes. The point-to-read scene means that when a user points to a carrier such as a book, exercise book, or test paper with his finger, the teaching aid device will take a picture of the carrier through an image acquisition device, and recognize the finger. position, so as to determine the user's intention according to the finger position, and then obtain the image corresponding to the user's intention, which is used for searching questions, etc. When searching for a question, the general method is to search for the text-related content after the OCR recognition in the resource library or the Internet after the image is recognized by OCR. When the image used in the search question occupies a large amount of memory, the recognition and search response speed is slow, which affects the effect of user experience.
发明内容SUMMARY OF THE INVENTION
针对所述缺陷,本发明实施例公开了一种图片搜题耗时优化的方法、装置、电子设备和存储介质,其可以压缩目标图片的内存占有率,提升搜题相应速度。In view of the above-mentioned defects, the embodiments of the present invention disclose a method, device, electronic device and storage medium for optimizing the time-consuming of image search, which can compress the memory occupancy rate of the target image and improve the corresponding speed of search.
本发明实施例第一方面公开一种图片搜题耗时优化的方法,所述方法包括:A first aspect of the embodiments of the present invention discloses a time-consuming optimization method for image search questions, and the method includes:
获取目标图片;Get the target image;
在接收到搜题指令时,获取所述目标图片所占内存的大小,在所述目标图片所占内存的大小大于或等于预设阈值时,对所述目标图片按照预定压缩率进行压缩,得到压缩图片;When the question search instruction is received, the size of the memory occupied by the target picture is obtained, and when the size of the memory occupied by the target picture is greater than or equal to a preset threshold, the target picture is compressed according to a predetermined compression rate, and the result is obtained Compress image;
采用所述压缩图片进行搜题。Use the compressed picture to search for questions.
作为一种可选的实施方式,在本发明实施例第一方面中,在所述获取目标图片之前,还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, before the acquisition of the target picture, the method further includes:
通过训练样本集根据预定搜题正确率确定预定压缩率。The predetermined compression rate is determined according to the correct rate of the predetermined search questions through the training sample set.
作为一种可选的实施方式,在本发明实施例第一方面中,所述通过训练样本集根据预定搜题正确率确定预定压缩率,包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the predetermined compression rate is determined according to the predetermined search question accuracy rate through the training sample set, including:
对训练样本集中每个样本均通过不同压缩率进行压缩,得到压缩样本;Each sample in the training sample set is compressed with different compression rates to obtain compressed samples;
确定每个压缩率下压缩样本的文字识别率;Determine the text recognition rate of the compressed samples at each compression rate;
在所述文字识别率等于文字识别率阈值时,确定所述预定压缩率,所述预定压缩率为等于文字识别率阈值的压缩样本对应的压缩率。When the character recognition rate is equal to the character recognition rate threshold, the predetermined compression rate is determined, and the predetermined compression rate is a compression rate corresponding to a compressed sample equal to the character recognition rate threshold.
作为一种可选的实施方式,在本发明实施例第一方面中,所述文字识别率阈值确定的方法,包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method for determining the character recognition rate threshold includes:
构建文字识别率和搜题准确率的线性函数;Construct a linear function of text recognition rate and search accuracy rate;
根据预设搜题准确率以及所述线性函数确定文字识别率阈值。The character recognition rate threshold is determined according to the preset search question accuracy rate and the linear function.
作为一种可选的实施方式,在本发明实施例第一方面中,在所述文字识别率等于文字识别率阈值时,确定所述预定压缩率,包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, when the character recognition rate is equal to the character recognition rate threshold, determining the predetermined compression rate includes:
确定每个压缩样本的文字识别率等于文字识别率阈值时的目标压缩率;Determine the target compression rate when the text recognition rate of each compressed sample is equal to the text recognition rate threshold;
对所有目标压缩率进行聚类,并确定目标聚类集合,所述目标聚类集合为聚类中数量最大的目标压缩率的集合;All target compression ratios are clustered, and a target cluster set is determined, and the target cluster set is the set of the largest target compression ratios in the clusters;
获取目标聚类集合中所有目标压缩率的平均值,并将所述平均值作为预定压缩率。The average value of all target compression ratios in the target cluster set is obtained, and the average value is used as the predetermined compression ratio.
作为一种可选的实施方式,在本发明实施例第一方面中,采用所述压缩图片进行搜题,包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, using the compressed picture to search for questions includes:
对所述压缩图片进行OCR识别,得到文字识别信息;Perform OCR recognition on the compressed image to obtain text recognition information;
利用所述文字识别信息在资源库或互联网中按照搜题指令进行搜索,得到搜题结果。Using the character recognition information, the resource database or the Internet is searched according to the search instruction, and the search result is obtained.
作为一种可选的实施方式,在本发明实施例第一方面中,所述预定压缩率包括尺寸压缩率或/和质量压缩率。As an optional implementation manner, in the first aspect of the embodiment of the present invention, the predetermined compression ratio includes a size compression ratio or/and a quality compression ratio.
本发明实施例第二方面公开一种图片搜题耗时优化的装置,所述装置包括:A second aspect of the embodiments of the present invention discloses an apparatus for optimizing time-consuming image search questions, and the apparatus includes:
获取单元,用于获取目标图片;an acquisition unit, used to acquire the target image;
压缩单元,用于在接收到搜题指令时,获取所述目标图片所占内存的大小,在所述目标图片所占内存的大小大于或等于预设阈值时,对所述目标图片按照预定压缩率进行压缩,得到压缩图片;The compression unit is used to obtain the size of the memory occupied by the target picture when receiving the question search instruction, and when the size of the memory occupied by the target picture is greater than or equal to a preset threshold, compress the target picture according to a predetermined Compression rate to obtain a compressed image;
搜题单元,用于采用所述压缩图片进行搜题。A question searching unit, used for searching questions by using the compressed picture.
作为一种可选的实施方式,在本发明实施例第二方面中,所述装置,还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the device further includes:
训练单元,用于通过训练样本集根据预定搜题正确率确定预定压缩率。The training unit is used to determine the predetermined compression rate according to the correct rate of the predetermined search question through the training sample set.
作为一种可选的实施方式,在本发明实施例第二方面中,所述训练单元,包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the training unit includes:
模型构建子单元,用于对训练样本集中每个样本均通过不同压缩率进行压缩,得到压缩样本;The model building subunit is used to compress each sample in the training sample set with different compression rates to obtain compressed samples;
识别率确定子单元,用于确定每个压缩率下压缩样本的文字识别率;The recognition rate determination subunit is used to determine the text recognition rate of the compressed samples under each compression rate;
压缩率确定子单元,用于在所述文字识别率等于文字识别率阈值时,确定所述预定压缩率,所述预定压缩率为等于文字识别率阈值的压缩样本对应的压缩率。The compression rate determination subunit is configured to determine the predetermined compression rate when the character recognition rate is equal to the character recognition rate threshold, the predetermined compression rate being the compression rate corresponding to the compressed samples equal to the character recognition rate threshold.
作为一种可选的实施方式,在本发明实施例第二方面中,所述识别率确定子单元,包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the recognition rate determination subunit includes:
第一孙单元,用于构建文字识别率和搜题准确率的线性函数;The first grandson unit is used to construct a linear function of text recognition rate and search accuracy rate;
第二孙单元,用于根据预设搜题准确率以及所述线性函数确定文字识别率阈值。The second grandchild unit is configured to determine the character recognition rate threshold according to the preset search question accuracy rate and the linear function.
作为一种可选的实施方式,在本发明实施例第二方面中,所述压缩率确定子单元,包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the compression ratio determination subunit includes:
第三孙单元,用于确定每个压缩样本的文字识别率等于文字识别率阈值时的目标压缩率;The third grandchild unit is used to determine the target compression rate when the character recognition rate of each compressed sample is equal to the character recognition rate threshold;
第四孙单元,用于对所有目标压缩率进行聚类,并确定目标聚类集合,所述目标聚类集合为聚类中数量最大的目标压缩率的集合;The fourth grandchild unit is used for clustering all target compression ratios, and determines a target cluster set, which is the set of the largest target compression ratios in the cluster;
第五孙单元,用于获取目标聚类集合中所有目标压缩率的平均值,并将所述平均值作为预定压缩率。The fifth grandchild unit is used to obtain the average value of all target compression ratios in the target cluster set, and use the average value as the predetermined compression ratio.
作为一种可选的实施方式,在本发明实施例第二方面中,所述搜题单元,包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the question search unit includes:
识别子单元,用于对所述压缩图片进行OCR识别,得到文字识别信息;an identification subunit, used to perform OCR identification on the compressed picture to obtain text identification information;
搜索子单元,用于利用所述文字识别信息在资源库或互联网中按照搜题指令进行搜索,得到搜题结果。The search subunit is used to search the resource library or the Internet according to the search instruction by using the character identification information, and obtain the search result.
本发明实施例第三方面公开一种电子设备,包括:存储有可执行程序代码的存储器;与所述存储器耦合的处理器;所述处理器调用所述存储器中存储的所述可执行程序代码,用于执行本发明实施例第一方面公开的一种图片搜题耗时优化的方法的部分或全部步骤。A third aspect of the embodiments of the present invention discloses an electronic device, comprising: a memory storing executable program codes; a processor coupled to the memory; the processor calling the executable program codes stored in the memory , which is used to execute part or all of the steps of the method for time-consuming optimization of a picture search question disclosed in the first aspect of the embodiments of the present invention.
本发明实施例第四方面公开一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序使得计算机执行本发明实施例第一方面公开的一种图片搜题耗时优化的方法的部分或全部步骤。A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium, which stores a computer program, wherein the computer program enables a computer to execute the method for time-consuming optimization of a picture search question disclosed in the first aspect of the embodiments of the present invention some or all of the steps.
本发明实施例第五方面公开一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行本发明实施例第一方面公开的一种图片搜题耗时优化的方法的部分或全部步骤。A fifth aspect of the embodiments of the present invention discloses a computer program product that, when the computer program product runs on a computer, causes the computer to execute the method for optimizing time-consuming image search questions disclosed in the first aspect of the embodiments of the present invention some or all of the steps.
本发明实施例第六方面公开一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行本发明实施例第一方面公开的一种图片搜题耗时优化的方法的部分或全部步骤。A sixth aspect of the embodiments of the present invention discloses an application publishing platform, and the application publishing platform is used for publishing a computer program product, wherein when the computer program product runs on a computer, the computer is made to execute the first embodiment of the present invention. In one aspect, part or all of the steps of a method for time-consuming optimization of image search questions are disclosed.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
本发明实施例中,获取目标图片;在接收到搜题指令时,获取所述目标图片所占内存的大小,在所述目标图片所占内存的大小大于或等于预设阈值时,对所述目标图片按照预定压缩率进行压缩,得到压缩图片;采用所述压缩图片进行搜题。可见,实施本发明实施例,可以通过对图片进行压缩来降低图片的内存占有率,提高识别和搜题相应速度,提升用户体验。In the embodiment of the present invention, a target picture is obtained; when a question search instruction is received, the size of the memory occupied by the target picture is obtained, and when the size of the memory occupied by the target picture is greater than or equal to a preset threshold, the size of the memory occupied by the target picture is obtained. The target picture is compressed according to a predetermined compression rate to obtain a compressed picture; the question is searched by using the compressed picture. It can be seen that, by implementing the embodiments of the present invention, the memory occupancy rate of the picture can be reduced by compressing the picture, the corresponding speed of identification and question search can be improved, and the user experience can be improved.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明实施例公开的一种图片搜题耗时优化的方法的流程示意图;1 is a schematic flowchart of a method for time-consuming optimization of picture search questions disclosed in an embodiment of the present invention;
图2为本发明实施例公开的另一种图片搜题耗时优化的方法的流程示意图;2 is a schematic flowchart of another method for time-consuming optimization of picture search questions disclosed in an embodiment of the present invention;
图3为本发明实施例公开的一种图片搜题耗时优化的装置的结构示意图;3 is a schematic structural diagram of a device for optimizing time-consuming image search questions disclosed in an embodiment of the present invention;
图4为本发明实施例公开的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书中的术语“第一”、“第二”、“第三”、“第四”等是用于区别不同的对象,而不是用于描述特定顺序。本发明实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,示例性地,包含了一系列步骤或单元的过程、方法、装置、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", "third", "fourth", etc. in the description and claims of the present invention are used to distinguish different objects, rather than to describe specific order. The terms "comprising" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusion, for example, a process, method, apparatus, product or device comprising a series of steps or units is not necessarily limited to Those steps or elements that are expressly listed may instead include other steps or elements that are not expressly listed or are inherent to the process, method, product or apparatus.
本发明实施例公开了一种图片搜题耗时优化的方法、装置、电子设备和存储介质,可以通过对图片进行压缩来降低图片的内存占有率,提高识别和搜题相应速度,提升用户体验,以下结合附图进行详细描述。The embodiments of the present invention disclose a method, device, electronic device and storage medium for time-consuming optimization of picture search questions, which can reduce the memory occupancy rate of pictures by compressing pictures, improve the corresponding speed of identification and question search, and improve user experience , which will be described in detail below with reference to the accompanying drawings.
实施例一Example 1
请参阅图1,图1是本发明实施例公开的一种图片搜题耗时优化的方法的流程示意图。如图1所示,该图片搜题耗时优化的方法包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for optimizing time-consuming image search questions disclosed in an embodiment of the present invention. As shown in Figure 1, the time-consuming optimization method for the image search question includes the following steps:
110、获取目标图片。110. Obtain a target image.
目标图片为根据用户意图确定的图像。示例性地,在点读场景下,用户通过手触承载体并触发相应的拍照指令,由图像采集装置对承载体的拍照,进而识别用户意图。识别用户意图可以通过神经网络算法实现,例如根据PSENet算法识别文本行,再根据肤色分割算法确定指尖坐标,从而确定指尖坐标所在的文本行或题目行,并根据指尖坐标所在的文本行或题目行对拍照图像进行分割,得到目标图片。The target image is an image determined according to the user's intention. Exemplarily, in the point-and-read scenario, the user touches the carrier with his hand and triggers a corresponding photographing instruction, and the carrier is photographed by the image capture device, thereby identifying the user's intention. Recognizing user intent can be achieved through neural network algorithms, such as identifying text lines according to the PSENet algorithm, and then determining the fingertip coordinates according to the skin color segmentation algorithm, so as to determine the text line or topic line where the fingertip coordinates are located, and according to the text line where the fingertip coordinates are located. Or the subject line is used to segment the photographed image to obtain the target image.
触发拍照的指令有多种,示例性地,可以通过语音方式实现,例如“请拍照”或者“这个词怎么读(这个词什么意思)”等,其中,前一个语音方式仅触发拍照操作,后续用户意图需要新的指令,后一个语音方式是通过搜题指令触发拍照指令。还可以通过按键(例如机械按键或触控按键)触发相应的拍照指令,也可以在电子设备(主要指家教机、学习机以及点读机等教辅设备)在进入点读场景例如点读app下触发拍照指令。There are various instructions for triggering a photo, which can be exemplarily implemented by voice, such as "please take a photo" or "how to pronounce this word (what does this word mean)", etc., where the former voice mode only triggers the photo-taking operation, and the subsequent User intent requires a new command, and the latter voice method is to trigger a photographing command through a question search command. It is also possible to trigger the corresponding photographing command by pressing a button (such as a mechanical button or a touch button), or you can enter a reading scene on an electronic device (mainly refers to teaching aids such as tutoring machines, learning machines, and reading machines), such as a reading app. Trigger the camera command.
承载体为纸质的书本、练习册、作业本或试卷等。图像采集装置为执行拍照功能的器件,其可以集成于电子设备上,例如通过电子设备的前置摄像头对放置于电子设备前的承载体进行拍照,也可以是分立器件,通过有线或无线方式与电子设备建立通讯连接,执行电子设备发送的拍照指令,并将拍照得到的图像发送给电子设备。The carrier is a paper book, exercise book, workbook or test paper, etc. The image acquisition device is a device that performs a photographing function, and it can be integrated on the electronic device, for example, the carrier placed in front of the electronic device can be photographed through the front camera of the electronic device, or it can be a discrete device, which can be connected with the electronic device through wired or wireless means. The electronic device establishes a communication connection, executes the photographing instruction sent by the electronic device, and sends the image obtained by photographing to the electronic device.
120、在接收到搜题指令时,获取所述目标图片所占内存的大小,在所述目标图片所占内存的大小大于或等于预设阈值时,对所述目标图片按照预定压缩率进行压缩,得到压缩图片。120. When receiving a question search instruction, obtain the size of the memory occupied by the target picture, and compress the target picture according to a predetermined compression rate when the size of the memory occupied by the target picture is greater than or equal to a preset threshold. , to get the compressed image.
搜题指令为用户意图操作,搜题指令可以是搜答案,例如“这道题怎么解”,也可以是搜读音,例如“这个词怎么读”,或者搜解释,例如“这个词是什么意思”,还可以是搜近义词或反义词,例如“这个词的近义词(反义词)是什么”等。The search instruction is the user's intention operation. The search instruction can be a search answer, such as "how to solve this question", or it can be a pronunciation search, such as "how to pronounce this word", or a search explanation, such as "what does this word mean? ", can also search for synonyms or antonyms, such as "what is the synonym (antonym) of this word" and so on.
因为搜题过程中,目标图片占有一定的内存大小,当目标图片占用内存较大时,就会影响设备的响应速度,从而影响识别和搜题的相应速度。在本发明实施例中,根据目标图片所占内存的大小确定是否对目标图像进行压缩。Because the target picture occupies a certain amount of memory during the question search process, when the target picture occupies a large amount of memory, it will affect the response speed of the device, thereby affecting the corresponding speed of identification and question search. In the embodiment of the present invention, whether to compress the target image is determined according to the size of the memory occupied by the target image.
预设阈值可以根据搜题指令的类型,对于搜题指令为搜读音、解释、近义词或反义词等时,预设阈值可以设置相对小一些,以快速响应,提升用户体验。对于搜答案等时,预设阈值可以相对设置大一些,一方面搜答案时一般针对计算题较多,所以目标图片本身较大,压缩和识别本身就花费较多的时间;另一方面,搜答案时,用户对搜索时间有一定的承受范围,而且也给用户留有一定的思考时间。The preset threshold can be set according to the type of the question search instruction. When the question search instruction is to search pronunciation, explanation, synonyms or antonyms, etc., the preset threshold can be set to be relatively small, so as to respond quickly and improve the user experience. When searching for answers, etc., the preset threshold can be set relatively large. On the one hand, when searching for answers, there are generally many calculation questions, so the target image itself is large, and compression and identification itself take more time; When answering, the user has a certain tolerance for the search time, and also leaves a certain time for the user to think.
根据需要设置预定压缩率,预定压缩率可以与文字识别率相结合,即可以根据预设文字识别率,在对目标图片进行相应的压缩后确定的文字识别率与设定的预设文字识别率相当时,则可以认为该压缩时对应的压缩率为预定压缩率。文字识别率为将压缩后的压缩图片进行文字识别,文字识别得到的字符数与目标图片本身的字符数的比值即文字识别率。如果需要提升搜题速度,而对搜题准确性要求不是太高时,可以适当降低预设文字识别率,即提高预定压缩率,反之,如果要求搜题准确性较高,对搜题速度要求一般时,可以适当提升预设文字识别率,即降低预定压缩率。The predetermined compression rate can be set as required, and the predetermined compression rate can be combined with the text recognition rate, that is, according to the preset text recognition rate, the text recognition rate determined after corresponding compression of the target image and the preset text recognition rate set When they are equivalent, it can be considered that the corresponding compression ratio during the compression is a predetermined compression ratio. The text recognition rate is the text recognition rate of the compressed compressed image, and the ratio of the number of characters obtained by text recognition to the number of characters of the target image itself is the text recognition rate. If the search speed needs to be improved, and the accuracy of the search is not too high, the preset text recognition rate can be appropriately reduced, that is, the predetermined compression rate can be increased. On the contrary, if the search accuracy is required to be high, the search speed is required. Generally, the preset character recognition rate can be appropriately increased, that is, the predetermined compression rate can be decreased.
130、采用所述压缩图片进行搜题。130. Use the compressed picture to search for a question.
对于未进行压缩的目标图片,执行搜题指令时,仍以原始的目标图片进行搜题,对于压缩的目标图片,执行搜题指令时,以压缩图片进行搜题。For the uncompressed target picture, when executing the question search command, the question is still searched with the original target picture, and for the compressed target picture, when executing the question search command, the question is searched with the compressed picture.
搜题方法与现有技术类似,即先对图片(原始的目标图片或压缩图片)进行OCR识别,确定识别后的文本识别信息即文本内容,然后基于文本内容和搜索指令在资源库或互联网中搜索相应的内容。The search method is similar to the prior art, that is, first perform OCR identification on the picture (original target picture or compressed picture), determine the text identification information after identification, that is, the text content, and then use the text content and search instructions in the resource library or the Internet. Search for the appropriate content.
资源库可以是事先创建的基于不同的科目、年级或者其他的数据库,根据需要创建。搜索相应的内容是各级搜题指令确定,可以是语音(搜索怎么读时)、答案(搜索怎么做时)或者字符(搜索近义词或反义词时)等。Repositories can be pre-created based on different subjects, grades or other databases, created as needed. The content corresponding to the search is determined by the search instructions at all levels, which can be voice (when searching for how to read), answer (when searching for how to do), or characters (when searching for synonyms or antonyms).
实施本发明实施例,可以通过对图片进行压缩来降低图片的内存占有率,提高识别和搜题相应速度,提升用户体验。By implementing the embodiments of the present invention, the memory occupancy rate of the picture can be reduced by compressing the picture, the corresponding speed of recognition and question search can be improved, and the user experience can be improved.
实施例二Embodiment 2
请参阅图2,图2是本发明实施例公开的另一种图片搜题耗时优化的方法的流程示意图。如图2所示,该图片搜题耗时优化的方法包括以下步骤:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another method for optimizing time-consuming image search questions disclosed in an embodiment of the present invention. As shown in Figure 2, the time-consuming optimization method for the image search question includes the following steps:
210、获取目标图片。210. Obtain a target image.
220、在接收到搜题指令时,获取所述目标图片所占内存的大小,在所述目标图片所占内存的大小大于或等于预设阈值时,对所述目标图片按照预定压缩率进行压缩,得到压缩图片。220. When receiving a question search instruction, obtain the size of the memory occupied by the target picture, and compress the target picture according to a predetermined compression rate when the size of the memory occupied by the target picture is greater than or equal to a preset threshold. , to get the compressed image.
230、采用所述压缩图片进行搜题。230. Use the compressed picture to search for a question.
步骤210和230可以与实施例一步骤110和130相同,这里不再赘述。
步骤220中,搜题指令为用户意图操作,搜题指令可以是搜答案,例如“这道题怎么解”,也可以是搜读音,例如“这个词怎么读”,或者搜解释,例如“这个词是什么意思”,还可以是搜近义词或反义词,例如“这个词的近义词(反义词)是什么”等。In
因为搜题过程中,目标图片占有一定的内存大小,当目标图片占用内存较大时,就会影响设备的响应速度,从而影响识别和搜题的相应速度。在本发明实施例中,根据目标图片所占内存的大小确定是否对目标图像进行压缩。Because the target picture occupies a certain amount of memory during the question search process, when the target picture occupies a large amount of memory, it will affect the response speed of the device, thereby affecting the corresponding speed of identification and question search. In the embodiment of the present invention, whether to compress the target image is determined according to the size of the memory occupied by the target image.
预设阈值可以根据搜题指令的类型,对于搜题指令为搜读音、解释、近义词或反义词等时,预设阈值可以设置相对小一些,以快速响应,提升用户体验。对于搜答案等时,预设阈值可以相对设置大一些,一方面搜答案时一般针对计算题较多,所以目标图片本身较大,压缩和识别本身就花费较多的时间;另一方面,搜答案时,用户对搜索时间有一定的承受范围,而且也给用户留有一定的思考时间。The preset threshold can be set according to the type of the question search instruction. When the question search instruction is to search pronunciation, explanation, synonyms or antonyms, etc., the preset threshold can be set to be relatively small, so as to respond quickly and improve the user experience. When searching for answers, etc., the preset threshold can be set relatively large. On the one hand, when searching for answers, there are generally many calculation questions, so the target image itself is large, and compression and identification itself take more time; When answering, the user has a certain tolerance for the search time, and also leaves a certain time for the user to think.
预定压缩率是根据预先训练得到,预定压缩率包括尺寸压缩率和/或质量压缩率,通过训练模型将二者相结合,得到压缩模型,对压缩模型进行训练,确定尺寸压缩率和质量压缩率的值。The predetermined compression rate is obtained according to pre-training, and the predetermined compression rate includes the size compression rate and/or the quality compression rate. The two are combined through the training model to obtain a compression model, and the compression model is trained to determine the size compression rate and quality compression rate. value of .
尺寸压缩会改变图片的尺寸,即压缩图片宽度和高度的像素点,主要用于减少图片所占内存大小。而质量压缩是在保持像素前提下改变图片的位深及透明度等来压缩图片的,主要用于减少图片的存储大小。在本发明实施例中,由于主要降低目标图片的内存占有率,因此,在获取预定压缩率时,可以将尺寸压缩率的比重设置相对较大一些,例如P=0.95P1+0.05P2;其中,P为预定压缩率,P1和P2分别为尺寸压缩率和质量压缩率。Size compression will change the size of the image, that is, compress the pixels of the width and height of the image, which is mainly used to reduce the memory size of the image. The quality compression is to change the bit depth and transparency of the picture under the premise of maintaining the pixels to compress the picture, which is mainly used to reduce the storage size of the picture. In the embodiment of the present invention, since the memory occupancy rate of the target picture is mainly reduced, when obtaining the predetermined compression rate, the proportion of the size compression rate can be set to be relatively larger, for example, P=0.95P 1 +0.05P 2 ; Among them, P is the predetermined compression ratio, and P1 and P2 are the size compression ratio and the quality compression ratio , respectively.
压缩模型可以依据现有的压缩算法例如Luban图像压缩算法,或者现有的质量压缩算法例如MediaStore.Images.Media.getBitmap或者BitmapFactory.decodeStream以及现有的尺寸压缩算法例如BitmapFactory.decodeFile进行结合,通过预设权重得到压缩模型。当然,也可以根据上述预定压缩率的公式通过有限次试验确定尺寸压缩率和质量压缩率。The compression model can be combined with existing compression algorithms such as Luban image compression algorithm, or existing quality compression algorithms such as MediaStore.Images.Media.getBitmap or BitmapFactory.decodeStream and existing size compression algorithms such as BitmapFactory.decodeFile. Set the weights to get the compressed model. Of course, the dimensional compression ratio and the mass compression ratio can also be determined through a limited number of experiments according to the above-mentioned formula for the predetermined compression ratio.
通过训练样本集对压缩模型进行训练,根据预定搜题正确率确定预定压缩率。具体地,其可以包括以下步骤:The compression model is trained through the training sample set, and the predetermined compression rate is determined according to the correct rate of the predetermined search questions. Specifically, it may include the following steps:
221、对训练样本集中每个样本均通过不同压缩率进行压缩,得到压缩样本。221. Compress each sample in the training sample set through different compression rates to obtain compressed samples.
将每个样本均输入压缩模型,通过实现设定的不同采样率(针对尺寸压缩率)和质量压缩比例(在本发明实施例中,设定质量压缩比例为1-(压缩图像和原始图像的质量比例),例如质量压缩比例为10%,则压缩图像的质量为原始图像质量的90%)的组合确定压缩样本,如果采用离线的压缩率,可以为每个样本设置不少于20个的不同压缩率,如果采用连续的压缩率,则可以对连续的压缩率进行采样,以使每个样本确定不少于20个不同的采样点。Each sample is input into the compression model, and by implementing the set different sampling rates (for size compression ratios) and quality compression ratios (in this embodiment of the present invention, the quality compression ratio is set to 1-(the difference between the compressed image and the original image). quality ratio), for example, if the quality compression ratio is 10%, the quality of the compressed image is 90% of the original image quality) to determine the compression samples. If the offline compression ratio is used, no less than 20 samples can be set for each sample. For different compression ratios, if continuous compression ratios are used, the continuous compression ratios may be sampled so that each sample determines not less than 20 different sampling points.
222、确定每个压缩率下压缩样本的文字识别率。222. Determine the character recognition rate of the compressed sample under each compression rate.
文字识别率是指压缩样本输入OCR识别模型中得到的字符数量与压缩样本实际的字符总数量的比值。Character recognition rate refers to the ratio of the number of characters obtained in the compressed sample input OCR recognition model to the actual total number of characters in the compressed sample.
223、在所述文字识别率等于文字识别率阈值时,确定所述预定压缩率,所述预定压缩率为等于文字识别率阈值的压缩样本对应的压缩率。223. When the character recognition rate is equal to the character recognition rate threshold, determine the predetermined compression rate, where the predetermined compression rate corresponds to the compression rate of the compressed samples equal to the character recognition rate threshold.
理论上,图像压缩率越大,文字识别率就越低,搜题的准确率就越低。因此,可以通过搜题准确率来确定图像压缩率,寻求搜题准确率和图像压缩率的平衡点。可以通过多次试验方式构建文字识别率和搜题准确率的线性函数,线性函数可以通过最小二乘法进行拟合,线性函数可以分段式进行,根据具体的识别率和准确率对应的坐标系中点的位置设置分段式线性函数。对于搜题准确率,用户一般会有一定的预期,根据不同的搜题类型确定,对于搜题指令为搜读音、解释、近义词或反义词等时,搜题准确率一般较高,对于搜答案等,可以允许一定的容错率,搜题准确率可以设置低一些。从而可以根据预设搜题准确率以及构建的线性函数确定文字识别率阈值,再根据文字识别率阈值确定预定压缩率。Theoretically, the greater the image compression rate, the lower the text recognition rate and the lower the accuracy of search questions. Therefore, the image compression rate can be determined by the search question accuracy rate, and a balance point between the search question accuracy rate and the image compression rate can be sought. The linear function of the text recognition rate and the search question accuracy rate can be constructed through multiple experiments. The linear function can be fitted by the least squares method, and the linear function can be performed piecewise. According to the coordinate system corresponding to the specific recognition rate and accuracy rate The location of the midpoint sets the piecewise linear function. Users generally have certain expectations about the accuracy of search questions, which are determined according to different types of search questions. When the search questions are searched for pronunciation, explanation, synonyms or antonyms, etc., the search accuracy rate is generally higher, and for search answers, etc. , a certain error tolerance rate can be allowed, and the search question accuracy rate can be set lower. Therefore, the threshold of the text recognition rate can be determined according to the preset search question accuracy rate and the constructed linear function, and then the predetermined compression rate can be determined according to the threshold of the text recognition rate.
文字识别率阈值可以是一个范围,确定每个压缩样本的文字识别率等于文字识别率阈值时的目标压缩率,即是确定的目标压缩率进行文字识别,识别出的字符数是目标图片中总的字符数的比例在文字识别率阈值的范围内。The text recognition rate threshold can be a range. Determine the target compression rate when the text recognition rate of each compressed sample is equal to the text recognition rate threshold, that is, the determined target compression rate for text recognition, and the number of recognized characters is the total number of characters in the target image. The proportion of the number of characters is within the range of the character recognition rate threshold.
可以通过数学期望(平均值)的方式确定预定压缩率,即将所有目标压缩率进行求平均,然后将平均值作为预定压缩率。在压缩模型存在一定的误差的前提下,还可以通过聚类方式对该误差进行消除,先对所有目标压缩率进行聚类,确定每个聚类集合中目标压缩率数量。所谓的聚类,是将某个目标压缩率±预设值范围内的所有目标压缩率作为一个聚类,形成聚类集合。从这些聚类集合中找出聚类中数量最多的目标压缩率的集合,记为目标聚类集合,将目标聚类集合中所有的目标压缩率求平均值,并将平均值作为预定压缩率。The predetermined compression ratio can be determined by mathematical expectation (average value), that is, all target compression ratios are averaged, and then the average value is taken as the predetermined compression ratio. Under the premise that there is a certain error in the compression model, the error can also be eliminated by clustering. First, all target compression rates are clustered to determine the number of target compression rates in each cluster set. The so-called clustering is to take all target compression ratios within a range of a certain target compression ratio ± a preset value as a cluster to form a cluster set. Find the set of target compression ratios with the largest number of clusters from these cluster sets, record it as the target cluster set, calculate the average of all target compression ratios in the target cluster set, and use the average value as the predetermined compression ratio .
实施本发明实施例,可以通过对图片进行压缩来降低图片的内存占有率,提高识别和搜题相应速度,提升用户体验。By implementing the embodiments of the present invention, the memory occupancy rate of the picture can be reduced by compressing the picture, the corresponding speed of recognition and question search can be improved, and the user experience can be improved.
实施例三Embodiment 3
请参阅图3,图3是本发明实施例公开的一种图片搜题耗时优化的装置的结构示意图。如图3所示,该图片搜题耗时优化的装置可以包括:Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of an apparatus for optimizing time-consuming image search questions according to an embodiment of the present invention. As shown in Figure 3, the device for optimizing the time-consuming image search question may include:
获取单元320,用于获取目标图片;an obtaining
压缩单元330,用于在接收到搜题指令时,获取所述目标图片所占内存的大小,在所述目标图片所占内存的大小大于或等于预设阈值时,对所述目标图片按照预定压缩率进行压缩,得到压缩图片;The compressing
搜题单元340,用于采用所述压缩图片进行搜题。The
作为一种可选的实施方式,所述装置,还包括:As an optional implementation manner, the device further includes:
训练单元310,用于通过训练样本集根据预定搜题正确率确定预定压缩率。The
作为一种可选的实施方式,所述训练单元310,包括:As an optional implementation manner, the
模型构建子单元311,用于对训练样本集中每个样本均通过不同压缩率进行压缩,得到压缩样本;The
识别率确定子单元312,用于确定每个压缩率下压缩样本的文字识别率;The recognition
压缩率确定子单元313,用于在所述文字识别率等于文字识别率阈值时,确定所述预定压缩率,所述预定压缩率为等于文字识别率阈值的压缩样本对应的压缩率。The compression
作为一种可选的实施方式,所述识别率确定子单元312,包括:As an optional implementation manner, the recognition
第一孙单元3121,用于构建文字识别率和搜题准确率的线性函数;The
第二孙单元3122,用于根据预设搜题准确率以及所述线性函数确定文字识别率阈值。The
作为一种可选的实施方式,所述压缩率确定子单元313,包括:As an optional implementation manner, the compression
第三孙单元3131,用于确定每个压缩样本的文字识别率等于文字识别率阈值时的目标压缩率;The
第四孙单元3132,用于对所有目标压缩率进行聚类,并确定目标聚类集合,所述目标聚类集合为聚类中数量最大的目标压缩率的集合;The
第五孙单元3133,用于获取目标聚类集合中所有目标压缩率的平均值,并将所述平均值作为预定压缩率。The
作为一种可选的实施方式,所述搜题单元340,包括:As an optional implementation manner, the
识别子单元341,用于对所述压缩图片进行OCR识别,得到文字识别信息;The
搜索子单元342,用于利用所述文字识别信息在资源库或互联网中按照搜题指令进行搜索,得到搜题结果。The
图3所示的图片搜题耗时优化的装置,可以通过对图片进行压缩来降低图片的内存占有率,提高识别和搜题相应速度,提升用户体验。As shown in FIG. 3 , the device for optimizing the time-consuming of searching questions for pictures can reduce the memory occupancy rate of the pictures by compressing the pictures, improve the corresponding speed of recognition and question searching, and improve the user experience.
实施例四Embodiment 4
请参阅图4,图4是本发明实施例公开的一种电子设备的结构示意图。如图4所示,该电子设备可以包括:Please refer to FIG. 4 , which is a schematic structural diagram of an electronic device disclosed in an embodiment of the present invention. As shown in Figure 4, the electronic device may include:
存储有可执行程序代码的存储器410;a
与存储器410耦合的处理器420;a
其中,处理器420调用存储器410中存储的可执行程序代码,执行实施例一中图片搜题耗时优化的方法中的部分或全部步骤。Wherein, the
本发明实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序使得计算机执行实施例一中图片搜题耗时优化的方法中的部分或全部步骤。An embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program, wherein the computer program causes a computer to execute some or all of the steps in the method for time-consuming optimization of a picture search question in the first embodiment.
本发明实施例还公开一种计算机程序产品,其中,当计算机程序产品在计算机上运行时,使得计算机执行实施例一中图片搜题耗时优化的方法中的部分或全部步骤。The embodiment of the present invention also discloses a computer program product, wherein when the computer program product runs on the computer, the computer is made to execute some or all of the steps in the method for time-consuming optimization of image search in the first embodiment.
本发明实施例还公开一种应用发布平台,其中,应用发布平台用于发布计算机程序产品,其中,当计算机程序产品在计算机上运行时,使得计算机执行实施例一中图片搜题耗时优化的方法中的部分或全部步骤。The embodiment of the present invention also discloses an application publishing platform, wherein the application publishing platform is used for publishing a computer program product, wherein, when the computer program product runs on a computer, the computer is made to execute the time-consuming optimization of image search in the first embodiment. some or all of the steps in the method.
在本发明的各种实施例中,应理解,所述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In various embodiments of the present invention, it should be understood that the size of the sequence numbers of the described procedures does not imply a necessary order of execution, and the execution order of each procedure should be determined by its functions and internal logic, and does not deal with the present invention. The implementation of the embodiments constitutes no limitation.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be object units, and may be located in one place or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本发明的各个实施例所述方法的部分或全部步骤。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-accessible memory. Based on such understanding, the technical solution of the present invention, in essence, 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 memory , including several requests to cause a computer device (which may be a personal computer, a server, or a network device, etc., specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of the present invention.
在本发明所提供的实施例中,应理解,“与A对应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其他信息确定B。In the embodiments provided by the present invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean that B is only determined according to A, and B may also be determined according to A and/or other information.
本领域普通技术人员可以理解所述实施例的各种方法中的部分或全部步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art can understand that some or all of the steps in the various methods of the embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes only Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read-Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), CD-ROM ( CompactDisc Read-Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
以上对本发明实施例公开的一种图片搜题耗时优化的方法、装置、电子设备和存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A method, device, electronic device, and storage medium for time-consuming optimization of picture search questions disclosed in the embodiments of the present invention have been described above in detail. In this paper, specific examples are used to illustrate the principles and implementations of the present invention. The description of the example is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific embodiment and the scope of application. As stated, the contents of this specification should not be construed as limiting the present invention.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010554816.4A CN111708903A (en) | 2020-06-17 | 2020-06-17 | Method, device, electronic device and storage medium for time-consuming optimization of image search questions |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010554816.4A CN111708903A (en) | 2020-06-17 | 2020-06-17 | Method, device, electronic device and storage medium for time-consuming optimization of image search questions |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111708903A true CN111708903A (en) | 2020-09-25 |
Family
ID=72540967
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010554816.4A Pending CN111708903A (en) | 2020-06-17 | 2020-06-17 | Method, device, electronic device and storage medium for time-consuming optimization of image search questions |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111708903A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105426479A (en) * | 2015-11-19 | 2016-03-23 | 广东小天才科技有限公司 | Method and system for rapidly searching for questions through pictures |
| CN105787868A (en) * | 2016-02-18 | 2016-07-20 | 北京金山安全软件有限公司 | Picture compression method and device and electronic equipment |
| WO2019068167A1 (en) * | 2017-10-05 | 2019-04-11 | Applications Mobiles Overview Inc. | Method for object recognition |
| CN109670497A (en) * | 2018-09-26 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Picture upload method, device, equipment and readable storage medium storing program for executing |
| CN109815199A (en) * | 2018-12-14 | 2019-05-28 | 深圳壹账通智能科技有限公司 | A kind of choosing method and device of picture compression algorithm |
-
2020
- 2020-06-17 CN CN202010554816.4A patent/CN111708903A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105426479A (en) * | 2015-11-19 | 2016-03-23 | 广东小天才科技有限公司 | Method and system for rapidly searching for questions through pictures |
| CN105787868A (en) * | 2016-02-18 | 2016-07-20 | 北京金山安全软件有限公司 | Picture compression method and device and electronic equipment |
| WO2019068167A1 (en) * | 2017-10-05 | 2019-04-11 | Applications Mobiles Overview Inc. | Method for object recognition |
| CN109670497A (en) * | 2018-09-26 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Picture upload method, device, equipment and readable storage medium storing program for executing |
| CN109815199A (en) * | 2018-12-14 | 2019-05-28 | 深圳壹账通智能科技有限公司 | A kind of choosing method and device of picture compression algorithm |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102106462B1 (en) | Method for filtering similar problem based on weight | |
| CN114547274B (en) | Multi-turn question and answer method, device and equipment | |
| WO2024000867A1 (en) | Emotion recognition method and apparatus, device, and storage medium | |
| CN112035687B (en) | Method, device, electronic device and storage medium for publishing multimedia content | |
| CN116738250A (en) | Prompt text expansion methods, devices, electronic devices and storage media | |
| CN105912717A (en) | Image-based information searching method and device | |
| CN111753120B (en) | Question searching method and device, electronic equipment and storage medium | |
| CN106776760B (en) | Method and device for searching questions applied to intelligent terminal | |
| WO2024131398A1 (en) | Voice interaction method and apparatus, and storage medium | |
| CN111581367A (en) | A method and system for title entry | |
| CN113569112A (en) | Tutoring strategy providing method, system, device and medium based on question | |
| CN111986259A (en) | Training method of character and face detection model, auditing method of video data and related device | |
| CN109635214B (en) | Learning resource pushing method and electronic equipment | |
| CN111767424B (en) | Image processing method, image processing device, electronic equipment and computer storage medium | |
| CN110737687A (en) | Data query method, device, equipment and storage medium | |
| CN109885727A (en) | Data pushing method, device, electronic equipment and system | |
| CN111931510A (en) | Intention identification method and device based on neural network and terminal equipment | |
| CN111091034B (en) | Question searching method and tutoring equipment based on multi-finger recognition | |
| CN111026786B (en) | Dictation list generation method and home education equipment | |
| CN111753715A (en) | Method, device, electronic device and storage medium for shooting test questions in a reading scene | |
| CN112069335A (en) | Image classification method and device, electronic equipment and storage medium | |
| CN116434253A (en) | Image processing method, device, equipment, storage medium and product | |
| CN120163166A (en) | Interaction optimization method, system, device and storage medium based on sentiment analysis | |
| CN111708903A (en) | Method, device, electronic device and storage medium for time-consuming optimization of image search questions | |
| WO2024149183A1 (en) | Document display method and apparatus, and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200925 |
|
| RJ01 | Rejection of invention patent application after publication |