Scanning method, device and computer program product

By introducing an identification module into the scanning device, the scanning object is automatically identified and stored in the target directory according to the type, the operation inconvenience of manual integration and archiving after scanning is solved, and automatic archiving and high accuracy are achieved.

CN119445602APending Publication Date: 2025-02-14GUANGZHOU KINGSOFT MOBILE TECH +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411425293.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, the user needs to manually integrate and archive the scan results after scanning, which is inconvenient to operate and error-prone.

Method used

When the scanning function is triggered, the identification module automatically recognizes the object and stores it in the target storage directory, and automatically determines the storage directory according to the object type.

Benefits of technology

It realizes automatic archiving of scan results without manual integration by users, making it easy to operate and highly accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119445602A_ABST
    Figure CN119445602A_ABST
Patent Text Reader

Abstract

The invention relates to a scanning method, a scanning device and a computer program product. The method comprises the following steps: in response to a triggering operation on a scanning function, identifying a first object on a first page; based on the type of the first object, storing first content information identified from the first object to a target storage directory; the storage directories of different types of objects are different. Therefore, automatic archiving of the content recognized from the first object is achieved, a user does not need to manually integrate and archive the content obtained through scanning, operation is convenient, and accuracy is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to but is not limited to the field of information technology, and in particular to a scanning method, device, and computer program product. Background Art

[0002] As the functions of electronic devices become more and more abundant, more and more electronic devices have scanning functions, so as to scan different objects in various usage scenarios and obtain scanning results. For example, certificates, documents, books, etc. can be scanned.

[0003] In the related art, after completing the scanning of the object, the user needs to manually further process the scanning result, which is inconvenient and prone to errors. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a scanning method, device and computer program product, which do not require the user to manually integrate the scanned content and archive it, and are easy to operate and highly accurate.

[0005] According to a first aspect of an embodiment of the present disclosure, a scanning method is provided, the method comprising:

[0006] In response to a triggering operation of the scanning function, identifying a first object on the first page;

[0007] Based on the type of the first object, the first content information identified from the first object is stored in a target storage directory; different types of objects have different storage directories.

[0008] According to a second aspect of an embodiment of the present disclosure, a scanning device is provided, the device comprising:

[0009] A recognition module, configured to recognize a first object on a first page in response to a triggering operation on a scanning function;

[0010] The storage module is configured to store the first content information identified from the first object in a target storage directory based on the type of the first object; different types of objects have different storage directories.

[0011] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0012] processor;

[0013] Memory for storing computer programs or instructions;

[0014] The processor executes the computer program or instructions to implement the steps of any one of the methods in the first aspect above.

[0015] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the storage medium stores a computer program or instructions. When the computer program or instructions in the storage medium are executed by a processor, the steps of the method described in any one of the above-mentioned first aspects are implemented.

[0016] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.

[0017] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0018] The technical solution provided by the embodiments of the present disclosure can identify the first object on the first page when the scanning function is triggered, and based on the type of the first object, store the first content information identified from the first object in the target storage directory, thereby realizing automatic archiving of the content identified from the first object. There is no need for the user to manually integrate the scanned content and archive it, and the operation is convenient and accurate.

[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0021] Figure 1 It is a flowchart diagram of a scanning method according to an exemplary embodiment.

[0022] Figure 2 is a schematic diagram of a first page according to an exemplary embodiment Figure 1 .

[0023] Figure 3 is a schematic diagram of a first page according to an exemplary embodiment Figure 2 .

[0024] Figure 4 is a schematic diagram of a first page according to an exemplary embodiment Figure 3 .

[0025] Figure 5 is a schematic diagram of a second page according to an exemplary embodiment.

[0026] Figure 6 is a schematic diagram of a third page according to an exemplary embodiment Figure 1 .

[0027] Figure 7 is a schematic diagram of a third page according to an exemplary embodiment Figure 2 .

[0028] Fig. 8A is a schematic diagram of a third page according to an exemplary embodiment Figure 3 .

[0029] Figure 8B is a schematic diagram of a fourth page according to an exemplary embodiment.

[0030] Fig. 9 is a block diagram of a scanning device according to an exemplary embodiment.

[0031] Fig.10 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0032] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0033] Figure 1 FIG. 1 is a flow chart of a scanning method according to an exemplary embodiment. Figure 1 As shown, the method includes:

[0034] In step 101, in response to a triggering operation of a scanning function, a first object is identified on a first page;

[0035] In step 102, based on the type of the first object, first content information identified from the first object is stored in a target storage directory; different types of objects have different storage directories.

[0036] It should be noted that the scanning method proposed in the present disclosure can be applied to electronic devices or servers. Here, electronic devices may include: terminal devices, such as mobile terminals or fixed terminals. Among them, mobile terminals may include: mobile phones, tablet computers, laptop computers, etc. Fixed terminals may include: desktop computers, smart TVs, etc. As a type of computer, a server can provide computing or application services for other clients (such as computers, terminal devices such as smart phones, and even large devices such as train systems) in the network.

[0037] Taking a printer with a scanning function as an example, generally when the printer performs the scanning function, the file is placed on the scanning clamp of the printer so that the file is in a space available for scanning. After the printer completes the scan, the scanned file in image format can be seen on the computer connected to the printer.

[0038] The scanning method in the embodiment of the present disclosure may be configured in a scanning device, and the scanning device may be set in a server, or may also be set in an electronic device, and the embodiment of the present disclosure is not limited to this.

[0039] It should be noted that the execution subject of the embodiment of the present disclosure may be, for example, a central processing unit (CPU) in a server or electronic device in terms of hardware, or may be, for example, a related background service in a server or electronic device in terms of software, without limitation.

[0040] In an embodiment of the present disclosure, when the scanning function is triggered, the first page can be entered, and the first object recognized by the image acquisition module can be displayed on the first page. The scanning function indicates the ability to convert paper documents, pictures or other items into digital formats, which can be a function possessed by the electronic device itself, or a function possessed by an application installed on the electronic device. The first object may include: an object that can be recognized and displayed based on the image acquisition module of the electronic device, and an object that can be recognized, displayed and processed based on the image processing technology of the electronic device. Exemplarily, the first object may include at least one of the following: books, documents, certificates, express delivery slips, bills, physical objects, emails, and test papers. At least one first object can be displayed on the first page.

