Information processing method and device, electronic equipment and readable storage medium
By displaying the document interface corresponding to the document image on an electronic device, the problem of low processing efficiency caused by the separation of document images and document text in the prior art is solved, and the function of quickly jumping and editing document information is realized, which improves document information processing efficiency.
Patent Information
- Application Number
- CN202411523630.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-21
AI Technical Summary
In the prior art, when paper documents are converted into electronic files, document images and document text are usually stored in different applications, resulting in inefficient processing of users when viewing and editing document information.
By displaying the first interface, including the first image, and receiving user input, the second interface is responsively displayed. The second interface includes a document corresponding to the first image, so that the user can jump to the storage of the document without the user exiting the current page. Location, simplify user operations.
It realizes that without reducing user operation efficiency, quickly linking to documents corresponding to document images is shortened, and the time to find documents is improved and the efficiency of document information is improved.
Smart Images

Figure CN119494319A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of artificial intelligence technology, and specifically relates to an information processing method, device, electronic device and readable storage medium. Background Art
[0002] With the rapid development of mobile Internet, electronic devices can provide more and more functions. Users can use electronic devices to take pictures or scan paper documents, convert them into electronic files, and store them on electronic devices for users to view and edit.
[0003] In the related art, when converting paper documents into electronic files, the paper documents are usually scanned into document images, or when the document images are obtained, the document contents in the document images are recognized and saved as document texts. However, the captured document images and generated document texts are usually stored in different applications, for example, the document images are stored in photo albums, and the document texts are stored in office applications, which is not conducive to users viewing and editing document information, resulting in low efficiency in document information processing. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an information processing method, device, electronic device and readable storage medium, which can improve the processing efficiency of document information.
[0005] In a first aspect, an embodiment of the present application provides an information processing method, including:
[0006] Display a first interface, where the first interface includes a first image;
[0007] receiving a first input;
[0008] In response to the first input, a second interface is displayed, and the second interface includes a document corresponding to the first image.
[0009] In a second aspect, an embodiment of the present application provides an information processing device, including:
[0010] A display module, used to display a first interface, where the first interface includes a first image;
[0011] A receiving module, configured to receive a first input;
[0012] The display module is also used to display a second interface in response to the first input, where the second interface includes a document corresponding to the first image.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the information processing method shown in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the information processing method shown in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the information processing method shown in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the information processing method shown in the first aspect.
[0017] In an embodiment of the present application, a first interface is displayed, the first interface includes a first image; and when a first input is received, a second interface is displayed, the second interface includes a document corresponding to the first image. In this way, when a user views a first image, if he wants to edit or share a document in his first image, he can jump from the current first interface to the second interface including the document corresponding to the first image by inputting the first image in the current first interface without the user exiting the current page to search for the location of the document. While reducing the user's operations of exiting the first interface and searching for the location of the document, he can quickly link to the first document corresponding to his first image, shortening the time to search for the first document, making it convenient for the user to view and edit the document information related to the first image, and improving the efficiency of document information processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flowchart of an information processing method provided for some embodiments of the present application;
[0019] Figure 2 One of the interface schematic diagrams of the information processing method provided in some embodiments of the present application;
[0020] Figure 3 The second interface diagram of the information processing method provided by some embodiments of the present application;
[0021] Figure 4 The third interface diagram of the information processing method provided by some embodiments of the present application;
[0022] Figure 5 A fourth schematic diagram of an interface of an information processing method provided in some embodiments of the present application;
[0023] Figure 6 A fifth interface diagram of an information processing method provided in some embodiments of the present application;
[0024] Figure 7 The sixth interface diagram of the information processing method provided by some embodiments of the present application;
[0025] Figure 8 The seventh interface diagram of the information processing method provided by some embodiments of the present application;
[0026] Fig. 9 An eighth interface diagram of an information processing method provided in some embodiments of the present application;
[0027] Fig.10 A ninth interface diagram of an information processing method provided in some embodiments of the present application;
[0028] Fig.11 A tenth schematic diagram of an interface of an information processing method provided in some embodiments of the present application;
[0029] Fig.12 The eleventh interface diagram of the information processing method provided by some embodiments of the present application;
[0030] Fig.13 The twelfth schematic diagram of the interface of the information processing method provided by some embodiments of the present application;
[0031] Fig.14 The thirteenth schematic diagram of the interface of the information processing method provided in some embodiments of the present application;
[0032] Fig.15 The fourteenth schematic diagram of the interface of the information processing method provided in some embodiments of the present application;
[0033] Fig.16 A schematic diagram of the structure of an information processing device provided for some embodiments of the present application;
[0034] Fig.17 A schematic diagram of the structure of an electronic device provided for some embodiments of the present application;
[0035] Fig.18 A schematic diagram of the hardware structure of an electronic device provided for some embodiments of the present application. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0037] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0038] In order to solve the problems in the related art, the embodiments of the present application provide an information processing method, device and electronic device. Figures 1 to 18 , the information processing method provided by the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0039] First, combine Figure 1 An information processing method provided in an embodiment of the present application is described in detail.
[0040] Figure 1 A flowchart of an information processing method provided for some embodiments of the present application.
[0041] like Figure 1 As shown, the information processing method provided in the embodiment of the present application can be applied to an electronic device. Based on this, the information processing method can include step 110 and step 130, as shown below.
[0042] Step 110, displaying a first interface, the first interface including a first image; Step 120, receiving a first input; Step 130, in response to the first input, displaying a second interface, the second interface including a document corresponding to the first image.
[0043] For example, Figure 2 As shown, the first interface 20 may include a first image 201, wherein the first image 201 may be a document image including the poem "Quiet Night Thoughts". When viewing the first image, if the user wants to edit the document in the first image, such as adding a dynasty restriction before "Li Bai", the user may click on the first image 201 to trigger the electronic device to, when receiving the first input of the user on the first image, Figure 3 As shown, a second interface including a document is displayed, and the document includes the document content in the aforementioned first image, namely, poetry, so that the user can edit it.
[0044] It should be noted here that the text attributes of the document content in the document corresponding to the first image in the embodiment of the present application are the same as the text attributes of the image content in the first image; wherein the text attributes include at least one of the following: text font type, text size, and text color.
[0045] For example, reference may still be made to Figure 2 When the user clicks on the first image, the document corresponding to the first image can be directly opened. At this time, the text font type, text size and text color of the text content in the document can be consistent with the text font type, text size and text color of the image content displayed in the first image, so as to facilitate the user to view and edit the document.
[0046] Therefore, when a user views the first image, if he wants to edit or share the document in the first image, the user can jump from the current first interface to the second interface including the document corresponding to the first image by inputting the first image in the current first interface without the user having to exit the current page to find the location of the document. While reducing the user's operations of exiting the first interface and searching for the location of the document, the user can quickly link to the document corresponding to the first image, thereby shortening the time for searching for documents, making it convenient for users to view and edit document information related to the first image, and improving the efficiency of document information processing.
[0047] The above steps are described in detail below, as shown below.
[0048] First, step 110 is involved. The first interface in the embodiment of the present application can be any interface in the electronic device that can display images. For example, the first interface can be a photo album interface in a photo album application, a chat interface in a social application, or an interface of a productivity application, etc. Among them, productivity applications can include computer programs in electronic devices that can improve work efficiency and promote creation and production, such as spreadsheet programs, word processing programs, presentation programs, etc.
[0049] Here, the first interface is taken as an example to illustrate. Figure 4 As shown, the album interface 40 includes 9 images, wherein the 9 images include 2 document images, such as document image 1 and document Figure 2 , at this time, document image 1 and document Figure 2 It can be used as the first image in the embodiment of the present application. In this way, when the user clicks on the document image 1, the second interface 1 can be displayed, and the second interface 1 can display the document 1 corresponding to the document image 1. Similarly, when the user clicks on the document image 2, the second interface 2 can be displayed, and the second interface 2 can display the document 2 corresponding to the document image 2.
[0050] In addition, in the embodiment of the present application, in addition to clicking on the image, the user can also display the first document icon corresponding to the first image on the first interface. In this way, in addition to clicking on the image, the user can also click on the document icon corresponding to the image to trigger the display of the second interface. Figure 4 , a first document icon 401 corresponding to the document image 1 may be displayed at the lower right corner of the document image 1 , and a first document icon 402 corresponding to the document image 2 may be displayed at the lower right corner of the document image 2 .
[0051] It should be noted that the first image in the embodiment of the present application, such as document image 1 and document image 2, may refer to a document that is a paper document converted into a digital image format by photographing or scanning, so that the user can read it electronically, or may refer to an image including text, such as an image including advertising text or an image of a blackboard in a classroom.
[0052] Based on this, some embodiments of the present application provide the following two methods of acquiring a first image, and provide a process of generating a first interface based on the first image acquired in different methods and its corresponding scanned image, as shown below.
[0053] In some embodiments, capturing of the first image may be automatically triggered. Based on this, the first interface further includes a first document icon corresponding to the first image. Before step 110 , the data processing method may further include steps 1401 to 1404 .
[0054] Step 1401, displaying a shooting preview interface, where the shooting preview interface includes a preview image.
[0055] Exemplarily, the user turns on the camera and selects the document shooting mode, so that the electronic device can display a shooting preview interface and recognize the preview image included in the shooting preview interface.
[0056] Step 1402: When the preview image includes document content, photograph the preview image to obtain a first image.
[0057] For example, Figure 5 As shown, in the case where the preview image 50 in the shooting preview interface includes document content, for example, "Quiet night thinking of Li Bai, the moonlight shines on the bedside, I wonder if it is frost on the ground. I look up at the bright moon and lower my head to think of my hometown.", the preview image can be shot to obtain the first image 201.
[0058] As a result, there is no need for the user to manually trigger the capture of the document image. The document content can be automatically identified, and the capture of the document image can be automatically triggered based on the identified document content, thereby reducing the user's input for capturing the document image and improving the efficiency and effect of document scanning to generate the first image.
[0059] Step 1403: Generate a document based on the document content in the first image, wherein the text attributes of the document content in the document corresponding to the first image are the same as the text attributes of the document content in the first image.
[0060] The text attributes include at least one of the following: text font type, font size, font color, and text distribution position.
[0061] Exemplarily, based on the first image 201 captured in step 1402, as shown in FIG. Figure 6 As shown, since the font type is Songti, the font size is 12pt, the font color is black, and the text distribution position is centered, the text attributes of the document content in the document corresponding to the generated first image are also Songti, the font size is 12pt, the font color is black, and the text distribution position is centered. For details, please refer to Figure 3 .
[0062] Thus, a document corresponding to the image is generated while capturing the image, and by setting the text attributes of the document content in the document to be the same as the text attributes of the document content in the first image, it is convenient for the user to intuitively see the original document content in the first image, so that the user can quickly find the document content involved in the first image.
[0063] Step 1404: Generate a first interface based on the first image and a first document icon corresponding to the document.
[0064] Exemplarily, a first document icon corresponding to the document may be constructed based on the generated document, and the first document icon may be an icon marking the first image in any form.
[0065] In this way, a document can be generated while capturing an image, and a first interface can be generated based on the document icons corresponding to the image and the document, so that when a user browses the first interface, such as the document image 1 and / or the document group purchase 2 in the album interface, the user can click on the document icon associated with the document image to directly jump to the document corresponding to the image content in the first image, thereby facilitating the user to view and edit documents related to the first image and improving the efficiency of document information processing.
[0066] In some other embodiments, the user may manually trigger the capturing of the first image. Based on this, before step 110 , the data processing method may further include steps 2401 to 24023 .
[0067] Step 2401, displaying a shooting preview interface, where the shooting preview interface includes a preview image.
[0068] Step 2402, receiving a seventh input from the user on the shooting preview interface;
[0069] Step 2403, in response to the seventh input, capture a preview image to obtain a first image.
[0070] In this way, the user can manually shoot to ensure the accuracy of the document content range that the user wants to shoot.
[0071] Based on the above two embodiments, further, the shooting preview interface also includes P document format icons, the document format icons correspond to the document formats of the documents, and P is a positive integer. Based on this, before step 1403 or step 2402, the information processing method may further include step 1405:
[0072] A sixth input of the user on a target document format icon among the P document format icons is received.
[0073] For example, if P is 3, the shooting preview interface also includes three document format icons, namely icon 1, icon 2 and icon 3, where icon 1 is used to represent a text document format, such as a word document format, icon 2 is used to represent a table document format, such as an excel document format, and icon 3 is used to represent a presentation document format, such as a PPT document format. Figure 7 As shown, the abbreviation W of the word document format can be used to represent icon 1, the abbreviation E of the excel document format can be used to represent icon 2, and the abbreviation P of the PPT document format can be used to represent icon 3. Based on this, if the user clicks icon 1, icon 1 can be determined as the target document format icon.
[0074] It should be noted that the above embodiment is described by taking one icon as the target document format icon as an example. In other embodiments, both icon 1 and icon 2 can be used as target document format icons to facilitate generating documents of different document formats according to the target document format icon.
[0075] Based on this, step 1403 may specifically include:
[0076] A document in a target document format corresponding to the target document format icon is generated according to the document content in the first image.
[0077] Exemplarily, a document in word document format may be generated according to the document content in the first image and the word document format corresponding to icon 1 selected by the user. In other embodiments, if the target document format icon selected by the user includes icon 1 and icon 2, then, according to the document content in the first image and the word document format corresponding to icon 1, document 1 in word document format may be generated; and, according to the excel document format corresponding to icon 2, document 2 in excel document format may be generated.
[0078] Therefore, before taking an image, the document format of the document you want to generate can be selected. In this way, when taking an image, a document in a document format corresponding to the document format icon selected by the user can be generated, so that the user can quickly view documents in different document formats, thereby improving the user's viewing of document information related to the first image and improving the efficiency of document information processing.
[0079] In addition, it should be noted that, in some embodiments, after generating a document in at least one document format, a document format icon corresponding to the document format can be displayed on the first interface, so that the user can quickly view scanned files in different document formats without the need for the user to manually trigger the generation, thereby improving the user's ability to edit documents related to the first image and improving the efficiency of document information processing. This embodiment can be implemented through the following step 120, as shown below.
[0080] Next, step 120 is involved. In some embodiments of the present application, the first interface also includes a first document icon corresponding to the first image. The first document icon includes N document format icons. The document format icons correspond to the document formats of the documents. The documents include a first document. N is a positive integer.
[0081] For example, reference may still be made to Figure 2 The first interface also includes a first document icon 202 corresponding to the first image, wherein the first image 201 may be a document image of the poem "Quiet Night Thoughts". When viewing the first image, if the user wants to edit the document in the first image, such as adding a dynasty restriction before "Li Bai", the user can click the first document icon 202. Figure 3 As shown, the electronic device is triggered to display a second interface 30 including a document when receiving a first input from a user to a first document icon. The document includes the document content in the aforementioned first image, namely, poetry, so that the user can edit it.
[0082] Based on this, step 120 may specifically include:
[0083] A first input from a user on a first document format icon among the N document format icons is received.
[0084] For example, still taking the example shown in the above step 1405 and step 1403 as an example, N is 3, that is, there are 3 documents in the document format corresponding to the first image, namely, document 1 in the word document format, document 2 in the excel document format, and document 3 in the PPT document format. In this way, for different document formats, the document format icons of the 3 document formats corresponding to the first image can be displayed in the first interface. Figure 8As shown, three document format icons, namely icon 1, icon 2 and icon 3, can be displayed in the first interface 20, wherein icon 1 is used to represent a text document format, such as a word document format, icon 2 is used to represent a table document format, such as an excel document format, and icon 3 is used to represent a presentation document format, such as a PPT document format. Here, the abbreviation W of the word document format can be used to represent icon 1, the abbreviation E of the excel document format can be used to represent icon 2, and the abbreviation P of the PPT document format can be used to represent icon 3. Based on this, if the user clicks icon 1, icon 1 can be determined as the first document format icon.
[0085] Based on this, step 130 may specifically include:
[0086] In response to the first input, a first document is displayed in the second interface, and the document format of the first document is a first document format corresponding to the first document format icon.
[0087] For example, Fig. 9 As shown, the document 1 in the word document format can be displayed in the second interface 30.
[0088] In this way, when a user is viewing a first image, if he wants to edit or share the document in the first image, the user can jump from the current first interface to the second interface including a document in the document format corresponding to the first document format icon by inputting the first document format icon in the current first interface without the user having to exit the current page to search for the document. This reduces the user's operations of exiting the first interface and searching for the location of the document, as well as the step of manually triggering the generation of the first document in the first document format, and allows a quick link to the document corresponding to the first image, thereby shortening the time for searching for documents, making it convenient for users to view and edit documents related to the first image, and improving the efficiency of processing document information.
[0089] Based on this embodiment, in order to prevent the user from missing the desired document format before acquiring the first image, the first interface also includes a document format expansion icon, so that the user can select the document format to be added or reduced by the document format expansion icon. In this way, after the above step 110, the information processing method can also include steps 1501 to 1505.
[0090] Step 1501: receiving a second input from a user on a document format extension icon.
[0091] For example, Fig.10As shown, the first interface 20 can also display a document format expansion icon 202. The user clicks the "+" displayed in the details, that is, the document format expansion icon 202, to trigger the display of M new document format icons. The document formats corresponding to the M new document format icons may be different from the aforementioned three document formats.
[0092] Therefore, the user can add or remove corresponding text formats by himself through the document format extension icon 202 to meet personalized document format requirements.
[0093] Step 1502 , in response to the second input, display M newly added document format icons, the document format corresponding to the newly added document format icon is different from the document format corresponding to each of the N document format icons, and M is a positive integer.
[0094] For example, when the user clicks the document format expansion icon 202, a document format list showing the document format may be triggered, such as Fig.11 As shown, the document format list may include document formats of generated documents, such as a word document format icon corresponding to the word document format, an excel document format icon corresponding to the excel document format, and a PPT document format icon corresponding to the PPT document format, and may also include newly added document format icons, such as a Txt document format icon corresponding to the Txt document format, a Markdown document format icon corresponding to the Markdown document format, and a Pdf document format icon corresponding to the Pdf document format.
[0095] Here, it should be noted that if the user does not want the document in word document format, he can click Fig.11 The word document format icon corresponding to the word document format in the document format list shown cancels the word document format. Based on this, the word document corresponding to the word document format can be deleted based on the user selecting the word document format.
[0096] In this way, users can choose the document formats they want to add or delete according to their needs.
[0097] Step 1503: receiving a third input from the user regarding a target new document format icon among the M new document format icons.
[0098] For example, reference may still be made to Fig.11 , the user selects the Txt document format icon and the Pdf document format icon, and then the two selected document formats can be used as target new document format icons, and other document formats such as Markdown document format are not selected.
[0099] Step 1504 , in response to the third input, a second document is generated based on the document content in the first image, the document format of the second document is a second document format corresponding to the newly added document format icon, and the second document is associated with the target newly added document format icon.
[0100] Exemplarily, in response to the third input, the generated second document may include a second document 1 in Txt document format corresponding to the Txt document format icon, and may also include a second document 2 in PDF document format corresponding to the PDF document format icon.
[0101] Step 1505: Add the target newly added document format icon as a document format icon to the first interface.
[0102] For example, in order to facilitate the user to intuitively view the document in the document format corresponding to the document image, here, Fig.12 As shown, a Txt document format icon 1202 and a Pdf document format icon 1201 may be displayed on the first interface.
[0103] As a result, users can customize the text format they need to increase or decrease, which can meet the needs of today's diverse text formats.
[0104] Furthermore, step 130 is involved in displaying the document in the second interface. The document may be in an editable state so that the user can view the document in the second interface.
[0105] In some embodiments of the present application, if there are errors in the generated document or the user wants to modify it, the user can edit the document in the second interface. Based on this, after step 130, the information processing method can also include steps 1601 to 1603.
[0106] Step 1601, receiving a fourth input from a user to edit a document.
[0107] For example, reference may be made to Fig. 9 , the user’s third document, that is, before “Li Bai”, add the dynasty limiter “Tang.”
[0108] Step 1602: In response to the fourth input, obtain the third document edited by the user.
[0109] Exemplarily, based on the third document edited by the user, obtain Fig.13 The third document is shown after being edited by the user.
[0110] Step 1603: adjust the document content in the first image according to the document content in the third document to obtain a second image.
[0111] For example, based on the above, the text format of the document content in the third document supports the adjustment of the display font, size, color and other formats, and keeps the font, size and color display consistent with the first image. Therefore, the first image can be adjusted according to the third document edited by the user to obtain the second image.
[0112] It should be noted that the condition for triggering the step of whether to adjust the document content in the first image can be automatically triggered as shown above, or can be a reminder to the user, such as Fig.14 As shown, a correction image control is displayed in the second interface, so that when the user clicks on the correction photo control, step 1603 is triggered.
[0113] In this way, when the first image captured is blurred or contains errors, the user can correct the omissions and errors in the document content in the document corresponding to the first image through the above method to generate a document that meets the user's needs. At the same time, if there are still errors in the first image, the first image can be reversely adjusted through the edited third document to obtain a new second image, which is convenient for users to view again or share the document photo with others, satisfying the user's retention value of the document image.
[0114] Based on this, after step 1603, in order to facilitate the user to view the edited second image, the second image can be displayed on the interface displaying the first image. Based on this, the information processing method can also include steps 1604 to 1606.
[0115] Step 1604: Display the second image and a second document icon corresponding to the second image in the first interface.
[0116] For example, Fig.15 As shown, a second image 204 and a second document icon 205 corresponding to the second image may be displayed in the first interface.
[0117] Step 1605: Receive a fifth input from the user regarding the second image.
[0118] Step 1606: In response to the fifth input, display a third interface, where the third interface includes at least one of the following information: a third document, the first image, and a document corresponding to the first image.
[0119] For example, the user can input the second image. At this time, since the document corresponding to the second image is the third document previously edited by the user, the third document can be displayed in the third interface. Also, since the document format of the document edited by the former is the word document format, then the third document is also the word document format. At this time, the third document in the word document format can be displayed in the third interface. In addition, in order to facilitate the user to view the original document image before the second image is edited, the original document image before the second image is edited can also be displayed in the third interface.
[0120] In this way, when the character recognition of the document generated by the user is wrong or there is a need for modification, the user can actively correct the document content in the generated document, and the document image is also corrected synchronously, which is convenient for retention and sharing. In this way, on the one hand, the linkage between the document images before and after editing can be achieved, and on the other hand, the link linkage between the document image and the document is achieved, which is convenient for users to view and edit the document information related to the first image, thereby improving the processing efficiency of document information.
[0121] Therefore, when the character recognition of the document generated by the user is wrong or there is a need to modify it, the user actively corrects the generated document content, and the image content of the image is also corrected synchronously, which is convenient for retention and sharing. At the same time, in the first interface where the image is located, a jumpable document format icon is generated to realize the link linkage between the image and the document, and at the same time realize the user's custom increase and decrease of text format needs, and generate document texts in multiple formats at one time. In this way, it is convenient for users to view and edit documents related to the first image, and the processing efficiency of document information is improved.
[0122] The information processing method provided in the embodiment of the present application can be executed by an information processing device. In the embodiment of the present application, the information processing device executing display is taken as an example to illustrate the device of the information processing method provided in the embodiment of the present application.
[0123] The present application also provides an information processing device. Fig.16 Provide detailed explanation.
[0124] Fig.16 A schematic diagram of the structure of an information processing device provided for some embodiments of the present application.
[0125] like Fig.16 As shown, the information processing device 160 can be applied to an electronic device, and the information processing device 160 can specifically include:
[0126] The display module 1601 is used to display a first interface, where the first interface includes a first image;
[0127] A receiving module 1602, configured to receive a first input;
[0128] The display module 1601 is further configured to display a second interface in response to the first input, where the second interface includes a document corresponding to the first image.
[0129] The information processing device 160 in the embodiment of the present application is described in detail below, as shown below.
[0130] In some embodiments of the present application, the receiving module 1602 is used to receive a first input of a user on a first document format icon among the N document format icons when the first interface also includes a first document icon corresponding to the first image, the first document icon includes N document format icons, the document format icon corresponds to a document format of a document, the document includes a first document, and N is a positive integer;
[0131] The display module 1601 is used to display a first document in the second interface in response to a first input, where the document format of the first document is a first document format corresponding to the first document format icon.
[0132] In some embodiments of the present application, the text attributes of the document content in the document corresponding to the first image are the same as the text attributes of the image content in the first image; the text attributes include at least one of the following: text font type, text size, and text color.
[0133] In some embodiments of the present application, the receiving module 1602 is used to receive a second input of the document format extension icon from the user when the first interface also includes the document format extension icon;
[0134] Display module 1601, for displaying M newly added document format icons in response to a second input, wherein the document format corresponding to the newly added document format icon is different from the document format corresponding to each of the N document format icons, and M is a positive integer;
[0135] The receiving module 1602 is configured to receive a third input from a user regarding a target new document format icon among the M new document format icons;
[0136] The information processing device further includes a generating module for generating a second document based on the document content in the first image in response to the third input, wherein the document format of the second document is a second document format corresponding to the newly added document format icon, and the second document is associated with the target newly added document format icon;
[0137] The information processing device also includes a processing module, which is used to add the target newly added document format icon as a document format icon to the first interface.
[0138] In some embodiments of the present application, the receiving module 1602 is used to receive a fourth input of a user editing a document;
[0139] The information processing device further includes an acquisition module for acquiring, in response to a fourth input, an edited third document edited by a user;
[0140] The information processing device also includes an adjustment module, which is used to adjust the document content in the first image according to the document content in the third document to obtain the second image.
[0141] In some embodiments of the present application, the display module 1601 is used to display the second image and the second document icon corresponding to the second image in the first interface;
[0142] The receiving module 1602 is configured to receive a fifth input of the user on the second image;
[0143] The display module 1601 is used to display a third interface in response to the fifth input, where the third interface includes at least one of the following information: a third document, a first image, and a document corresponding to the first image.
[0144] In some embodiments of the present application, the display module 1601 is used to display a shooting preview interface including a preview image when the first interface also includes a first document image corresponding to the first image;
[0145] The information processing device further includes a shooting module, which is used to shoot the preview image to obtain a first image when the preview image includes document content;
[0146] The information processing device also includes a generation module for generating a document based on the document content in the first image;
[0147] The generating module is further used to generate a first interface based on the first image and a first document icon corresponding to the document.
[0148] In some embodiments of the present application, the receiving module 1602 is used to receive a sixth input of a target document format icon among the P document format icons from the user when the shooting preview interface further includes P document format icons, the document format icons correspond to the document formats of the documents, and P is a positive integer;
[0149] The generating module is used to generate a document in a target document format corresponding to the target document format icon according to the document content in the first image.
[0150] The information processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0151] The information processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0152] The information processing device provided in the embodiment of the present application can realize Figures 1 to 15 The various processes implemented in the information processing method embodiment shown achieve the same technical effect, and will not be described again here to avoid repetition.
[0153] Based on this, the information processing device provided by the embodiment of the present application displays a first interface, the first interface includes a first image; and when receiving a first input, displays a second interface, the second interface includes a document corresponding to the first image. In this way, when a user views the first image, if he wants to edit or share the document in his first image, he can jump from the current first interface to the second interface including the document corresponding to the first image by inputting the first image in the current first interface without the user exiting the current page to search for the location of the document. While reducing the user's operation of exiting the first interface and searching for the location of the document, it can quickly link to the first document corresponding to its first image, shortening the time to search for the first document, making it convenient for the user to view and edit the document information related to the first image, and improving the processing efficiency of the document information of the first image.
[0154] Optional, such as Fig.17As shown, an embodiment of the present application further provides an electronic device 170, including a processor 1701 and a memory 1702, wherein the memory 1702 stores programs or instructions that can be executed on the processor 1701, and when the program or instructions are executed by the processor 1701, the various steps of the above-mentioned information processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0155] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0156] Fig.18 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0157] The electronic device 1800 includes but is not limited to: a radio frequency unit 1801, a network module 1802, an audio output unit 1803, an input unit 1804, a sensor 1805, a display unit 1806, a user input unit 1807, an interface unit 1808, a memory 1809, a processor 1810 and other components.
[0158] Those skilled in the art will appreciate that the electronic device 1800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.18 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0159] In the embodiment of the present application, the display unit 1806 is used to display a first interface, the first interface includes a first image. The user input unit 1807 is used to receive a first input. The display unit 1806 is also used to display a second interface in response to the first input, the second interface includes a document corresponding to the first image.
[0160] The electronic device 1800 is described in detail below, as shown below.
[0161] In some embodiments of the present application, the user input unit 1807 is used to receive a first input of a user to a first document format icon among the N document format icons when the first interface also includes a first document icon corresponding to the first image, the first document icon includes N document format icons, the document format icon corresponds to a document format of a document, the document includes a first document, and N is a positive integer;
[0162] The display unit 1806 is used to display the first document in the second interface in response to the first input, where the document format of the first document is the first document format corresponding to the first document format icon.
[0163] In some embodiments of the present application, the text attributes of the document content in the document corresponding to the first image are the same as the text attributes of the image content in the first image; the text attributes include at least one of the following: text font type, text size, and text color.
[0164] In some embodiments of the present application, the user input unit 1807 is used to receive a second input of the user on the document format extension icon when the first interface also includes the document format extension icon;
[0165] A display unit 1806 is used to display M newly added document format icons in response to the second input, where the document format corresponding to the newly added document format icon is different from the document format corresponding to each of the N document format icons, and M is a positive integer;
[0166] The user input unit 1807 is used to receive a third input from the user on a target new document format icon among the M new document format icons;
[0167] Processor 1810, for generating a second document based on the document content in the first image in response to a third input, wherein the document format of the second document is a second document format corresponding to the newly added document format icon, and the second document is associated with the target newly added document format icon;
[0168] Processor 1810 is configured to add a target newly added document format icon as a document format icon to the first interface.
[0169] In some embodiments of the present application, the user input unit 1807 is used to receive a fourth input of a user editing a document;
[0170] Processor 1810 is used for obtaining, in response to a fourth input, an edited third document edited by a user;
[0171] The processor 1810 is configured to adjust the document content in the first image according to the document content in the third document to obtain the second image.
[0172] In some embodiments of the present application, the display unit 1806 is used to display the second image and the second document icon corresponding to the second image in the first interface;
[0173] The user input unit 1807 is used to receive a fifth input of the user on the second image;
[0174] The display unit 1806 is used to display a third interface in response to the fifth input, where the third interface includes at least one of the following information: a third document, the first image, and a document corresponding to the first image.
[0175] In some embodiments of the present application, the display unit 1806 is used to display a shooting preview interface when the first interface also includes a first document image corresponding to the first image, and the shooting preview interface includes a preview image;
[0176] The processor 1810 is configured to capture the preview image to obtain a first image when the preview image includes document content.
[0177] Processor 1810, configured to generate a document according to the document content in the first image;
[0178] Processor 1810 is used to generate a first interface based on the first image and a first document icon corresponding to the document.
[0179] In some embodiments of the present application, the user input unit 1807 is used to receive a sixth input of a target document format icon among the P document format icons when the shooting preview interface further includes P document format icons, the document format icons correspond to the document formats of the documents, and P is a positive integer;
[0180] Processor 1810 is used to generate a document in a target document format corresponding to the target document format icon according to the document content in the first image.
[0181] It should be understood that the input unit 1804 may include a graphics processing unit (GPU) 18041 and a microphone 18042, and the graphics processor 18041 processes the image data of a static image or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1806 may include a display panel, and the display panel may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1807 includes a touch panel 18071 and at least one of other input devices 18072. The touch panel 18071 is also called a touch screen. The touch panel 18071 may include two parts: a touch detection device and a touch display. Other input devices 18072 may include, but are not limited to, a physical keyboard, function keys (such as a volume display button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0182] The memory 1809 can be used to store software programs and various data. The memory 1809 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1809 can include a volatile memory or a non-volatile memory, or the memory 1809 can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0183] The processor 1810 may include one or more processing units; optionally, the processor 1810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless display signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1810.
[0184] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0185] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0186] In addition, an embodiment of the present application further provides a chip, which includes a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0187] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0188] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned information processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0189] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0190] In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
[0191] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0192] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An information processing method, characterized in that: include: Display a first interface, wherein the first interface includes a first image; receiving a first input; In response to the first input, a second interface is displayed, wherein the second interface includes a document corresponding to the first image.
2. The method according to claim 1, characterized in that The first interface further includes a first document icon corresponding to the first image, the first document icon includes N document format icons, the document format icons correspond to the document formats of the documents, the documents include a first document, and N is a positive integer; The receiving a first input comprises: receiving a first input from a user for a first document format icon among the N document format icons; The displaying a second interface in response to the first input includes: In response to the first input, the first document is displayed in the second interface, and the document format of the first document is a first document format corresponding to the first document format icon.
3. The method according to claim 1, characterized in that The text attribute of the document content in the document corresponding to the first image is the same as the text attribute of the image content in the first image; The text attributes include at least one of the following: text font type, text size, and text color.
4. The method according to claim 2, characterized in that: The first interface also includes a document format expansion icon; the method also includes: receiving a second input from a user regarding the document format extension icon; In response to the second input, M newly added document format icons are displayed, the document format corresponding to the newly added document format icon is different from the document format corresponding to each of the N document format icons, and M is a positive integer; receiving a third input from a user on a target new document format icon among the M new document format icons; In response to the third input, a second document is generated based on the document content in the first image, the document format of the second document is a second document format corresponding to the newly added document format icon, and the second document is associated with the target newly added document format icon; The target newly added document format icon is added to the first interface as a document format icon.
5. The method according to claim 1, characterized in that: After displaying the second interface, the method further includes: receiving a fourth input from a user to edit the document; In response to the fourth input, obtaining a third document edited by the user; The document content in the first image is adjusted according to the document content in the third document to obtain a second image.
6. The method according to claim 5, characterized in that The method further comprises: Displaying the second image and a second document icon corresponding to the second image in the first interface; receiving a fifth input from a user regarding the second image; In response to the fifth input, a third interface is displayed, wherein the third interface includes at least one of the following information: the third document, the first image, and a document corresponding to the first image.
7. The method according to claim 1, characterized in that The first interface further includes a first document icon corresponding to the first image; before displaying the first interface, the method further includes: Displaying a shooting preview interface, wherein the shooting preview interface includes a preview image; In a case where the preview image includes document content, photographing the preview image to obtain the first image; generating the document according to the document content in the first image; The first interface is generated based on the first image and a first document icon corresponding to the document.
8. The method according to claim 7, characterized in that The shooting preview interface further includes P document format icons, the document format icons correspond to the document formats of the documents, and P is a positive integer; Before generating the document according to the document content in the first image, the method further includes: receiving a sixth input from a user regarding a target document format icon among the P document format icons; Generating the document according to the document content in the first image includes: A document in a target document format corresponding to the target document format icon is generated according to the document content in the first image.
9. An information processing device, characterized in that: include: A display module, configured to display a first interface, wherein the first interface includes a first image; A receiving module, configured to receive a first input; The display module is further configured to display a second interface in response to the first input, where the second interface includes a document corresponding to the first image.
10. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the information processing method according to any one of claims 1 to 8.
11. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the information processing method according to any one of claims 1 to 8 are implemented.