Movatterモバイル変換


[0]ホーム

URL:


CN113835598A - Information acquisition method, device and electronic device - Google Patents

Information acquisition method, device and electronic device
Download PDF

Info

Publication number
CN113835598A
CN113835598ACN202111034064.XACN202111034064ACN113835598ACN 113835598 ACN113835598 ACN 113835598ACN 202111034064 ACN202111034064 ACN 202111034064ACN 113835598 ACN113835598 ACN 113835598A
Authority
CN
China
Prior art keywords
information
image
target information
target
feature
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
CN202111034064.XA
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co LtdfiledCriticalVivo Mobile Communication Hangzhou Co Ltd
Priority to CN202111034064.XApriorityCriticalpatent/CN113835598A/en
Publication of CN113835598ApublicationCriticalpatent/CN113835598A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种信息获取方法、装置及电子设备,属于图像处理技术领域。其中,信息获取方法,包括:获取第一图像;基于目标信息特征,对所述第一图像进行信息提取,得到第一目标信息;其中,所述第一目标信息为所述第一图像中的部分信息。

Figure 202111034064

The present application discloses an information acquisition method, device and electronic device, which belong to the technical field of image processing. Wherein, the information acquisition method includes: acquiring a first image; extracting information from the first image based on target information features to obtain first target information; wherein, the first target information is the first target information in the first image. partial information.

Figure 202111034064

Description

Translated fromChinese
信息获取方法、装置及电子设备Information acquisition method, device and electronic device

技术领域technical field

本申请属于图像处理技术领域,具体涉及一种信息获取方法、装置及电子设备。The present application belongs to the technical field of image processing, and in particular relates to an information acquisition method, device and electronic device.

背景技术Background technique

随着电子设备的普及,用户使用电子设备进行拍摄的场景越来越多,例如用户使用手机拍摄老师讲述的幻灯片(PowerPoint,PPT)或单词(word)文档等课件。With the popularization of electronic devices, there are more and more scenes where users use electronic devices to shoot, for example, users use mobile phones to shoot courseware such as slides (PowerPoint, PPT) or word documents described by teachers.

现有技术中,用户使用电子设备对PPT、word文档等课件进行拍照后,需要进入相册对拍摄的图像手动进行裁切处理,才能得到想要的内容。In the prior art, after a user uses an electronic device to take pictures of courseware such as PPT and word documents, it is necessary to enter an album to manually cut the captured image to obtain the desired content.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种信息获取方法、装置及电子设备,能够解决现有技术中为了获取想要的图像内容,需要手动对图像进行裁切处理,操作繁琐且费时的问题。The purpose of the embodiments of the present application is to provide an information acquisition method, device, and electronic device, which can solve the problem in the prior art that in order to acquire desired image content, the image needs to be manually cropped, which is cumbersome and time-consuming.

第一方面,本申请实施例提供了一种信息获取方法,该方法包括:In a first aspect, an embodiment of the present application provides an information acquisition method, the method comprising:

获取第一图像;get the first image;

基于目标信息特征,对所述第一图像进行信息提取,得到第一目标信息;Based on the target information feature, information extraction is performed on the first image to obtain first target information;

其中,所述第一目标信息为所述第一图像中的部分信息。Wherein, the first target information is part of the information in the first image.

第二方面,本申请实施例提供了一种信息获取装置,该装置包括:In a second aspect, an embodiment of the present application provides an information acquisition device, the device comprising:

第一获取模块,用于获取第一图像;a first acquisition module, configured to acquire a first image;

第一提取模块,用于基于目标信息特征,对所述第一图像进行信息提取,得到第一目标信息;a first extraction module, configured to perform information extraction on the first image based on the target information feature to obtain first target information;

其中,所述第一目标信息为所述第一图像中的部分信息。Wherein, the first target information is part of the information in the first image.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法的步骤。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the steps of the method.

第六方面,本申请实施例提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如第一方面所述的方法的步骤。In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the method according to the first aspect when the computer program is executed by a processor.

在本申请实施例中,通过获取第一图像,并基于目标信息特征对第一图像进行信息提取,能够根据目标信息特征,自动提取到第一图像中用户需要的部分信息,方便用户查阅、存储特定内容的文件。In the embodiment of the present application, by acquiring the first image and extracting information from the first image based on the target information features, part of the information required by the user in the first image can be automatically extracted according to the target information features, which is convenient for the user to consult and store file with specific content.

附图说明Description of drawings

图1是本申请实施例提供的信息获取方法的流程示意图之一;Fig. 1 is one of the schematic flow charts of the information acquisition method provided by the embodiment of the present application;

图2是本申请实施例提供的信息获取方法的流程示意图之二;Fig. 2 is the second schematic flow chart of the information acquisition method provided by the embodiment of the present application;

图3是本申请实施例提供的信息获取方法的流程示意图之三;Fig. 3 is the third schematic flow chart of the information acquisition method provided by the embodiment of the present application;

图4是本申请实施例提供的信息获取方法的流程示意图之四;4 is the fourth schematic flowchart of the information acquisition method provided by the embodiment of the present application;

图5是本申请实施例提供的信息获取方法的流程示意图之五;Fig. 5 is the fifth schematic flowchart of the information acquisition method provided by the embodiment of the present application;

图6是本申请实施例提供的信息获取方法的流程示意图之六;Fig. 6 is the sixth schematic flow chart of the information acquisition method provided by the embodiment of the present application;

图7是本申请实施例提供的信息获取方法的场景图之一;FIG. 7 is one of the scene diagrams of the information acquisition method provided by the embodiment of the present application;

图8是本申请实施例提供的信息获取方法的场景图之二;FIG. 8 is the second scene diagram of the information acquisition method provided by the embodiment of the present application;

图9是本申请实施例提供的信息获取方法的场景图之三;FIG. 9 is the third scene diagram of the information acquisition method provided by the embodiment of the present application;

图10是本申请实施例提供的信息获取方法的场景图之四;FIG. 10 is the fourth scene diagram of the information acquisition method provided by the embodiment of the present application;

图11是本申请实施例提供的信息获取方法的场景图之五;FIG. 11 is the fifth scene diagram of the information acquisition method provided by the embodiment of the present application;

图12是本申请实施例提供的信息获取方法的场景图之六;12 is the sixth scene diagram of the information acquisition method provided by the embodiment of the present application;

图13是本申请实施例提供的信息获取方法的场景图之七;FIG. 13 is the seventh scene diagram of the information acquisition method provided by the embodiment of the present application;

图14是本申请实施例提供的信息获取方法的场景图之八;FIG. 14 is the eighth scene diagram of the information acquisition method provided by the embodiment of the present application;

图15是本申请实施例提供的信息获取方法的流程示意图之七;FIG. 15 is the seventh schematic flowchart of the information acquisition method provided by the embodiment of the present application;

图16是本申请实施例提供的信息获取方法的场景图之九;FIG. 16 is the ninth scene diagram of the information acquisition method provided by the embodiment of the present application;

图17是本申请实施例提供的信息获取方法的场景图之十;FIG. 17 is a tenth scene diagram of the information acquisition method provided by the embodiment of the present application;

图18是本申请实施例提供的信息获取方法的场景图之十一;FIG. 18 is the eleventh scene diagram of the information acquisition method provided by the embodiment of the present application;

图19是本申请实施例提供的信息获取方法的场景图之十二;FIG. 19 is the twelfth scene diagram of the information acquisition method provided by the embodiment of the present application;

图20是本申请实施例提供的信息获取方法的场景图之十三;FIG. 20 is the thirteenth scene diagram of the information acquisition method provided by the embodiment of the present application;

图21是本申请实施例提供的信息获取装置的结构示意图;21 is a schematic structural diagram of an information acquisition apparatus provided by an embodiment of the present application;

图22是本申请实施例提供的电子设备的结构示意图;22 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图23为实现本申请实施例的电子设备的硬件结构示意图。FIG. 23 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的信息获取进行详细地说明。The information acquisition provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.

为了解决现有技术中存在的技术问题,本申请实施例提供一种信息获取方法,该方法通过获取第一图像,并基于目标信息特征对第一图像进行信息提取,能够根据目标信息特征,自动提取到第一图像中用户需要的部分信息,方便用户查阅、存储特定内容的文件,解决了现有技术存在的操作繁琐且费时的问题。In order to solve the technical problems existing in the prior art, an embodiment of the present application provides an information acquisition method. The method obtains a first image and performs information extraction on the first image based on the target information features, and can automatically Part of the information required by the user in the first image is extracted, which facilitates the user to consult and store files with specific content, and solves the problems of complicated and time-consuming operations in the prior art.

本申请实施例提供的信息获取方法至少适用于以下两个应用场景:The information acquisition method provided by the embodiment of the present application is applicable to at least the following two application scenarios:

应用场景一:老师在电脑或投影屏幕上讲述PPT、word等电子文档,并通过特殊标记提示了重点内容,电子文档中包括文字和/或图像,重点内容可以是文字和/或局部图像;用户在使用手机等电子设备拍摄老师讲述的电子文档时,只想获取重点内容。对于应用场景一,本申请实施例基于用户指示对电子文档的当前页面进行拍摄,及基于特殊标记进行图像识别,获取识别出的电子文档的重点内容,使得用户可以直接查看当前页面的重点内容。Application Scenario 1: The teacher narrates electronic documents such as PPT and word on the computer or projection screen, and reminds the key content through special marks. The electronic document includes text and/or images, and the key content can be text and/or partial images; user When using electronic devices such as mobile phones to shoot electronic documents described by teachers, I only want to get the key content. For application scenario 1, the embodiment of the present application shoots the current page of the electronic document based on the user's instruction, and performs image recognition based on special marks to obtain the identified key content of the electronic document, so that the user can directly view the key content of the current page.

