Movatterモバイル変換


[0]ホーム

URL:


CN114943202A - Information processing method, information processing apparatus, and electronic device - Google Patents

Information processing method, information processing apparatus, and electronic device
Download PDF

Info

Publication number
CN114943202A
CN114943202ACN202210555521.8ACN202210555521ACN114943202ACN 114943202 ACN114943202 ACN 114943202ACN 202210555521 ACN202210555521 ACN 202210555521ACN 114943202 ACN114943202 ACN 114943202A
Authority
CN
China
Prior art keywords
scanned
image
screen
text
information
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
CN202210555521.8A
Other languages
Chinese (zh)
Inventor
侯宇涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN202210555521.8ApriorityCriticalpatent/CN114943202A/en
Publication of CN114943202ApublicationCriticalpatent/CN114943202A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The application discloses an information processing method, an information processing device and electronic equipment, and belongs to the technical field of electronics. The method includes displaying scanned contents corresponding to a target document in a first screen; the scan content includes at least one of: scanning a text and an image; and responding to a first input of a user to the first information in the scanned content, and displaying the first information in a second screen.

Description

Translated fromChinese
信息处理方法、信息处理装置和电子设备Information processing method, information processing apparatus, and electronic device

技术领域technical field

本申请属于电子技术领域,具体涉及一种信息处理方法、信息处理装置和电子设备。The present application belongs to the field of electronic technology, and specifically relates to an information processing method, an information processing apparatus and an electronic device.

背景技术Background technique

随着智能终端的普及和互联网的快速发展,使用智能终端进行阅读的用户越来越多。纸质书籍可以通过拍照、扫描等技术转化为电子文件格式,显示在终端上。With the popularization of smart terminals and the rapid development of the Internet, more and more users use smart terminals for reading. Paper books can be converted into electronic file formats through technologies such as photographing and scanning, and displayed on the terminal.

纸质书籍转化为电子文件格式时,通常是将纸质书籍扫描为图像,然后再将图像进行存储,供用户浏览。在阅读纸质书籍时,记读书笔记对于书籍的理解和记忆是非常重要的。但是,当用户浏览这些纸质书籍对应的图像时,图像中的文字、或者图片无法进行编辑,导致记笔记不方便。When a paper book is converted into an electronic file format, the paper book is usually scanned into an image, and then the image is stored for users to browse. When reading paper books, taking reading notes is very important for the understanding and memory of the book. However, when the user browses the images corresponding to these paper books, the text or pictures in the images cannot be edited, which makes it inconvenient to take notes.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种信息处理方法、信息处理装置和电子设备,能够解决浏览书籍等文档的图像时不方便记笔记的问题。The purpose of the embodiments of the present application is to provide an information processing method, an information processing apparatus, and an electronic device, which can solve the problem of inconvenience in taking notes when browsing images of documents such as books.

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

在所述第一屏幕中显示目标文档对应的扫描内容;所述扫描内容包括以下至少一项:扫描文本、扫描图像;The scanned content corresponding to the target document is displayed on the first screen; the scanned content includes at least one of the following: scanned text and scanned image;

响应于用户对所述扫描内容中第一信息的第一输入,在所述第二屏幕中显示所述第一信息。The first information is displayed in the second screen in response to the user's first input of the first information in the scanned content.

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

第一显示模块,用于在所述第一屏幕中显示目标文档对应的扫描内容;所述扫描内容包括以下至少一项:扫描文本、扫描图像;a first display module, configured to display the scanned content corresponding to the target document on the first screen; the scanned content includes at least one of the following: scanned text and scanned image;

第二显示模块,用于响应于用户对所述扫描内容中第一信息的第一输入,在所述第二屏幕中显示所述第一信息。A second display module, configured to display the first information on the second screen in response to a user's first input of the first information in the scanned content.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的信息处理方法。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores a program or an instruction that can be executed on the processor, and the program or instruction is processed by the processor The information processing method according to the first aspect is implemented when the processor is 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 information processing method according to the first aspect is 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 described information processing method.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的信息处理方法。In a sixth aspect, an embodiment of the present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the information processing method described in the first aspect.

在本申请实施例中,一方面,通过扫描将目标文档转换为电子格式,从而在屏幕中显示对应的扫描内容,并且用户可以对扫描内容进行编辑,可以快速便捷地形成笔记。另一方面,利用电子设备双屏的特点,将文档的扫描内容显示在一个屏幕,将用户操作的信息可以显示在另一个屏幕中,使得笔记与文档的扫描内容独立显示,避免对扫描内容造成遮挡,可以提高文档的显示效果,同时便于对笔记进行操作。In the embodiment of the present application, on the one hand, the target document is converted into an electronic format by scanning, so that the corresponding scanned content is displayed on the screen, and the user can edit the scanned content and form notes quickly and conveniently. On the other hand, using the dual-screen feature of electronic devices, the scanned content of the document is displayed on one screen, and the information operated by the user can be displayed on the other screen, so that the notes and the scanned content of the document can be displayed independently, avoiding any damage to the scanned content. Occlusion can improve the display effect of the document and facilitate the operation of the notes.

附图说明Description of drawings

图1是本申请实施例提供的信息处理方法的流程图之一;Fig. 1 is one of the flowcharts of the information processing method provided by the embodiment of the present application;

图2是本申请实施例提供的信息处理方法中的显示界面效果示意图之一;2 is one of the schematic diagrams of the display interface effects in the information processing method provided by the embodiment of the present application;

图3是本申请实施例提供的信息处理方法的显示界面效果示意图之二;3 is the second schematic diagram of the display interface effect of the information processing method provided by the embodiment of the present application;

图4是本申请实施例提供的信息处理方法的显示界面效果示意图之三;FIG. 4 is the third schematic diagram of the display interface effect of the information processing method provided by the embodiment of the present application;

图5是本申请实施例提供的信息处理方法的显示界面效果示意图之四;5 is the fourth schematic diagram of the display interface effect of the information processing method provided by the embodiment of the present application;

图6是本申请实施例提供的信息处理方法的显示界面效果示意图之五;6 is the fifth schematic diagram of the display interface effect of the information processing method provided by the embodiment of the present application;

图7是本申请实施例提供的信息处理方法的显示界面效果示意图之六;7 is the sixth schematic diagram of the display interface effect of the information processing method provided by the embodiment of the present application;

图8是本申请实施例提供的信息处理方法中扫描内容的示意图;8 is a schematic diagram of scanned content in an information processing method provided by an embodiment of the present application;

图9是本申请实施例提供的信息处理方法的流程图之二;FIG. 9 is the second flowchart of the information processing method provided by the embodiment of the present application;

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

图11是本申请实施例提供的电子设备的结构示意图之一;FIG. 11 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present application;

图12是本申请实施例提供的电子设备的结构示意图之二。FIG. 12 is a second schematic structural diagram of an electronic device provided by 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 processing method, information processing apparatus, and electronic device provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

本申请实施例首先提供一种信息处理方法。示例性的,该信息处理方法可以应用于手机、平板电脑、个人计算机(personal computer,PC)、可穿戴电子设备(如智能手表)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、车载设备等电子设备中。该电子设备具有多个显示屏幕,如具有折叠屏的电子设备、具有卷轴屏的电子设备等,本申请实施例对此不作任何限制。The embodiments of the present application first provide an information processing method. Exemplarily, the information processing method can be applied to mobile phones, tablet computers, personal computers (PCs), wearable electronic devices (such as smart watches), augmented reality (AR)/virtual reality (virtual reality, VR) equipment, in-vehicle equipment and other electronic equipment. The electronic device has multiple display screens, such as an electronic device with a folding screen, an electronic device with a scroll screen, etc., which is not limited in this embodiment of the present application.

传统的纸质文件不方便携带和记录,将其转化为电子文件格式后,可以在移动终端中进行记录、查看,并且还可以进行添加备注、笔记或者进行编辑等操作,能够极大地方便用户。在用户想要在电子设备上查看纸质文件时,可以采用本申请实施例提供的信息处理方法,将纸质文件转化成的电子格式的文件,并将纸质文件中的图像与图像中的文字进行单独显示,便于用户操作。例如,图像或图像中的文字可以分别被编辑,从而生成新的文字和图像,实现对纸质文件的再次编辑。Traditional paper files are inconvenient to carry and record. After they are converted into electronic file formats, they can be recorded and viewed in mobile terminals, and operations such as adding notes, notes, or editing can also be performed, which can greatly facilitate users. When a user wants to view a paper file on an electronic device, the information processing method provided by the embodiment of the present application can be used to convert the paper file into a file in an electronic format, and combine the image in the paper file with the image in the image. The text is displayed separately, which is convenient for users to operate. For example, an image or text in an image can be edited separately, thereby generating new text and images, enabling re-editing of paper documents.