[0041] In some embodiments, the first page has at least one of the following functions: an image acquisition function; an image preview function; an image import function, wherein the image acquisition function can be used to acquire an image including the first object (hereinafter referred to as: an image to be processed), the image preview function can be used to preview the image to be processed, and the image import function can be used to import the image to be processed. Exemplarily, the first page can be called a camera page or a photo page.

[0042] In some embodiments, the scanning function can be triggered based on a control set on the electronic device, where the triggering of the scanning function refers to turning on the scanning function, which is different from executing the scanning function. In the embodiment of the present disclosure, after the scanning function is triggered, the first page can be entered, where the first page can also be called a preview page, which is used to display a preview image, for example, the image to be processed identified by the image acquisition module can be previewed.

[0043] In some embodiments, the image to be processed may include: an image currently obtained by identifying the first object based on the image acquisition module (i.e., a preview image), or an image currently formally acquired by the image acquisition module based on the first object after the shooting operation is detected (a captured image). In other embodiments, the image to be processed may also be an image imported from other devices, or an image downloaded from the Internet. The first object may include at least one of the following: an image, a form, a book, an invoice, and a certificate.

[0044] After obtaining the image to be processed, the type of the first object can be determined based on the image to be processed. For example, the electronic device can call image recognition technology and / or (Artificial Intelligence, AI) model to identify the content imaging in the image to be processed to determine the type of the first object and identify the first content information in the first object, that is, identify the content information that needs to be stored in the first object. After identifying the first content information, the first content information can be stored in the target storage directory based on the type of the first object. In some embodiments, the storage directory can be stored in the electronic device in the form of a folder, or in the form of a link. For example, a folder or link can be identified by a directory tag to facilitate users to quickly find the storage directory and the content information stored in the storage directory.

[0045] In some embodiments, the electronic device may recognize the first content information in the first object by using Optical Character Recognition (OCR) technology.

[0046] In some examples, the image to be processed can be input into an artificial intelligence model (e.g., a deep learning model) to obtain the first content information output by the artificial intelligence model. Exemplarily, the deep learning model can include but is not limited to various neural networks, such as convolutional neural networks (CNN) and recurrent neural networks (RNN).

[0047] In some embodiments, a page for identification can be displayed on the electronic device, and a control for triggering the scanning function can be displayed on the page, and when a trigger operation acting on the control is detected, the scanning function is performed on the first object. In other embodiments, the electronic device can also automatically start the identification of the first object without user triggering, and the display of the page will be skipped at this time.

[0048] In some embodiments, when the type of the first object is determined, an alignment mark can be displayed on the first page based on the type of the first object to facilitate the user to align the first object based on the alignment mark. The style of the alignment mark can match the layout style of each element in the first object.

[0049] For example, Figure 2 As shown, if the type of the first object is a certificate, a rectangular first alignment mark 201 may be displayed on the first page, and the size of the rectangle matches the size of the certificate. Figure 3 As shown, if the type of the first object is an ID card, and the front of the ID card needs to be scanned, a second alignment mark 301 matching the layout style of the front of the ID card can be displayed on the first page; Figure 4 As shown, if the type of the first object is an ID card, and the back of the ID card needs to be scanned currently, a third alignment mark 401 matching the layout style of the back of the ID card can be displayed on the first page. Displaying the corresponding alignment mark based on the type of the first object can achieve accurate alignment of the first object during scanning, thereby improving the accuracy of scanning.

[0050] In some embodiments, different storage directories may be configured for different types of objects. When the types of the identified first objects are different, the determined target storage directories may also be different.

[0051] Exemplarily, if the first object is an identity card, the storage directory configured for the identity card can be determined as the target storage directory, and when the first content information in the identity card is identified, the first content information identified from the identity card is stored in the target storage directory; if the first object is a bank card, the storage directory configured for the bank card can be determined as the target storage directory, and when the first content information in the bank card is identified, the first content information identified from the bank card is stored in the target storage directory; if the first object is a household registration booklet, the storage directory configured for the household registration booklet can be determined as the target storage directory, and when the first content information in the household registration booklet is identified, the first content information identified from the household registration booklet is stored in the target storage directory.

[0052] In some embodiments, objects of the same type may have the same storage directory. For example, the storage directory of an ID card may store content information of multiple ID cards, so that content information of objects of different types may be archived separately through different storage directories, thereby achieving classified storage of content information of different objects.

[0053] In some embodiments, the first content information may be the entire content of the first object, or may be part of the content of the first object. Exemplarily, a context analysis may be performed on the content in the first object, key information may be determined from the content of the first object, and the determined key information may be determined as the first content information. Among them, the key information may be relevant information in the first object that can reflect the key features of the first object. Exemplarily, if the first object is an ID card, the first content information may include information such as the name, gender, ID card number, and photo of the ID card; if the first object is a bank card, the first content information may include information such as the bank card number and the bank where the account is opened.

[0054] In some embodiments, when multiple first objects are identified on the first page, one of the first objects can be selected for processing, or more than two first objects can be selected for processing simultaneously or at different times. In the case of simultaneous processing, the target storage directories corresponding to the multiple first objects can be displayed, and in the case of different processing times, the target storage directories corresponding to the first objects can be displayed sequentially in the order of selection.

[0055] In some embodiments, when there is a storage directory corresponding to the type of the first object on the second page, the user selects the type of the first object to create a corresponding storage directory, and the storage directory created by the user is determined as the target storage directory.

[0056] The technical solution provided by the embodiments of the present disclosure can, when the scanning function is triggered, identify the first object on the first page and store the first content information identified from the first object in the target storage directory corresponding to the first object, thereby realizing automatic archiving of the content identified from the first object. There is no need for the user to manually integrate the scanned content and archive it, and the operation is convenient and accurate.

[0057] In some embodiments, the method further comprises:

[0058] In a case where a storage directory corresponding to the type of the first object exists on the second page, determining the storage directory corresponding to the type of the first object as the target storage directory;

[0059] If a storage directory corresponding to the type of the first object does not exist on the second page, a target storage directory is created on the second page.

[0060] In the embodiment of the present disclosure, after determining the type of the first object, it can be determined whether there is a storage directory corresponding to the type of the first object on the second page. If there is a storage directory corresponding to the type of the first object on the second page, the storage directory corresponding to the type of the first object is determined as the target storage directory. If there is no storage directory corresponding to the type of the first object on the second page, the target storage directory is created on the second page. If multiple first objects are identified on the first page and there is no storage directory corresponding to the types of the multiple first objects on the second page, at least one of the first objects can be selected to create a target storage directory; if multiple first objects are identified on the first page and there is no storage directory corresponding to the type of at least one first object on the second page, at least one first object among the first objects for which there is no target storage directory can be selected to create a target storage directory.

[0061] In some embodiments, a user may select any first object to create a target storage target, regardless of whether the first object already exists in the storage directory.

[0062] It should be noted that the storage directory existing in the second page may be a storage directory that has been created on the second page before the first content information is stored.

[0063] In some embodiments, determining whether there is a storage directory corresponding to the type of the first object on the second page includes: comparing the type of the first object with the types of objects corresponding to each storage directory existing on the second page, and determining whether there is an object of the same type as the first object; if so, determining that there is a storage directory corresponding to the type of the first object; if not, determining that there is no storage directory corresponding to the type of the first object.

[0064] In some embodiments, after the target storage directory is created, if an object of the same type as the first object is identified based on the scanning function, the content information identified from the object can be directly stored in the target storage directory. Exemplarily, when a target storage directory is created for a first household register, if a second household register is identified based on the scanning function, the content information identified from the second household register can be stored in the target storage directory, automatically realizing the archiving of the household register.

[0065] Exemplarily, when the storage directories existing in the second page include the storage directory of the identity card and the storage directory of the household register, if the type of the first object is a bank card, at this time, there is no storage directory for the bank card type in the second page, then it is determined that there is no storage directory corresponding to the type of the first object on the second page. At this time, a storage directory for the bank card can be created, and if the bank card is scanned subsequently, the content obtained from the subsequent scan can be directly stored in the storage directory of the bank card.

[0066] In an embodiment of the present disclosure, when there is a storage directory corresponding to the type of the first object on the second page, the storage directory corresponding to the type of the first object is directly determined as the target storage directory. When there is no storage directory corresponding to the type of the first object on the second page, the target storage directory is created on the second page, thereby realizing automatic archiving of the scanned content.

[0067] In some embodiments, the method further comprises:

[0068] Determine a target storage space from at least one storage space associated with a target storage directory based on first content information identified from the first object and / or scan information of the first object;

[0069] Storing the first content information identified from the first object in the target storage directory includes:

[0070] The first content information identified from the first object is stored in the target storage space.

[0071] It should be noted that a storage directory may correspond to at least one storage space, and each storage space is used to store content information of different objects of the same type. For example, each storage space associated with the storage directory of an ID card is used to store content information of different ID cards.

[0072] In some embodiments, when the target storage directory has multiple storage spaces, the target storage space can be determined from the multiple storage spaces associated with the target storage directory based on the first content information identified from the first object and / or the scanning information of the first object. Exemplarily, the target storage space can be determined from the multiple storage spaces associated with the target storage directory based on the importance of the first content information and / or the scanning time of the first object. In other embodiments, the scanning information can also include the scanning method of the first object.

[0073] In some embodiments, the first content information may be compared with the preset content information in the preset database, and the importance of the first content information may be determined based on the comparison result. For example, it may be determined whether the first content information exists in the preset database, and if the first content information exists in the preset database, it is determined that the first content information is relatively important. The preset content information may be historically determined important information, which may be determined in a customized manner or based on historical usage data.

[0074] In some embodiments, the storage space of the first content information in the target storage directory can be associated with the display parameters of each first content information, and then the first content information and / or the scan information of the first object can be associated with the display parameters of the first content information. In this way, when the storage space determined based on the first content information and / or the scan information of the first object is different, the display parameters of the first content information are different. Exemplarily, the first storage space in the target storage directory corresponds to the first display position, and the second storage space corresponds to the second storage position.

[0075] In some embodiments, when a trigger operation is detected for a target storage directory, content information in each storage space associated with the target storage directory may be displayed, and illustratively, the content information of each storage space under the target storage directory may be displayed in a tiled manner. The display position of the content information is related to the content information and / or the scanning information of the first object corresponding to the content information.

[0076] When there are multiple storage spaces under a storage directory, the storage location (target storage space) of the first content information can be determined based on the content information, scanning time, scanning method, etc. of the first object, and then the identified first content information can be stored in the target storage space according to user needs, and can be displayed corresponding to the target storage space for user viewing convenience.

[0077] In some embodiments, the method further comprises:

[0078] After storing the first content information in the target storage directory, displaying the target storage directory on the second page;

[0079] In response to a trigger operation on a target storage directory, the first content information is displayed on a third page associated with the target storage directory; each storage directory is respectively associated with a third page;

[0080] The layout style of the first content information displayed on the third page is the same as the layout style of the elements in the first object.

[0081] It should be noted that after the first content information is stored in the target storage directory, the target storage directory can be displayed on the second page. In some embodiments, the target storage directory can be directly displayed on the second page, so that after entering the second page, the user can quickly find the target storage directory and perform corresponding operations on the target storage directory.

[0082] In some embodiments, while displaying the target storage directory, other storage directories other than the target storage directory may also be displayed in a tiled manner on the second page. Figure 5As shown, if the target storage directory is the storage directory 501 of the identity card, the storage directory 502 of the bank card, the storage directory 503 of the household register and the storage directory 504 of the passport can also be displayed in a tiled manner.

[0083] In some embodiments, each storage directory is associated with a third page, and the third page is used to display and / or operate content information stored in the storage directory.