应用场景二:老师或领导审批用户提交的PPT、word或打印件等文档,并对需要修改的地方使用记号进行标记及增加一些批注;文档内容包括文字和/或图像;用户在使用手机等电子设备拍摄老师或领导反馈的文档时,只想获取带特殊标记的内容。对于应用场景二,本申请实施例基于用户指示对PPT、word或打印件等文档的当前页面进行拍摄,及基于特殊标记进行图像识别,获取识别出的当前页面中需要修改的地方,使得用户可以直接查看当前页面中需要修改的地方。Application Scenario 2: Teachers or leaders approve documents such as PPT, word, or printouts submitted by users, and mark the places that need to be modified and add some comments; the content of the document includes text and/or images; the user is using electronic devices such as mobile phones. When the device captures a document that is fed back by a teacher or leader, it only wants to get the content with a special mark. For the second application scenario, the embodiment of the present application shoots the current page of a document such as PPT, word, or print based on the user's instruction, and performs image recognition based on special marks to obtain the identified parts of the current page that need to be modified, so that the user can Directly view the places that need to be modified in the current page.

对于上述应用场景,本申请实施例在电子设备上的相机应用中增加一种“扫描模式”,“扫描模式”对应的应用界面可以称为“扫描界面”,及在相机应用的控件中增加一个控制控件,可以称为“扫描”键。“扫描模式”是指在“扫描模式”被选中(激活)时,用户可以对“扫描”键进行至少一次的选择操作;每当接收到用户进行一次对“扫描”键的选择操作时,电子设备就会执行一次如下操作:调用摄像头实时抓取(即拍摄)相机当前的扫描对象的预览图像,并基于预设的信息特征对预览图像进行图像识别,获取并缓存识别出的扫描对象中的特定信息。当“扫描模式”被终止(结束)时,电子设备累计完成了对至少一个扫描对象的特定信息分别进行提取,此时将缓存中的各个扫描对象的特定信息保存成一个文档,方便用户集中查阅各个扫描对象的特定信息。For the above application scenarios, the embodiment of the present application adds a "scanning mode" to the camera application on the electronic device, and the application interface corresponding to the "scanning mode" may be called a "scanning interface", and adds a "scanning interface" to the controls of the camera application. Control controls, which can be called "scan" keys. "Scanning mode" means that when the "scanning mode" is selected (activated), the user can select the "scanning" key at least once; The device will perform the following operations once: call the camera to capture (ie shoot) the preview image of the current scanning object of the camera in real time, and perform image recognition on the preview image based on the preset information characteristics, and obtain and cache the identified scanning objects. specific information. When the "scanning mode" is terminated (end), the electronic device has completed the cumulative extraction of the specific information of at least one scanned object, and at this time, the specific information of each scanned object in the cache is saved as a document, which is convenient for users to centrally refer to Information specific to each scanned object.

图1是本申请实施例提供的信息获取方法的流程示意图之一,如图1所示,该方法包括:FIG. 1 is one of the schematic flowcharts of the information acquisition method provided by the embodiment of the present application. As shown in FIG. 1 , the method includes:

步骤101,获取第一图像。Step 101, acquiring a first image.

可选地,第一图像可以是通过拍摄得到的图像,也可以是缓存的预览图像。以第一图像为通过拍摄得到的为例:接收用户的第三输入;其中,第三输入可以为用户的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。第三输入还可以为用户对电子设备上相机应用的目标控件的点击操作、按压操作或触摸操作等。响应于第三输入,拍摄得到第一图像。可选地,第一图像可以为显示对象的当前页面(例如第1页),显示对象包括黑板、白板、幻灯片投影(如PPT、word等电子文档)或纸质打印件等。Optionally, the first image may be an image obtained by shooting, or may be a cached preview image. Taking the first image obtained by shooting as an example: receiving the third input of the user; wherein, the third input may be a click input of the user, or a voice command input by the user, or a specific gesture input by the user. It is determined according to actual usage requirements, which is not limited in this embodiment of the present application. The specific gesture in the embodiment of the present application may be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture; in the embodiment of the present application The click input can be single-click input, double-click input, or click input for any number of times, etc., and can also be long-press input or short-press input. The third input may also be a click operation, a press operation, or a touch operation of the user on the target control of the camera application on the electronic device. A first image is captured in response to the third input. Optionally, the first image may be the current page (eg, page 1) of the display object, and the display object includes a blackboard, a whiteboard, a slide projection (eg, an electronic document such as PPT and word) or a paper print.

步骤102,基于目标信息特征,对第一图像进行信息提取,得到第一目标信息;其中,第一目标信息为第一图像中的部分信息。Step 102 , based on the target information feature, perform information extraction on the first image to obtain first target information; wherein, the first target information is part of the information in the first image.

可选地,目标信息特征可以包括以下至少一项:字符特征、图像特征;其中,所述字符特征可以包括以下至少一项:文字标记特征、文字属性特征、文字类型特征。可选地,文字标记包括:下划线、底纹等;文字属性特征包括:字体、文字大小、文字加粗、文字是否倾斜等;文字类型特征包括:数字、汉字、符号、英文、链接等。图像特征可以包括以下至少一项:图像尺寸特征、图像背景特征、图像前景特征。可选地,图像尺寸特征包括:长宽比特征等;长宽比特征指特定比例的图像,例如长宽比为4:3的图像。图像背景特征包括:水印、边框等;图像前景特征包括:二维码等。可选地,所述目标信息特征可以采用默认值,也可以由用户根据自身需求和实际场景进行选择。Optionally, the target information feature may include at least one of the following: character feature, image feature; wherein, the character feature may include at least one of the following: character mark feature, character attribute feature, and character type feature. Optionally, the text mark includes: underline, shading, etc.; text attribute features include: font, text size, text bold, whether the text is oblique, etc.; text type features include: numbers, Chinese characters, symbols, English, links, and the like. The image features may include at least one of the following: image size features, image background features, and image foreground features. Optionally, the image size feature includes: aspect ratio feature, etc. The aspect ratio feature refers to an image with a specific ratio, for example, an image with an aspect ratio of 4:3. Image background features include: watermark, frame, etc.; image foreground features include: two-dimensional code and so on. Optionally, the target information feature may adopt a default value, or may be selected by the user according to their own needs and actual scenarios.

本申请实施例提供的信息获取方法,通过获取第一图像,并基于目标信息特征对第一图像进行信息提取得到第一目标信息,第一目标信息为第一图像中的部分信息,能够根据目标信息特征,自动提取到第一图像中用户需要的部分信息,方便用户查阅、存储特定内容的文件。In the information acquisition method provided by the embodiment of the present application, the first target information is obtained by acquiring a first image and performing information extraction on the first image based on the characteristics of the target information. The first target information is part of the information in the first image, and can be The information feature automatically extracts part of the information required by the user in the first image, so as to facilitate the user to consult and store files with specific content.

可选地,获取第一图像之后,基于目标信息特征对所述第一图像进行图像识别,识别出所述第一图像的内容中与所述目标信息特征匹配的第一目标信息。可选地,当用户对“扫描”键进行一次选择操作时,通过执行步骤101-102即可获取扫描对象中的特定信息,将该次扫描对象中的特定信息进行缓存;由于在“扫描模式”被选中(激活)时,用户可以多次对“扫描”键进行选择操作,这样就会获取并缓存多个不同扫描对象中的特定信息;当“扫描模式”被终止(结束)时,将缓存中的各个扫描对象的特定信息保存成一个文档进行存储,方便用户查阅各个扫描对象的特定信息。需要说明的是,通过将单次获取的扫描对象中的特定信息进行缓存,能够提高信息存取速度,减少内存占用。Optionally, after the first image is acquired, image recognition is performed on the first image based on the target information feature, and first target information matching the target information feature in the content of the first image is identified. Optionally, when the user performs a selection operation on the "scan" key, specific information in the scanned object can be obtained by executing steps 101-102, and the specific information in the scanned object is cached; ” is selected (activated), the user can select the “Scan” key multiple times, which will acquire and cache specific information in multiple different scan objects; when the “Scan Mode” is terminated (end), the The specific information of each scanning object in the cache is saved as a document for storage, which is convenient for the user to check the specific information of each scanning object. It should be noted that, by caching the specific information in the scanned object acquired once, the information access speed can be improved and the memory occupation can be reduced.

图2是本申请实施例提供的信息获取方法的流程示意图之二,如图2所示,该方法包括:FIG. 2 is a second schematic flowchart of the information acquisition method provided by the embodiment of the present application. As shown in FIG. 2 , the method includes:

步骤201,接收用户的第一输入。Step 201, receiving a first input from a user.

可选地,第一输入可以为用户的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。第三输入还可以为用户对电子设备上相机应用的用户界面边缘弹出页签窗口中包括的目标信息特征选项的点击操作、按压操作或触摸操作。目标信息特征选项包括字符特征和/或图像特征对应的选项;所述字符特征可以包括以下至少一项:文字标记特征、文字属性特征、文字类型特征;所述图像特征可以包括以下至少一项:图像尺寸特征、图像背景特征、图像前景特征。Optionally, the first input may be a user's click input, or a voice command input by the user, or a specific gesture input by the user, which may be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present application. The specific gesture in the embodiment of the present application may be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture; in the embodiment of the present application The click input can be single-click input, double-click input, or click input for any number of times, etc., and can also be long-press input or short-press input. The third input may also be a click operation, a press operation or a touch operation by the user on the target information feature option included in the pop-up tab window at the edge of the user interface of the camera application on the electronic device. The target information feature options include options corresponding to character features and/or image features; the character features may include at least one of the following: character mark features, character attribute features, and character type features; the image features may include at least one of the following: Image size feature, image background feature, image foreground feature.