图1示出了本申请实施例提供的信息处理方法的一种流程图。如图1所示,该信息处理方法包括以下步骤:FIG. 1 shows a flowchart of an information processing method provided by an embodiment of the present application. As shown in Figure 1, the information processing method includes the following steps:

步骤100:在第一屏幕中显示目标文档对应的扫描内容;扫描内容包括以下至少一项:扫描文本、扫描图像。Step 100: Display the scanned content corresponding to the target document on the first screen; the scanned content includes at least one of the following: scanned text and scanned image.

其中,目标文档可以包括纸质文档,也可以包括电子文档,例如图像、文本页面等。通过扫描仪可以对目标文档进行扫描,获得目标文档对应的扫描内容。示例性的,扫描仪可以将目标文档扫描为一个便携式文档(Portable Document Format,PDF),则获取扫描仪得到的PDF,该PDF可以作为扫描内容。或者,通过相机对目标文档进行拍摄,然后获取相机拍摄的图像,可以得到目标文档对应的扫描内容。The target document may include a paper document or an electronic document, such as an image, a text page, and the like. The target document can be scanned by the scanner to obtain the scanned content corresponding to the target document. Exemplarily, the scanner can scan the target document into a portable document (Portable Document Format, PDF), and then obtain the PDF obtained by the scanner, and the PDF can be used as the scanned content. Alternatively, the target document is photographed by the camera, and then the image photographed by the camera is obtained, so as to obtain the scan content corresponding to the target document.

目标文档中可以包括文字和图像,扫描内容中可以包括目标文档中文字对应的扫描文本,以及图像对应的扫描图像。将目标文档对应的扫描内容可以显示在电子设备的显示屏幕中。该电子设备具备两个显示屏幕,该显示屏幕可以为可折叠屏幕,在合起时可以为一个显示屏幕,在展开时可以为两个显示屏幕,分别为第一屏幕、第二屏幕。扫描内容可以显示在第一屏幕。The target document may include text and images, and the scanned content may include scanned text corresponding to the text in the target document and a scanned image corresponding to the image. The scanned content corresponding to the target document can be displayed on the display screen of the electronic device. The electronic device has two display screens, the display screens can be foldable screens, one display screen when folded, and two display screens when unfolded, which are the first screen and the second screen respectively. Scanned content can be displayed on the first screen.

步骤200:响应于用户对扫描内容中第一信息的第一输入,在第二屏幕中显示第一信息。Step 200: In response to the user's first input of the first information in the scanned content, display the first information on the second screen.

第一输入指的是用户对扫描内容的操作,该操作用于确定扫描内容中的第一信息。用户可以对显示出的扫描内容,例如扫描文本、扫描图像进行操作,例如选中扫描文本中一段字符、选中其中一个扫描图像等等。当电子设备接收到用户的第一输入时,可以获取到第一输入对应的第一信息,响应于该第一输入,电子设备可以将第一信息显示在第二屏幕中。以电子设备为手机举例,如图2所示,手机可以包括显示屏幕201(即第一屏幕)和显示屏幕202(即第二屏幕)。其中显示屏幕201中可以显示目标文档的扫描内容。目标文档的扫描内容可以包括扫描文本203和扫描图像204。当电子设备接收到显示屏幕201中的第一输入时,可以根据第一输入确定用户想要编辑的第一信息205,进而将第一信息205显示在显示屏幕202中。The first input refers to an operation performed by the user on the scanned content, and the operation is used to determine the first information in the scanned content. The user can perform operations on the displayed scanned content, such as scanned text and scanned images, such as selecting a section of characters in the scanned text, selecting one of the scanned images, and so on. When the electronic device receives the user's first input, it can acquire first information corresponding to the first input, and in response to the first input, the electronic device can display the first information on the second screen. Taking the electronic device as an example of a mobile phone, as shown in FIG. 2 , the mobile phone may include a display screen 201 (ie, a first screen) and a display screen 202 (ie, a second screen). The scan content of the target document can be displayed in thedisplay screen 201 . The scanned content of the target document may include scannedtext 203 and scannedimage 204 . When the electronic device receives the first input on thedisplay screen 201 , it can determine thefirst information 205 that the user wants to edit according to the first input, and then display thefirst information 205 on thedisplay screen 202 .

示例性的,用户的第一输入可以包括点击操作、滑动操作、拖拽操作等,本实施方式对此不作特殊限定。以第一输入为滑动操作为例,用户可以通过滑动操作选择扫描内容中的信息。电子设备可以通过滑动操作对应的事件,如MotionEvent.ACTION_DOWN事件、MotionEvent.ACTION_UP事件等,来获取用户手指触摸的位置的坐标,然后获取在该坐标范围内显示的信息,作为第一信息。具体的,电子设备可以获取第一输入中用户手指点击的位置(x1,y1),判断该(x1,y1)是否与扫描内容的显示区域有重叠。如果不重叠,则确定该操作为误触,不响应操作。如果有重叠,则电子设备可以再获取用户手指抬起的位置(x2,y2),确定手指移动路线从(x1,y1)到(x2,y2)所组成的矩形。第一屏幕中在该矩形内的信息可以作为第一信息。Exemplarily, the user's first input may include a click operation, a sliding operation, a dragging operation, etc., which is not particularly limited in this embodiment. Taking the first input as a sliding operation as an example, the user can select information in the scanned content through the sliding operation. The electronic device can obtain the coordinates of the position touched by the user's finger through events corresponding to the sliding operation, such as the MotionEvent.ACTION_DOWN event, MotionEvent.ACTION_UP event, etc., and then obtain the information displayed within the coordinate range as the first information. Specifically, the electronic device may obtain the position (x1, y1) where the user's finger clicks in the first input, and determine whether the (x1, y1) overlaps with the display area of the scanned content. If there is no overlap, it is determined that the operation is a false touch, and the operation is not responded to. If there is overlap, the electronic device can then obtain the position (x2, y2) where the user's finger is lifted, and determine the rectangle formed by the finger movement route from (x1, y1) to (x2, y2). Information within the rectangle in the first screen may be used as the first information.

并且,电子设备可以对第一信息可以进行区别性显示,从而提示用户选中的内容。例如,电子设备可以为选中的第一信息添加下划线、添加高亮标记等等。继续以图2为例,手机在接收到滑动操作时,可以给滑动操作对应的第一信息添加下划线,在滑动操作结束时,响应该滑动操作,手机可以将对应的第一信息自动显示在显示屏幕202中。In addition, the electronic device may display the first information in a differentiated manner, thereby prompting the user to select the content. For example, the electronic device may add an underline, a highlight mark, and the like to the selected first information. Continuing to take Figure 2 as an example, when the mobile phone receives the sliding operation, it can add an underline to the first information corresponding to the sliding operation, and when the sliding operation ends, in response to the sliding operation, the mobile phone can automatically display the corresponding first information on the display.screen 202.

此外,当手机接收到用户将第一信息拖拽至显示屏幕202中的操作时,手机可以该操作来显示第一信息。具体的,根据用户拖拽操作中手指离开的位置,当该位置与显示屏幕202重叠时,将第一信息显示在该显示屏幕202中的该位置处。例如,通过MotionEvent.ACTION_MOVE事件来获取拖拽操作中用户手指离开的位置,判断该位置是否与显示屏幕202重叠。当该位置为(x3,y3)时与显示屏幕202重叠,则手机可以将第一信息显示在显示屏幕202的(x3,y3)位置上。在显示屏幕202上,也可以继续通过拖拽操作来移动第一信息的位置,例如从(x3,y3)移动到(x4,y4)上等等,满足用户对信息的编辑需求。In addition, when the mobile phone receives the operation of the user dragging the first information into thedisplay screen 202, the mobile phone can display the first information by the operation. Specifically, according to the position where the user's finger leaves in the drag operation, when the position overlaps thedisplay screen 202 , the first information is displayed at the position in thedisplay screen 202 . For example, the position where the user's finger leaves in the drag operation is obtained through the MotionEvent.ACTION_MOVE event, and it is determined whether the position overlaps thedisplay screen 202 . When the position is (x3, y3) and overlaps thedisplay screen 202, the mobile phone can display the first information on the (x3, y3) position of thedisplay screen 202. On thedisplay screen 202, the position of the first information can also be moved by dragging, for example, from (x3, y3) to (x4, y4), etc., to meet the user's editing requirements for information.