[0084] In the embodiment of the present disclosure, in response to a trigger operation on a target storage directory, the first content information can be displayed on a third page associated with the target storage directory, wherein the layout style of the first content information displayed on the third page is the same as the layout style of the elements in the first object. For example, if the target storage directory is a storage directory of an ID card, when a trigger operation on the storage directory of the ID card is detected, the content information stored in the storage directory of the ID card can be displayed on a third page associated with the storage directory of the ID card. Figure 6 As shown, the content information of each ID card stored in the target storage directory is displayed on the third page, including: the content information 601 of ID card 1 and the content information 602 of ID card 2 are displayed on the third page. Among them, the layout style of the content information of ID card 1 is the same as the layout style of the elements in the actual ID card 1, and the layout style of the content information of ID card 2 is the same as the layout style of the elements in the actual ID card 2.

[0085] like Figure 7 As shown, the content information of each ID card stored in the target storage directory is displayed on the third page, including: the content information 701 of ID card 1, the content information 702 of ID card 2, and the content information 703 of ID card 3 are displayed on the third page. Among them, the layout style of the content information of ID card 1 is the same as the layout style of the elements in the actual ID card 1, the layout style of the content information of ID card 2 is the same as the layout style of the elements in the actual ID card 2, and the layout style of the content information of ID card 3 is the same as the layout style of the elements in the actual ID card 3.

[0086] In the embodiment of the present disclosure, on the basis of realizing automatic archiving of the content identified from the first object, the layout style of the first content information displayed on the third page is made the same as the layout style of the elements in the first object, so that the original layout style of the first object can be restored as much as possible to facilitate user identification.

[0087] In other embodiments, in response to a trigger operation on a target storage directory, if the target storage directory does not contain content information, an operation control may be displayed on the third page. Fig. 8AAs shown, the operation control 801 can be displayed on the third page. If a trigger operation for the operation control 801 is detected, the first page can be entered, that is, the third page is jumped to the first page, and the scanning function is re-executed. In some embodiments, the operation control can be identified. For example, the operation control can be identified by "add now".

[0088] In other embodiments, multiple operation controls may be displayed on the third page, and different operations may be performed through each operation control. For example, an operation control for returning to the previous step may be set. By setting the operation control to jump from the third page to the first page, continuous operation can be achieved, and the user does not need to re-trigger the scanning function based on additional operations, which can simplify the user operation.

[0089] In some embodiments, displaying the target storage directory on the second page includes:

[0090] In response to storing the first content information in the target storage directory, determining a directory tag of the target storage directory based on the first content information;

[0091] Displaying the target storage directory and the directory label of the target storage directory on the second page;

[0092] The directory tag is used to indicate the associated information of the information stored in the target storage directory.

[0093] Here, after the first content information is stored in the target storage directory, a directory tag of the target storage directory may be determined based on the first content information. The directory tag is at least used to indicate a key feature of the first object. In some embodiments, the first content information may be semantically analyzed, keywords may be extracted from the first content information, and the keywords may be determined as directory tags, and then the target storage directory and the directory tag of the target storage directory may be displayed on the second page.

[0094] In some other embodiments, a directory tag may be generated based on the type of the first object, and the target storage directory may be displayed on the second page based on the directory tag. For example, if the first object is a certificate, the directory tag may be "certificate".

[0095] Exemplarily, the catalog tag may include at least one of the following: the color of the first object, the texture of the first object, the color of the first object, a keyword in the first object, the layout style of the first object, etc. Figure 5As shown, the storage directory of the ID card can be identified by "ID card", the storage directory of the bank card can be identified by "bank card", and the storage directory of the household registration book can be identified by "household registration book", etc., where "ID card", "bank card" and "household registration book" are directory labels. In some embodiments, the directory label can also be generated based on the attribute information of the first object. For example, the directory label can be generated based on the color, texture and other features of the first object.

[0096] In some embodiments, the directory tag of the target storage directory is also used to indicate the associated information of the information stored in the target storage directory. The stored information refers to the information that has been successfully stored in the storage directory. Exemplarily, when the first content information is successfully stored in the target storage directory, the first content information can be interpreted as the stored information in the target storage directory.

[0097] It should be noted that the associated information of the information stored in the storage directory may include at least one of the following: the amount of information stored in the storage directory, the status of the information stored in the storage directory, the storage duration of the information stored in the storage directory, the frequency of use of the information stored in the storage directory, etc.

[0098] In some embodiments, when the first content information is successfully stored in the target storage directory, the directory tag of the target storage directory can be determined based on the first content information. When the target storage directory already has a directory tag, the directory tag of the target storage directory can be updated based on the first content information. Exemplarily, when the displayed directory tag indicates that there are three ID cards stored in the target storage directory, after the first content information is stored in the target storage directory, the target tag of the target storage directory needs to be updated to indicate that there are four ID cards stored.

[0099] In the disclosed embodiment, the storage directory is determined by the first content information, so that the directory label can be updated in real time; by synchronously displaying the target storage directory and the target label of the target storage directory, and indicating the associated information of the information stored in the target storage directory based on the directory label, not only can the key features of the target storage directory be indicated more intuitively through the directory label, but also the related information of the information stored in the target storage directory can be previewed based on the directory label, which can facilitate the user to perform corresponding operations on the target storage directory.

[0100] In some embodiments, storing the first content information identified from the first object in a target storage directory includes:

[0101] Based on the layout style of the elements in the first object, the first content information is structured to obtain structured information;

[0102] Store the structured information in the target storage directory;

[0103] The first content information is displayed on the second page, including:

[0104] The structured information is displayed on the second page.

[0105] Here, based on the layout style of the elements in the first object, structuring the first content information may include: rearranging the first content information according to the layout style of the elements in the first object to obtain structured information. Rearranging the first content information according to the layout style of the elements in the first object to obtain structured information includes: determining information corresponding to each element in the first content information, determining display parameters of the information corresponding to the element based on the layout parameters of each element, and generating structured information corresponding to the first content information based on each piece of information in the first content information and the display parameters corresponding to each piece of information.