步骤202,响应于第一输入,确定目标信息特征;其中,所述目标信息特征包括以下至少一项:字符特征、图像特征;所述第一目标信息包括以下至少一项:文字信息、图像信息。Step 202, in response to the first input, determine the target information feature; wherein, the target information feature includes at least one of the following: character feature, image feature; the first target information includes at least one of the following: text information, image information .

可选地,步骤201-202记载了确定目标信息特征的实现方式,用户可以基于自身需求和实际场景对目标信息特征的具体种类进行选择。Optionally, steps 201-202 describe the implementation manner of determining the target information feature, and the user can select the specific type of the target information feature based on their own needs and actual scenarios.

步骤203,获取第一图像。Step 203, acquiring a first image.

步骤204,基于目标信息特征,对第一图像进行信息提取,得到第一目标信息;其中,第一目标信息为第一图像中的部分信息。Step 204 , based on the target information feature, perform information extraction on the first image to obtain first target information; wherein, the first target information is part of the information in the first image.

可选地,关于步骤203-204的说明和解释,可以参照上述步骤101-102,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, for the description and explanation of steps 203-204, reference may be made to the above-mentioned steps 101-102, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

本申请实施例提供的信息获取方法,通过按照用户自身需求和实际场景对目标信息特征的具体种类进行选择,在此基础上基于用户指示对第一扫描对象进行拍摄,能够根据目标信息特征自动提取到第一扫描对象中用户需要的特定内容,方便用户查阅、存储特定内容的文件。The information acquisition method provided by the embodiment of the present application selects the specific types of target information features according to the user's own needs and the actual scene, and on this basis, the first scanning object is photographed based on the user's instruction, and can be automatically extracted according to the target information features. To the specific content required by the user in the first scanning object, it is convenient for the user to consult and store files of the specific content.

可选地,图1所示的信息获取方法的步骤102的实现方式可以包括以下至少一种方式:Optionally, an implementation manner ofstep 102 of the information acquisition method shown in FIG. 1 may include at least one of the following manners:

方式1:在目标信息特征为所述字符特征的情况下,对所述第一图像中具有所述字符特征的文字信息进行提取,得到所述第一目标信息。Mode 1: When the target information feature is the character feature, extract text information having the character feature in the first image to obtain the first target information.

可选地,在目标信息特征为字符特征的情况下,采用光学字符识别(OpticalCharacter Recognition,OCR)技术对第一图像中所有的文字信息进行识别,并输出文字形式的识别到的文字信息;然后对识别到的文字信息中具有字符特征的文字信息进行提取,将提取的具有字符特征的文字信息作为第一目标信息。Optionally, in the case that the target information feature is a character feature, adopting Optical Character Recognition (OpticalCharacter Recognition, OCR) technology to identify all the text information in the first image, and output the recognized text information in the form of text; then Extracting text information with character features from the recognized text information, and using the extracted text information with character features as first target information.

方式2:在目标信息特征为所述图像特征的情况下,对所述第一图像中具有所述图像特征的图像信息进行提取,得到所述第一目标信息。Mode 2: In the case where the target information feature is the image feature, extract the image information having the image feature in the first image to obtain the first target information.

可选地,在目标信息特征为所述图像特征的情况下,采用图像识别技术对第一图像进行图像识别,识别出第一图像中具有所述图像特征的区域图像,截取识别到的区域图像,将截取的区域图像作为第一目标信息。Optionally, in the case where the target information feature is the image feature, image recognition is performed on the first image by using an image recognition technology, an area image with the image feature in the first image is identified, and the identified area image is intercepted. , taking the intercepted area image as the first target information.

可选地,在目标信息特征同时包括字符特征和图像特征的情况下,通过对第一图像中的文字信息进行识别,获取具有字符特征的特定文字信息,及截取第一图像中具有图像特征的区域图像作为特定图像,此时,第一目标信息包括特定文字信息和特定图像。Optionally, when the target information features include both character features and image features, by identifying the text information in the first image, specific text information with character features is obtained, and the first image has image features. The area image is used as a specific image, and at this time, the first target information includes specific text information and a specific image.

图3是本申请实施例提供的信息获取方法的流程示意图之三,如图3所示,该方法包括:FIG. 3 is a third schematic flowchart of the information acquisition method provided by the embodiment of the present application. As shown in FIG. 3 , the method includes:

步骤301,获取第一图像。Step 301, acquiring a first image.

步骤302,基于目标信息特征,对第一图像进行信息提取,得到第一目标信息;其中,第一目标信息为第一图像中的部分信息。Step 302 , based on the target information feature, perform information extraction on the first image to obtain first target information; wherein, the first target information is part of the information in the first image.

可选地,关于步骤301-302的说明和解释,可以参照上述步骤101-102,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, for the description and explanation of steps 301-302, reference may be made to the above-mentioned steps 101-102, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

步骤303,在拍摄预览界面显示第一目标信息。Step 303, displaying the first target information on the shooting preview interface.

可选地,在电子设备的拍摄预览界面显示从第一图像中提取到的第一目标信息,用户可以实时查看和核对所提取的信息。Optionally, the first target information extracted from the first image is displayed on the shooting preview interface of the electronic device, and the user can view and check the extracted information in real time.

相比于现有技术中先拍照然后识别时额外弹出一个显示窗口以显示结果的方案,本申请实施例提供的信息获取方法在拍摄预览界面显示第一目标信息,方案实现简单。Compared with the prior art solution in which an additional display window is popped up to display the result when taking a picture and then recognizing, the information acquisition method provided by the embodiment of the present application displays the first target information on the shooting preview interface, and the solution is simple to implement.

步骤304,在接收到用户对第一目标信息的第二输入的情况下,响应于第二输入,更新第一目标信息的信息内容。Step 304, in the case of receiving the second input of the first target information by the user, in response to the second input, update the information content of the first target information.

可选地,第二输入可以为用户对预览界面的点击操作,也可以为用户对预览界面上目标控件的点击操作,目标控件可以为“编辑”控件。可选地,更新第一目标信息的信息内容可以包括:对第一目标信息的信息内容进行编辑和排版等。Optionally, the second input may be a user's click operation on the preview interface, or may be a user's click operation on a target control on the preview interface, and the target control may be an "edit" control. Optionally, updating the information content of the first target information may include: editing and typesetting the information content of the first target information.

可选地,在用户需要对在预览界面内显示的第一目标信息进行修改的情况下,用户可以通过第二输入,对预览界面内显示的第一目标信息进行手动修改。Optionally, when the user needs to modify the first target information displayed in the preview interface, the user can manually modify the first target information displayed in the preview interface through the second input.

本申请实施例提供的信息获取方法,根据目标信息特征,自动提取第一图像中的第一目标信息,并在拍摄预览界面进行显示,用户也可更新第一目标信息的信息内容,方便用户实时查看和核对,能够提高识别结果的可靠性。The information acquisition method provided by the embodiment of the present application automatically extracts the first target information in the first image according to the characteristics of the target information, and displays it on the shooting preview interface. The user can also update the information content of the first target information, which is convenient for the user to real-time Viewing and checking can improve the reliability of the recognition results.

可选地,本申请实施例在提供基于步骤303实现在拍摄预览界面显示第一目标信息的方案之后,还提供用于取消显示第一目标信息的手动取消显示方式或自动取消显示方式,具体地:Optionally, after providing the solution for displaying the first target information on the shooting preview interface based onstep 303, the embodiment of the present application also provides a manual cancellation display mode or an automatic cancellation display mode for canceling the display of the first target information, specifically :

手动取消显示方式为:接收用户的第四输入,响应于所述第四输入,在拍摄预览界面上取消显示第一目标信息。可选地,第四输入可以为用户对拍摄预览界面的双击操作,也可以为用户对拍摄预览界面上特定控件的点击操作,特定控件可以为“关闭”控件。The way of manually canceling the display is: receiving a fourth input from the user, and in response to the fourth input, canceling the display of the first target information on the shooting preview interface. Optionally, the fourth input may be the user's double-click operation on the shooting preview interface, or may be the user's clicking operation on a specific control on the shooting preview interface, and the specific control may be a "close" control.

自动取消显示方式为:在拍摄预览界面上显示第一目标信息的显示时长到达目标时长的情况下,在拍摄预览界面上取消显示第一目标信息。可选地,在拍摄预览界面上显示第一目标信息时开始计时,在显示时长到达目标时长的情况下,自动取消显示第一目标信息。The method of automatically canceling the display is as follows: when the display duration for displaying the first target information on the shooting preview interface reaches the target duration, the display of the first target information is cancelled on the shooting preview interface. Optionally, timing is started when the first target information is displayed on the shooting preview interface, and when the display duration reaches the target duration, the display of the first target information is automatically canceled.

本申请实施例提供的信息获取方法,通过提供两种取消显示方式,以及时取消显示第一目标信息,提高应用界面的显示效率。The information acquisition method provided by the embodiment of the present application can cancel the display of the first target information in time by providing two ways of canceling the display, thereby improving the display efficiency of the application interface.

图4是本申请实施例提供的信息获取方法的流程示意图之四,如图4所示,该方法包括:FIG. 4 is a fourth schematic flowchart of an information acquisition method provided by an embodiment of the present application. As shown in FIG. 4 , the method includes:

步骤401,获取第一图像。Step 401, acquiring a first image.

步骤402,基于目标信息特征,对第一图像进行信息提取,得到第一目标信息;其中,第一目标信息为第一图像中的部分信息。Step 402 , based on the target information feature, perform information extraction on the first image to obtain first target information; wherein, the first target information is part of the information in the first image.