在第二屏幕上,可以通过移动光标来对第一信息进行编辑,例如删除第一信息中的某个字符,为第一信息增加字符等等。编辑完成之后,第二屏幕中的信息可以进行存储,以便于重复进行查看。本实施方式中,用户在浏览目标文档对应的扫描内容时,可以在不改动原始内容的基础上,添加标记、备注等,从而生成新的信息,有助于用户快速理解文档的内容,提高阅读效果。并且,第二屏幕中显示的第一信息可以进行存储,后续需要查看时,用户还可以查看自己编辑的内容,能够形成阅读笔记,满足用户的需求。On the second screen, the first information can be edited by moving the cursor, for example, deleting a certain character in the first information, adding characters to the first information, and so on. After editing, the information in the second screen can be stored for repeated viewing. In this embodiment, when the user browses the scanned content corresponding to the target document, he or she can add tags, remarks, etc. without changing the original content, thereby generating new information, which is helpful for the user to quickly understand the content of the document and improve reading Effect. In addition, the first information displayed on the second screen can be stored, and when the user needs to view it later, the user can also view the content edited by himself, which can form a reading note to meet the user's needs.

随着电子设备的不断发展,折叠屏手机、双屏手机等越来越多。这类设备具有两个或多个屏幕,每个屏幕可以单独显示文档的原始内容和被编辑的信息,这样不仅能够充分利用到屏幕,也可以在编辑第一信息时避免对原始的扫描内容造成破坏,保证扫描内容不被篡改。并且在对第一信息进行编辑时也能够避免误操作其他信息,操作效率更高。With the continuous development of electronic devices, there are more and more folding screen mobile phones, dual-screen mobile phones, etc. This type of equipment has two or more screens, and each screen can display the original content of the document and the edited information independently, so that not only can the screen be fully utilized, but also the original scanned content can be avoided when editing the first information. Destruction, to ensure that the scanned content is not tampered with. In addition, when editing the first information, misoperation of other information can also be avoided, and the operation efficiency is higher.

若目标文档中同时包括文本和图像,则对应的扫描内容中同时包括扫描文本和扫描图像。在这种情况下,电子设备可以将第一屏幕的显示区域划分为显示文本的区域和显示图像的区域,从而将扫描文本和扫描图像分开显示,便于用户分别对文本和图像进行操作,提高操作的准确性。示例性的,在扫描内容中同时包括扫描文本和扫描图像的情况下,在第一屏幕的第一屏幕区域显示扫描文本,并在第一屏幕的第二屏幕区域显示扫描图像。If the target document includes both text and image, the corresponding scanned content includes both the scanned text and the scanned image. In this case, the electronic device can divide the display area of the first screen into an area for displaying text and an area for displaying images, so as to display the scanned text and the scanned image separately, which is convenient for the user to operate the text and image respectively, and improves the operation efficiency. accuracy. Exemplarily, when the scanned content includes both the scanned text and the scanned image, the scanned text is displayed in the first screen area of the first screen, and the scanned image is displayed in the second screen area of the first screen.

如图3所示,第一屏幕201可以包括屏幕区域301(即第一屏幕区域)和屏幕区域302(即第二屏幕区域)。电子设备可以将扫描内容中的扫描文本显示在屏幕区域301,将扫描内容中的扫描图像显示在屏幕区域302中。As shown in FIG. 3 , thefirst screen 201 may include a screen area 301 (ie, the first screen area) and a screen area 302 (ie, the second screen area). The electronic device may display the scanned text in the scanned content in thescreen area 301 , and display the scanned image in the scanned content in thescreen area 302 .

示例性的,在目标文档中包括文档图像,且文档图像中包括图像文本的情况下,可以在第一屏幕的第三屏幕区域显示文档图像对应的扫描图像,并在第一屏幕的第四屏幕区域显示图像文本对应的扫描文本。其中,图像文本是文档图像中文本所在的部分,其对应的扫描文本指的是从这部分识别出来的可编辑的文本。文档图像对应的扫描图像指的是去除文档图像中图像文本的部分后,还原出的不包括图像文本的图像。如果目标文档中包括文档图像,则电子设备在第一屏幕中显示该目标文档对应的扫描内容时,可以直接将文档图像对应的扫描文本和扫描图像分开显示在不同的区域,使得文档图像中的字符变为可编辑的扫描文本,便于用户单独对文档图像中的文本和图像进行编辑,提高目标文档中信息的可用性。Exemplarily, when the target document includes a document image and the document image includes image text, the scanned image corresponding to the document image may be displayed on the third screen area of the first screen, and the scanned image corresponding to the document image may be displayed on the fourth screen of the first screen. The area displays the scanned text corresponding to the image text. The image text is the part of the document image where the text is located, and the corresponding scanned text refers to the editable text recognized from this part. The scanned image corresponding to the document image refers to the restored image that does not include the image text after removing the part of the image text in the document image. If the target document includes a document image, when the electronic device displays the scanned content corresponding to the target document on the first screen, the electronic device can directly display the scanned text corresponding to the document image and the scanned image in different areas, so that Characters become editable scanned text, allowing users to individually edit text and images within document images, improving the usability of information in the target document.

如图4所示,在目标文档中包括文档图像,且文档图像中包括图像文本时,将显示屏幕201(第一屏幕)可以划分为第一屏幕区域401、第二屏幕区域402、第三屏幕区域403和第四屏幕区域404。电子设备可以从目标文档的文档图像中识别出图像文本对应的扫描文本,显示在屏幕区域404中,然后将文档图像处理为不包括图像文本的扫描图像,显示在屏幕区域403中。As shown in FIG. 4 , when the target document includes a document image and the document image includes image text, the display screen 201 (the first screen) can be divided into afirst screen area 401 , asecond screen area 402 , and athird screen area 403 andfourth screen area 404. The electronic device can identify the scanned text corresponding to the image text from the document image of the target document, display it in thescreen area 404 , and then process the document image into a scanned image that does not include the image text and display it in thescreen area 403 .

示例性的,通过其他方式也可以对第一屏幕进行划分,得到第一屏幕区域、第二屏幕区域、第三屏幕区域以及第四屏幕区域,例如,第三屏幕区域与第四屏幕区域可以左右排列等,本实施方式对此不作特殊限定。Exemplarily, the first screen can also be divided in other ways to obtain the first screen area, the second screen area, the third screen area and the fourth screen area. For example, the third screen area and the fourth screen area can be left and right. The arrangement and the like are not particularly limited in this embodiment.

接下来介绍从文档图像处理得到对应的扫描文本与扫描图像的过程。首先扫描文档图像,得到对应的初始扫描图像,例如,对纸质的文档图像进行扫描,得到电子格式的初始扫描图像。该初始扫描图像中包括图像文本。然后确定初始扫描图像中,图像文本所在的图像区域,对该图像区域,根据初始扫描图像中图像区域的相邻区域中像素点的像素值,调整该图像区域中像素点的像素值,将调整后的图像作为扫描图像。Next, the process of obtaining the corresponding scanned text and scanned image from document image processing will be described. First, scan a document image to obtain a corresponding initial scanned image. For example, scan a paper document image to obtain an initial scanned image in an electronic format. The initial scanned image includes image text. Then determine the image area where the image text is located in the initial scanned image, adjust the pixel value of the pixel in the image area according to the pixel value of the pixel in the adjacent area of the image area in the initial scanned image, and adjust the pixel value of the pixel in the image area. The resulting image is used as a scanned image.

具体的,通过光学字符识别(Optical Character Recognition,OCR)技术可以识别文档图像中是否包括图像文本,如果文档图像中包括图像文本则可以识别出图像文本对应的扫描文本,从而将图像文本转化为可编辑的扫描文本,便于用户使用图像中的文本。同时,识别到图像文本在初始扫描图像中所在的图像区域,初始扫描图像中可以存在多个图像区域。对于每一个图像区域,可以确定与其相邻的相邻区域。然后将图像区域中像素点原有的像素值替换为相邻区域中像素点的像素值,通过相邻区域的像素值覆盖掉图像区域原有的像素值,从而将原有的图像文本去除,得到不包括图像文本的扫描图像。Specifically, whether the document image includes image text can be identified through Optical Character Recognition (OCR) technology, and if the document image includes image text, the scanned text corresponding to the image text can be identified, so that the image text can be converted into readable text. Edited scanned text to make it easier for users to use text from images. At the same time, the image area where the image text is located in the initial scanned image is identified, and there may be multiple image areas in the initial scanned image. For each image region, its adjacent neighbor regions can be determined. Then, the original pixel value of the pixel in the image area is replaced by the pixel value of the pixel in the adjacent area, and the original pixel value of the image area is overwritten by the pixel value of the adjacent area, thereby removing the original image text. Get scanned images without image text.