[0106] The layout parameters may include at least one of the following: layout position, layout shape, layout format, etc. The display parameters may include at least one of the following: display position, display shape, display format, etc. Exemplarily, the display position may be configured for each information in the first content information based on the layout position of each element in the first object; the display shape may be configured for each information in the first content information based on the layout shape of each element in the first object; and the display format may be configured for each information in the first content information based on the layout format of each element in the first object.

[0107] Exemplarily, if the name in the ID card is located in the upper left corner of the ID card, the display position of the name in the first content information may be set to the upper left corner.

[0108] It should be noted that the elements in the first object may be visualized content in the first object. For example, if the first object is an ID card, the elements in the first object may include: ID card number, photo, name, etc. The layout style of the elements in the first object may be the layout style of the ID card number, photo, name, etc. in the ID card, and the layout style may be determined or adjusted by layout parameters.

[0109] In some embodiments, the content included in the structured information is the same as the content included in the first content information. The structured information may include information of all elements in the first object, or may include information of some elements in the first object.

[0110] In the disclosed embodiment, the first object can be structurally identified, and the first content information of the first object can be extracted in a structured form. For example, the first object is an ID card, and the photo, ID card number, address, and date of birth information in the ID card can be structured, and the information can be collected and archived. When it is necessary to display, the structured information can be directly displayed on the second page, that is, the extracted content information can be displayed in a structured form.

[0111] In the disclosed embodiment, on the basis of realizing automatic archiving of the content recognized from the first object, the structured display of the first object is realized, and the original layout style of the first object is restored as much as possible, so as to facilitate user recognition.

[0112] In some embodiments, the method further comprises:

[0113] In response to detecting an operation on a first control on a first page, generating a target file including first content information;

[0114] Based on the type of the first object, file information of the target file is displayed on the fourth page.

[0115] It should be noted that the first control is a control on the first page for generating a target file. When a trigger operation on the first control is detected, a target file including first content information can be generated, and based on the type of the first object, file information of the target file can be displayed on the fourth page. The fourth page can also be called a file export page, which is used to preview and export the target file.

[0116] In some embodiments, the file information may include information associated with the target file, and may include at least one of the following: the type of the file, the content summary of the file, the generation time of the file, the scanning time of the file, etc. In the process of generating the target file, the first content information can be automatically typeset or automatically typeset according to the style adjusted by the user to form the target file through the control. In the case of selecting multiple first content information, the multiple first content information can be typeset in progress or automatically typeset according to the presentation adjusted by the user to form the target file.

[0117] In some embodiments, based on the type of the first object, displaying the file information of the target file on the fourth page includes: obtaining the file information based on at least one of the type of the first object, the first content information, the scanning information of the first object, and the generation information of the target file, and displaying the file information on the fourth page. The scanning information of the first object may include: the scanning time of the first object and / or the scanning time, and the generation information of the target file may include at least one of the following: the generation time of the target file, the generation method of the target file, the generation format of the target file, etc.

[0118] For example, if the first object is an ID card, the target file can be automatically named as: ID card + current shooting timestamp. Figure 8B As shown, the displayed file information 802 may include the name of the file, the type of the file, and the current shooting time, etc. In other embodiments, a storage path may also be displayed, and the storage path displayed here may be a storage path automatically generated by the electronic device based on the file information of the target file. The storage path may also be called a save path.

[0119] In other embodiments, at least one generation control may be displayed based on different generation modes, and each generation control is used to generate target files of different formats. In some embodiments, each generation control may be identified. Figure 8B As shown, the identifier for generating a target file in PDF format can be "Export to PDF", the identifier for generating a target file in presentation document (PowerPoint, PPT) format can be "Export to Presentation Document", and the identifier for generating a target file in picture format can be "Save to Album".

[0120] In the embodiment of the present disclosure, after an operation on the first control on the first page is detected, a target file including the first content information can be generated, and the file information of the target file can be displayed on the fourth page based on the type of the first object, so that the user can confirm the storage path of the first content information based on the file information, and then identify it according to the file information of the target file, and determine the type of the first content information to automatically name and archive the file.

[0121] In some embodiments, the method further comprises:

[0122] Determine whether there is a storage directory corresponding to the type of the first object on the second page based on the file information and the directory information of the storage directory on the second page;

[0123] In the case where there is target directory information whose similarity with the file information is greater than or equal to a preset threshold, determining the storage directory indicated by the target directory information as the storage directory corresponding to the type of the first object;

[0124] When the similarities between the file information and the directory information of the storage directory are both smaller than a preset threshold, there is indeed no storage directory corresponding to the type of the first object.

[0125] It should be noted that after obtaining the file information, it can be determined whether there is a storage directory corresponding to the type of the first object on the second page based on the file information and the directory information of the storage directory on the second page.

[0126] In other embodiments, when it is determined that there is a storage directory corresponding to the type of the first object, the target file including the first content information can also be directly stored in the target storage directory. When it is determined that there is no storage directory corresponding to the type of the first object, a target storage directory can be created and the target file can be stored in the target storage directory. That is, the first content information is stored in the target storage directory in the form of a target file, which can be understood as saving the identified specific classified files into a specified folder, for example, the identity card will be automatically saved in the "My Certificate" folder.

[0127] In some embodiments, the directory information may include a directory tag of a storage directory. Exemplarily, the similarity between the file information of the target file and the directory tag may be determined based on a similarity calculation function. When the similarity between the file information and the directory information is greater than a preset threshold, it is determined that the probability that the target file and the target directory correspond to the same type of first object is high. In this case, the target information may be determined as the target directory information, and the storage directory indicated by the target directory information may be determined as the storage directory corresponding to the type of the first object. When the similarity between the file information and the directory information of the storage directory is less than a preset threshold, there is no storage directory corresponding to the type of the first object.

[0128] The preset threshold value may be set as required, for example, may be set based on empirical values ​​or obtained through experiments, and is not specifically limited here as long as the storage directory of objects of the same type as the target file can be determined.

[0129] In the embodiment of the present disclosure, it is possible to determine whether there is a storage directory corresponding to the type of the first object based on the file information and the directory information, which can effectively utilize the information in the target file and improve the accuracy of the determined target storage directory.