可选地,关于步骤401-402的说明和解释,可以参照上述步骤101-102,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, for the description and explanation of steps 401-402, reference may be made to the above-mentioned steps 101-102, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

步骤403,将第一目标信息存储为预设类型的目标文件。Step 403: Store the first target information as a target file of a preset type.

可选地,所述目标文件包括文件信息,所述文件信息包括以下至少一项:信息存储类型、信息存储格式、信息内容布局;其中,信息存储类型包括文档、图像;信息存储格式包括word、excel、pdf等;信息内容布局包括排版方式等。文件信息可以由用户设置,或者采用默认设置。Optionally, the target file includes file information, and the file information includes at least one of the following: an information storage type, an information storage format, and an information content layout; wherein, the information storage type includes a document and an image; the information storage format includes word, excel, pdf, etc.; the layout of information content includes typesetting, etc. File information can be set by the user, or the default settings can be used.

本申请实施例提供的信息获取方法,通过获取第一图像,并基于目标信息特征自动对获取的第一图像进行信息提取得到第一目标信息,并将第一目标信息存储为预设类型的目标文件第一目标信息为第一图像中的部分信息,方便用户查阅特定内容。In the information acquisition method provided by the embodiments of the present application, the first target information is obtained by acquiring a first image, automatically extracting information from the acquired first image based on the characteristics of the target information, and storing the first target information as a preset type of target The first target information of the file is part of the information in the first image, which is convenient for the user to check the specific content.

图5是本申请实施例提供的信息获取方法的流程示意图之五,如图5所示,该方法包括:FIG. 5 is a fifth schematic flowchart of the information acquisition method provided by the embodiment of the present application. As shown in FIG. 5 , the method includes:

步骤501,接收用户的第一输入。Step 501, receiving a first input from a user.

步骤502,响应于所述第一输入,确定所述目标信息特征;其中,所述目标信息特征包括以下至少一项:字符特征、图像特征;所述第一目标信息包括以下至少一项:文字信息、图像信息。Step 502, in response to the first input, determine the target information feature; wherein the target information feature includes at least one of the following: character feature, image feature; the first target information includes at least one of the following: text information, image information.

步骤503,获取第一图像。Step 503, acquiring a first image.

步骤504,基于目标信息特征,对所述第一图像进行信息提取,得到第一目标信息;其中,所述第一目标信息为所述第一图像中的部分信息。Step 504, based on the target information feature, perform information extraction on the first image to obtain first target information; wherein, the first target information is part of the information in the first image.

可选地,关于步骤501-504的说明和解释,可以参照上述步骤201-204,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, for the description and explanation of steps 501-504, reference may be made to the above-mentioned steps 201-204, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

步骤505,获取第二图像。Step 505, acquiring a second image.

举例说明如下:第一图像对应显示对象的第k页,显示对象可以为PPT等,第二图像对应显示对象的第k+x页。可选地,显示对象包括m个页面、且在n个页面中包含目标信息特征,m为大于或等于2的整数,n为大于或等于2的整数。An example is as follows: the first image corresponds to the kth page of the display object, the display object may be PPT, etc., and the second image corresponds to the k+xth page of the display object. Optionally, the display object includes m pages, and the n pages include target information features, where m is an integer greater than or equal to 2, and n is an integer greater than or equal to 2.

步骤506,基于目标信息特征,对第二图像进行信息提取,得到第二目标信息;其中,第二目标信息为第二图像中的部分信息。Step 506 , based on the target information feature, perform information extraction on the second image to obtain second target information; wherein, the second target information is part of the information in the second image.

可选地,通过将第二目标信息与第一目标信息共同存储在一个文件中,实现将从文档的不同页面中分别获取的多个目标信息集中存储,方便集中显示和查看。Optionally, by jointly storing the second target information and the first target information in one file, a plurality of target information respectively obtained from different pages of the document are stored in a centralized manner, which is convenient for centralized display and viewing.

本申请实施例提供的信息获取方法,对于扫描对象包括多个页面的场景,分别获取各个页面的图像并进行图像识别,识别出每个页面中与目标信息特征对应的目标信息,及将每次识别到的目标信息共同存储在一个文件中,方便用户查看各个页面中的特定内容,能够满足用户的信息获取需求。In the information acquisition method provided by the embodiment of the present application, for a scene where the scanning object includes multiple pages, images of each page are acquired and image recognition is performed, the target information corresponding to the target information feature in each page is identified, and each page is The identified target information is collectively stored in a file, which is convenient for the user to view the specific content in each page, and can meet the user's information acquisition needs.

可选地,在基于目标信息特征对第一图像进行信息提取,得到第一目标信息之后,基于目标信息特征对第二图像进行信息提取,得到第二目标信息;然后,对第一目标信息和第二目标信息的存储方式可以包括以下至少一项:Optionally, after information extraction is performed on the first image based on the target information feature to obtain the first target information, information extraction is performed on the second image based on the target information feature to obtain the second target information; then, the first target information and The storage method of the second target information may include at least one of the following:

存储方式a:在所述第一目标信息包括第一文字信息,所述第二目标信息包括第二文字信息的情况下,按照信息的提取顺序,存储所述第一文字信息和所述第二文字信息,得到第一目标文件,例如可以按照提取顺序分段保存。Storage method a: when the first target information includes first text information and the second target information includes second text information, the first text information and the second text information are stored according to the order of extracting the information , to obtain the first target file, for example, it can be saved in sections according to the extraction sequence.

存储方式b:在所述第一目标信息包括第三图像,所述第二目标信息包括第四图像的情况下,将所述第三图像和所述第四图像进行图像合成,得到第二目标文件。Storage mode b: when the first target information includes a third image and the second target information includes a fourth image, image synthesis is performed on the third image and the fourth image to obtain a second target document.

存储方式c:在所述第一目标信息包括第三文字信息和第五图像的情况下,将所述第三文字信息和所述第五图像存储于同一文件中,得到第三目标文件。Storage mode c: when the first target information includes third text information and a fifth image, store the third text information and the fifth image in the same file to obtain a third target file.

存储方式d:在所述第一目标信息包括第四文字信息和第六图像,所述第二目标信息包括第五文字信息和第七图像的情况下,将所述第四文字信息、所述第六图像、所述第五文字信息和所述第七图像存储于同一文件中,得到第四目标文件,所述第四目标文件的文件显示区包括第一文字显示区和第一图像显示区,所述第四文字信息和所述第五文字信息显示于所述第一文字显示区中,所述第六图像和所述第七图像显示于所述第一图像显示区中。Storage mode d: when the first target information includes fourth text information and a sixth image, and the second target information includes fifth text information and a seventh image, the fourth text information, the The sixth image, the fifth text information and the seventh image are stored in the same file to obtain a fourth target file, and the file display area of the fourth target file includes a first text display area and a first image display area, The fourth text information and the fifth text information are displayed in the first text display area, and the sixth image and the seventh image are displayed in the first image display area.

下面结合具体提取过程举例说明:The following is an example of the specific extraction process:

以采用存储方式a且目标信息特征包括字符特征为例,对本申请实施例提供的信息获取方法进行说明。图6是本申请实施例提供的信息获取方法的流程示意图之六,图7是本申请实施例提供的信息获取方法的场景图之一,图8是本申请实施例提供的信息获取方法的场景图之二,图9是本申请实施例提供的信息获取方法的场景图之三,图10是本申请实施例提供的信息获取方法的场景图之四,图11是本申请实施例提供的信息获取方法的场景图之五,图12是本申请实施例提供的信息获取方法的场景图之六,图13是本申请实施例提供的信息获取方法的场景图之七,图14是本申请实施例提供的信息获取方法的场景图之八;如图6所示,该方法包括:Taking the storage mode a and the target information features including character features as an example, the information acquisition method provided by the embodiment of the present application will be described. FIG. 6 is the sixth schematic flowchart of the information acquisition method provided by the embodiment of the present application, FIG. 7 is one of the scene diagrams of the information acquisition method provided by the embodiment of the present application, and FIG. 8 is the scene diagram of the information acquisition method provided by the embodiment of the present application Figure 2, Figure 9 is the third scene diagram of the information acquisition method provided by the embodiment of the present application, Figure 10 is the fourth scene diagram of the information acquisition method provided by the embodiment of the present application, and Figure 11 is the information provided by the embodiment of the present application. The fifth scene diagram of the acquisition method, FIG. 12 is the sixth scene diagram of the information acquisition method provided by the embodiment of the present application, FIG. 13 is the seventh scene diagram of the information acquisition method provided by the embodiment of the present application, and FIG. 14 is the implementation of the present application. The eighth scene diagram of the information acquisition method provided by the example; as shown in Figure 6, the method includes:

步骤601,接收用户的第一输入。Step 601, receiving a first input from a user.

可选地,第一输入可以为用户对电子设备上相机应用的用户界面边缘弹出页签窗口中包括的目标信息特征选项的点击操作。Optionally, the first input may be a user's click operation on the target information feature option included in the pop-up tab window at the edge of the user interface of the camera application on the electronic device.

步骤602,响应于第一输入,确定目标信息特征。Step 602, in response to the first input, determine the target information feature.