示例性的实施方式中,在目标文档中包括文档图像,且文档图像中包括图像文本的情况下,也可以不将文档图像对应的扫描文本与扫图像分开显示。即,在第一屏幕中显示文档图像对应的扫描图像,该文档图像对应的扫描图像中包括图像文本对应的扫描文本。也就是说,显示文档图像对应的扫描图像和扫描文本时,可以将扫描文本显示在原本的图像区域中,该图像区域中的扫描文本为编辑状态,可以进行复制、修改等编辑操作。In an exemplary embodiment, when the target document includes a document image and the document image includes image text, the scanned text corresponding to the document image may not be displayed separately from the scanned image. That is, the scanned image corresponding to the document image is displayed on the first screen, and the scanned image corresponding to the document image includes the scanned text corresponding to the image text. That is to say, when displaying the scanned image and scanned text corresponding to the document image, the scanned text can be displayed in the original image area, and the scanned text in the image area is in an editing state, and editing operations such as copying and modification can be performed.

当电子设备接收到用户对文档图像对应的扫描图像中的扫描文本的第一输入时,响应于该第一输入,电子设备可以在第二屏幕中显示文档图像对应的扫描图像中的扫描文本。第一输入可以包括用户的点击操作。当用户点击文档图像对应的扫描图像时,扫描图像上的扫描文本可以被进行复制、修改等编辑操作,编辑后的文本可以显示在第二屏幕中。如图5所示,电子设备可以在第一屏幕201中显示包括扫描文本的扫描图像501。该扫描图像501中包括编辑状态的扫描文本502。当电子设备接收到针对扫描图像的点击操作时,可以将扫描图像501中的扫描文本502显示在第二屏幕202中。When the electronic device receives the user's first input of the scanned text in the scanned image corresponding to the document image, in response to the first input, the electronic device may display the scanned text in the scanned image corresponding to the document image on the second screen. The first input may include a user's click operation. When the user clicks on the scanned image corresponding to the document image, the scanned text on the scanned image can be copied, modified, and other editing operations, and the edited text can be displayed on the second screen. As shown in FIG. 5 , the electronic device may display a scannedimage 501 including scanned text in thefirst screen 201 . The scannedimage 501 includes the scannedtext 502 in an edited state. When the electronic device receives a click operation on the scanned image, the scannedtext 502 in the scannedimage 501 may be displayed in thesecond screen 202 .

示例性的实施方式中,在第二屏幕显示第一信息时,可以在第二屏幕中的目标节点位置显示第一信息。其中,目标节点位置指的是思维导图中目标节点的显示位置。思维导图可以由根节点和多个子节点构成,根节点与其每个子节点均相连接。思维导图是一种用图形整理信息的方式,常用于做笔记中。它可以将与目标相关的所有元素以辐射线形进行连接,从而将相关的信息集中在一起。通过思维导图可以更好地提炼知识,帮助用户思考。In an exemplary embodiment, when the first information is displayed on the second screen, the first information may be displayed at the position of the target node in the second screen. The target node position refers to the display position of the target node in the mind map. A mind map can consist of a root node and multiple child nodes, and the root node is connected to each of its child nodes. Mind mapping is a way of organizing information graphically and is often used in note-taking. It can connect all the elements related to the target in a radial line, thus bringing related information together. Mind maps can better refine knowledge and help users think.

扫描内容中的扫描文本、扫描图像均可以被选中作为第一信息,第一信息可以作为思维导图中的一个节点,显示在该节点对应的目标节点位置处。在确定第一信息时,若思维导图不存在根节点,则将第一信息作为根节点,根据根节点对应的目标节点位置显示第一信息。在确定第一信息时,若思维导图存在根节点,则将第一信息作为根节点的子节点,按照子节点对应的目标节点位置显示第一信息。思维导图中根节点与其子节点分别对应的目标节点位置可以预先设置。例如,根节点对应的目标节点位置与子节点对应的目标节点位置可以左右排列。一个根节点可以具有多个子节点。Both the scanned text and the scanned image in the scanned content can be selected as the first information, and the first information can be used as a node in the mind map and displayed at the position of the target node corresponding to the node. When determining the first information, if there is no root node in the mind map, the first information is used as the root node, and the first information is displayed according to the position of the target node corresponding to the root node. When determining the first information, if a root node exists in the mind map, the first information is regarded as a child node of the root node, and the first information is displayed according to the position of the target node corresponding to the child node. The target node positions corresponding to the root node and its child nodes in the mind map can be preset. For example, the position of the target node corresponding to the root node and the position of the target node corresponding to the child nodes may be arranged left and right. A root node can have multiple child nodes.

举例来说,用户可以通过多次操作分别确定第一屏幕中扫描内容中的多个信息,如第一信息、第二信息、第三信息等等。如图6所示,电子设备接收到对于第一屏幕中扫描内容中的文本“大江东去,浪淘尽,千古风流人物。”的操作,即第一输入,可以将对应的信息,即第一信息,作为思维导图的跟节点,显示在第二屏幕中根节点对应的目标节点位置601处。若再次接收到对第一屏幕201中第二信息如图像602的第二输入时,电子设备可以将第二信息显示在第二屏幕202根节点的子节点对应的目标节点位置603处。根节点与子节点之间通过连接线连接。同理的,之后若再接收到对扫描内容中第三信息“诗词赏析”的第三输入时,可以将该第三信息也作为上述根节点的一个子节点,显示在对应的目标节点位置604处。可见,根节点与其对应的子节点的节点位置可以按照从左至右的位置排列,多个子节点之间可以从上到下的位置排列。此外,根节点与子节点也可以统一按照从上到下的位置顺序排列,或者根节点在上,子节点之间从左到右排列等等。For example, the user may determine multiple pieces of information, such as first information, second information, third information, and so on, in the scanned content in the first screen through multiple operations. As shown in FIG. 6 , the electronic device receives the operation for the text in the scanned content on the first screen, “The river goes east, the waves are exhausted, and the ancients are romantic people.”, that is, the first input, the corresponding information, that is A piece of information, as the root node of the mind map, is displayed at thetarget node position 601 corresponding to the root node in the second screen. If the second input of the second information such as theimage 602 in thefirst screen 201 is received again, the electronic device may display the second information at thetarget node position 603 corresponding to the child node of the root node of thesecond screen 202 . The root node and child nodes are connected by connecting lines. Similarly, if the third input of the third information "poem appreciation" in the scanned content is received later, the third information can also be used as a child node of the above-mentioned root node and displayed at the correspondingtarget node position 604. place. It can be seen that the node positions of the root node and its corresponding child nodes can be arranged from left to right, and multiple child nodes can be arranged from top to bottom. In addition, the root node and child nodes can also be arranged in a unified order from top to bottom, or the root node is on the top, and the child nodes are arranged from left to right, and so on.

示例性的,在用户关闭第二屏幕时,可以对第二屏幕中的思维导图进行保存,如将第二屏幕202中显示的内容可以进行截图,从而将第二屏幕中用户编辑的笔记以图片的方式进行保存。并且,截图得到的图片还可以分享给其他用户,从而提高信息的共享性。本实施方式中,在用户需要对信息进行编辑时,可以自动将用户编辑的信息生成思维导图,使得用户记笔记的效率更高。以思维导图为笔记,也更容易理解,文档的阅读效率更高。Exemplarily, when the user closes the second screen, the mind map in the second screen can be saved, for example, the content displayed in thesecond screen 202 can be captured, so that the notes edited by the user in the second screen can be saved as a screenshot. save as pictures. Moreover, the pictures obtained by the screenshots can also be shared with other users, thereby improving the sharing of information. In this embodiment, when the user needs to edit information, a mind map can be automatically generated from the information edited by the user, so that the user can take notes more efficiently. Taking mind maps as notes is also easier to understand, and the reading efficiency of documents is higher.

在目标文档存在多个扫描内容的情况下,可以为每个扫描内容生成对应的页面编码,通过页面编码来标识扫描内容。需要在第一屏幕中显示目标文档的其中一个扫描内容时,用户可以在第一屏幕中输入需要的页面编码,输入页面编码的操作可以记为第二输入。在电子设备接收到第二输入时,可以确定用户输入的页面编码,响应于该第二输入,可以在第一屏幕中显示页面编码对应的扫描内容。在接收到针对扫描内容中第一信息的输入时,则可以将该第一信息显示在第二屏幕中。In the case where there are multiple scanned contents in the target document, a corresponding page code may be generated for each scanned content, and the scanned content is identified by the page code. When one of the scanned contents of the target document needs to be displayed on the first screen, the user can input the required page code on the first screen, and the operation of inputting the page code can be recorded as the second input. When the electronic device receives the second input, the page code input by the user may be determined, and in response to the second input, the scanned content corresponding to the page code may be displayed on the first screen. When an input for the first information in the scanned content is received, the first information may be displayed on the second screen.