[0130] The present disclosure can determine the name (file information) and storage path of the file (target file) of the scan result based on the recognition result of the first object. In some embodiments, the first content information can be directly stored according to the storage path, thereby realizing automatic archiving of the first object.

[0131] In some embodiments, the method further comprises:

[0132] In response to a first operation on the file information displayed on the fourth page, performing an adjustment on the file information corresponding to the first operation, and displaying the adjusted file information on the fourth page;

[0133] Determining whether a storage directory corresponding to the type of the first object exists on the second page based on the file information and the directory information of the storage directory on the second page includes:

[0134] Based on the adjusted file information and the directory information of the storage directory, it is determined whether the second page has a storage directory corresponding to the type of the first object.

[0135] It should be noted that the file information displayed on the fourth page is editable, and in response to a first operation on the file information displayed on the fourth page, the file information may be adjusted corresponding to the first operation, and the adjusted file information may be displayed on the fourth page. Exemplarily, the first operation may be an operation to modify the file information.

[0136] Since the file information automatically generated by the electronic device may be inaccurate, in the embodiment of the present disclosure, after the file information is generated, the user can also perform the first operation on the file information through the fourth page to make the adjusted file information more accurate. By determining whether there is a storage directory corresponding to the type of the first object on the second page through the adjusted file information and the directory information of the storage directory, the determination result can be made more accurate.

[0137] In some embodiments, while displaying the file information, the storage path may also be displayed, and the displayed storage path may be a storage path automatically generated by the electronic device based on the file information of the target file. Exemplarily, the first content information may be directly stored in the storage directory and storage space indicated by the storage path. In other embodiments, the storage path of the first content information may be displayed on the fourth page based on the type and file information of the first object.

[0138] like Figure 8B As shown, if the storage path indicates "My ID / ID Photo", the first content information can be stored in the storage space marked as "ID Photo" under the storage directory marked as "My ID". In other embodiments, the storage path can be a part of the file information, or the storage path is independent of the file information.

[0139] In some embodiments, the storage path may be displayed in an editable form, and when an edit operation on the storage path is detected, the first content information may be stored according to the storage path after the edit operation is performed. In other embodiments, when the storage path is independent of the file information, the file information and the storage path may be associated, so that after the file information is adjusted based on the first operation, the storage path may be adjusted corresponding to the first operation based on the association relationship between the file information and the storage path, so that the adjusted file information and the adjusted storage path still satisfy the association relationship.

[0140] In the embodiment of the present disclosure, the file information of the target file can be adjusted, and then the storage path can be adjusted. When the generated file information is inaccurate or does not meet the user's needs, the user can flexibly adjust it as needed, and can also flexibly adjust the storage path, so that the first content information can be stored in the corresponding storage directory.

[0141] In some embodiments, when the target storage directory stores second content information obtained by scanning the second object, in response to a triggering operation on the target storage directory, displaying the first content information on a third page associated with the target storage directory includes:

[0142] In response to a triggering operation on the target storage directory, displaying the first content information and the second content information on a third page associated with the target storage directory;

[0143] The method further includes:

[0144] In response to a second operation on a second control on a third page associated with the target storage directory, a process corresponding to the second operation is performed on the first content information and / or the second content information.

[0145] It should be noted that the second content information stored in the target storage directory may be: content information obtained by scanning the second object before identifying the first object. The second object may be one or more, and the corresponding second content information may also be one or more.

[0146] like Figure 7 As shown, the first object is ID card 3, and the second object can be ID card 1 and ID card 2. When a trigger operation is detected for the target storage directory, ID card 1, ID card 2, and ID card 3 can be displayed simultaneously on the third page associated with the target storage directory, that is, the synchronous display of the first content information and the second content information can be achieved. In the embodiment of the present disclosure, when a trigger operation is detected for a storage directory, all content information under the directory can be displayed, which can achieve a comprehensive display of content information and is convenient for preview and operation.

[0147] In some embodiments, at least one second control may be set on the third page, and based on the second operation on the second control, the first content information and / or the second content information may be processed corresponding to the second operation. Each second control has a corresponding processing function. In some embodiments, each second control may be identified by a different identifier to facilitate the user to quickly identify the function of each second control. Figure 7As shown, a second control with a renaming function can be identified based on the "Rename" mark, a second control with a delete function can be identified based on the "Delete" mark, a second control with an export function can be identified based on the "Export" mark, a second control with a copy function can be identified based on the "Copy Information" mark, and a second control with a preview function can be identified based on the "View Scan" mark.

[0148] In some embodiments, a second control with a check function can be used to enter a multi-file management state, thereby simultaneously processing multiple content information. For example, operations such as moving, merging, deleting, exporting, and sharing can be performed on the scanned copies corresponding to each content information.

[0149] In an embodiment of the present disclosure, in response to a second operation on a second control on a third page associated with a target storage directory, processing corresponding to the second operation is performed on the first content information and / or the second content information, thereby enabling synchronous processing of each content information or separate processing of each content information, thereby improving the convenience of user operation.

[0150] In some embodiments, displaying the first content information and the second content information on a third page associated with the target storage directory includes:

[0151] Displaying first content information and at least one third control associated with the first object in a first area of ​​a third page associated with the target storage directory; each third control is used to perform different processing operations on the first content information; and,

[0152] The second area of ​​the third page associated with the target storage directory displays the second content information and at least one fourth control associated with the second object; each fourth control is used to perform different processing operations on the second content information.

[0153] Here, the first content information and the third control can be displayed in the first area, and the second content information and the fourth control can be displayed in the second area, that is, the content information corresponding to different objects occupies different areas, and the controls corresponding to each object are also different. The different controls here refer to the different objects that can be operated by the controls. For example, the third control displayed in the first area is used to operate the first content information, and the fourth control displayed in the second area is used to operate the second content information.

[0154] In some embodiments, the processing functions configured for different types of objects may also be different. A copy and paste function may be configured for an ID card; at least one of the functions of editing, summarizing, and calculating may be configured for an invoice; and page turning and copy and paste functions may be configured for a household register. It can be understood that the processing functions that can be executed for the content information stored in the storage directory corresponding to different types of objects may also be different. For example, the content information stored in the storage directory corresponding to the ID card may all execute the copy and paste function; the content information stored in the storage directory corresponding to the invoice may all execute at least one of the functions of editing, summarizing, and calculating; and the content information stored in the storage directory corresponding to the household register may all execute the page turning and copy and paste functions.

[0155] Since the first content information and the second content information are stored in the same storage directory, it can be determined that the first object and the second object are of the same type, and the processing functions of the third control and the fourth control can also be the same. Exemplarily, if the first object and the second object are both ID cards, the third control and the fourth control both have copy and paste functions; if the first object and the second object are both invoices, the third control and the fourth control both have at least one of the functions of editing, summarizing, and calculating; if the first object and the second object are both household registers, the third control and the fourth control both have page turning, copy and paste functions, etc.

[0156] In the embodiment of the present disclosure, a third control can be configured for the first object, and a fourth control can be configured for the second object, so that operations on the first content information and the second content information can be implemented through different controls respectively, so as to meet different functional requirements of users. And different processing functions can be configured for content information in different storage directories based on the type of object, so that classified processing of content information in each storage directory after archiving can be implemented.

[0157] Fig. 9 FIG. 1 is a block diagram of a scanning device according to an exemplary embodiment. Fig. 9 As shown, the device 900 mainly includes:

[0158] The identification module 901 is configured to identify a first object on a first page in response to a triggering operation on a scanning function;

[0159] The storage module 902 is configured to store the first content information identified from the first object in a target storage directory based on the type of the first object; different types of objects have different storage directories.

[0160] In some embodiments, the apparatus 900 further includes:

[0161] A first display module is configured to display the target storage directory on a second page after storing the first content information in the target storage directory;

[0162] A second display module is configured to display the first content information on a third page associated with the target storage directory in response to a trigger operation on the target storage directory; each storage directory is respectively associated with the third page;

[0163] The layout style of the first content information displayed on the third page is the same as the layout style of the elements in the first object.

[0164] In some embodiments, the apparatus 900 further includes:

[0165] a first determining module configured to determine the storage directory corresponding to the type of the first object as the target storage directory if the storage directory corresponding to the type of the first object exists on the second page;

[0166] The creation module is configured to create the target storage directory on the second page if the storage directory corresponding to the type of the first object does not exist on the second page.

[0167] In some embodiments, the apparatus 900 further includes:

[0168] A generating module, configured to generate a target file including the first content information in response to detecting an operation on the first control on the first page;

[0169] The third display module is configured to display the file information of the target file on a fourth page based on the type of the first object.

[0170] In some embodiments, the apparatus 900 further includes:

[0171] The second determination module is configured to determine whether there is a storage directory corresponding to the type of the first object on the second page based on the file information and the directory information of the storage directory on the second page; in the case where there is target directory information whose similarity with the file information is greater than or equal to a preset threshold, determine the storage directory indicated by the target directory information as the storage directory corresponding to the type of the first object; in the case where the similarity between the file information and the directory information of the storage directory is less than the preset threshold, it is confirmed that there is no storage directory corresponding to the type of the first object.

[0172] In some embodiments, the apparatus 900 further includes:

[0173] an adjustment module, configured to, in response to a first operation on the file information displayed on the fourth page, perform an adjustment on the file information corresponding to the first operation, and display the adjusted file information on the fourth page;

[0174] The second determining module is configured to:

[0175] Based on the adjusted file information and the directory information of the storage directory, it is determined whether the second page has a storage directory corresponding to the type of the first object.

[0176] In some embodiments, when the target storage directory stores second content information obtained by scanning the second object, the second display module is configured to:

[0177] In response to a triggering operation on the target storage directory, displaying the first content information and the second content information on a third page associated with the target storage directory;

[0178] The device 900 further includes:

[0179] The execution module is configured to, in response to a second operation on a second control on a third page associated with the target storage directory, perform processing corresponding to the second operation on the first content information and / or the second content information.

[0180] In some embodiments, the second display module is configured as follows:

[0181] Displaying the first content information and at least one third control associated with the first object in a first area of ​​a third page associated with the target storage directory; each of the third controls is used to perform different processing operations on the first content information; and,

[0182] The second content information and at least one fourth control associated with the second object are displayed in a second area of ​​the third page associated with the target storage directory; each of the fourth controls is used to perform different processing operations on the second content information.

[0183] In some embodiments, the storage module 902 is configured to:

[0184] Based on the layout style of the elements in the first object, the first content information is structured to obtain structured information;

[0185] Storing the structured information in the target storage directory;

[0186] The second display module is configured as follows:

[0187] The structured information is displayed on the second page.

[0188] In some embodiments, the apparatus 900 further includes:

[0189] a third determining module, configured to determine a target storage space from at least one storage space associated with the target storage directory based on the first content information identified from the first object and / or the scanning information of the first object;

[0190] The storage module 902 is configured as follows:

[0191] The first content information identified from the first object is stored in the target storage space.

[0192] In some embodiments, the first display module is configured as follows:

[0193] In response to storing the first content information in the target storage directory, determining a directory tag of the target storage directory based on the first content information;

[0194] Displaying the target storage directory and a directory label of the target storage directory on the second page;

[0195] The directory tag is used to indicate associated information of information stored in the target storage directory.

[0196] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0197] Based on the same inventive concept, an embodiment of the present disclosure provides an electronic device, which may be a computer or a terminal in one or more of the above embodiments. Fig.10 FIG. 1 is a schematic diagram showing the structure of an electronic device according to an exemplary embodiment. Fig.10 As shown, the electronic device 1000 adopts general computer hardware and includes a processor 1001 , a memory 1002 , a bus 1003 , an input device 1004 , and an output device 1005 .

[0198] In some possible implementations, the memory 1002 may include computer storage media in the form of volatile and / or non-volatile memory, such as read-only memory and / or random access memory. The memory 1002 may store an operating system, application programs, other program modules, executable code, program data, user data, etc.