可选地,目标信息特征包括字符特征。图7示出了电子设备的相机应用的扫描701模式的初始界面,初始界面显示多个控件,在用户选择不同控件的情况下,相机应用分别执行所选控件的对应功能;目标控件可以为扫描控件702。图8示出了电子设备的用户界面边缘弹出页签窗口801,页签窗口801中包括多个信息特征选项,用户的第一输入可以为用户对页签窗口801中包括的“提取有底纹内容”对应的信息特征选项的选择操作;可选地,用户通过选择操作可以仅勾选一类目标信息特征,也可以勾选多类信息特征选项;其中,信息特征选项中,“提取下划线内容”即提取具有下划线特征的内容,“提取有底纹内容”即提取具有底纹特征的内容,“提取加粗字体内容”即提取具有字体加粗特征的内容,“提取斜体字体内容”即提取具有斜体字特征的内容。Optionally, the target information features include character features. FIG. 7 shows the initial interface of thescanning 701 mode of the camera application of the electronic device. The initial interface displays a plurality of controls. When the user selects different controls, the camera application executes the corresponding functions of the selected controls respectively; the target control may be thescanning Control 702. FIG. 8 shows a pop-uptab window 801 at the edge of the user interface of the electronic device. Thetab window 801 includes a plurality of information feature options. The selection operation of the information feature option corresponding to "content"; optionally, the user can select only one type of target information feature or multiple types of information feature options through the selection operation; wherein, in the information feature option, "Extract underlined content" "Extract the content with the underline feature, "Extract the content with shading" is to extract the content with the shading feature, "Extract the bold font content" is to extract the content with the bold font feature, "Extract the italic font content" is to extract the content Content featuring italics.

步骤603,接收用户的第三输入。Step 603, receiving a third input from the user.

可选地,第三输入为用户对电子设备上相机应用的目标控件的选择操作,该选择操作可以为点击操作、按压操作或触摸操作等。Optionally, the third input is a user's selection operation on the target control applied by the camera on the electronic device, and the selection operation may be a click operation, a pressing operation, a touch operation, or the like.

步骤604,响应于所述第三输入,对第一扫描对象进行拍摄获取第一图像。Step 604, in response to the third input, photographing the first scanning object to obtain a first image.

步骤605,在目标信息特征为字符特征的情况下,对第一图像中的文字信息进行识别,并将具有字符特征的文字信息作为第一目标信息;缓存识别出的第一目标信息。Step 605 , in the case that the feature of the target information is a character feature, identify the text information in the first image, and use the text information with the character feature as the first target information; cache the identified first target information.

可选地,图9示出了电子设备开启“扫描”模式后的拍摄预览界面,用户可以通过长按扫描控件902开启“扫描”模式;在用户界面显示一个提示窗口901,在提示窗口901中显示“扫描中……”。图10示出的拍摄预览界面中,由于文字信息“第一页第一段”、“第一页第二段”及“第一页第三段”均存在下划线,具有“提取下划线内容”的目标信息特征;用户点击相机应用的扫描控件902;电子设备对拍摄预览界面对应的第一扫描对象进行拍摄,获取拍摄到的第一图像;对所述第一图像中的文字信息进行识别,将文字信息“第一页第一段”、“第一页第二段”及“第一页第三段”确定为第一目标信息。Optionally, FIG. 9 shows the shooting preview interface after the electronic device turns on the “scan” mode, the user can turn on the “scan” mode by long pressing thescan control 902; aprompt window 901 is displayed on the user interface, and in theprompt window 901 "Scanning..." is displayed. In the shooting preview interface shown in FIG. 10 , because the text information “first paragraph on the first page”, “second paragraph on the first page” and “third paragraph on the first page” all have underlines, there is an “extract the underlined content” feature of target information; the user clicks thescan control 902 of the camera application; the electronic device photographs the first scan object corresponding to the photographing preview interface, and obtains the photographed first image; The text information "first paragraph on the first page", "second paragraph on the first page" and "third paragraph on the first page" are determined as the first target information.

步骤606,在扫描界面上设置识别预览框,并在识别预览框内显示第一目标信息。Step 606 , a recognition preview frame is set on the scanning interface, and the first target information is displayed in the recognition preview frame.

可选地,在图10中识别出具有下划线特征的文字信息包括:第一页第一段、第一页第二段、第一页第三段的情况下,如图11所示,在扫描界面上设置识别预览框1101,并在识别预览框1101内显示出第一目标信息。Optionally, in the case where the text information with the underline feature identified in FIG. 10 includes: the first paragraph of the first page, the second paragraph of the first page, and the third paragraph of the first page, as shown in FIG. 11 , when scanning Arecognition preview frame 1101 is set on the interface, and the first target information is displayed in therecognition preview frame 1101 .

步骤607,接收用户的第二输入。Step 607, receiving a second input from the user.

可选地,第二输入可以为用户对识别预览框的点击操作,也可以为用户对识别预览框上目标控件的点击操作。Optionally, the second input may be the user's click operation on the recognition preview box, or may be the user's click operation on the target control on the recognition preview box.

步骤608,响应于第二输入,对在识别预览框内显示的第一目标信息进行编辑。Step 608, in response to the second input, edit the first target information displayed in the recognition preview frame.

可选地,图12示出了对在识别预览框1101内显示的第一目标信息进行编辑的场景,用户在对图12中示出的第一目标信息进行校对时发现“没”字应该为“段”,因此,用户通过第三输入,对在识别预览框1101内显示的第一目标信息进行编辑。编辑完成后可以在扫描界面上取消显示识别预览框。Optionally, FIG. 12 shows the scene of editing the first target information displayed in therecognition preview frame 1101. When the user is checking the first target information shown in FIG. 12, he finds that the word "no" should be "Segment", therefore, the user edits the first object information displayed in therecognition preview box 1101 through the third input. After editing, you can cancel the recognition preview box on the scanning interface.

步骤609,在扫描界面上显示识别预览框的显示时长到达目标时长的情况下,在扫描界面上取消显示识别预览框。Step 609 , when the display duration for displaying the recognition preview frame on the scanning interface reaches the target duration, cancel the display of the recognition preview frame on the scanning interface.

步骤610,接收用户的第五输入。Step 610, receiving a fifth input from the user.

可选地,第五输入可以为用户再次对相机应用的目标控件的点击操作。Optionally, the fifth input may be the user's click operation on the target control of the camera application again.

步骤611,响应于第五输入,对第二扫描对象进行拍摄获取第二图像。Step 611, in response to the fifth input, photographing the second scanning object to obtain a second image.

可选地,第五输入可以为在文档从当前页面(例如第1页)翻页后,再次接收到的用户对相机应用的“扫描”控件的点击操作,此时,扫描界面中预览内容所对应的第二扫描对象(例如文档的第2页);响应于第五输入,对扫描界面中预览内容所对应的第二扫描对象(例如第2页)进行拍摄获取第二图像。图13示出了用户再次点击相机应用的扫描控件902,对第二扫描对象进行拍摄的场景;基于所述目标信息特征对所述第二图像进行图像识别,获取并缓存识别出的第二目标信息。Optionally, the fifth input may be a click operation of the user on the "scan" control of the camera application received again after the document is turned from the current page (for example, page 1). The corresponding second scanning object (eg, the second page of the document); in response to the fifth input, the second scanning object (eg, the second page) corresponding to the preview content in the scanning interface is photographed to obtain a second image. FIG. 13 shows a scene where the user clicks thescan control 902 of the camera application again to photograph the second scan object; image recognition is performed on the second image based on the target information feature, and the recognized second target is acquired and cached information.

步骤612,基于目标信息特征对第二图像进行图像识别,获取并缓存识别出的第二目标信息,并将第二目标信息与第一目标信息共同存储在预设类型的一个文件中。Step 612: Perform image recognition on the second image based on the target information feature, acquire and cache the recognized second target information, and store the second target information and the first target information together in a file of a preset type.

可选地,在扫描界面上设置识别预览框,并在识别预览框内同时显示第二目标信息与第一目标信息;将所述第二目标信息与所述第一目标信息共同存储在一个文件中;图14示出了在识别预览框1401内显示第二目标信息与第一目标信息的场景;在扫描界面上显示识别预览框1401的显示时长到达目标时长的情况下,在扫描界面上取消显示识别预览框1401。用户在对文档的所有页面都进行了信息获取操作后,可以长按扫描控件902以退出“扫描”模式的场景,相机应用的用户界面恢复至“扫描”模式的初始界面。Optionally, a recognition preview frame is set on the scanning interface, and the second target information and the first target information are simultaneously displayed in the recognition preview frame; the second target information and the first target information are jointly stored in a file. 14 shows the scene in which the second target information and the first target information are displayed in therecognition preview frame 1401; when the display duration of therecognition preview frame 1401 on the scanning interface reaches the target duration, cancel the scanning interface Arecognition preview box 1401 is displayed. After the user has performed information acquisition operations on all pages of the document, the user can long press thescan control 902 to exit the "scan" mode scene, and the user interface of the camera application returns to the initial interface of the "scan" mode.

本申请实施例提供的信息获取方法,通过基于用户指示对第一扫描对象进行拍摄,并基于字符特征对第一扫描对象对应的第一图像进行图像识别,从而自动获取到第一扫描对象中用户需要的特定内容,使得用户不需要进入相册对拍摄的图像手动进行裁切处理,方便用户查看特定内容。The information acquisition method provided by the embodiment of the present application automatically acquires the user in the first scan object by photographing the first scan object based on user instructions, and performing image recognition on the first image corresponding to the first scan object based on character features. The specific content required, so that the user does not need to enter the album to manually cut the captured image, which is convenient for the user to view the specific content.

以目标信息特征包括图像特征为例,对本申请实施例提供的信息获取方法进行说明。图15是本申请实施例提供的信息获取方法的流程示意图之七,图16是本申请实施例提供的信息获取方法的场景图之九,图17是本申请实施例提供的信息获取方法的场景图之十,图18是本申请实施例提供的信息获取方法的场景图之十一,图19是本申请实施例提供的信息获取方法的场景图之十二,图20是本申请实施例提供的信息获取方法的场景图之十三。如图15所示,该方法包括:Taking the target information features including image features as an example, the information acquisition method provided by the embodiments of the present application will be described. FIG. 15 is the seventh schematic flowchart of the information acquisition method provided by the embodiment of the present application, FIG. 16 is the ninth scene diagram of the information acquisition method provided by the embodiment of the present application, and FIG. 17 is the scene diagram of the information acquisition method provided by the embodiment of the present application FIG. 10 and FIG. 18 are the eleventh scene diagrams of the information acquisition method provided by the embodiment of the present application, FIG. 19 is the twelfth scene diagram of the information acquisition method provided by the embodiment of the present application, and FIG. 20 is the scene diagram provided by the embodiment of the present application. The thirteenth scene graph of the information acquisition method. As shown in Figure 15, the method includes:

步骤1501,接收用户的第一输入。Step 1501, receiving a first input from a user.

可选地,第一输入可以为用户对电子设备上相机应用的用户界面边缘弹出的页签窗口中包括的目标信息特征选项的点击操作。Optionally, the first input may be the user's click operation on the target information feature option included in the tab window popped up at the edge of the user interface of the camera application on the electronic device.

步骤1502,响应于所述一输入,确定目标信息特征;其中,目标信息特征包括图像特征。Step 1502, in response to the input, determine the target information feature, wherein the target information feature includes an image feature.

可选地,图16示出了电子设备的用户界面边缘弹出页签窗口1601中包括的多个信息特征选项,用户的第一输入可以为用户对弹出页签窗口1601中包括的“提取加边框的图像”对应的信息特征选项的选择操作;可选地,通过选择操作可以仅勾选一类目标信息特征,也可以勾选多类信息特征选项;其中,信息特征选项中,“提取加边框的图像”即提取具有边框特征的图像,“提取有水印的图像”即提取具有水印特征的图像,“提取加二维码的图像”即提取具有二维码特征的图像,“提取4:3比例的图像”即提取具有长宽比为4:3的图像。图17示出了电子设备开启“扫描”模式后的拍摄预览界面,用户可以通过长按扫描控件902开启“扫描”模式;在用户界面显示一个提示窗口901,在提示窗口901中显示“扫描中……”。Optionally, FIG. 16 shows a plurality of information feature options included in the pop-uptab window 1601 at the edge of the user interface of the electronic device. The selection operation of the information feature option corresponding to the image of the "image"; optionally, only one type of target information feature can be checked through the selection operation, and multiple types of information feature options can also be checked; among them, in the information feature option, "Extract and add borders" "Extract the image with the border feature", "Extract the image with the watermark" is to extract the image with the watermark feature, "Extract the image with the QR code" is to extract the image with the QR code feature, "Extract 4:3" Scaled image" i.e. extract an image with an aspect ratio of 4:3. Fig. 17 shows the shooting preview interface after the electronic device has turned on the "scanning" mode. The user can turn on the "scanning" mode by long pressing thescanning control 902; aprompt window 901 is displayed on the user interface, and "scanning" …”.

步骤1503,接收用户的第三输入。Step 1503, receiving a third input from the user.

可选地,第三输入为用户对电子设备上相机应用的目标控件的选择操作,该选择操作可以为点击操作、按压操作或触摸操作等。Optionally, the third input is a user's selection operation on the target control applied by the camera on the electronic device, and the selection operation may be a click operation, a pressing operation, a touch operation, or the like.

可选地,用户的第三输入可以为图18所示的用户点击扫描控件902的操作,对第一扫描对象进行拍摄获取第一图像的场景。Optionally, the user's third input may be the operation of the user clicking thescan control 902 shown in FIG. 18 to photograph the first scan object to obtain the scene of the first image.

步骤1504,响应于所述第三输入,对第一扫描对象进行拍摄获取第一图像。Step 1504, in response to the third input, photographing the first scanning object to obtain a first image.

步骤1505,在目标信息特征为图像特征的情况下,截取第一图像中具有图像特征的区域图像,将具有图像特征的区域图像作为第一目标信息;缓存识别出的第一目标信息。Step 1505 , in the case that the target information feature is an image feature, intercept an area image with the image feature in the first image, and use the area image with the image feature as the first target information; cache the identified first target information.

可选地,图18中的图片4具有“加边框”的特征;在用户的第一输入为用户在弹出的页签窗口1601中选择“提取加边框的图像”对应的信息特征选项的情况下,步骤1505截取的区域图像为图片4,即第一目标信息为图片4。Optionally,picture 4 in FIG. 18 has the feature of "framed"; in the case where the user's first input is that the user selects the information feature option corresponding to "extract framed image" in the pop-uptab window 1601 , the region image captured instep 1505 ispicture 4, that is, the first target information ispicture 4.

步骤1506,在扫描界面上设置识别预览框,并在识别预览框内显示第一目标信息。Step 1506: Set a recognition preview frame on the scanning interface, and display the first target information in the recognition preview frame.

可选地,图19示出了在识别预览框1401内显示第一目标信息的场景,第一目标信息为区域图像。Optionally, FIG. 19 shows a scene in which the first target information is displayed in therecognition preview frame 1401, and the first target information is an area image.

步骤1507,接收用户的第二输入。Step 1507, receiving the second input from the user.

可选地,第二输入可以为用户对识别预览框的点击操作,也可以为用户对识别预览框上目标控件的点击操作。Optionally, the second input may be the user's click operation on the recognition preview box, or may be the user's click operation on the target control on the recognition preview box.

步骤1508,响应于第二输入,对在识别预览框内显示的第一目标信息进行编辑。Step 1508, in response to the second input, edit the first target information displayed in the recognition preview frame.

可选地,编辑方式包括以下至少一项:旋转、滤镜、涂鸦和裁剪。Optionally, the editing method includes at least one of the following: rotation, filter, graffiti, and cropping.

步骤1509,在扫描界面上显示识别预览框的显示时长到达目标时长的情况下,在扫描界面上取消显示识别预览框。Step 1509 , when the display duration for displaying the recognition preview frame on the scanning interface reaches the target duration, cancel the display of the recognition preview frame on the scanning interface.

步骤1510,接收用户的第五输入。Step 1510, receiving a fifth input from the user.

可选地,第五输入可以为用户再次对相机应用的目标控件的点击操作。Optionally, the fifth input may be the user's click operation on the target control of the camera application again.

步骤1511,响应于第五输入,对第二扫描对象进行拍摄获取第二图像。Step 1511, in response to the fifth input, photographing the second scanning object to obtain a second image.

步骤1512,基于目标信息特征对所述第二图像进行图像识别,获取并缓存识别出的第二目标信息,并将第二目标信息与第一目标信息共同存储在一个文件中。Step 1512: Perform image recognition on the second image based on the target information feature, acquire and cache the recognized second target information, and store the second target information and the first target information in a file together.

可选地,可以将第二目标信息与第一目标信息存入一个同文档中,由于在目标信息特征为图像特征的情况下,第二目标信息与第一目标信息均为图像,因而也可以将第二目标信息与第一目标信息直接拼接成为一幅图像。Optionally, the second target information and the first target information can be stored in a same document, because in the case that the target information feature is an image feature, the second target information and the first target information are both images, so it is also possible to The second target information and the first target information are directly spliced into one image.

本申请实施例提供的信息获取方法,通过基于用户指示对第一扫描对象进行拍摄,并基于图像特征对第一扫描对象对应的第一图像进行图像识别,从而获取到第一扫描对象中特定内容,使得用户可以直接查看第一扫描对象中用户需要的特定内容,方便用户查阅、存储特定内容的文件。The information acquisition method provided by the embodiment of the present application acquires the specific content of the first scan object by photographing the first scan object based on the user's instruction, and performing image recognition on the first image corresponding to the first scan object based on image features. , so that the user can directly view the specific content required by the user in the first scanning object, and it is convenient for the user to consult and store the files of the specific content.

可选地,以采用存储方式d且目标信息特征包括字符特征和图像特征为例,图20示出了第一扫描对象中同时包括字符特征(如带下划线文字)和图像特征(如加边框图像),第一目标信息包括第四文字信息和第六图像2001,第四文字信息为:Optionally, taking storage mode d and the target information features including character features and image features as an example, FIG. 20 shows that the first scanning object includes both character features (such as underlined text) and image features (such as a framed image). ), the first target information includes fourth text information and asixth image 2001, and the fourth text information is:

“第一页第一段"First paragraph of the first page

第一页第二段First page second paragraph

第一页第三段”。Third paragraph of the first page".

将第四文字信息和第六图像同时存储于第四目标文件中,第四目标文件可以为文档或图像。The fourth text information and the sixth image are simultaneously stored in a fourth target file, and the fourth target file may be a document or an image.

需要说明的是,本申请实施例提供的信息获取方法,执行主体可以为信息获取装置,例如手机,或者该信息获取装置中的用于执行加载信息获取方法的控制模块。本申请实施例中以信息获取装置执行加载信息获取方法为例,说明本申请实施例提供的信息获取装置。It should be noted that, for the information acquisition method provided by the embodiments of the present application, the execution subject may be an information acquisition device, such as a mobile phone, or a control module in the information acquisition device for executing the loaded information acquisition method. In the embodiments of the present application, the information obtaining device provided by the embodiments of the present application is described by taking the information obtaining device executing the loading information obtaining method as an example.

本申请实施例还提供一种信息获取装置。图21是本申请实施例提供的信息获取装置的结构示意图,如图21所示,该信息获取装置2100包括:第一获取模块2101和第一提取模块2102;其中,The embodiments of the present application also provide an information acquisition device. FIG. 21 is a schematic structural diagram of an information acquisition apparatus provided by an embodiment of the present application. As shown in FIG. 21 , theinformation acquisition apparatus 2100 includes: afirst acquisition module 2101 and afirst extraction module 2102; wherein,