示例性的,扫描内容与第一信息也可以现在在同一个显示屏幕中的不同显示窗口中。在电子设备的第一屏幕与第二屏幕合起成为一个显示屏幕时,电子设备可以在该显示屏幕中以分屏显示的方式显示两个窗口,分别为第一窗口、第二窗口,然后将扫描内容可以显示在第一窗口,第一信息可以显示在第二窗口。举例来说,如图7所示,电子设备可以显示第一窗口701和第二窗口702。在第一窗口701中可以显示页面编码对应的扫描内容。电子设备在第一窗口701中接收到用户针对图像703的第一输入时,可以将图像703显示在第二窗口702中。在这种情况下,图像703可以作为根节点显示在第二窗口702中,若用户还需要编辑其他信息,则可以将用户下一个要编辑的信息作为图像703的子节点,显示在对应的节点位置处。Exemplarily, the scanned content and the first information may also be present in different display windows on the same display screen. When the first screen and the second screen of the electronic device are combined into one display screen, the electronic device can display two windows in the display screen in a split-screen display manner, namely the first window and the second window, and then The scanned content may be displayed in the first window, and the first information may be displayed in the second window. For example, as shown in FIG. 7 , the electronic device may display afirst window 701 and asecond window 702 . The scanned content corresponding to the page code can be displayed in thefirst window 701 . When the electronic device receives the user's first input for theimage 703 in thefirst window 701 , the electronic device may display theimage 703 in thesecond window 702 . In this case, theimage 703 can be displayed in thesecond window 702 as the root node. If the user needs to edit other information, the next information to be edited by the user can be displayed as a child node of theimage 703 on the corresponding node. location.

示例性的,目标文档中可以包括一个或多个页面,通过其中一个页面的扫描内容,可以识别出目标文档的信息,从而对该目标文档进行检索,获取目标文档中所有页面的扫描内容。纸质书籍作为最重要的纸质文档,大多已经被扫描为图像进行存储。举例来说,当目标文档为纸质书籍时,可以通过获取其中一个纸质页面对应的扫描内容来识别出书籍的名称,进而基于该名称搜索对应的书籍的各个页面的扫描内容。Exemplarily, the target document may include one or more pages, and the information of the target document can be identified through the scanned content of one of the pages, so that the target document can be retrieved to obtain the scanned content of all pages in the target document. As the most important paper documents, paper books have mostly been scanned as images for storage. For example, when the target document is a paper book, the name of the book can be identified by obtaining the scanned content corresponding to one of the paper pages, and then the scanned content of each page of the corresponding book can be searched based on the name.

具体的,得到一个页面的扫描内容后,可以基于该页面的扫描内容识别对应的目标文档是否为纸质书籍。示例性的,根据书籍的页面规则,可以识别扫描内容是否为书籍中的页面。书籍的页面中包括书名、页码和正文。书籍的一些页面中可以没有正文,因此如果识别出扫描内容中包括书名和页码,则可以确定该扫描内容对应的文档为书籍。Specifically, after obtaining the scanned content of a page, whether the corresponding target document is a paper book can be identified based on the scanned content of the page. Exemplarily, according to the page rules of the book, it can be identified whether the scanned content is a page in the book. The pages of a book include the title, page number, and text. Some pages of the book may have no text, so if it is recognized that the scanned content includes a book title and page number, it can be determined that the document corresponding to the scanned content is a book.

图8示出了书籍的页面示意图。如图8所示,页面800为书籍的其中一个页面。页面800中位置801处为书籍的名称,即书名,位置802处为页码,位置803为正文的内容。基于此规则,获取到页面800对应的扫描内容后,可以识别该扫描内容的位置801、位置802以及位置803处的内容。如果该扫描内容的位置801有内容,并且位置802有内容,且位置802中的内容符合页码的格式,则该扫描内容对应的目标文档为书籍。其中,页码通常由一位或多位数字组成,利用正则表达式可以确定位置802中的内容是否为页码。例如,将位置802的内容与正则表达式“/^(0|[1-9][0-9]*)$/”进行匹配,若相匹配,则该内容为页码。若不匹配,则该内容不为页码。正则表达式“/^(0|[1-9][0-9]*)$/”表示以0或非0开头的数字。Figure 8 shows a page schematic of a book. As shown in FIG. 8 ,page 800 is one of the pages of the book. In thepage 800, theposition 801 is the name of the book, that is, the title of the book, theposition 802 is the page number, and theposition 803 is the content of the text. Based on this rule, after the scanned content corresponding to thepage 800 is obtained, the content at theposition 801 , theposition 802 , and theposition 803 of the scanned content can be identified. If there is content atposition 801 of the scanned content, and content atposition 802, and the content inposition 802 conforms to the page number format, the target document corresponding to the scanned content is a book. Wherein, the page number is usually composed of one or more digits, and whether the content in theposition 802 is a page number can be determined by using a regular expression. For example, the content ofposition 802 is matched with the regular expression "/^(0|[1-9][0-9]*)$/", if it matches, the content is the page number. If it does not match, the content is not a page number. The regular expression "/^(0|[1-9][0-9]*)$/" represents a number starting with 0 or non-0.

如果识别扫描内容对应的目标文档为书籍,则可以获取页面800中位置1的内容作为书名,进行搜索,从数据库中查找该书名对应的图像页面,从而获得该书籍的所有页面的扫描内容。如果没有查找到书名对应的图像页面,或者图像页面不为书籍中的页面,可以对纸质文件中的每一页纸质页面进行扫描,获得扫描得到扫描内容。书籍对应的扫描内容中页码可以作为页面编码,与扫描内容进行关联存储,以便于后续再次需要显示扫描内容作时,可以直接搜索对应的页面编码,而无需再次进行扫描,避免多次扫描造成资源浪费。If the target document corresponding to the scanned content is identified as a book, the content at position 1 inpage 800 can be obtained as the title of the book, and a search can be performed to find the image page corresponding to the title from the database, so as to obtain the scanned content of all pages of the book . If the image page corresponding to the title of the book is not found, or the image page is not a page in the book, each paper page in the paper file can be scanned to obtain the scanned content. The page number in the scanned content corresponding to the book can be used as the page code and stored in association with the scanned content, so that when the scanned content needs to be displayed again in the future, the corresponding page code can be directly searched, without the need to scan again, to avoid resources caused by multiple scans. waste.

可选地,根据存储的扫描内容可以生成文件列表。示例性的,将每个扫描内容的页面编码进行排列生成文件列表,作为目标文档的目录,便于快速查看存储的扫描内容。Optionally, a file list can be generated from the stored scan content. Exemplarily, the page codes of each scanned content are arranged to generate a file list, which is used as a directory of the target document, so that the stored scanned content can be viewed quickly.

本实施例的上述技术方案可以作为电子设备的一个新增功能,添加在电子设备中。例如,该功能可以称为:添加笔记、识别书籍等,本实施方式对此不作特殊限定。将该功能的触发按钮可以添加在通知栏中,通过下拉通知栏可以显示通知栏中的触发按钮的图标。当该触发按钮被点击时,可以触发电子设备执行上述方法。The above technical solution of this embodiment may be added to the electronic device as a newly added function of the electronic device. For example, this function may be called: adding notes, recognizing books, etc., which is not particularly limited in this embodiment. The trigger button of this function can be added to the notification bar, and the icon of the trigger button in the notification bar can be displayed by pulling down the notification bar. When the trigger button is clicked, the electronic device can be triggered to execute the above method.

继续以该电子设备为手机为例,如图9所示,本实施例的信息处理方法可以包括如下步骤:Continuing to take the electronic device as a mobile phone as an example, as shown in FIG. 9 , the information processing method of this embodiment may include the following steps:

步骤901:接收到点击触发按钮的操作时,确认打开折叠屏。点击触发按钮可以触发折叠屏手机开始执行上述实施例中的步骤。首先确定折叠屏是否打开。获取折叠屏的状态,如果折叠屏不为打开状态,则可以显示提示信息,提示用户打开折叠屏。步骤902:打开摄像头。通过摄像头扫描目标文档,例如书籍。步骤903:识别摄像头扫描的图片,获得该图片中包含的扫描文本和扫描图像。步骤904:识别文档图像中包含的扫描文本,并获取不包含扫描文本的扫描图像。步骤905:在第一屏幕显示扫描文本和扫描图像。并且,为该扫描文本和扫描图像生成对应的页面编码。步骤906:接收用户在第一屏幕中选择信息的操作(第一输入)。折叠屏手机可以通过手势识别来确定用户的操作。步骤907:响应该操作,获得用户选中的信息显示在第二屏幕。并且,选中的信息可以以思维导图的方式进行显示。步骤908:保存第二屏幕上显示的信息。手机接收到用户关闭第二屏幕的操作时,则保存当前第二屏幕上显示的信息。Step 901: When receiving the operation of clicking the trigger button, confirm to open the folding screen. Clicking the trigger button can trigger the folding screen mobile phone to start executing the steps in the above embodiments. First determine whether the folding screen is turned on. Get the status of the folding screen. If the folding screen is not open, a prompt message can be displayed to prompt the user to open the folding screen. Step 902: Turn on the camera. Scan a target document, such as a book, with the camera. Step 903: Identify the picture scanned by the camera, and obtain the scanned text and scanned image contained in the picture. Step 904: Identify the scanned text contained in the document image, and obtain the scanned image that does not contain the scanned text. Step 905: Display the scanned text and the scanned image on the first screen. And, a corresponding page code is generated for the scanned text and the scanned image. Step 906: Receive the user's operation of selecting information in the first screen (first input). The folding screen phone can determine the user's operation through gesture recognition. Step 907: In response to the operation, the information selected by the user is obtained and displayed on the second screen. Moreover, the selected information can be displayed in the form of a mind map. Step 908: Save the information displayed on the second screen. When the mobile phone receives the user's operation of closing the second screen, it saves the information currently displayed on the second screen.

上述实施方式可以在折叠屏手机没有存储的目标文档的信息时,实时获取目标文档的扫描内容,并将扫描内容与用户需要编辑的信息分开进行显示,使得显示出来的扫描内容均能够被单独编辑,从而实现对文档做笔记的效果,解决用户在阅读纸质文件时不方便做笔记的问题。The above embodiment can acquire the scanned content of the target document in real time when the folding screen mobile phone does not store the information of the target document, and display the scanned content separately from the information that the user needs to edit, so that the displayed scanned content can be edited separately. , so as to realize the effect of taking notes on the document, and solve the problem that it is inconvenient for users to take notes when reading paper documents.

在手机中已经存储了一些文档的信息时,手机可以执行上述步骤901之后,跳过步骤902至步骤904,执行下述步骤:确定页面编码。接收到用户确定页面编码的操作(第二输入),可以获得对应的用户输入的页面编码。进而响应该操作,再执行上述步骤905,在第一屏幕中显示该页面编码对应的扫描文本和扫描图像。When some document information has been stored in the mobile phone, the mobile phone can skipsteps 902 to 904 after performing theabove step 901, and perform the following steps: determine the page code. After receiving the user's operation of determining the page code (second input), the corresponding page code input by the user can be obtained. Further, in response to this operation, theabove step 905 is performed again to display the scanned text and scanned image corresponding to the page code on the first screen.

示例性的实施方式中,在上述步骤903中,基于扫描得到的图片可以识别该图片对应的文档是否为书籍。当识别该图片对应的文档为书籍时,可以根据识别到的书名,从云端服务器中搜索该书名对应的所有图片。从而,省去扫描书籍中每个页面的操作,直接对搜索到的图片进行识别,得到扫描内容,可以提高显示的速度。示例性的,如果识别出图片对应的文档不是书籍,那么在该图片中识别的扫描内容,即扫描文本和扫描图像等,也可以存储在云端服务器,当用户再次需要阅读时,可以直接输入对应的页面编码,从该云端服务器中搜索对应的扫描内容进行显示,提高显示的速度。In an exemplary embodiment, in theabove step 903, whether the document corresponding to the picture is a book can be identified based on the scanned picture. When the document corresponding to the picture is identified as a book, all pictures corresponding to the book title can be searched from the cloud server according to the identified book title. Therefore, the operation of scanning each page in the book is omitted, and the searched pictures are directly identified to obtain the scanned content, which can improve the display speed. Exemplarily, if it is recognized that the document corresponding to the picture is not a book, the scanned content identified in the picture, that is, scanned text and scanned images, etc., can also be stored in the cloud server. When the user needs to read again, they can directly input the corresponding content. The corresponding page code is searched from the cloud server for display, which improves the display speed.

需要理解的是,上述实施例中是以在手机中执行信息处理方法为例,而本实施例提供的信息处理方法还可以应用于双面屏手机、卷轴屏手机、平板电脑、个人计算机等其他电子设备中,本申请对此不作任何限制。It should be understood that, in the above-mentioned embodiments, the information processing method performed in a mobile phone is taken as an example, and the information processing method provided in this embodiment can also be applied to other dual-screen mobile phones, scroll-screen mobile phones, tablet computers, personal computers, etc. In electronic equipment, this application does not make any limitation on this.

进一步的,本申请实施例提供的信息处理方法,执行主体可以为信息处理装置。下面,以信息处理装置中执行信息处理方法为例,说明本申请实施例提供的信息处理装置。Further, in the information processing method provided by the embodiments of the present application, the execution body may be an information processing apparatus. Hereinafter, the information processing apparatus provided by the embodiments of the present application will be described by taking the information processing method executed in the information processing apparatus as an example.

如图10所示,本申请实施例提供的信息处理装置1000可以包括第一显示模块1010以及第二显示模块1020。具体的,第一显示模块1010可以用于在第一屏幕中显示目标文档对应的扫描内容;扫描内容包括以下至少一项:扫描文本、扫描图像。第二显示模块1020可用于响应于用户对扫描内容中第一信息的第一输入,在第二屏幕中显示第一信息。As shown in FIG. 10 , theinformation processing apparatus 1000 provided in this embodiment of the present application may include afirst display module 1010 and asecond display module 1020 . Specifically, thefirst display module 1010 may be configured to display the scanned content corresponding to the target document on the first screen; the scanned content includes at least one of the following: scanned text and scanned image. Thesecond display module 1020 may be configured to display the first information in the second screen in response to the user's first input of the first information in the scanned content.

本实施例提供的信息处理装置,可以将目标文档中的扫描内容显示出来,用户可以对扫描内容进行编辑,可以提高文档中信息的可用性。并且,用户需要编辑的信息与扫描内容可以单独显示在不同的屏幕,能够避免用户在对扫描内容进行标注时影响扫描内容,也更易于用户操作,可以改善用户的体验。The information processing apparatus provided in this embodiment can display the scanned content in the target document, and the user can edit the scanned content, which can improve the usability of the information in the document. In addition, the information that the user needs to edit and the scanned content can be displayed on different screens separately, which can prevent the user from affecting the scanned content when annotating the scanned content, and is easier for the user to operate, which can improve the user experience.

示例性的实施方式中,上述第一显示模块1010可以具体用于:在扫描内容同时包括扫描文本和扫描图像的情况下,在第一屏幕的第一屏幕区域显示扫描文本,并在第一屏幕的第二屏幕区域显示扫描图像。In an exemplary embodiment, the above-mentionedfirst display module 1010 can be specifically configured to: in the case that the scanned content includes both scanned text and scanned image, display the scanned text in the first screen area of the first screen, and display the scanned text on the first screen. The second screen area of displays the scanned image.

示例性的实施方式中,第一显示模块1010具体用于在目标文档包括文档图像,且文档图像中包括图像文本的情况下,在第一屏幕的第三屏幕区域显示文档图像对应的扫描图像,并在第一屏幕的第四屏幕区域显示图像文本对应的扫描文本;其中,文档图像对应的扫描图像中不包括图像文本对应的扫描文本。In an exemplary embodiment, thefirst display module 1010 is specifically configured to display the scanned image corresponding to the document image in the third screen area of the first screen when the target document includes a document image and the document image includes image text, And the scanned text corresponding to the image text is displayed in the fourth screen area of the first screen; wherein, the scanned image corresponding to the document image does not include the scanned text corresponding to the image text.

示例性的实施方式中,该装置还可以包括:第一扫描模块,用于扫描文档图像,得到文档图像对应的初始扫描图像;初始扫描图像中包括图像文本对应的扫描文本;第一确定模块,用于确定初始扫描图像中,图像文本对应的扫描文本所在的图像区域;第一调整模块,用于对于每个图像区域,根据图像区域的相邻区域中像素点的像素值,调整图像区域中像素点的像素值;第一生成模块,用于根据调整后的图像区域中像素点的像素值,生成文档图像对应的扫描图像。In an exemplary embodiment, the device may further include: a first scanning module for scanning a document image to obtain an initial scanned image corresponding to the document image; the initial scanned image includes scanned text corresponding to the image text; a first determination module, It is used to determine the image area where the scanned text corresponding to the image text is located in the initial scanned image; the first adjustment module is used for each image area, according to the pixel value of the pixel point in the adjacent area of the image area, to adjust the image area in the image area. The pixel value of the pixel point; the first generation module is used for generating the scanned image corresponding to the document image according to the pixel value of the pixel point in the adjusted image area.