[0199] Input device 1004 can be used to input commands and information to the electronic device, such as a keyboard or a pointing device, such as a mouse, trackball, touchpad, microphone, joystick, game pad, satellite TV antenna, scanner or similar device. Input device 1004 can be connected to processor 1001 via bus 1003.

[0200] The output device 1005 can be used for the electronic device 1000 to output information. In addition to the monitor, the output device 1005 can also be other peripheral output devices, such as a speaker and / or a printing device. The output device 1005 can also be connected to the processor 1001 through the bus 1003.

[0201] The electronic device 1000 may be connected to a network, such as a local area network (LAN), via the antenna 1006. In a networked environment, executable instructions may be stored in a remote storage device, rather than being limited to local storage.

[0202] When the processor 1001 in the electronic device 1000 executes the executable code or application stored in the memory 1002, the electronic device 1000 can implement the scanning method in the above embodiment. The specific execution process refers to the above embodiment and will not be repeated here.

[0203] The memory 1002 may store information for implementing Fig. 9 Executable instructions for the functions of the identification module 901 and the storage module 902. Fig. 9 The functions / implementation processes of the identification module 901 and the storage module 902 can be realized by Fig.10 The processor 1001 in the embodiment calls the executable instructions stored in the memory 1002 to implement the above-mentioned implementation process and functions.

[0204] Based on the same inventive concept, the embodiment of the present disclosure further provides a storage medium, in which instructions are stored, and when the instructions are executed on a computer, the scanning method in one or more of the above embodiments is executed.

[0205] Based on the same inventive concept, the embodiments of the present disclosure further provide a computer program or a computer program product. When the computer program product is executed on a computer, the computer implements the scanning method in one or more of the above embodiments.

[0206] Those skilled in the art will readily appreciate other implementations of the disclosed embodiments after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosed embodiments, which follow the general principles of the disclosed embodiments and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the disclosed embodiments are indicated by the following claims.

[0207] It should be understood that the embodiments of the present disclosure are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present disclosure is limited only by the appended claims.

Claims

1. A scanning method, characterized in that: The method comprises: In response to a triggering operation of the scanning function, identifying a first object on the first page; Based on the type of the first object, the first content information identified from the first object is stored in a target storage directory; different types of objects have different storage directories.

2. The method according to claim 1, characterized in that: The method further comprises: After storing the first content information in the target storage directory, displaying the target storage directory on a second page; In response to a triggering operation on the target storage directory, displaying the first content information on a third page associated with the target storage directory; each storage directory is respectively associated with the third page; The layout style of the first content information displayed on the third page is the same as the layout style of the elements in the first object.

3. The method according to claim 2, characterized in that The method further comprises: In a case where a storage directory corresponding to the type of the first object exists on the second page, determining the storage directory corresponding to the type of the first object as the target storage directory; If the storage directory corresponding to the type of the first object does not exist on the second page, the target storage directory is created on the second page.

4. The method according to claim 3, characterized in that: The method further comprises: In response to detecting an operation on a first control on the first page, generating a target file including the first content information; Based on the type of the first object, file information of the target file is displayed on a fourth page.

5. The method according to claim 4, characterized in that The method further comprises: Based on the file information and directory information of the storage directory on the second page, determining whether a storage directory corresponding to the type of the first object exists on the second page; In a case where there is target directory information whose similarity with the file information is greater than or equal to a preset threshold, determining the storage directory indicated by the target directory information as the storage directory corresponding to the type of the first object; When the similarities between the file information and the directory information of the storage directory are both smaller than the preset threshold, there is no storage directory corresponding to the type of the first object.

6. The method according to claim 4, characterized in that The method further comprises: In response to a first operation on the file information displayed on the fourth page, performing an adjustment on the file information corresponding to the first operation, and displaying the adjusted file information on the fourth page; The determining, based on the file information and the directory information of the storage directory on the second page, whether the second page has a storage directory corresponding to the type of the first object, includes: Based on the adjusted file information and the directory information of the storage directory, it is determined whether the second page has a storage directory corresponding to the type of the first object.

7. The method according to claim 2, characterized in that: In a case where the target storage directory stores second content information obtained by scanning the second object, the displaying the first content information on a third page associated with the target storage directory in response to a triggering operation on the target storage directory includes: In response to a triggering operation on the target storage directory, displaying the first content information and the second content information on a third page associated with the target storage directory; The method further comprises: In response to a second operation on a second control on a third page associated with the target storage directory, processing corresponding to the second operation is performed on the first content information and / or the second content information.

8. The method according to claim 7, characterized in that The displaying of the first content information and the second content information on a third page associated with the target storage directory includes: Displaying the first content information and at least one third control associated with the first object in a first area of ​​a third page associated with the target storage directory; each of the third controls is used to perform different processing operations on the first content information; and, The second content information and at least one fourth control associated with the second object are displayed in a second area of ​​the third page associated with the target storage directory; each of the fourth controls is used to perform different processing operations on the second content information.

9. The method according to claim 2, characterized in that: The storing the first content information identified from the first object into the target storage directory includes: Based on the layout style of the elements in the first object, the first content information is structured to obtain structured information; Storing the structured information in the target storage directory; The displaying the first content information on the second page includes: The structured information is displayed on the second page.

10. The method according to claim 1, characterized in that The method further comprises: determining a target storage space from at least one storage space associated with the target storage directory based on first content information identified from the first object and / or scan information of the first object; The storing the first content information identified from the first object into the target storage directory includes: The first content information identified from the first object is stored in the target storage space.

11. The method according to claim 2, characterized in that The displaying of the target storage directory on the second page includes: In response to storing the first content information in the target storage directory, determining a directory tag of the target storage directory based on the first content information; Displaying the target storage directory and a directory label of the target storage directory on the second page; The directory tag is used to indicate associated information of information stored in the target storage directory.

12. A scanning device, characterized in that: The device comprises: A recognition module, configured to recognize a first object on a first page in response to a triggering operation on a scanning function; The storage module is configured to store the first content information identified from the first object in a target storage directory based on the type of the first object; different types of objects have different storage directories.

13. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the scanning method according to any one of claims 1 to 11 is implemented.