Document generation and sending method, device and electronic device
By receiving image indicators and identifying associated documents, the inefficiency of users to find target documents in a large number of documents is solved, and the function of quickly sending documents is realized.
Patent Information
- Application Number
- CN202210017833.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-07
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2042-01-07
AI Technical Summary
In a large number of pictures and electronic documents, users need to find the target document one by one for sending, which adds operation steps and reduces the efficiency of document sending.
By receiving input of an indication mark for an image, a document associated with the image is identified and a target document is quickly sent to the target terminal.
It reduces the search time of users in a large number of documents, improves the efficiency of document sending, and allows users to quickly locate and send related documents through the indicators of the image.
Smart Images

Figure CN114356861B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a method and device for sending a document, a method and device for generating a document, and an electronic device. Background Art
[0002] With the continuous upgrading of the functions of smart electronic devices, users can use smart electronic devices to recognize images and generate corresponding electronic documents.
[0003] However, when there are many pictures and generated electronic documents, the correspondence between a large number of pictures and electronic documents is easily confused. Therefore, when a user needs to send an electronic document to other terminals, the user needs to search for the target document from a large number of electronic documents for sending, which increases the user's operations and reduces the efficiency of document sending. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method and device for generating and sending a document, an electronic device, and a readable storage medium, which can solve the problem that when sending an electronic document to other terminals, it is necessary to search for the target document from a large number of electronic documents for sending, which increases the user's operation steps and reduces the efficiency of document sending.
[0005] In a first aspect, an embodiment of the present application provides a document sending method, the method comprising: receiving a first input of an indication identifier of a first image, wherein the indication identifier is used to indicate Q first documents, the first document has an associated relationship with the first image, and the first document includes identification content of the first image; in response to the first input, sending a target document among the Q first documents to a second terminal; wherein Q is a positive integer.
[0006] In second aspect, an embodiment of the present application provides a document sending device, which includes: a receiving unit, used to receive a first input of an indication mark of a first image, wherein the indication mark is used to indicate Q first documents, the first document has an associated relationship with the first image, and the first document includes identification content of the first image; a sending unit, used to send a target document among the Q first documents to a second terminal in response to the first input; wherein Q is a positive integer.
[0007] In a third aspect, an embodiment of the present application provides a document generation method, the method comprising: receiving a third input of a user selecting N first images from M images; in response to the third input, displaying the N first images in a first display interface in a first arrangement order, wherein the first arrangement order is determined by the order of identification codes in the N first images or the order in which the user selects the N first images; receiving a fourth input of generating a target document; in response to the fourth input, processing the N first images and generating a target document, the target document having an association with the first images, and the target document including identification content of the N first images; wherein M and N are both positive integers, and M is greater than or equal to N.
[0008] In a fourth aspect, an embodiment of the present application provides a document generation device, comprising: a receiving unit, configured to receive a third input of a user selecting N first images from M images; a processing unit, configured to display the N first images in a first display interface in a first arrangement order in response to the third input, wherein the first arrangement order is determined by the order of identification codes in the N first images or the order in which the user selects the N first images; the receiving unit is further configured to receive a fourth input of generating a target document; the processing unit is further configured to process the N first images and generate a target document in response to the fourth input, wherein the target document has an association with the first images, and the target document includes identification content of the N first images; wherein M and N are both positive integers, and M is greater than or equal to N.
[0009] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the document sending method described in the first aspect are implemented, or when the program or instructions are executed by the processor, the steps of the document generation method described in the third aspect are implemented.
[0010] In the sixth 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 document sending method as described in the first aspect are implemented, or when the program or instruction is executed by the processor, the steps of the document generation method as described in the third aspect are implemented.
[0011] In the seventh aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the document sending method as described in the first aspect, or the processor is used to run a program or instruction to implement the document generation method as described in the third aspect.
[0012] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement the document sending method as described in the first aspect, or the program product is executed by at least one processor to implement the document generation method as described in the third aspect.
[0013] In an embodiment of the present application, a first input of an indication mark of a first image is received, wherein the indication mark is used to indicate Q first documents, Q is a positive integer, the first document has an association relationship with the first image, and the first document includes the identification content of the first image; the electronic device responds to the first input and sends the target document in the Q first documents to the second terminal. Through the above document sending method, when sending an electronic document (i.e., the first document), the target document in multiple first documents can be quickly sent to the target terminal (i.e., the second terminal) by first inputting the indication mark of the image (i.e., the first image) that has an association relationship with the electronic document. In this way, when the number of electronic documents is large, there is no need to search one by one in a large number of electronic documents. Only by inputting the indication mark of the image that has an association relationship with the electronic document, the target document can be quickly found and then sent to the target terminal, which reduces the user's search time and improves the efficiency of document sending. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 One of the flowcharts of the document sending method provided in the embodiment of the present application;
[0015] Figure 2 One of the interface schematic diagrams of the document sending method provided in the embodiment of the present application;
[0016] Figure 3 A structural block diagram of a document sending device provided in an embodiment of the present application;
[0017] Figure 4 One of the flowcharts of the document generation method provided in the embodiment of the present application;
[0018] Figure 5 One of the interface schematic diagrams of the document generation method provided in the embodiment of the present application;
[0019] Figure 6 The second interface diagram of the document generation method provided in the embodiment of the present application;
[0020] Figure 7 The third interface diagram of the document generation method provided in the embodiment of the present application;
[0021] Figure 8 A fourth interface diagram of the document generation method provided in an embodiment of the present application;
[0022] Fig. 9 The fifth interface diagram of the document generation method provided in the embodiment of the present application;
[0023] Fig.10 The sixth interface diagram of the document generation method provided in the embodiment of the present application;
[0024] Fig.11 A structural block diagram of a document generation device provided in an embodiment of the present application;
[0025] Fig.12 One of the hardware schematic diagrams of the electronic device provided in the embodiment of the present application;
[0026] Fig.13 The second hardware schematic diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0027] 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.
[0028] 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 data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, 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.
[0029] The execution subject of the technical solution provided in the embodiment of the present application can be a device for sending documents, which can be determined according to actual use requirements and is not limited in the embodiment of the present application. In order to more clearly describe the document sending method provided in the embodiment of the present application, the following method embodiment uses the execution subject of the document sending method as a document sending device for exemplary description.
[0030] The document sending method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0031] like Figure 1 As shown, the embodiment of the present application provides a document sending method, which may include the following steps 102 and 104:
[0032] Step 102: Receive a first input indicating a first image.
[0033] Among them, the first image can be an image displayed in thumbnail form in the display interface, that is, the first image can be an image to be sent in the album interface; the first image can also be an image displayed in the first communication interface, that is, the first image can also be an image that has been sent to the second terminal.
[0034] It should be noted that the above-mentioned indicator mark and the above-mentioned first image also have an associated relationship, for example: the above-mentioned indicator mark can be displayed after the user performs a touch operation on the first image, specifically, it can be displayed in a display interface displaying the first image, such as an album interface, and can be displayed around the first image; the above-mentioned indicator mark can also be displayed after the user sends the first image to the second terminal, specifically, it can be displayed in the first communication interface for sending the first image, and can be displayed around the first image.
[0035] Furthermore, the indicator is used to indicate Q first documents, where Q is a positive integer, and the first document is associated with the first image. In other words, the indicator is used to indicate that the first image has a first document associated with it. If the first image does not have the indicator, it means that the document sending device does not store the first document associated with the first image.
[0036] Specifically, when generating the first document, an association relationship between the first document and the first image may be established based on the storage address and document name of the document, and the storage address and image name of the first image used to generate the first document.
[0037] Furthermore, the storage address and image name of the first image can be used to search in the document sending device whether there is a first document associated with the first image. Based on the existence of the associated first document, the above-mentioned indicator is displayed on the interface where the first image is located. Specifically, the above-mentioned indicator can be displayed floating around the first image, and the number of first documents associated with the first image can also be expressed in the form of embedded numbers in the indicator.
[0038] Furthermore, the first document includes the recognized content of the first image. Specifically, the first document may be a document whose content is completely consistent with the first image, or a document containing the content of the first image (for example, the first image is an image of a page in a book, and the first document is a complete book document after all images of the entire book are recognized).
[0039] Furthermore, the first input is a user's touch input on the indicator mark of the first image, specifically, the first input can be a single click input on the indicator mark. In response to the first input, the document generation device sends the target document among the Q first documents to the second terminal.
[0040] Step 104: In response to the first input, sending a target document among the Q first documents to the second terminal.
[0041] Specifically, in response to the first input, the document generating device sends the target document selected by the user from the Q first documents to the second terminal, and displays the sending result on the first communication interface.
[0042] In the above embodiment provided by the present application, when sending an electronic document (i.e., a first document), a target document among multiple first documents can be quickly sent to a second terminal by first inputting an indication mark of a first image associated with the electronic document. In this way, when there are a large number of electronic documents, there is no need to search one by one in a large number of electronic documents. The target document can be quickly found and then sent to the target terminal by only inputting an indication mark of an image associated with the electronic document, which reduces the user's search time and improves the efficiency of document sending.
[0043] In the embodiment of the present application, the first input includes a first sub-input and a second sub-input. On this basis, the step 104 may specifically include the following steps 104a and 104b:
[0044] Step 104a: In response to the first sub-input indicating the identifier, display Q first documents.
[0045] Specifically, the indicator is used to indicate Q first documents. When the user performs a first sub-input on the indicator, the document sending device displays thumbnails of the Q first documents so that the user can select a target document to be sent to the second terminal from the Q first documents.
[0046] Specifically, when the first image is an image within an image interface, that is, the first image is an image that has not been sent, the document sending device responds to the above-mentioned first sub-input and displays Q thumbnails of the first document in the image interface where the first image is located; when the first image is an image displayed in a first communication interface, that is, the first image is an image that has been sent to the second terminal, the document sending device responds to the above-mentioned first sub-input and displays Q thumbnails of the first document in the first communication interface where the first image is located.
[0047] Step 104b: In response to a second sub-input of a target document among the Q first documents, sending the target document to the second terminal.
[0048] Specifically, the document generating device may send the target document selected by the user to the second terminal based on the user's second sub-input for the target document among the Q first documents, and display the sending result on the first communication interface.
[0049] Specifically, when the first image is an image within the image interface, that is, the first image is an unsent image, the document sending device can respond to the second sub-input and only send the target document associated with the first image to the second terminal.
[0050] According to the above-mentioned embodiment provided by the present application, when a user needs to send a first document to other terminal devices, the user can quickly and easily select from a plurality of first documents associated with the first image by inputting an indication mark of a first image associated with the first document, and determine the target document to be sent to the other terminal devices, thereby improving the efficiency of the user in sending files to other terminal devices.
[0051] In the embodiment of the present application, the above step 104b may specifically include the following step 104b':
[0052] Step 104b': In response to a second sub-input of a target document among the Q first documents, sending the first image and the target document to the second terminal.
[0053] Specifically, when the first image is an image within the image interface, that is, the first image is an unsent image, the document sending device can respond to the above-mentioned second sub-input and simultaneously send the first image and the target document associated with the first image to the second terminal.
[0054] In the above-mentioned embodiment provided by the present application, when a user needs to send a first image to other terminal devices, the user can conveniently select from multiple first documents associated with the first image, and determine the target document to be sent to the other terminal devices, and then send the first image and the target document to the other terminal devices at the same time, thereby improving the efficiency of the user in sending files to other terminal devices.
[0055] In the embodiment of the present application, before the above step 102, the document sending method may further include the following steps 106 and 108:
[0056] Step 106: Receive a second input of the first image.
[0057] The first image is an image displayed in thumbnail form in the image interface, that is, the first image is an unsent image, and the second input is a touch input for sending the first image to the second terminal, and the second input can specifically be a single-click input on the first image. In response to the second input, the document sending device sends the first image to the second terminal and displays the sending result on the first communication interface.
[0058] Step 108: In response to the second input, the first image is sent to the second terminal, and an indication mark is displayed on the first communication interface.
[0059] The indicator is used to indicate Q first documents, where Q is a positive integer, and the first document is associated with the first image. That is, the indicator is used to indicate that the first image has a first document associated with it. If the first image does not have the indicator, it means that the document sending device does not store the first document associated with the first image.
[0060] Specifically, the indicator mark may be displayed in a floating manner around the first image, and the number of first documents associated with the first image may be expressed in the form of numbers embedded in the indicator mark.
[0061] Furthermore, the storage address and image name of the first image can be used to search in the document sending device whether there is a first document associated with the first image. Based on the existence of the associated first document, the above-mentioned indicator mark is displayed on the first communication interface where the first image is located, and then by inputting the indicator mark, the target document among the multiple first documents associated with the first image is sent to the second terminal, and the sending result is displayed on the first communication interface.
[0062] For example, Figure 2 The schematic diagram of the interface of the document sending device sending the first image and the target document associated therewith is shown. Figure 2 As shown in (a) of FIG. 1 , a user sends a first image 214 to a second terminal in a first communication interface 244, and the document sending device searches for a target document associated with the first image 214 according to the storage address and name of the first image 214 sent by the user. When it is determined that there is a target document associated with the first image 214, an indication mark 246 is displayed in the first communication interface 244, and the indication mark 246 is used to indicate at least one target document associated with the first image 214. Further, the user operates the indication mark 246 through a first sub-input, and the document sending device responds to the first sub-input, such as Figure 2 As shown in (b) of FIG. 2 , a thumbnail of a target document 248 associated with the first image 214 is displayed in the first communication interface 244, specifically, the name and document format of the target document 248 are displayed. Further, the user operates the target document 248 through the second sub-input to select the corresponding target document 248, and the document generation device responds to the second sub-input, such as Figure 2 As shown in (c) in FIG. 2 , the target document selected by the user is sent to the second terminal, and the sending result to the second terminal is displayed in the first communication interface 244 .
[0063] The above-mentioned embodiment provided by the present application can conveniently send a target document associated with the first image after the user sends the first image to other terminal devices, thereby improving the efficiency of the user in sending files to other terminal devices.
[0064] The document sending method provided in the embodiment of the present application can be executed by a document sending device. In the embodiment of the present application, the document sending device provided in the embodiment of the present application is described by taking the document sending method executed by the document sending device as an example.
[0065] like Figure 3 As shown, an embodiment of the present application provides a document sending device 300, which may include the following receiving unit 302 and sending unit 304.
[0066] The receiving unit 302 is configured to receive a first input of an indication mark of a first image, wherein the indication mark is used to indicate Q first documents, the first documents are associated with the first image, and the first documents include identification content of the first image;
[0067] A sending unit 304, configured to send a target document among the Q first documents to a second terminal in response to a first input;
[0068] Wherein, Q is a positive integer.
[0069] Optionally, in an embodiment of the present application, the first input includes a first sub-input and a second sub-input, and the document sending device 300 also includes a display unit 306, and the display unit 306 is used to display Q first documents in response to the first sub-input of the indication mark; the sending unit 304 is specifically used to send the target document to the second terminal in response to the second sub-input of the target document among the Q first documents.
[0070] Optionally, in the embodiment of the present application, the sending unit 304 may be specifically configured to send the first image and the target document to the second terminal in response to a second sub-input of a target document among the Q first documents.
[0071] Optionally, in an embodiment of the present application, the receiving unit 302 is further used to receive a second input for the first image; the sending unit 304 is further used to send the first image to the second terminal in response to the second input; and the display unit 306 is further used to display an indicator mark on the first communication interface.
[0072] In the embodiment of the present application, the document sending device 300 receives a first input of an indication mark of a first image through a receiving unit 302, responds to the first input through a sending unit 304, and sends a target document in Q first documents to a second terminal. The indication mark is used to indicate Q first documents, Q is a positive integer, the first document has an association relationship with the first image, and the first document includes the identification content of the first image. In this way, when an electronic document (i.e., a first document) is sent through the document sending device, the target document in a plurality of first documents can be quickly sent to a target terminal (i.e., a second terminal) by first inputting an indication mark of an image (i.e., a first image) having an association relationship with the electronic document. In this way, when the number of electronic documents is large, there is no need to search one by one in a large number of electronic documents. Only by inputting an indication mark of an image having an association relationship with the electronic document, the target document can be quickly found and then sent to the target terminal, which reduces the user's search time and improves the efficiency of document sending.
[0073] The execution subject of the technical solution provided in the embodiment of the present application can be a device for document generation, which can be determined according to actual use requirements and is not limited in the embodiment of the present application. In order to more clearly describe the document generation method provided in the embodiment of the present application, the execution subject of the document generation method in the following method embodiment is exemplarily described as a document generation device.
[0074] The document generation method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0075] like Figure 4 As shown, the embodiment of the present application provides a document generation method, which may include the following steps 402 to 408:
[0076] Step 402: Receive a third input of a user selecting N first images from M images.
[0077] The M images are images stored in the electronic device. Specifically, the M images may be all images in the electronic device gallery, or images in a single album in the electronic device gallery. The N first images are all or part of the M images, M and N are both positive integers, and M is greater than or equal to N.
[0078] Further, the third input may be an input for a user to select N first images from M images. Specifically, the third input may include a fourth sub-input, a fifth sub-input and a sixth sub-input.
[0079] Among them, when the above-mentioned M images are displayed in the form of thumbnails in the album interface, the fourth sub-input is an input for converting the above-mentioned M images from an original state to a selectable state. The document generation device responds to the fourth sub-input of the M images, and then displays a selection control in each of the M images for the user to select the M images. Specifically, the fourth sub-input can be a long press input of any image among the M images, or it can be an operation input of the first indicator control in the album interface where the M images are located. The first indicator control can be used to indicate the switching of the editable state of the above-mentioned M images, that is, after the user operates the first indicator control, the above-mentioned M images are converted from the original state to a selectable state.
[0080] Furthermore, the fifth sub-input is a user's touch input to the M images to select N first images from the M images. The touch input can be a user's single-click input to the M images, or a user's single-click input to a selection control in the M images. In response to the fifth sub-input, the document generation device displays a selection mark in the selection control to indicate that the image has been selected. The selection mark can be a specific symbol, such as "√", and the selection mark can also be different numbers, which not only indicates that the image has been selected, but also indicates the order in which the user selects the image.
[0081] Furthermore, the sixth sub-input is a touch input of the user to the second indicator control in the album interface where the M images are located. Specifically, the sixth sub-input can be a single-click input to the second indicator control. In response to the sixth sub-input, the document generation device determines that the user has selected all of the N first images, and then performs the next step of processing on the N first images.
[0082] Step 404: In response to the third input, display N first images in the first display interface according to the first arrangement order.
[0083] Specifically, the first display interface is different from the album interface, and the N first images are displayed in the first display interface in the form of thumbnails. The first display interface can be an interface for importing and generating documents.
[0084] Furthermore, the identification code may be a page number contained in the first image content, and the page number may be obtained by identifying the first image. The first arrangement order may be determined by the order of the identification codes in the N first images or the order in which the user selects the N first images. The following describes the order determination of the N first images through three cases.
[0085] Case 1: When all the N first images contain identification codes, the first arrangement order can be determined by the order of the identification codes in the N first images. The identification codes in the first images are identified to determine the order of the identification codes, and then the order of the N first images is automatically adjusted according to the order of the identification codes.
[0086] Case 2: When none of the N first images contain an identification code, the first arrangement order may be determined by the order in which the user selects the N first images. The order in which the user selects the N first images may be determined based on the time when the user selects the first image, or may be determined by the selection identification in digital form.
[0087] Case 3: In the case where a portion of the N first images contain identification codes, while another portion does not contain identification codes, the document generation device sorts the portion of the first images containing identification codes according to the order of the identification codes in the first images, and sorts the other portion of the first images not containing identification codes according to the order in which the user selects the first images. The portion of the first images not containing identification codes is located entirely after the other portion of the first images containing identification codes.
[0088] For example, Figure 5 FIG. 2 shows a schematic diagram of an interface for selecting N first images from M images in an embodiment of the present application. Figure 5 As shown in (a) of FIG. 2 , 12 (M=12) images are displayed in the album interface 202, of which eight images contain the identification code 216. The user operates the first indication control 204 through the fourth sub-input, and the document generation device responds to the fourth sub-input, such as Figure 5 As shown in (b) of FIG. 1 , a selection control 206 is displayed in the upper right corner of each image to indicate that the image is currently selectable. Further, the user operates the selection control 206 through the fifth sub-input, and the document generation device responds to the fifth sub-input, such as Figure 5 As shown in (c) of FIG. 1 , a selection mark in digital form is displayed in the selection control 206 to indicate that the image has been selected and the order in which the images are selected. After the image selection is completed, the user operates the second indication mark 210 through the sixth sub-input, and the document generation device responds to the sixth sub-input, such as Figure 5 As shown in (d) in FIG. 1 , six (N=6) first images 214 are displayed in the first display interface 212. The four first images 214 including the identification code 216 are sorted according to the order of the identification code, and the two first images 214 not including the identification code 216 are arranged behind the four first images with the identification code 216 according to the selection order indicated by the selection mark.
[0089] Furthermore, if Figure 5As shown in (d), each of the above-mentioned 6 first images 214 includes a third indication control 218, and the user can delete the corresponding first image 214 by touch input to the third indication control 218, and the touch input can specifically be a single-click input to the third indication control 218.
[0090] Step 406: Receive a fourth input for generating a target document.
[0091] Step 408: In response to the fourth input, process the N first images and generate a target document.
[0092] The target document is associated with the first image, and the target document includes the recognition content of the N first images. Specifically, the target document may be a document whose content is completely consistent with the first image, or a document containing the content of the first image (for example, the first image is an image of a page in a book, and the target document is a complete book document after all images of the entire book are recognized).
[0093] Further, the fourth input is an input for the user to determine to generate a target document from the selected N first images, and the fourth input includes a plurality of sub-inputs.
[0094] Specifically, the fourth input includes a seventh sub-input, and the seventh sub-input is a user's touch input to a fourth indicator control in the first display interface. The fourth indicator control may be an entry for generating a target document, and the seventh sub-input may be a single-click input to the fourth indicator control. In response to the seventh sub-input, the document generating device performs recognition processing on the N first images to generate an electronic document.
[0095] Furthermore, the target document format is PDF by default, and the target document can also be Word format, and the user can choose according to actual needs.
[0096] Through the document generation method provided by the embodiment of the present application, when the user processes multiple images (i.e., N first images) through the document generation device to generate a target document, the document generation device can automatically adjust the order of the N first images according to the order of the identification codes in the N first images or the order in which the user selects the N first images, thereby generating a target document with the correct content order. In this way, the image processing function of the document generation device is expanded, making it convenient for the user to process images through the document generation device to generate a target document, so that the user does not need to obtain images in the order of the identification codes, and even if the order of the images used to generate the target document is disordered, a target document with the correct content order can be generated.
[0097] In the embodiment of the present application, after the above step 404, the document generation method provided in the embodiment of the present application further includes the following steps 410 and 412.
[0098] Step 410: Receive a fifth input from a user to add J second images to the N first images.
[0099] Wherein, J is a positive integer. The second image may be other images among the M images except the N first images. In this case, J should be less than or equal to MN. The second image may also be other images in an album different from the M images. In this case, J should be less than the total number of images in the album where the second image is located.
[0100] Furthermore, the fifth input may include an eighth sub-input, and the eighth sub-input is a touch input of the user to the fifth indicator control in the first display interface, and the touch input may specifically be a single-click input. Through the eighth sub-input to the fifth indicator control, the display interface of the document generation device returns from the first display interface to the album interface, so that the user can perform operations such as selecting and adding images in the album interface.
[0101] Step 412: In response to the fifth input, according to the identification codes in the J second images, add and display each of the J second images to the N first images, and update the first arrangement order.
[0102] Specifically, after the document generation device returns to the album interface in response to the eighth sub-input, it repeats the operations of the fourth, fifth and sixth sub-inputs, selects J second images from the album where the second image is located and adds them to the N first images in the first display interface.
[0103] Wherein, for the second image containing the identification code, the second image is inserted into the corresponding position of the N first images according to the identification code, so that the order of the identification codes of the first image and the second image is coherent and correct. For the second image not containing the identification code, it is added to the back of the first image as a whole according to the order in which the user selects the second image. Wherein, the order in which the user selects the second image can be determined according to the time when the user selects the second image, and can also be determined by the selection identifier in the form of a number.
[0104] For example, Figure 6 FIG. 1 shows an interface schematic diagram of adding J second images to N first images when the first images and the second images are in the same album. Figure 6 As shown in (a), 6 (N=6) first images 214 are displayed in the second display interface 212, and the user operates the fifth indication control 220 through the eighth sub-input. The document generation device responds to the eighth sub-input and returns to the first display interface 202, as shown in FIG. Figure 6As shown in (b) of FIG. 1 , the user repeats the fifth sub-input operation to select 5 (J=5) second images 222, and repeats the sixth sub-input operation. Figure 6 As shown in (c) in FIG. 5 , five second images are added to the original six first images. The three second images 222 containing the identification code 216 are sorted according to the order of the identification code, and the two second images 222 not containing the identification code 216 are arranged behind the image with the identification code 216 according to the selection order indicated by the selection mark.
[0105] It can be understood that after the user selects N first images, or after the user re-adds J second images to the N first images, the document generation device can automatically arrange the above images (including the first image or the first image and the second image) in the first arrangement order according to the order of the identification codes in the images or the order in which the user selects the images. If the user needs to adjust the images arranged in the first arrangement order according to actual needs, the sequence can be directly adjusted by dragging one of the images and moving it to the target position.
[0106] For example, Figure 7 FIG. 4 is a schematic diagram showing an interface for adjusting the arrangement order of the first image on the same screen. Figure 7 As shown in (a) of FIG. 1 , 11 (N=11) first images 214 are displayed in the first display interface 212. The user operates the target image 224 located in the first order, and the document generation device responds to the operation, such as Figure 7 As shown in (b) of FIG. 2 , the target image 224 moves from a first priority position in the first display interface 212 to a second priority position.
[0107] In the above embodiment provided by the present application, in the scenario where the user needs to add the second image to the first image, the document generation device can automatically insert the second image into the first image in the order of the identification code according to the user's identification code in the second image, and update the first sorting order accordingly. This improves the efficiency of arranging images and avoids the phenomenon of disordered content in the target document generated after adding the image.
[0108] It should be noted that the number of the first images after automatic sorting, or the number of the first images and the second images after automatic sorting is large, and the user cannot view all of the large number of images in the same display interface, so that the order of the above images cannot be manually adjusted again. The embodiment of the present application also provides the following method of using split screen to adjust the image sequence.
[0109] In the embodiment of the present application, after the above step 404, the document generation method provided in the embodiment of the present application further includes the following steps 414 and 416.
[0110] Step 414: receiving a sixth input from the user for dividing the first display interface into a first display area and a second display area, and adjusting the sequence of the target image among the N first images.
[0111] It can be understood that, as described above, when there are a large number of first images or first and second images, the position sequence of the images can be adjusted by dividing the regions. The first display region is used to display N first images, and the second display region is used to display a target image that is shifted out of the first sequence of the N first images. The target image is the first image that needs to be adjusted in position.
[0112] Optionally, the second display area may be located at four positions of the first display area, namely, top, bottom, left, and right, without any specific limitation. The area of the second display area is smaller than that of the first display area.
[0113] It can be understood that since the document generation device can automatically arrange the N first images in the first arrangement order according to the order of the identification codes in the image or the order in which the user selects the images, if the user needs to adjust the arrangement order according to the first arrangement order according to actual needs, the sequence can be adjusted by moving one of the target images to the target position (the sixth input).
[0114] Step 416: In response to the sixth input, add the target image to the second order of the N first images for display, and update the first arrangement sequence.
[0115] In order to implement the process of adjusting the sequence of the target image by splitting the screen, the sixth input may include a plurality of sub-inputs to implement the process of splitting the screen and moving the target image.
[0116] The sixth input may include a ninth sub-input, which is a user's touch input to the first display interface, used to divide the first display interface into a first display area and a second display area, and the ninth sub-input may specifically be a long press input or a sliding input along a preset track. The specific form of the ninth sub-input may be determined according to actual conditions, and is not specifically limited in the embodiments of the present application.
[0117] Furthermore, the sixth input may include a tenth sub-input, which is a user's touch input to the target image, used to move the target image from the first display area to the second display area, and the tenth sub-input may specifically be a single-click input or a sliding input. The specific form of the tenth sub-input may be determined according to actual conditions, and is not specifically limited in the embodiments of the present application.
[0118] Furthermore, the sixth input may include an eleventh sub-input, which is a user's touch input to a sixth indication control located in the first display area or on its side, and is used to move the first image in the first display area as a whole. The eleventh sub-input may specifically be a sliding input.
[0119] Furthermore, the sixth input may include a twelfth sub-input, which is a user's touch input to a target image located in the second display area, and is used to move the target image from the second display area to a second-order position of the N first images in the first display area. The twelfth sub-input may specifically be a sliding input.
[0120] For example, Figure 8 The schematic diagram of the interface for adjusting the arrangement order of the first image in split screen is shown. Figure 8 As shown in (a) of FIG. 1 , N first images 214 are displayed in the first display interface 212. The user performs a ninth sub-input (two-finger sliding in opposite directions) on the first display interface 212. The document generation device responds to the ninth sub-input, such as Figure 8 As shown in (b) of FIG. 1 , the first display interface 212 is divided into a first display area 2122 and a second display area 2124. Further, the user operates the target image 224 located in the first order through the tenth sub-input, and the document generation device responds to the tenth sub-input, such as Figure 8 As shown in (c) of FIG. 1 , the target image 224 moves out of the first display area 2122 and is displayed in the second display area 2124. Further, the user operates the sixth indication control 226 through the eleventh sub-input (sliding input), and the document generating device responds to the eleventh sub-input, such as Figure 8 As shown in (d) in FIG. 1 , the first image 214 in the first display area 2122 moves downward as a whole, so that the first image 214 arranged behind is displayed in the current interface. Further, the user operates the target image 224 in the second display area 2124 through the twelfth sub-input (sliding input), and the document generation device responds to the twelfth sub-input, as shown in FIG. Figure 8 As shown in (e) in FIG. 2 , the target image 224 moves from the second display area 2124 to the second position of the first display area 2122. Further, the user performs an operation input (two-finger back sliding) on the first display interface 212. Figure 8 As shown in (f) in FIG. 1 , the first display interface 212 is restored to a single area display.
[0121] In the above embodiment provided by the present application, in a scenario where a user needs to add a second image to a first image, if there are too many first images and the user cannot conveniently manually adjust the arrangement order of the first images among the large number of first images, the document generation device can separate the first display interface into two display areas to facilitate the user to manually adjust the arrangement order of the first images and update the first sorting order. This improves the efficiency of arranging images and meets the user's need to adjust the image arrangement order independently, so that a target document that meets the user's needs can be generated later, avoiding the problem of being unable to generate the target document according to the user's needs.
[0122] It should be noted that after the document generation device automatically sorts the images, or after the user manually adjusts the order of the images, the document generation device can generate the target document in the following two ways.
[0123] Method 1: Generate a target document according to a first arrangement order of N first images.
[0124] In the embodiment of the present application, the above step 408 may specifically include the following steps 408a and 408b.
[0125] Step 408a: Identify the content of each of the N first images to obtain N sub-document files.
[0126] Specifically, each of the N sub-documents is a complete recognition result of one of the N first images. Exemplarily, if there are texts and pictures in image A among the N first images, the recognition result of image A also includes the texts and pictures, and the document generation device forms a sub-document A corresponding to image A according to the recognition result. In this way, the N first images are recognized one by one according to the above method to generate N sub-documents.
[0127] Furthermore, the N sub-documents are not final documents, but process documents formed in the process of generating the target document.
[0128] Step 408b: sort the N sub-document files according to the first arrangement order to generate a target document.
[0129] It can be understood that after the document generation device automatically sorts the images, or after the user manually adjusts the order of the images, the user does not need to continue to adjust the order of the N sub-documents in the target document to be generated. The user can directly sort the corresponding N sub-documents according to the first arrangement order of the N first images and generate the target document.
[0130] Specifically, the target document may be named according to the time when the target document was generated.
[0131] Furthermore, the target document may include directory content automatically generated according to the recognition results of the N first images.
[0132] In the above embodiment provided by the present application, after the user determines the arrangement order of the first images, the document generation device can directly generate the target document according to the first arrangement order, thereby improving the efficiency of generating the target document and meeting the user's needs.
[0133] Method 2: K segment files are obtained based on the recognition of N first images, the K segment files are re-sorted to form a second sorting order, and the target document is generated according to the second sorting order of the K segment files.
[0134] In the embodiment of the present application, the above step 408 may further specifically include the following step 408c, step 408d and step 408e.
[0135] Step 408c: Identify the content of each of the N first images, and display K segment files on the second display interface.
[0136] The segment file is the segment content in the first image, and K is a positive integer.
[0137] Specifically, the K segment files may be the recognition results of the N first images. After the document generating device recognizes the N first images, it may generate a corresponding segment file corresponding to the segment content in each first image.
[0138] Specifically, the above-mentioned one segment file may correspond to the content of a natural paragraph in image A among the N first images, or may correspond to the content of each line in image A, or may correspond to a picture in image A. The content corresponding to the above-mentioned segment file may be specifically set according to the needs of the user.
[0139] It can be understood that since each segment file corresponds to not all the content in the complete image A but to a partial segment content in the image A, the number K of the segment files should be greater than the number N of the first images.
[0140] Specifically, the second display interface may be an interface for displaying K segment files after N images are recognized and the recognition results are split into K segment files.
[0141] Step 408d: receiving a seventh input from the user to divide the second display interface into a third display area and a fourth display area, and to adjust the sequence of the target segment file among the K segment files.
[0142] The third display area is used to display K segment files, and the fourth display area is used to display the target segment file shifted out from the first sequence of the K segment files.
[0143] It is understandable that, as described above, when the number of the K segment files is large, the position order of the images can be adjusted by dividing the regions. Specifically, the seventh input can divide the second display interface into two display regions, namely the third display region and the fourth display region.
[0144] The third display area is used to display K segment files, and the fourth display area is used to display the target segment file shifted out from the first sequence of the K segment files.
[0145] Optionally, the fourth display area may be located at four positions of the third display area, namely, top, bottom, left, and right, without being specifically limited herein. The area of the fourth display area is smaller than that of the third display area.
[0146] It can be understood that since the K segment files can be obtained by recognizing the N first images in the first order and splitting the recognition results based on this order, if the user needs to adjust the order of the K segment files according to actual needs, the target segment file can be adjusted by selecting one of the target segment files and moving it to the target position (the seventh input).
[0147] Step 408e: In response to the seventh input, the target segment is added and displayed to the second order of the K segment files to form a second arrangement sequence of the K segment files, and the K segment files are sorted according to the second arrangement sequence to generate a target document.
[0148] Specifically, in response to the seventh input, the document generating apparatus adjusts the target segment file from the first rank of the K segment files to the second rank.
[0149] In order to implement the process of adjusting the sequence of the target segment files by splitting the screen, the seventh input may include a plurality of sub-inputs to implement the process of splitting the screen and moving the target segment files.
[0150] Specifically, the seventh input may include a thirteenth sub-input, which is a user's touch input to the second display interface, used to divide the second display interface into a third display area and a fourth display area, and the thirteenth sub-input may be a long press input or a sliding input along a preset track. The specific form of the thirteenth sub-input may be determined according to actual conditions, and is not specifically limited in the embodiments of the present application.
[0151] Furthermore, the seventh input may include a fourteenth sub-input, which may be a user's touch input to the target segment file, used to move the target segment file from the third display area to the fourth display area, and the fourteenth sub-input may be a single-click input or a sliding input. The specific form of the fourteenth sub-input may be determined according to actual conditions, and is not specifically limited in the embodiment of the present application.
[0152] Furthermore, the seventh input may include a fifteenth sub-input, which may be a touch input of the user to an eighth indicator control located in the third display area or on its side, for moving the segment files in the third display area as a whole, and the fifteenth sub-input may specifically be a sliding input.
[0153] Furthermore, the seventh input may include a third sub-input, which may be a user's touch input to a target segment file located in the fourth display area, and may be used to move the target segment file from the fourth display area to a second-order position among the K segment files in the third display area. The third sub-input may specifically be a sliding input.
[0154] Furthermore, the seventh input also includes a user's touch input to a seventh indication control in the second display interface, and the touch input may specifically be a single-click input. The document generation device responds to the eighth sub-input to complete the operation of generating the target document.
[0155] Furthermore, the format of the above target document is PDF format by default, and the target document can also be Word format, which can be selected according to the actual needs of the user.
[0156] For example, Fig. 9 The schematic diagram of the interface for generating segment files, adjusting the arrangement order of segment files in split screen, and generating target documents is shown. Fig. 9 As shown in (a) of FIG. 1 , a plurality of first images 214 arranged in a first arrangement order are displayed in the first display interface 212, and the user performs a seventh sub-input on the fourth indication control 228 in the first display interface 212. The document generating device recognizes the content of the first image in response to the seventh sub-input, and then Fig. 9 As shown in (b) of FIG. 1 , 12 (K=12) segment files are displayed on the second display interface 230. Further, the user performs a thirteenth sub-input (two-finger sliding in opposite directions) on the second display interface 230, and the document generation device responds to the thirteenth sub-input, such as Fig. 9 As shown in (c) of FIG. 1 , the second display interface 230 is divided into a third display area 2302 and a fourth display area 2304. Further, the user operates the target segment file 234 located in the first order through the fourteenth sub-input, and the document generation device responds to the fourteenth sub-input, such as Fig. 9As shown in (d) in FIG. 2 , the target segment file 234 is moved from the third display area 2302 to the fourth display area 2304 .
[0157] Further, the user operates the eighth indication control 236 through the fifteenth sub-input, and the document generation device responds to the fifteenth sub-input, such as Fig. 9 As shown in (e) of FIG. 1 , the segment files 232 in the third display area 2302 are moved downward as a whole, so that the segment files in the later order are displayed in the current interface. The user operates the target segment file 234 in the fourth display area 2304 through the third sub-input, and the document generation device responds to the third sub-input, such as Fig. 9 As shown in (f) in FIG. 8 , the target segment file 234 is moved from the fourth display area 2304 to the second position in the third display area 2302 .
[0158] Further, the user operates the second display interface 230 (slides two fingers backwards), such as Fig. 9 As shown in (g) in FIG. 1 , the second display interface 230 is restored to a region display. Further, the user performs an operation input on the ninth indication control 238 in the second display interface 230, such as Fig. 9 As shown in (h), a format selection control 240 is displayed on the second display interface 230 for the user to select the format of the target document. Then, an operation input is performed on the seventh indication control 242 in the second display interface 230 to complete the operation of generating the target document.
[0159] It should be noted that the method of adjusting the order of the target segment files in the above embodiment is applicable to the scenario where there are a large number of K segment files. When the K segment files can be displayed on the same screen, the target segment file can also be directly dragged to adjust the target segment file from the first position to the second position among the K segment files.
[0160] For example, Fig.10 FIG. 1 shows a schematic diagram of an interface for adjusting the arrangement order of clip files on the same screen. Fig.10 As shown in (a) of FIG. 1 , 12 (K=12) segment files 232 are displayed in the second display interface 230. The user operates the target segment file 234 located in the first order through input operation, and the document generation device responds to the operation, as shown in FIG. Fig.10 As shown in (b) of FIG. 1 , the document generating apparatus moves the target segment file 234 from the first priority position to the second priority position in the second display interface 230 .
[0161] In the above-mentioned embodiment provided by the present application, after the user determines the arrangement order of the first image, if it is necessary to further adjust the order of the fragment content in the recognized content, the document generation device can display the recognition result of the first image in the form of multiple fragment files, and the user can adjust the order of a certain fragment file, and generate a target document from the multiple fragment files according to the adjusted second order, thereby improving the efficiency of generating the target document and further meeting the user's needs.
[0162] In the embodiment of the present application, the document generation method also includes the following step 418.
[0163] Step 418: Establish an association relationship between any first image among the N first images and the target document.
[0164] Specifically, after the above-mentioned target document is formed, an association relationship between the target document and the N first images can be established according to the storage address and document name of the document, as well as the storage address and image name of the first image among the N first images generating the above-mentioned target document, and an association list can be generated.
[0165] In the above-mentioned embodiment provided by the present application, after the user recognizes the first image and generates the target document, the target document is associated with the first image. In this way, when the user needs to send the first image to other terminal devices, the target document associated with the first image can be sent conveniently, thereby improving the efficiency of the user in sending files to other terminal devices.
[0166] The document generation method provided in the embodiment of the present application can be executed by a document generation device. In the embodiment of the present application, the document generation device provided in the embodiment of the present application is described by taking the method for executing document generation by a document generation device as an example.
[0167] like Fig.11 As shown, an embodiment of the present application provides a document generating device 1100, which may include the following receiving unit 1102, display unit 1104 and processing unit 1106.
[0168] The receiving unit 1102 is configured to receive a third input of a user selecting N first images from M images.
[0169] The display unit 1104 is used to display N first images in a first display interface in response to a third input in a first arrangement order, wherein the first arrangement order is determined by the order of identification codes in the N first images or the order in which the user selects the N first images.
[0170] The receiving unit 1102 is further configured to receive a fourth input for generating a target document.
[0171] The processing unit 1106 is further configured to, in response to a fourth input, process the N first images and generate a target document, wherein the target document is associated with the first images and includes recognition content of the N first images.
[0172] Wherein, M and N are both positive integers, and M is greater than or equal to N.
[0173] Optionally, in an embodiment of the present application, the receiving unit 1102 is further used to receive a fifth input from a user to add J second images to N first images; the processing unit 1106 is further used to, in response to the fifth input, add and display each of the J second images to the N first images according to the identification codes in the J second images, and update the first arrangement order; wherein J is a positive integer.
[0174] Optionally, in an embodiment of the present application, the receiving unit 1102 is also used to receive a sixth input from the user to divide the first display interface into a first display area and a second display area, and adjust the order of the target image among the N first images, the first display area is used to display the N first images, and the second display area is used to display the target image moved out from the first order of the N first images; the display unit 1104 is also used to, in response to the sixth input, add the target image to the second order of the N first images for display, and update the first arrangement order.
[0175] Optionally, in an embodiment of the present application, the processing unit 1106 is specifically used to: identify the content of each of the N first images to obtain N sub-document files, and the N sub-document files correspond one-to-one to the N first images; sort the N sub-document files according to the first arrangement order to generate a target document.
[0176] Optionally, in an embodiment of the present application, the processing unit 1106 is further used to identify the content in each of the N first images; the display unit 1104 is further used to display K segment files on the second display interface, wherein the segment file is the segment content in the first image, and K is a positive integer; the receiving unit 1102 is further used to receive a seventh input from the user to divide the second display interface into a third display area and a fourth display area, and adjust the sequence of a target segment file among the K segment files, the third display area is used to display the K segment files, and the fourth display area is used to display the target segment file moved out from the first sequence of the K segment files; the display unit 1104 is further used to, in response to the seventh input, add and display the target segment to the second sequence of the K segment files and form a second arrangement order of the K segment files, and sort the K segment files according to the second arrangement order, and the processing unit 1106 is further used to generate a target document.
[0177] Optionally, in the embodiment of the present application, the processing unit 1106 is further configured to establish an association relationship between any first image among the N first images and the target document.
[0178] In the embodiment of the present application, the document generation device 1100 receives a third input of a user selecting N first images from M images through the receiving unit 1102, and displays the above N first images in the first display interface in accordance with the first arrangement order in response to the third input through the display unit 1104, and then receives a fourth input of generating a target document through the receiving unit 1102, and then responds to the fourth input through the processing unit 1106 to process the above N first images and generate the target document. Wherein, M and N are both positive integers, M is greater than or equal to N, and the first arrangement order is determined by the order of the identification codes in the N first images or the order in which the user selects the N first images. In this way, when the user processes multiple images (i.e., N first images) through the document generation device to generate a target document, the document generation device can automatically adjust the order of the above N first images according to the order of the identification codes in the N first images or the order in which the user selects the N first images, thereby generating a target document with a correct content order. In this way, the image processing function of the document generation device is expanded, making it convenient for users to process images through electronic devices to generate target documents, so that users do not need to obtain images in the order of identification codes. Even if the order of images used to generate the target document is disordered, a target document with the correct content order can be generated.
[0179] The document sending device and document generating device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or 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.
[0180] The document sending device and document generating 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.
[0181] The document sending device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0182] Furthermore, the document generation device provided in the embodiment of the present application can achieve Figure 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0183] Alternatively, if Fig.12 As shown, an embodiment of the present application also provides an electronic device 1200, including a processor 1201 and a memory 1202, and the memory 1202 stores a program or instruction that can be executed on the processor 1201, and when the program or instruction is executed by the processor 1201, the various steps of the above-mentioned document sending method embodiment are implemented, or when the program or instruction is executed by the processor 1201, the various steps of the above-mentioned document generation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0184] 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.
[0185] Fig.13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0186] The electronic device 1300 includes but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, and a processor 1310 and other components.
[0187] Those skilled in the art will appreciate that the electronic device 1300 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 1310 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.13 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.
[0188] In an embodiment of the present application, on the one hand, the electronic device 1300 can be used to implement each process of the above-mentioned document sending method embodiment.
[0189] The user input unit 1307 is used to receive a first input of an indication mark of a first image, wherein the indication mark is used to indicate Q first documents, the first documents are associated with the first image, and the first documents include identification content of the first image;
[0190] The processor 1310 is configured to send a target document among the Q first documents to a second terminal in response to a first input;
[0191] Wherein, Q is a positive integer.
[0192] In an embodiment of the present application, the electronic device 1300 receives a first input of an indication mark of a first image through the user input unit 1307, responds to the first input through the processor 1310, and sends a target document in Q first documents to the second terminal. Among them, the above indication mark is used to indicate Q first documents, Q is a positive integer, the first document has an association relationship with the first image, and the first document includes the identification content of the first image. In this way, when an electronic document (i.e., a first document) is sent through a document sending device, the target document in multiple first documents can be quickly sent to a target terminal (i.e., a second terminal) by first inputting an indication mark of an image (i.e., a first image) having an association relationship with the electronic document. In this way, when the number of electronic documents is large, there is no need to search one by one in a large number of electronic documents. Only by inputting an indication mark of an image having an association relationship with the electronic document, the target document can be quickly found and then sent to the target terminal, which reduces the user's search time and improves the efficiency of document sending.
[0193] Optionally, the first input includes a first sub-input and a second sub-input, and the display unit 1306 is used to display Q first documents in response to the first sub-input of the indication mark.
[0194] The processor 1310 is further configured to, in response to a second sub-input of a target document among the Q first documents, send the target document to the second terminal.
[0195] Optionally, the processor 1310 is further configured to, in response to a second sub-input of a target document among the Q first documents, send the first image and the target document to the second terminal.
[0196] Optionally, the user input unit 1307 is further configured to receive a second input of the first image.
[0197] The processor 1310 is further configured to, in response to a second input, send the first image to the second terminal.
[0198] The display unit 1306 is further configured to display an indication mark on the first communication interface.
[0199] When sending the first document, the electronic device provided by the embodiment of the present application can quickly send the target document in multiple first documents to the target terminal (i.e., the second terminal) by first inputting the indicator mark of the image (i.e., the first image) associated with the electronic document. In this way, when the number of electronic documents is large, there is no need to search one by one in a large number of electronic documents. Only by inputting the indicator mark of the image associated with the electronic document, the target document can be quickly found and then sent to the target terminal, which reduces the user's search time and improves the document sending efficiency. In addition, the electronic device provided by the embodiment of the present application can only send the first document to the second terminal, can also send the first document and the first image to the second terminal at the same time, and can also send the first document by inputting the indicator mark of the first image after sending the first image, providing a variety of document sending methods, which can conveniently send the target document associated with the first image, and improve the efficiency of users sending files to other terminal devices.
[0200] On the other hand, the electronic device 1300 may be used to implement the various processes of the above-mentioned document generation method embodiment.
[0201] The user input unit 1307 is used to receive a third input of a user selecting N first images from M images.
[0202] The display unit 1306 is used to display N first images in a first display interface in response to a third input in a first arrangement order, wherein the first arrangement order is determined by the order of the identification codes in the N first images or the order in which the user selects the N first images.
[0203] The user input unit 1307 is further used to receive a fourth input for generating a target document.
[0204] The processor 1310 is further configured to, in response to a fourth input, process the N first images and generate a target document, wherein the target document is associated with the first images and includes recognition content of the N first images.
[0205] Wherein, M and N are both positive integers, and M is greater than or equal to N.
[0206] In the embodiment of the present application, the electronic device 1300 receives a third input of a user selecting N first images from M images through the user input unit 1307, and displays the above N first images in the first display interface in accordance with the first arrangement order in response to the third input through the display unit 1306, and then receives a fourth input of generating a target document through the user input unit 1307, and then responds to the fourth input through the processor 1310 to process the above N first images and generate the target document. Wherein, M and N are both positive integers, M is greater than or equal to N, and the first arrangement order is determined by the order of the identification codes in the N first images or the order in which the user selects the N first images. In this way, when the user processes multiple images (i.e., N first images) through the electronic device 1300 to generate a target document, the electronic device 1300 can automatically adjust the order of the above N first images according to the order of the identification codes in the N first images or the order in which the user selects the N first images, thereby generating a target document with the correct content order. In this way, the image processing function of the electronic device 1300 is expanded, making it convenient for users to process images through the electronic device 1300 to generate a target document, so that users do not need to obtain images in the order of identification codes. Even if the order of images used to generate the target document is disordered, a target document with the correct content order can be generated.
[0207] Optionally, the user input unit 1307 is further configured to receive a fifth input from a user of adding J second images to the N first images.
[0208] The display unit 1306 is further configured to, in response to a fifth input, add and display each of the J second images to the N first images according to the identification codes in the J second images, and update the first arrangement order, where J is a positive integer.
[0209] Optionally, the user input unit 1307 is also used to receive a sixth input from the user to divide the first display interface into a first display area and a second display area, and to adjust the sequence of a target image among the N first images, the first display area being used to display the N first images, and the second display area being used to display a target image shifted out from the first sequence of the N first images.
[0210] The display unit 1306 is further configured to, in response to a sixth input, add and display the target image to the second order of the N first images, and update the first arrangement sequence.
[0211] Optionally, the processor 1310 is specifically used to: identify the content of each of the N first images to obtain N sub-document files, where the N sub-document files correspond one-to-one to the N first images; and sort the N sub-document files according to the first arrangement order to generate a target document.
[0212] Optionally, the display unit 1306 is further configured to identify content in each of the N first images, and display K segment files on the second display interface, where the segment file is segment content in the first image, and K is a positive integer.
[0213] The user input unit 1307 is further used to receive a seventh input from the user to divide the second display interface into a third display area and a fourth display area, and to adjust the sequence of a target segment file among the K segment files, the third display area being used to display the K segment files, and the fourth display area being used to display the target segment file moved out from the first sequence of the K segment files.
[0214] The display unit 1306 is further configured to, in response to the seventh input, add and display the target segment to the second order of the K segment files to form a second arrangement sequence of the K segment files, sort the K segment files according to the second arrangement sequence, and generate a target document.
[0215] Optionally, the processor 1310 is further configured to establish an association relationship between any first image among the N first images and the target document.
[0216] When the electronic device provided by the embodiment of the present application processes multiple images (i.e., N first images) to generate a target document, the order of the N first images can be automatically adjusted according to the order of the identification codes in the N first images or the order in which the user selects the N first images, thereby generating a target document with the correct content order. At the same time, the electronic device provided by the embodiment of the present application also provides the function of allowing the user to manually adjust the order of the first images and edit the content of the first images, and when generating the target document, an association relationship between the first image and the generated target document will be established, so that when sending the first image, the target document associated with it can be conveniently sent. In this way, the image processing function of the electronic device is expanded, which facilitates the user to process the image through the electronic device to generate the target document, and facilitates the user to conveniently send the target document associated with it when sending the first image, thereby reducing the user's operation steps.
[0217] It should be understood that in the embodiment of the present application, the input unit 1304 may include a graphics processor (Graphics Processing Unit, GPU) 13041 and a microphone 13042, and the graphics processor 13041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1306 may include a display panel 13061, and the display panel 13061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1307 includes a touch panel 13071 and at least one of other input devices 13072. The touch panel 13071 is also called a touch screen. The touch panel 13071 may include two parts: a touch detection device and a touch controller. Other input devices 13072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0218] The memory 1309 can be used to store software programs and various data. The memory 1309 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 instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1309 may include a volatile memory or a non-volatile memory, or the memory 1309 may include both volatile and non-volatile memories. The memory 1309 in the embodiment of the present application includes but is not limited to these and any other suitable types of memories.
[0219] The processor 1310 may include one or more processing units; optionally, the processor 1310 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 communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1310.
[0220] 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 document sending method embodiment are implemented, or when the program or instruction is executed by a processor, the various processes of the above-mentioned document generation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0221] 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.
[0222] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, which are coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned document sending method embodiment, or the processor is used to run programs or instructions to implement the various processes of the above-mentioned document generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0223] 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.
[0224] 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 document sending method embodiment as described above, or the program product is executed by at least one processor to implement the various processes of the document generation method embodiment as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0225] 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.
[0226] 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. A document sending method, characterized in that: The method comprises: Receiving a first input of an indicator mark of a first image, wherein the indicator mark is displayed in a floating manner around the first image, and the indicator mark is used to indicate Q first documents, the first documents are associated with the first image, and the first documents include identification content of the first image; In response to the first input, sending a target document among the Q first documents to a second terminal; Wherein, Q is a positive integer; The first input includes a first sub-input and a second sub-input, and in response to the first input, sending a target document among the Q first documents to the second terminal specifically includes: In response to a first sub-input of the indication mark, displaying the Q first documents; In response to a second sub-input of the target document among the Q first documents, sending the target document to the second terminal.
2. The document sending method according to claim 1, characterized in that: The sending the target document to the second terminal in response to the second sub-input of the target document among the Q first documents specifically includes: In response to a second sub-input of the target document among the Q first documents, the first image and the target document are sent to the second terminal.
3. The document sending method according to claim 1, characterized in that: Before receiving a first input indicating a first image, the document sending method further includes: receiving a second input of the first image; In response to the second input, the first image is sent to the second terminal, and the indication mark is displayed on the first communication interface.
4. A document sending device, characterized in that: The document sending device comprises: A receiving unit, configured to receive a first input of an indicator mark of a first image, wherein the indicator mark is displayed in a floating manner around the first image, and the indicator mark is used to indicate Q first documents, the first documents are associated with the first image, and the first documents include identification content of the first image; A sending unit, configured to send a target document among the Q first documents to a second terminal in response to the first input; Wherein, Q is a positive integer; The first input includes a first sub-input and a second sub-input; The document sending device also includes: A display unit, configured to display the Q first documents in response to a first sub-input of the indication mark; The sending unit is specifically configured to send the target document to the second terminal in response to a second sub-input of the target document among the Q first documents.
5. A document generation method, characterized in that: The method comprises: receiving a third input of a user selecting N first images from the M images; In response to the third input, displaying the N first images in a first display interface in a first arrangement order, wherein the first arrangement order is determined by an order of identification codes in the N first images; receiving a fourth input for generating a target document; In response to the fourth input, the N first images are processed to generate the target document, the target document is associated with the first images, and the target document includes recognition content of the N first images; Wherein, M and N are both positive integers, and M is greater than or equal to N; In the case where a part of the N first images contains the identification code and another part does not contain the identification code, the part of the first images containing the identification code is sorted according to the order of the identification codes in the first images, and the other part of the first images not containing the identification code is sorted according to the order in which the user selects the first images; wherein the part of the first images not containing the identification code is located as a whole after the other part of the first images containing the identification code.
6. The document generation method according to claim 5, characterized in that: After displaying the N first images in the first display interface according to the first arrangement order, the method further includes: receiving a fifth input from a user to add J second images to the N first images; In response to the fifth input, according to the identification code in the J second images, each second image in the J second images is added and displayed to the N first images, and the first arrangement order is updated; Wherein, J is a positive integer.
7. The document generation method according to claim 5, characterized in that: After displaying the N first images in the first display interface according to the first arrangement order, the method further includes: receiving a sixth input of the user dividing the first display interface into a first display area and a second display area and adjusting the sequence of the target image among the N first images, wherein the first display area is used to display the N first images, and the second display area is used to display the target image shifted out of the first sequence of the N first images; In response to the sixth input, the target image is added and displayed to the second order of the N first images, and the first arrangement sequence is updated.
8. The document generation method according to claim 5, characterized in that: The processing of the N first images and generating the target document specifically includes: Identify the content in each of the N first images, and display K segment files on the second display interface, wherein the segment files are segment contents in each of the first images, and K is a positive integer; receiving a seventh input of the user dividing the second display interface into a third display area and a fourth display area and adjusting the sequence of the target segment file among the K segment files, the third display area being used to display the K segment files, and the fourth display area being used to display the target segment file shifted out from the first sequence of the K segment files; In response to the seventh input, the target segment file is added and displayed to the second order of the K segment files to form a second arrangement sequence of the K segment files, and the K segment files are sorted according to the second arrangement sequence to generate the target document.
9. A document generation device, characterized in that: The device comprises: A receiving unit, configured to receive a third input of a user selecting N first images from M images; a display unit, configured to display the N first images in a first display interface in a first arrangement order in response to the third input, wherein the first arrangement order is determined by an order of identification codes in the N first images; The receiving unit is further used to receive a fourth input for generating a target document; a processing unit, configured to process the N first images and generate the target document in response to the fourth input, wherein the target document is associated with the first images and includes recognition content of the N first images; Wherein, M and N are both positive integers, and M is greater than or equal to N; In the case where a part of the N first images contains the identification code and another part does not contain the identification code, the display unit is further used to sort the part of the first images containing the identification code according to the order of the identification codes in the first images, and sort the other part of the first images not containing the identification code according to the order in which the user selects the first images; wherein the part of the first images not containing the identification code is located as a whole after the other part of the first images containing the identification code.
10. An electronic device, characterized in that: It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the document sending method as described in any one of claims 1 to 3 are implemented, or when the program or instruction is executed by the processor, the steps of the document generating method as described in any one of claims 5 to 8 are implemented.
Citation Information
Patent Citations
Icon management method and device
CN109981878A
Document splicing method and equipment and storage medium
CN112001312A
File processing method and device and electronic device
CN112187626A