示例性实施方式中,上述第一显示模块1010具体可用于:在目标文档包括文档图像,且文档图像中包括图像文本的情况下,在第一屏幕中显示文档图像对应的扫描图像;其中,文档图像对应的扫描图像中包括图像文本对应的扫描文本,文档图像对应的扫描图像中的扫描文本为编辑状态。In an exemplary embodiment, the above-mentionedfirst display module 1010 can be specifically configured to: display the scanned image corresponding to the document image on the first screen when the target document includes a document image and the document image includes image text; The scanned image corresponding to the image includes the scanned text corresponding to the image text, and the scanned text in the scanned image corresponding to the document image is in an edited state.

示例性实施方式中,第二显示模块1020可以具体用于:响应于用户对文档图像对应的扫描图像中的扫描文本的第一输入,在第二屏幕中显示文档图像对应的扫描图像中的扫描文本。In an exemplary embodiment, thesecond display module 1020 may be specifically configured to: in response to the user's first input of the scanned text in the scanned image corresponding to the document image, display the scanned text in the scanned image corresponding to the document image on the second screen. text.

示例性实施方式中,第二显示模块1020可以具体用于:响应于用户对第一信息的第一输入,在第二屏幕中的目标节点位置显示第一信息;其中,在第二屏幕中不包括根节点的情况下,目标节点位置对应的目标节点为根节点;在第二屏幕中包括根节点的情况下,目标节点位置对应的目标节点为与根节点相连接的子节点。In an exemplary embodiment, thesecond display module 1020 may be specifically configured to: in response to the first input of the first information by the user, display the first information at the position of the target node in the second screen; When the root node is included, the target node corresponding to the target node position is the root node; when the second screen includes the root node, the target node corresponding to the target node position is the child node connected to the root node.

本申请实施例中的信息处理装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtualreality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The information processing apparatus in this embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR)/virtual reality (VR) Devices, robots, wearable devices, ultra-mobile personal computers (UMPCs), netbooks or personal digital assistants (PDAs), etc., and can also be servers, network attached storages (NAS) , a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of the present application.

本申请实施例中的信息处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The information processing apparatus in this embodiment of the present application may be an apparatus having 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至图9中的方法实施例实现的各个过程,为避免重复,这里不再赘述。The information processing apparatus provided in the embodiments of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 9 , and to avoid repetition, details are not repeated here.

可选地,如图11所示,本申请实施例还提供一种电子设备1100,包括处理器1101和存储器1102。存储器1102上存储有可在所述处理器1101上运行的程序或指令,该程序或指令被处理器1101执行时实现上述信息处理方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 11 , an embodiment of the present application further provides anelectronic device 1100 , including aprocessor 1101 and amemory 1102 . Thememory 1102 stores a program or instruction that can run on theprocessor 1101. When the program or instruction is executed by theprocessor 1101, each step of the above information processing method embodiment can be realized, and the same technical effect can be achieved. In order to avoid Repeat, and will not repeat them 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.

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

该电子设备1200包括但不限于:射频单元1201、网络模块12102、音频输出单元1203、输入单元1204、传感器1205、显示单元1206、用户输入单元1207、接口单元1208、存储器1209、以及处理器1210等部件。Theelectronic device 1200 includes but is not limited to: aradio frequency unit 1201, a network module 12102, anaudio output unit 1203, aninput unit 1204, asensor 1205, adisplay unit 1206, auser input unit 1207, aninterface unit 1208, amemory 1209, and aprocessor 1210, etc. part.

本领域技术人员可以理解,电子设备1200还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器120逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that theelectronic device 1200 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 120 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 12 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. .

其中,处理器1210,用于获取通过扫描纸质页面得到的图像页面;识别所述图像页面中的第一图像,在所述第一图像中包含目标字符的情况下,获取不包含所述目标字符的第二图像以及所述目标字符;显示所述第二图像以及所述目标字符。Theprocessor 1210 is configured to acquire an image page obtained by scanning a paper page; identify the first image in the image page, and in the case that the first image contains target characters, acquire the target character that does not contain the target character. a second image of the character and the target character; displaying the second image and the target character.

应理解的是,本申请实施例中,输入单元1204可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风12042,图形处理器12041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1206可包括显示面板12061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板12061。用户输入单元1207包括触控面板12071以及其他输入设备12072中的至少一种。触控面板12071,也称为触摸屏。触控面板12071可包括触摸检测装置和触摸控制器两个部分。其他输入设备12072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in this embodiment of the present application, theinput unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and amicrophone 12042. camera) to process the image data of still pictures or videos. Thedisplay unit 1206 may include adisplay panel 12061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. Theuser input unit 1207 includes at least one of atouch panel 12071 andother input devices 12072 . Thetouch panel 12071 is also called a touch screen. Thetouch panel 12071 may include two parts, a touch detection device and a touch controller.Other input devices 12072 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.

存储器1209可用于存储软件程序以及各种数据。存储器1209可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1209可以包括易失性存储器或非易失性存储器,或者,存储器1209可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1209包括但不限于这些和任意其它适合类型的存储器。Thememory 1209 may be used to store software programs as well as various data. Thememory 1209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, image playback function, etc.), etc. Additionally,memory 1209 may include volatile memory or non-volatile memory, ormemory 1209 may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous random access memory) DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Thememory 1209 in this embodiment of the present application includes, but is not limited to, these and any other suitable types of memory.

处理器1210可包括一个或多个处理单元;可选的,处理器1210集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1210中。Theprocessor 1210 may include one or more processing units; optionally, theprocessor 1210 integrates an application processor and a modem processor, wherein the application processor mainly processes operations involving an operating system, a user interface, and an application program, etc. Modem processors mainly deal with wireless communication signals, such as baseband processors. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 1210.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述信息处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。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 information processing method embodiment can be achieved, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器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 computer read-only memory ROM, random access memory RAM, magnetic disk or 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 above information processing method embodiments. 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.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述信息处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above information processing method embodiments, and can achieve the same technical effect , in order to avoid repetition, it will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。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 (10)