第一获取模块2101,用于获取第一图像;afirst acquisition module 2101, configured to acquire a first image;

第一提取模块2102,用于基于目标信息特征,对所述第一图像进行信息提取,得到第一目标信息;afirst extraction module 2102, configured to perform information extraction on the first image based on the target information feature to obtain first target information;

其中,所述第一目标信息为所述第一图像中的部分信息。Wherein, the first target information is part of the information in the first image.

本申请实施例提供的信息获取装置,通过获取第一图像,并基于目标信息特征对第一图像进行信息提取,能够根据目标信息特征,自动提取到第一图像中用户需要的部分信息,方便用户查阅、存储特定内容的文件。The information acquisition device provided by the embodiment of the present application can automatically extract part of the information required by the user in the first image according to the target information characteristics by acquiring the first image and extracting information from the first image based on the target information characteristics, which is convenient for the user. View and store files with specific content.

可选地,所述装置还包括:Optionally, the device further includes:

接收模块,用于接收用户的第一输入;a receiving module for receiving the first input of the user;

确定模块,用于响应于所述第一输入,确定所述目标信息特征;a determining module, configured to determine the target information feature in response to the first input;

其中,所述目标信息特征包括以下至少一项:字符特征、图像特征;所述第一目标信息包括以下至少一项:文字信息、图像信息。Wherein, the target information features include at least one of the following: character features and image features; the first target information includes at least one of the following: text information and image information.

可选地,所述第一提取模块2102具体用于:Optionally, thefirst extraction module 2102 is specifically configured to:

在所述目标信息特征为所述字符特征的情况下,对所述第一图像中具有所述字符特征的文字信息进行提取,得到所述第一目标信息;In the case where the target information feature is the character feature, extracting text information with the character feature in the first image to obtain the first target information;

在所述目标信息特征为所述图像特征的情况下,对所述第一图像中具有所述图像特征的图像信息进行提取,得到所述第一目标信息。In the case that the target information feature is the image feature, the image information having the image feature in the first image is extracted to obtain the first target information.

可选地,所述装置还包括:Optionally, the device further includes:

显示模块,用于在拍摄预览界面显示所述第一目标信息;a display module, configured to display the first target information on the shooting preview interface;

更新模块,用于在接收到用户对所述第一目标信息的第二输入的情况下,响应于所述第二输入,更新所述第一目标信息的信息内容。The updating module is configured to update the information content of the first target information in response to the second input in the case of receiving the second input of the first target information by the user.

可选地,所述装置还包括:Optionally, the device further includes:

存储模块,用于将所述第一目标信息存储为预设类型的目标文件。A storage module, configured to store the first target information as a target file of a preset type.

可选地,所述装置还包括:Optionally, the device further includes:

第二获取模块,用于获取第二图像;a second acquisition module, configured to acquire a second image;

第二提取模块,用于基于所述目标信息特征,对所述第二图像进行信息提取,得到第二目标信息;a second extraction module, configured to perform information extraction on the second image based on the target information feature to obtain second target information;

其中,所述第二目标信息为所述第二图像中的部分信息。Wherein, the second target information is part of the information in the second image.

本申请实施例中的信息获取装置可以是装置,也可以是终端中的部件、集成电路或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The information acquisition device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiments of the present application There is no specific limitation.

本申请实施例中的信息获取装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为IOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The information acquisition device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

本申请实施例提供的信息获取装置能够实现图1至图20的方法实施例中信息获取装置实现的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The information acquisition apparatus provided in the embodiments of the present application can implement each process implemented by the information acquisition apparatus in the method embodiments of FIG. 1 to FIG. 20 , and can achieve the same technical effect. To avoid repetition, details are not repeated here.

如图22所示,本申请实施例提供一种电子设备2200,包括处理器2201,存储器2202,存储在存储器2202上并可在所述处理器2201上运行的程序或指令,该程序或指令被处理器2201执行时实现上述信息获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。As shown in FIG. 22, an embodiment of the present application provides anelectronic device 2200, including aprocessor 2201, amemory 2202, a program or instruction stored in thememory 2202 and executable on theprocessor 2201, the program or instruction being When executed by theprocessor 2201, each process of the foregoing information acquisition method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.

可选地,图23为实现本申请实施例的一种电子设备的硬件结构示意图。Optionally, FIG. 23 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备2300包括但不限于:射频单元2301、网络模块2302、音频输出单元2303、输入单元2304、传感器2305、显示单元2306、用户输入单元2307、接口单元2308、存储器2309、以及处理器2310等部件。Theelectronic device 2300 includes but is not limited to: aradio frequency unit 2301, anetwork module 2302, anaudio output unit 2303, aninput unit 2304, asensor 2305, adisplay unit 2306, a user input unit 2307, an interface unit 2308, amemory 2309, and aprocessor 2310, etc. part.

本领域技术人员可以理解,电子设备2300还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器2310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图23中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that theelectronic device 2300 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to theprocessor 2310 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 23 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .

其中,处理器2310,用于获取第一图像;基于目标信息特征,对所述第一图像进行信息提取,得到第一目标信息;其中,所述第一目标信息为所述第一图像中的部分信息。Wherein, theprocessor 2310 is configured to acquire the first image; based on the target information feature, perform information extraction on the first image to obtain the first target information; wherein, the first target information is the first target information in the first image partial information.

本申请实施例提供的电子设备,通过获取第一图像,并基于目标信息特征对第一图像进行信息提取,能够根据目标信息特征,自动提取到第一图像中用户需要的部分信息,方便用户查阅、存储特定内容的文件。The electronic device provided by the embodiment of the present application can automatically extract part of the information required by the user in the first image according to the target information feature by acquiring the first image and extracting information from the first image based on the target information feature, which is convenient for the user to consult , a file that stores specific content.

可选地,用户输入单元2307,还用于接收用户的第一输入;Optionally, the user input unit 2307 is further configured to receive the first input of the user;

处理器2310,还用于响应于所述第一输入,确定所述目标信息特征;其中,所述目标信息特征包括以下至少一项:字符特征、图像特征;所述第一目标信息包括以下至少一项:文字信息、图像信息。Theprocessor 2310 is further configured to determine the target information feature in response to the first input; wherein the target information feature includes at least one of the following: character feature, image feature; the first target information includes at least one of the following One item: text information, image information.

本申请实施例提供的电子设备,通过按照用户自身需求和实际场景对目标信息特征的具体种类进行选择,在此基础上基于用户指示对第一扫描对象进行拍摄,能够根据目标信息特征自动提取到第一扫描对象中特定内容,方便用户查阅特定内容。The electronic device provided by the embodiment of the present application selects the specific types of the target information features according to the user's own needs and the actual scene, and then shoots the first scanning object based on the user's instruction, and can automatically extract the target information according to the target information features. The specific content in the first scanning object is convenient for the user to check the specific content.

可选地,处理器2310,还用于:Optionally, theprocessor 2310 is further configured to:

在所述目标信息特征为所述字符特征的情况下,对所述第一图像中具有所述字符特征的文字信息进行提取,得到所述第一目标信息;In the case where the target information feature is the character feature, extracting text information with the character feature in the first image to obtain the first target information;

在所述目标信息特征为所述图像特征的情况下,对所述第一图像中具有所述图像特征的图像信息进行提取,得到所述第一目标信息。In the case that the target information feature is the image feature, the image information having the image feature in the first image is extracted to obtain the first target information.

可选地,所述字符特征包括以下至少一项:文字标记特征、文字属性特征、文字类型特征;Optionally, the character feature includes at least one of the following: a character mark feature, a character attribute feature, and a character type feature;

所述图像特征包括以下至少一项:图像尺寸特征、图像背景特征、图像前景特征。The image features include at least one of the following: image size features, image background features, and image foreground features.

可选地,显示单元2306,用于在拍摄预览界面显示所述第一目标信息;Optionally, adisplay unit 2306, configured to display the first target information on the shooting preview interface;

处理器2310,还用于在接收到用户对所述第一目标信息的第二输入的情况下,响应于所述第二输入,更新所述第一目标信息的信息内容。Theprocessor 2310 is further configured to update the information content of the first target information in response to the second input in response to the second input of the user for the first target information in the case of receiving the second input.

本申请实施例提供的电子设备,根据目标信息特征,自动提取第一图像中的第一目标信息,并在拍摄预览界面进行显示,用户也可更新第一目标信息的信息内容,使得用户能够实时查看和核对,提高识别结果的可靠性,满足用户的信息获取需求。The electronic device provided by the embodiment of the present application automatically extracts the first target information in the first image according to the characteristics of the target information, and displays it on the shooting preview interface, and the user can also update the information content of the first target information, so that the user can real-time View and check, improve the reliability of the recognition results, and meet the user's information acquisition needs.

可选地,存储器2309,还用于将所述第一目标信息存储为预设类型的目标文件。Optionally, thememory 2309 is further configured to store the first target information as a target file of a preset type.

本申请实施例提供的电子设备,通过获取第一图像,并基于目标信息特征自动对获取的第一图像进行信息提取得到第一目标信息,并将第一目标信息存储为预设类型的目标文件第一目标信息为第一图像中的部分信息,方便用户查阅特定内容。The electronic device provided by the embodiment of the present application obtains the first target information by acquiring the first image, and automatically extracts information from the acquired first image based on the characteristics of the target information, and stores the first target information as a target file of a preset type. The first target information is part of the information in the first image, which is convenient for the user to check specific content.

可选地,处理器2310,还用于获取第二图像;基于所述目标信息特征,对所述第二图像进行信息提取,得到第二目标信息;其中,所述第二目标信息为所述第二图像中的部分信息。Optionally, theprocessor 2310 is further configured to acquire a second image; based on the target information feature, perform information extraction on the second image to obtain second target information; wherein the second target information is the Part of the information in the second image.

本申请实施例提供的电子设备,对于扫描对象包括多个页面的场景,分别获取各个页面的图像并进行图像识别,识别出每个页面中与目标信息特征对应的目标信息,及将每次识别到的目标信息共同存储在一个文件中,方便用户查看各个页面中的特定内容,能够满足用户的信息获取需求。The electronic device provided by the embodiment of the present application, for a scene where the scanning object includes multiple pages, obtains images of each page and performs image recognition, recognizes the target information corresponding to the target information feature in each page, and identifies each page. The obtained target information is collectively stored in a file, which is convenient for users to view specific content in each page, and can meet the user's information acquisition needs.

可选地,存储器2309,还用于:Optionally, thememory 2309 is also used for:

在所述第一目标信息包括第一文字信息,所述第二目标信息包括第二文字信息的情况下,按照信息的提取顺序,存储所述第一文字信息和所述第二文字信息,得到第一目标文件;In the case where the first target information includes first text information and the second target information includes second text information, the first text information and the second text information are stored according to the order of extracting the information, and the first text information is obtained. target document;

在所述第一目标信息包括第三图像,所述第二目标信息包括第四图像的情况下,将所述第三图像和所述第四图像进行图像合成,得到第二目标文件;In the case that the first target information includes a third image and the second target information includes a fourth image, image synthesis is performed on the third image and the fourth image to obtain a second target file;

在所述第一目标信息包括第三文字信息和第五图像的情况下,将所述第三文字信息和所述第五图像存储于同一文件中,得到第三目标文件;In the case that the first target information includes third text information and a fifth image, storing the third text information and the fifth image in the same file to obtain a third target file;

在所述第一目标信息包括第四文字信息和第六图像,所述第二目标信息包括第五文字信息和第七图像的情况下,将所述第四文字信息、所述第六图像、所述第五文字信息和所述第七图像存储于同一文件中,得到第四目标文件,所述第四目标文件的文件显示区包括第一文字显示区和第一图像显示区,所述第四文字信息和所述第五文字信息显示于所述第一文字显示区中,所述第六图像和所述第七图像显示于所述第一图像显示区中。When the first target information includes fourth text information and a sixth image, and the second target information includes fifth text information and a seventh image, the fourth text information, the sixth image, The fifth text information and the seventh image are stored in the same file to obtain a fourth target file. The file display area of the fourth target file includes a first text display area and a first image display area. The text information and the fifth text information are displayed in the first text display area, and the sixth image and the seventh image are displayed in the first image display area.

应理解的是,本申请实施例中,输入单元2304可以包括图形处理器(GraphicsProcessing Unit,GPU)23041和麦克风23042,图形处理器23041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元2306可包括显示面板23061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板23061。用户输入单元2307包括触控面板23071以及其他输入设备23072。触控面板23071,也称为触摸屏。触控面板23071可包括触摸检测装置和触摸控制器两个部分。其他输入设备23072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器2309可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器2310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器2310中。It should be understood that, in this embodiment of the present application, theinput unit 2304 may include a graphics processor (Graphics Processing Unit, GPU) 23041 and amicrophone 23042. camera) to process the image data of still pictures or videos. Thedisplay unit 2306 may include adisplay panel 23061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 2307 includes atouch panel 23071 andother input devices 23072 . Thetouch panel 23071 is also called a touch screen. Thetouch panel 23071 may include two parts, a touch detection device and a touch controller.Other input devices 23072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.Memory 2309 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Theprocessor 2310 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 2310.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述信息获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned information acquisition method embodiment can be achieved, and can achieve the same In order to avoid repetition, the technical effect will not be repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述信息获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the information acquisition method embodiments described above. Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

本申请实施例还提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述信息获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a computer program product, including a computer program, which, when executed by a processor, implements each process of the foregoing information acquisition method embodiment, and can achieve the same technical effect. Repeat.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of computer software products that are essentially or contribute to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk , CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in the various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (15)

CN202111034064.XA2021-09-032021-09-03 Information acquisition method, device and electronic devicePendingCN113835598A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111034064.XACN113835598A (en)2021-09-032021-09-03 Information acquisition method, device and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111034064.XACN113835598A (en)2021-09-032021-09-03 Information acquisition method, device and electronic device

Publications (1)

Publication NumberPublication Date
CN113835598Atrue CN113835598A (en)2021-12-24

Family

ID=78962082

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111034064.XAPendingCN113835598A (en)2021-09-032021-09-03 Information acquisition method, device and electronic device

Country Status (1)

CountryLink
CN (1)CN113835598A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115543161A (en)*2022-11-042022-12-30广州市保伦电子有限公司Matting method and device suitable for whiteboard all-in-one machine

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20140267796A1 (en)*2013-03-142014-09-18Samsung Electronics Co., Ltd.Application information processing method and apparatus of mobile terminal
CN106170799A (en)*2014-01-272016-11-30皇家飞利浦有限公司From image zooming-out information and information is included in clinical report
CN109254712A (en)*2018-09-302019-01-22联想(北京)有限公司Information processing method and electronic equipment
US20190197308A1 (en)*2017-12-222019-06-27Google LlcGraphical user interface created via inputs from an electronic document
CN110312036A (en)*2019-06-272019-10-08维沃移动通信有限公司 A content sending and display method and terminal
CN111079503A (en)*2019-08-022020-04-28广东小天才科技有限公司 A character recognition method and electronic device
CN111104927A (en)*2019-12-312020-05-05维沃移动通信有限公司 A kind of information acquisition method and electronic device of target person
CN111353422A (en)*2020-02-272020-06-30维沃移动通信有限公司Information extraction method and device and electronic equipment
CN112000834A (en)*2020-08-262020-11-27北京百度网讯科技有限公司Document processing method, device, system, electronic equipment and storage medium
CN112446259A (en)*2019-09-022021-03-05深圳中兴网信科技有限公司Image processing method, device, terminal and computer readable storage medium
CN113194024A (en)*2021-03-222021-07-30维沃移动通信(杭州)有限公司Information display method and device and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20140267796A1 (en)*2013-03-142014-09-18Samsung Electronics Co., Ltd.Application information processing method and apparatus of mobile terminal
CN106170799A (en)*2014-01-272016-11-30皇家飞利浦有限公司From image zooming-out information and information is included in clinical report
US20190197308A1 (en)*2017-12-222019-06-27Google LlcGraphical user interface created via inputs from an electronic document
CN109254712A (en)*2018-09-302019-01-22联想(北京)有限公司Information processing method and electronic equipment
CN110312036A (en)*2019-06-272019-10-08维沃移动通信有限公司 A content sending and display method and terminal
CN111079503A (en)*2019-08-022020-04-28广东小天才科技有限公司 A character recognition method and electronic device
CN112446259A (en)*2019-09-022021-03-05深圳中兴网信科技有限公司Image processing method, device, terminal and computer readable storage medium
CN111104927A (en)*2019-12-312020-05-05维沃移动通信有限公司 A kind of information acquisition method and electronic device of target person
CN111353422A (en)*2020-02-272020-06-30维沃移动通信有限公司Information extraction method and device and electronic equipment
CN112000834A (en)*2020-08-262020-11-27北京百度网讯科技有限公司Document processing method, device, system, electronic equipment and storage medium
CN113194024A (en)*2021-03-222021-07-30维沃移动通信(杭州)有限公司Information display method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115543161A (en)*2022-11-042022-12-30广州市保伦电子有限公司Matting method and device suitable for whiteboard all-in-one machine
CN115543161B (en)*2022-11-042023-08-15广东保伦电子股份有限公司Image matting method and device suitable for whiteboard integrated machine

Similar Documents

PublicationPublication DateTitle
US11550993B2 (en)Ink experience for images
US20120131520A1 (en)Gesture-based Text Identification and Selection in Images
KR102013331B1 (en)Terminal device and method for synthesizing a dual image in device having a dual camera
EP3528140A1 (en)Picture processing method, device, electronic device and graphic user interface
US11190653B2 (en)Techniques for capturing an image within the context of a document
CN114564921B (en) Document editing method and device
CN112929557A (en)Shooting method, device, terminal and storage medium
CN112148192A (en)Image display method and device and electronic equipment
WO2017107855A1 (en)Picture searching method and device
CN111724455A (en) Image processing method and electronic device
CN111638839A (en)Screen capturing method and device and electronic equipment
CN111310747A (en) Information processing method, information processing device, and storage medium
WO2023284640A1 (en)Picture processing method and electronic device
WO2023045922A1 (en)Information input method and apparatus
CN115454365A (en) Image processing method, device, electronic device and medium
CN113835598A (en) Information acquisition method, device and electronic device
US20240061990A1 (en)Document Generation Method and Electronic Device and Non-transitory Readable Storage Medium
CN117149019A (en)File editing method, terminal, electronic device and storage medium
CN114286010B (en)Shooting method, shooting device, electronic equipment and medium
CN116027950A (en) Screen capture method and screen capture device
CN115209056A (en)Shooting method, shooting device, electronic equipment and storage medium
CN114943202A (en)Information processing method, information processing apparatus, and electronic device
CN115131649A (en) Content identification method, device and electronic device
CN113794943A (en)Video cover setting method and device, electronic equipment and storage medium
CN111966259A (en)Screenshot method and device and electronic equipment

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

Application publication date:20211224


[8]ページ先頭

©2009-2025 Movatter.jp