Translated fromChinese
1.一种信息处理方法,应用于电子设备,所述电子设备包括第一屏幕和第二屏幕,其特征在于,包括:1. An information processing method, applied to an electronic device, the electronic device comprising a first screen and a second screen, characterized in that, comprising:在所述第一屏幕中显示目标文档对应的扫描内容;所述扫描内容包括以下至少一项:扫描文本、扫描图像;The scanned content corresponding to the target document is displayed on the first screen; the scanned content includes at least one of the following: scanned text and scanned image;响应于用户对所述扫描内容中第一信息的第一输入,在所述第二屏幕中显示所述第一信息。The first information is displayed in the second screen in response to the user's first input of the first information in the scanned content.2.根据权利要求1所述的信息处理方法,其特征在于,所述在所述第一屏幕中显示目标文档对应的扫描内容,包括:2. The information processing method according to claim 1, wherein the displaying the scanned content corresponding to the target document on the first screen comprises:在所述扫描内容同时包括扫描文本和扫描图像的情况下,在所述第一屏幕的第一屏幕区域显示扫描文本,并在所述第一屏幕的第二屏幕区域显示扫描图像。When the scanned content includes both scanned text and scanned image, the scanned text is displayed in the first screen area of the first screen, and the scanned image is displayed in the second screen area of the first screen.3.根据权利要求1所述的信息处理方法,其特征在于,所述在所述第一屏幕中显示目标文档对应的扫描内容,包括:3. The information processing method according to claim 1, wherein the displaying the scanned content corresponding to the target document on the first screen comprises:在所述目标文档包括文档图像,且所述文档图像中包括图像文本的情况下,在所述第一屏幕的第三屏幕区域显示所述文档图像对应的扫描图像,并在所述第一屏幕的第四屏幕区域显示所述图像文本对应的扫描文本;In the case that the target document includes a document image and the document image includes image text, the scanned image corresponding to the document image is displayed in the third screen area of the first screen, and the scanned image corresponding to the document image is displayed on the first screen. The fourth screen area of displays the scanned text corresponding to the image text;其中,所述文档图像对应的扫描图像中不包括所述图像文本对应的扫描文本。Wherein, the scanned image corresponding to the document image does not include the scanned text corresponding to the image text.4.根据权利要求3所述的信息处理方法,其特征在于,所述方法还包括:4. The information processing method according to claim 3, wherein the method further comprises:扫描所述文档图像,得到所述文档图像对应的初始扫描图像;所述初始扫描图像中包括所述图像文本对应的扫描文本;Scan the document image to obtain an initial scanned image corresponding to the document image; the initial scanned image includes scanned text corresponding to the image text;确定所述初始扫描图像中,所述图像文本对应的扫描文本所在的图像区域;Determine in the initial scanned image, the image area where the scanned text corresponding to the image text is located;对于每个图像区域,根据所述图像区域的相邻区域中像素点的像素值,调整所述图像区域中像素点的像素值;For each image area, adjust the pixel value of the pixel point in the image area according to the pixel value of the pixel point in the adjacent area of the image area;根据调整后的所述图像区域中像素点的像素值,生成所述文档图像对应的扫描图像。A scanned image corresponding to the document image is generated according to the adjusted pixel values of the pixel points in the image area.5.根据权利要求1所述的信息处理方法,其特征在于,所述在所述第一屏幕中显示目标文档对应的扫描内容,包括:5. The information processing method according to claim 1, wherein the displaying the scanned content corresponding to the target document on the first screen comprises:在所述目标文档包括文档图像,且所述文档图像中包括图像文本的情况下,在所述第一屏幕中显示所述文档图像对应的扫描图像;In the case that the target document includes a document image and the document image includes image text, displaying the scanned image corresponding to the document image on the first screen;其中,所述文档图像对应的扫描图像中包括所述图像文本对应的扫描文本,所述文档图像对应的扫描图像中的扫描文本为编辑状态。The scanned image corresponding to the document image includes the scanned text corresponding to the image text, and the scanned text in the scanned image corresponding to the document image is in an edited state.6.根据权利要求5所述的信息处理方法,其特征在于,所述响应于用户对所述扫描内容中第一信息的第一输入,在所述第二屏幕中显示所述第一信息,包括:6 . The information processing method according to claim 5 , wherein, in response to a user's first input of the first information in the scanned content, displaying the first information on the second screen, include:响应于用户对所述文档图像对应的扫描图像中的扫描文本的第一输入,在所述第二屏幕中显示所述文档图像对应的扫描图像中的扫描文本。In response to the user's first input of the scanned text in the scanned image corresponding to the document image, the scanned text in the scanned image corresponding to the document image is displayed on the second screen.7.根据权利要求1所述的信息处理方法,其特征在于,所述响应于用户对所述扫描内容中第一信息的第一输入,在所述第二屏幕中显示所述第一信息,包括:7 . The information processing method according to claim 1 , wherein, in response to a user's first input of the first information in the scanned content, displaying the first information on the second screen, include:响应于用户对所述第一信息的第一输入,在所述第二屏幕中的目标节点位置显示所述第一信息;In response to the user's first input of the first information, displaying the first information at the target node position in the second screen;其中,在所述第二屏幕中不包括根节点的情况下,所述目标节点位置对应的目标节点为根节点;在所述第二屏幕中包括根节点的情况下,所述目标节点位置对应的目标节点为与根节点相连接的子节点。Wherein, in the case that the root node is not included in the second screen, the target node corresponding to the position of the target node is the root node; in the case that the root node is included in the second screen, the position of the target node corresponds to The target node of is a child node connected to the root node.8.一种信息处理装置,其特征在于,包括:8. An information processing device, comprising:第一显示模块,用于在所述第一屏幕中显示目标文档对应的扫描内容;所述扫描内容包括以下至少一项:扫描文本、扫描图像;a first display module, configured to display the scanned content corresponding to the target document on the first screen; the scanned content includes at least one of the following: scanned text and scanned image;第二显示模块,用于响应于用户对所述扫描内容中第一信息的第一输入,在所述第二屏幕中显示所述第一信息。A second display module, configured to display the first information on the second screen in response to a user's first input of the first information in the scanned content.9.一种电子设备,其特征在于,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-7任一项所述的信息处理方法。9. An electronic device, characterized in that it comprises a processor and a memory, wherein the memory stores a program or an instruction that can be run on the processor, and when the program or instruction is executed by the processor, the implementation as claimed in the claims The information processing method of any one of 1-7.10.一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-7任一项所述的信息处理方法。10. A readable storage medium, wherein a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the information processing according to any one of claims 1-7 is realized method.
CN202210555521.8A2022-05-192022-05-19Information processing method, information processing apparatus, and electronic devicePendingCN114943202A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210555521.8ACN114943202A (en)2022-05-192022-05-19Information processing method, information processing apparatus, and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210555521.8ACN114943202A (en)2022-05-192022-05-19Information processing method, information processing apparatus, and electronic device

Publications (1)

Publication NumberPublication Date
CN114943202Atrue CN114943202A (en)2022-08-26

Family

ID=82909725

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210555521.8APendingCN114943202A (en)2022-05-192022-05-19Information processing method, information processing apparatus, and electronic device

Country Status (1)

CountryLink
CN (1)CN114943202A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115361459A (en)*2022-08-292022-11-18维沃移动通信有限公司Content display method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104104576A (en)*2013-04-032014-10-15中国移动通信集团广东有限公司Method, system and terminal for sharing reading notes
CN109462692A (en)*2018-10-292019-03-12努比亚技术有限公司Split screen display available operating method, mobile terminal and computer readable storage medium
CN110109531A (en)*2019-05-072019-08-09北京字节跳动网络技术有限公司Display control method, device, electronic equipment and storage medium
CN110390260A (en)*2019-06-122019-10-29平安科技(深圳)有限公司Picture scanning part processing method, device, computer equipment and storage medium
CN111859856A (en)*2020-06-302020-10-30维沃移动通信有限公司 Information display method, device, electronic device and storage medium
CN111857495A (en)*2020-06-302020-10-30海尔优家智能科技(北京)有限公司 Information display method, device, storage medium and electronic device
CN113294700A (en)*2021-05-202021-08-24读书郎教育科技有限公司Learning desk lamp capable of assisting students in recording notes and using method
CN113965655A (en)*2021-10-202022-01-21珠海读书郎软件科技有限公司Scanning pen capable of displaying scanning contents in multi-screen combined mode

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104104576A (en)*2013-04-032014-10-15中国移动通信集团广东有限公司Method, system and terminal for sharing reading notes
CN109462692A (en)*2018-10-292019-03-12努比亚技术有限公司Split screen display available operating method, mobile terminal and computer readable storage medium
CN110109531A (en)*2019-05-072019-08-09北京字节跳动网络技术有限公司Display control method, device, electronic equipment and storage medium
CN110390260A (en)*2019-06-122019-10-29平安科技(深圳)有限公司Picture scanning part processing method, device, computer equipment and storage medium
CN111859856A (en)*2020-06-302020-10-30维沃移动通信有限公司 Information display method, device, electronic device and storage medium
CN111857495A (en)*2020-06-302020-10-30海尔优家智能科技(北京)有限公司 Information display method, device, storage medium and electronic device
CN113294700A (en)*2021-05-202021-08-24读书郎教育科技有限公司Learning desk lamp capable of assisting students in recording notes and using method
CN113965655A (en)*2021-10-202022-01-21珠海读书郎软件科技有限公司Scanning pen capable of displaying scanning contents in multi-screen combined mode

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115361459A (en)*2022-08-292022-11-18维沃移动通信有限公司Content display method and device

Similar Documents

PublicationPublication DateTitle
US11550993B2 (en)Ink experience for images
US9628423B2 (en)Electronic sticky note system, information processing terminal, method for processing electronic sticky note, medium storing program, and data structure of electronic sticky note
US8949729B2 (en)Enhanced copy and paste between applications
CN111859856A (en) Information display method, device, electronic device and storage medium
CN113849092A (en)Content sharing method and device and electronic equipment
CN114564921A (en)Document editing method and device
CN116107531A (en)Interface display method and device
WO2024109635A1 (en)Interface display method and apparatus thereof
WO2025055860A1 (en)File editing method, terminal, electronic device and storage medium
CN114860135A (en)Screenshot method and device
CN114943202A (en)Information processing method, information processing apparatus, and electronic device
WO2025016426A1 (en)Screenshot method and apparatus, electronic device, and readable storage medium
CN116245615A (en)Searching method and device and electronic equipment
CN116756099A (en) Display method and device
CN117055775A (en)Application program searching method, device, equipment and storage medium
WO2023138509A1 (en)Image processing method and apparatus
WO2023155874A1 (en)Application icon management method and apparatus, and electronic device
CN116027950A (en) Screen capture method and screen capture device
CN114998102A (en) Image processing method, device and electronic device
CN114442881A (en)Information display method and device, electronic equipment and readable storage medium
CN112764634A (en)Content processing method and device
CN112732464B (en) Pasting method, device and electronic equipment
CN113359998B (en)Information query method and device
CN117193919A (en) Display method, device, electronic device and readable storage medium
CN114925713A (en)Graphic code identification method and device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp