WO2019019446A1 - 根据影像文件在录单模板中定位的方法、装置及相关设备 - Google Patents

根据影像文件在录单模板中定位的方法、装置及相关设备 Download PDF

Info

Publication number
WO2019019446A1
WO2019019446A1 PCT/CN2017/108004 CN2017108004W WO2019019446A1 WO 2019019446 A1 WO2019019446 A1 WO 2019019446A1 CN 2017108004 W CN2017108004 W CN 2017108004W WO 2019019446 A1 WO2019019446 A1 WO 2019019446A1
Authority
WO
WIPO (PCT)
Prior art keywords
character
image file
characters
entered
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/108004
Other languages
English (en)
French (fr)
Inventor
金飞虎
邵正铂
陈杰
高雪
马向东
丁杰
张捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2019019446A1 publication Critical patent/WO2019019446A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • G06V10/225Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition based on a marking or identifier characterising the area
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method, an apparatus, and related devices for locating an image file according to an image file.
  • paper documents are usually stored in a computer by manual entry to form an electronic document for later reference and forwarding.
  • the current electronic document entry method is generally a manual recording of a PDF document or a picture scanned by a user according to a paper document or a paper document, for a paper document having a certain format, such as a contract of the same type. , policy, patient data file creation, etc., in order to improve work efficiency, generally set a certain format of the electronic document template, in order to save the repeated input of the same information. For example, when creating an electronic document of a contract type, characters such as "A name" and "B name" are usually pre-filled in the electronic document template, so that the ordering person does not need to repeat the words when entering the corresponding electronic document.
  • a method, apparatus, and related apparatus for locating an image file according to an image file are provided.
  • a method for locating an image file in a recording template comprising:
  • the character to be recorded that matches the recognized character is matched;
  • a pre-selected area of the image file and the to-be-recorded character that is located are displayed.
  • a device for positioning an image file according to an image file comprising:
  • a character recognition module for identifying characters in a preselected area in the image file
  • a matching module configured to match a character to be entered according to a preset recording template, and match a character to be recorded that matches the recognized character;
  • a positioning module configured to locate the record template to match the characters to be recorded
  • a display module configured to display a pre-selected area of the image file and the to-be-recorded character that is located.
  • a computer device comprising a memory and one or more processors having stored therein computer readable instructions that, when executed by the one or more processors, cause the one or more processors to execute The following steps:
  • a pre-selected area of the image file and the to-be-recorded character that is located are displayed.
  • One or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
  • a pre-selected area of the image file and the to-be-recorded character that is located are displayed.
  • FIG. 1 is a flow chart of a method for locating an image file in a recording template according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for locating an image file according to an image file according to another embodiment of the present application
  • FIG. 3 is a flowchart of a method for locating an image file according to an image file according to still another embodiment of the present application
  • FIG. 4 is a schematic diagram of a usage scenario according to an embodiment of the present application.
  • FIG. 5 is a block diagram showing an exemplary structure of an apparatus for positioning in a recording template according to an image file according to an embodiment of the present application
  • FIG. 6 is a block diagram showing an exemplary structure of a computer device in accordance with one embodiment of the present application.
  • first quotient value
  • second quotient value
  • first quotient value quotient value
  • first quotient value quotient value
  • second quotient value quotient value
  • FIG. 1 is a flowchart of a method for locating an image file according to an image file according to an embodiment of the present application.
  • a positioning according to an image file in a recording template according to an embodiment of the present application is described in detail with reference to FIG. 1 .
  • the method as shown in FIG. 1, includes the following steps S101 to S104.
  • the image file includes, but is not limited to, an electronic document, a picture, and the like in a PDF format, wherein the image file can be obtained by scanning paper materials that need to be recorded as an electronic document, or by using paper materials that need to be recorded as an electronic document. The way to take pictures is obtained.
  • the identification of the characters in the preselected area can be identified by first slicing the image file according to the border line of the preselected area, selecting the preselected area, and recording the coordinates of the sliced area. Then, using Google's open source project, the tesseract image recognition library technology, optical character recognition of the sliced area to obtain the recognition characters of the sliced area.
  • the pre-selected area of the image file may be determined in two ways, one is to determine a corresponding pre-selected area according to the user's frame selection, and the other is to preset an area according to the display area of the image file.
  • the coordinates, which are determined based on the coordinates, are highlighted in the following embodiments.
  • a corresponding recording template is pre-stored with each type of electronic document, and a label of the type identifier is added to each recording template, so as to associate the image file with the corresponding type of recording template.
  • the document template of the insurance contract and the image file of the policy contract the document template of the employee's entry contract and the image file of the employee contract, the patient's electronic medical record order template and the patient medical record image file, and the like.
  • the criterion for matching the matching may be determining whether the character to be recorded preset in the order contract is included in the recognized character, and the specific step includes: obtaining the to-be-preset in the preset document template. The character is entered, and when the recognized character includes the acquired character to be entered, it is determined that the recognized character matches the acquired character to be entered.
  • determining whether the character to be entered matches the recognized character can be performed by means of KMP (The Knuth-Morris-Pratt Algorithm) algorithm, for example, in an image file.
  • KMP The Knuth-Morris-Pratt Algorithm
  • the character string T identified in the preselected area is: a b a c a a b a c a b a c a b a a b b
  • a predetermined character to be entered is the character string W: a b a c a b, in the process of regular character matching, we will match T[0] with W[0], if the same, match the next character, until there is a different situation, then we will discard the previous matching information.
  • the left area of the display screen displays an image file
  • the right area displays a recording form template
  • the character "B name: XXX is recognized in the preselected area of the image file.
  • the preset characters to be entered in the order template include "B name”, "B ID number”, etc., wherein the character "B name: XXX,” is recognized to include the preset character to be entered.
  • "B name” therefore, it can be determined that the character recognized in the image file display area is successfully matched with the "B name" to be entered character in the recording template.
  • the positioning method in the step may be to highlight the matching character to be recorded or move the cursor of the mouse to a typing area adjacent to the character to be recorded, wherein the manner of highlighting includes: It is not limited to bold display of matching characters to be entered, change of display color of the characters to be recorded to preset colors, highlighting of characters to be recorded that match matching, and the like.
  • step S104 the pre-selected area of the image file and the to-be-recorded character to be recorded are simultaneously displayed on the display screen of the computer device, so that the user does not need to search, and the help according to the display content of the image file and the to-be-recorded character can be assisted.
  • the recording personnel quickly enter the corresponding information.
  • the displayed manner is displayed, for example, by dividing the image file into a screen to be recorded in accordance with the matching in the recording template.
  • the manner of splitting the screen is not limited to the left and right split screens drawn in FIG. 4, and may also be upper and lower split screens, and the boundary line of the split screen area may be regular or irregular.
  • FIG. 2 is a flowchart of a method for locating an image file according to an image file in a recording template according to another embodiment of the present application, and the method for positioning according to an image file in a recording template, as shown in FIG.
  • the method for locating the image file according to the image file further includes steps S201 and/or S202.
  • the coordinates of the preset area include the coordinates of the upper left corner and the coordinates of the lower right corner preset in the display area of the image file, and the preselected rectangular area may be determined according to the two coordinates.
  • the step S201 is intended to provide the user with a preset area of the image template. Since the paper documents of the same category, such as the same company's entry contract or the same type of policy contract, the contract form is generally fixed, that is, which position Filling in the user's personal information, which location is filled with the organization code, and other common fields are fixed. Pre-setting the regional coordinates can quickly help the user to select the content to be entered on the image file.
  • S202 Receive a selected area of the input image file, and determine the received area as a pre-selected area.
  • the step S202 can be used as the parallel arrangement of the foregoing step S201, or can be used as the superposition scheme of the above step S201.
  • the image file is recorded.
  • the method for locating in a single template includes the above-mentioned steps S101 to S104, and further includes the above-mentioned step S201 or step S202.
  • the method for locating the image file according to the step S101 includes the above step S101.
  • S104 also includes the above steps S201 and S202.
  • step S202 by receiving the selected area of the image file input by the user (recorder), the user is allowed to select the pre-selected area, so that the coordinates of the preset preset area are inaccurate, or because the scanned paper file is scanned.
  • the coordinates of the preset preset area cannot be presented in the corresponding position in the image file, so that the pre-selected area determined according to the preset coordinates or
  • the user can manually select the pre-selected area that needs to be matched for character recognition, and match and display the matching characters to be entered in the record template.
  • the user can perform frame selection on the display screen by using a mouse, and the computer device selects the pre-selected area according to the area selected by the user box.
  • the screen of the computer device has a touch function
  • the user can also touch the display screen.
  • the computer device determines a corresponding pre-selected area according to the location selected by the user.
  • FIG. 3 is a flowchart of a method for locating an image file according to an image file according to still another embodiment of the present application. As shown in FIG. 3, the flowchart of the method for locating the image file according to the image file includes In addition to the above steps S101, S103 and S104, the following steps S301 and S302 are further included.
  • the file number of the image file includes, but is not limited to, a file name of the image file, and a single number of the image file stored according to a user input.
  • S302 Obtain a record template of a corresponding type according to a mapping relationship between a preset file number and a type identifier of the record template.
  • each record template has a type identifier indicating that the template type is stored
  • the mapping relationship between the file number and the type identifier of the record template can be implemented by using a relationship table stored in the database. This can be done in the form of an object pointed to by the next hop of the pointer.
  • the type identifier corresponding to the image file with the file numbers 001352 and 001353 is the recording template indicating the pension insurance contract type
  • the system receives the single number 001352 or 001353 image file according to the Corresponding relationship between the preset document number and the type identifier, obtaining the order form template of the endowment insurance contract, and the record entry template of the pension insurance contract obtained by the record occupant and the candidate to be entered in the corresponding bill template of the endowment insurance contract
  • the characters to be recorded in the order template of the insurance contract are input in the corresponding position, and the time and work for finding the corresponding column in the recording template are omitted, which improves the work efficiency of the recording staff.
  • step S102 is specifically step S303:
  • the file number of the image file is associated with the template of the corresponding type in the record template, so that the user who does not know the category to which the file belongs is not identified according to the preset file number and the type of the record template.
  • the mapping relationship the system can automatically provide the correct record template, on the one hand to facilitate the work of the record holder, on the other hand, the user can select the corresponding type of record template according to different types of image files, improve the book The scope of application.
  • FIG. 4 is a schematic diagram of a usage scenario according to an embodiment of the present application.
  • a usage scenario according to the embodiment is described in detail below with reference to FIG. 4.
  • an image file may be used.
  • the display area and the display area of the recording template are displayed on the screen, so that the user can input the electronic document on the same screen according to the information displayed in the image file, wherein the split screen is not limited to the left and right split screens, and the image may be
  • the display area of the file and the display area of the record template are divided into two screens to display.
  • the default characters to be entered include "B name" and "B identity”.
  • the recording template is positioned to match the characters to be recorded, that is, the matching character to be entered “B name” is highlighted to achieve positioning, and the pre-selected area of the image file and the to-be-recorded character are displayed.
  • FIG. 5 is an exemplary structural block diagram of an apparatus for locating an image file according to an image file according to an embodiment of the present application.
  • a recording template according to an image file according to an embodiment of the present application is described in detail with reference to FIG.
  • the device for positioning in the medium, as shown in FIG. 5, the device 10 for positioning in the recording template according to the image file includes:
  • a character recognition module 11 for identifying characters in a preselected area in the image file
  • the matching module 12 is configured to match the character to be recorded according to the character to be recorded of the preset recording template, and match the character to be recorded that matches the recognized character;
  • the positioning module 13 is configured to locate the record template to match the characters to be recorded;
  • the display module 14 is configured to display a preselected area of the image file and the to-be-recorded character that is located.
  • a pre-stored module is further included for pre-storing a recording template corresponding to each type of electronic document, and the pre-stored module is further configured to store a type for each recording template.
  • the label of the label is used to associate the image file with the corresponding type of order form template, such as the order form template of the insurance contract type and the image file of the policy contract, the order form template of the employee's entry contract, the image file of the employee contract, and the patient.
  • the criterion for determining whether the matching is matched by the matching module 12 may be: determining whether the character to be recorded preset in the recording contract is included in the recognized character, and the specific step includes: acquiring the preset.
  • the character to be entered in the order template is determined.
  • the matching module 12 determines whether the character to be recorded matches the recognized character by means of KMP (The Knuth-Morris-Pratt Algorithm) algorithm, for example, in a preselected area of the image file.
  • KMP The Knuth-Morris-Pratt Algorithm
  • the recognized character string T is: a b a c a a b a c a b a c a b a c a b a a b b
  • one of the preset characters to be entered is the string W: a b a c a b
  • T[0] and W[0 ] Match if the same, match the next character until there is a different situation, then we will discard the previous matching information, then match T[1] with W[0], and loop until the characters to be entered
  • This method of discarding the previous matching information greatly reduces the matching efficiency.
  • the maximum amount of the character string W is moved according to the number of matched characters when the matching fails. Reduce the number of matches and improve matching efficiency.
  • the positioning module is further configured to: highlight a matching matching character to be recorded or move the cursor of the mouse to a typing area adjacent to the character to be recorded, wherein the manner of highlighting includes but is not limited to The matching matching character to be entered is boldly displayed, the display color of the character to be recorded is changed to a preset color, the matching character to be entered is highlighted, and the like.
  • the device 10 for positioning in the recording template according to the image file further includes:
  • the first determining module of the pre-selected area is configured to acquire coordinates of the preset area in the display area of the image file, and determine the area corresponding to the acquired coordinates as the pre-selected area.
  • the pre-stored module is further configured to store a preset upper left corner coordinate and a lower right corner coordinate in a display area of the preset image file, and the first determining module of the pre-selected area can determine the pre-selected rectangle according to the two coordinates. region.
  • the first determining module of the pre-selected area provides the user with a preset area of the image template. Since the paper documents of the same category, such as the same company's entry contract or the same type of policy contract, the contract form is generally fixed. That is, which location fills in the user's personal information, and which location is filled with the organization code, and the common field area is fixed.
  • the preset regional coordinates can quickly help the user select the content to be entered on the image file.
  • the device 10 for positioning in the recording template according to the image file further includes:
  • the second determining module of the preselected area is configured to receive the selected area of the input image file, and determine the received area as the preselected area.
  • the second determining module of the preselected area receives the image file input by the user (recorder)
  • the selection area provides the permission for the user to select the pre-selected area, so that the coordinates of the preset preset area are inaccurate, or the file is not correctly arranged due to scanning of the paper document, or the picture taken during the shooting does not match.
  • the coordinates of the preset preset area cannot be presented in the corresponding position in the image file, so that the content displayed in the pre-selected area determined according to the preset coordinates or the content displayed in the vicinity of the modified area is not the content that the recording staff needs to input
  • the user Character recognition can be performed by manually selecting the pre-selected areas that need to be matched to match and display the matching characters to be entered in the order template.
  • the matching module 12 further includes:
  • a character obtaining unit configured to acquire a character to be recorded in a preset recording template
  • the determining unit is configured to determine, when the recognized character includes the acquired character to be entered, determining that the recognized character matches the acquired character to be entered.
  • the device for locating the image file according to the image file further includes:
  • a single number receiving module configured to receive a file number of the image file
  • the template obtaining module is configured to obtain a recording template of a corresponding type according to a mapping relationship between a preset file number and a type identifier of the recording template;
  • the matching module is further configured to match the to-be-recorded characters that match the recognized characters in the acquired recording template.
  • the display module 14 is further configured to display the image file to be displayed on the screen in accordance with the matching of the image file.
  • a computer apparatus includes a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, the processor implementing the above-mentioned basis when executing the computer readable instructions The method of locating an image file in a recording template.
  • a computer apparatus comprising a memory and one or more processors having stored therein computer readable instructions that, when executed by one or more processors, cause one or more The processor performs the following steps: identifying characters in the preselected area of the image file; matching the characters to be entered according to the characters to be entered in the preset recording template; and positioning the recording template to match the matching Characters to be entered; and display image files Pre-selected area and the characters to be recorded.
  • the one or more processors before the one or more processors perform the step of recognizing characters in the preselected area of the image file, the one or more processors further perform the steps of: acquiring coordinates of the preset area in the display area of the image file, The area corresponding to the acquired coordinates is determined as a preselected area.
  • the one or more processors before the one or more processors perform the step of identifying characters in the preselected area of the image file, the one or more processors further perform the steps of: receiving a selected area of the input image file, the received area Determined as a pre-selected area.
  • the step of the one or more processors executing the characters to be recorded according to the preset recording template, and matching the characters to be recorded corresponding to the recognized characters includes: acquiring the preset recording template Characters to be entered; and when the recognized characters include the acquired characters to be entered, it is judged that the recognized characters match the acquired characters to be entered.
  • the one or more processors perform the following steps before the step of matching the characters to be entered according to the preset recording template to match the characters to be recognized that match the recognized characters. : receiving the file number of the image file; obtaining a record template of the corresponding type according to the mapping relationship between the preset file number and the type identifier of the record template; and matching and matching the recognized characters in the obtained record template The character to be entered.
  • the meanings of "first" and "second” in the first determining module of the preselected area and the second determining module of the preselected area are only to distinguish the determining modules of the two preselected areas, and are not used to define which preselected area.
  • the determination module has a higher priority or other limited meaning.
  • the characters in the pre-selected area of the image file are identified, and the characters to be recorded are matched according to the recognized characters, and the successfully matched characters are positioned and displayed corresponding to the pre-selected areas of the image file, so that the user only
  • the pre-selected area needs to be determined in the image file, and the system can directly locate the recording template to the corresponding character to be recorded, so that the user can compare the content displayed in the pre-selected area and the area, according to the positioning.
  • the input characters are input into the corresponding information in the recording template, which brings convenience to the user and improves the working efficiency of the user.
  • FIG. 6 is a block diagram showing an exemplary structure of a computer device including a processor connected through a system bus, a non-volatile storage medium, and FIG. 6 according to an embodiment of the present application. Internal memory, input device and display.
  • the non-volatile storage medium of the computer device can store an operating system and computer readable instructions, and when the computer readable instructions are executed, the processor can be executed to perform a recording according to an image file according to various embodiments of the present application.
  • the processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device.
  • the internal memory can store computer readable instructions that, when executed by the processor, cause the processor to perform a method of locating the image file according to the image file.
  • the input device of the computer device is used for input of various parameters, and the display screen of the computer device is used for display.
  • FIG. 6 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • Non-volatile memories can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • one or more non-volatile readable storage media storing computer readable instructions are provided, the computer readable instructions being executed by one or more processors such that the one or more The processor performs the following steps: identifying characters in the preselected area of the image file; matching the characters to be entered according to the characters to be entered in the preset recording template; and positioning the recording template to match the matching The characters to be entered; and the pre-selected area of the image file and the characters to be recorded are displayed.
  • the one or more processors before the one or more processors perform the step of recognizing characters in the preselected area of the image file, the one or more processors further perform the steps of: acquiring coordinates of the preset area in the display area of the image file, The area corresponding to the acquired coordinates is determined as a preselected area.
  • one or more processors perform recognition within the preselected region of the image file Prior to the character step, the one or more processors also perform the steps of receiving a selected area of the input image file and determining the received area as a preselected area.
  • the step of the one or more processors executing the characters to be recorded according to the preset recording template, and matching the characters to be recorded corresponding to the recognized characters includes: acquiring the preset recording template Characters to be entered; and when the recognized characters include the acquired characters to be entered, it is judged that the recognized characters match the acquired characters to be entered.
  • the one or more processors perform the following steps before the step of matching the characters to be entered according to the preset recording template to match the characters to be recognized that match the recognized characters. : receiving the file number of the image file; obtaining a record template of the corresponding type according to the mapping relationship between the preset file number and the type identifier of the record template; and matching and matching the recognized characters in the obtained record template The character to be entered.
  • the meanings of "first" and "second” in the first determining module of the preselected area and the second determining module of the preselected area are only to distinguish the determining modules of the two preselected areas, and are not used to define which preselected area.
  • the determination module has a higher priority or other limited meaning.
  • the characters in the pre-selected area of the image file are identified, and the characters to be recorded are matched according to the recognized characters, and the successfully matched characters are positioned and displayed corresponding to the pre-selected areas of the image file, so that the user only
  • the pre-selected area needs to be determined in the image file, and the system can directly locate the recording template to the corresponding character to be recorded, so that the user can compare the content displayed in the pre-selected area and the area, according to the positioning.
  • the input characters are input into the corresponding information in the recording template, which brings convenience to the user and improves the working efficiency of the user.
  • all or part of the processes in the foregoing embodiment methods may be completed by instructing related hardware by computer readable instructions, which may be stored in a computer readable storage medium.
  • the computer readable instructions may be stored in a storage medium of a computer system and executed by at least one processor in the computer system to implement a flow comprising an embodiment of the methods as described above.
  • the storage medium includes, but is not limited to, a magnetic disk, a USB flash drive, an optical disk, and a Read-Only Memory (ROM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Character Input (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种根据影像文件在录单模板中定位的方法、装置及相关计算机设备、非易失性可读存储介质。该方法包括:识别影像文件中预选区域内的字符(S101);根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符(S102);将该录单模板定位到匹配相符的待录入字符(S103);显示该影像文件的预选区域及定位到的该待录入字符(S104)。

Description

根据影像文件在录单模板中定位的方法、装置及相关设备
本申请要求于2017年07月25日提交中国专利局、申请号为2017106144221、发明名称为“根据影像文件在录单模板中定位的方法、装置及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别是涉及根据影像文件在录单模板中定位的方法、装置及相关设备。
背景技术
在很多岗位的业务流程中,通常都需要将纸质的文档通过人工录入的方式存储在电脑中,以形成电子文档,方便在日后的查阅及转发等。
目前的电子文档的录入方式一般是由用户根据纸质文件或由纸质文件扫描而成的PDF文件或图片,在电脑中进行人工录入,对于有一定格式规律纸质文档,例如相同类型的合同、保单、病人资料的建档等等,为了提高工作效率一般都会设置一定格式的电子文档模板,以省去相同信息的重复输入。例如在建立合同类的电子文档时,通常“A名称”、“B名称”这类的文字预先填写在电子文档模板中,使得录单人员在录入对应的电子文档时不用重复这些字样。
对于目前的这种电子文档的录入方式仍然存在不足之处,对于文字内容非常多的纸质文档或根据纸质文档扫描或者拍摄的影像文件,录单人员在看到电子文档模板中的待录入内容时,难以在纸质文档或者上述影像文件中快速准确的找到对应的录入内容,增加了用户查找对应内容的时间,降低了用户的工作效率。
发明内容
根据本申请的各个实施例,提供了一种根据影像文件在录单模板中定位的方法、装置及相关设备。
一种根据影像文件在录单模板中定位的方法,该方法包括:
识别影像文件中预选区域内的字符;
根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符;
将该录单模板定位到匹配相符的待录入字符;
显示该影像文件的预选区域及定位到的该待录入字符。
一种根据影像文件在录单模板中定位的装置,该装置包括:
字符识别模块,用于识别影像文件中预选区域内的字符;
匹配模块,用于根据预设的录单模板的待录入字符,匹配与该识别到的字符相符的待录入字符;
定位模块,用于将该录单模板定位到匹配相符的待录入字符;
显示模块,用于显示该影像文件的预选区域及定位到的该待录入字符。
一种计算机设备,包括存储器和一个或多个处理器,该存储器中存储有计算机可读指令,该计算机可读指令被该一个或多个处理器执行时,使得该一个或多个处理器执行以下步骤:
识别影像文件中预选区域内的字符;
根据预设的录单模板的待录入字符,匹配与该识别到的字符相符的待录入字符;
将该录单模板定位到匹配相符的待录入字符;及
显示该影像文件的预选区域及定位到的该待录入字符。
一个或多个存储有计算机可读指令的非易失性可读存储介质,该计算机可读指令被一个或多个处理器执行时,使得该一个或多个处理器执行以下步骤:
识别影像文件中预选区域内的字符;
根据预设的录单模板的待录入字符,匹配与该识别到的字符相符的待录 入字符;
将该录单模板定位到匹配相符的待录入字符;及
显示该影像文件的预选区域及定位到的该待录入字符。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据本申请的一个实施例的根据影像文件在录单模板中定位的方法的流程图;
图2为根据本申请的另一实施例的根据影像文件在录单模板中定位的方法的流程图;
图3为根据本申请的又一实施例的根据影像文件在录单模板中定位的方法的流程图;
图4为根据本申请的一个实施例的使用场景示意图;
图5为根据本申请的一个实施例的根据影像文件在录单模板中定位的装置的示范性结构框图;
图6为根据本申请的一个实施例的计算机设备的示范性结构框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
可以理解,本发明所使用的术语“第一”、“第二”等可在本文中用于描 述各种元件,但这些元件不受这些术语的限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本发明的范围的情况下,可以将第一商值称为第二商值,且类似地,可将第二商值称为第一商值。第一商值和第二商值两者都是商值,但其不是同一商值。
图1为根据本申请的一个实施例的根据影像文件在录单模板中定位的方法的流程图,下面结合图1来详细描述根据本申请的一个实施例的根据影像文件在录单模板中定位的方法,如图1所示,该方法包括以下步骤S101至S104。
S101、识别影像文件中预选区域内的字符。
其中,该影像文件包括但不限于PDF格式的电子文档、图片等,其中,该影像文件可以通过扫描需要录入为电子文档的纸质资料得到,也可以通过对需要录入为电子文档的纸质资料进行拍照的方式得到。
根据本实施例的一个示例,对预选区域内的字符的识别可以通过以下方式来进行识别:首先对影像文件按照预选区域的边框线进行切片,切选该预选区域,并记录下切片区域的坐标,再利用谷歌的开源项目——tesseract图像识别类库技术对切片区域进行光学字符识别,得出切片区域的识别字符。
根据本实施例的另一示例,该影像文件的预选区域有两种方式可以确定,一是根据用户的框选确定对应的预选区域,另一个是根据在影像文件的显示区域中预设一区域坐标,根据该坐标确定该预选区域,在以下实施例中会着重介绍。
S102、根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符。
其中,根据录入不同类型的电子文档,与每种类型的电子文档预存有对应的录单模板,对每个录单模板添加类型标识的标签,以便于将影像文件与对应类型的录单模板关联起来,例如保险合同类的录单模板与保单合同的影像文件、员工的入职合同的录单模板与员工合同的影像文件、病人的电子病历的录单模板与病人病历的影像文件等等。
根据本实施例的一个示例,匹配相符的标准可以是判断录单合同中预设的待录入字符是否被包含在识别到的字符中,具体地步骤包括:获取预设的录单模板中的待录入字符,当识别到的该字符中包含有获取的该待录入字符时,判断该识别到的字符与获取的该待录入字符匹配相符。
根据本实施例的另一示例,判断待录入字符与识别到的字符是否相符可以借助于KMP(The Knuth-Morris-Pratt Algorithm,克努特·莫里斯·普拉特)算法,例如在影像文件的预选区域中识别到的字符串T为:a b a c a a b a c a b a c a b a a b b,其中一个预设的待录入字符为字符串W为:a b a c a b,在常规的字符匹配的过程中,我们会把T[0]跟W[0]匹配,如果相同则匹配下一个字符,直到出现不相同的情况,此时我们会丢弃前面的匹配信息,然后把T[1]跟W[0]匹配,循环进行,直到待录入字符的字符串结束,或者出现匹配成功的情况。这种丢弃前面的匹配信息的方法,极大地降低了匹配效率,而在KMP算法中,在匹配失败时依据匹配失败时已匹配的字符的个数,对字符串W进行最大量的移动,以减少匹配次数,提高匹配效率。
根据本实施例的一个使用场景如图4所示,显示屏的左边区域显示的是影像文件,右边区域显示的是录单模板,在影像文件的预选区域中识别到了字符“B姓名:XXX、”,其中录单模板中预设的待录入字符包括“B姓名”、“B身份证号”等等,其中,识别到了字符“B姓名:XXX、”包括了预设的待录入字符中的“B姓名”,因此,可以判定影像文件显示区域识别到的字符与录单模板中“B姓名”这一待录入字符匹配成功。
S103、将该录单模板定位到匹配相符的待录入字符。
根据本实施例的一个示例,该步骤中的定位方法可以是对匹配相符的待录入字符突出显示或将鼠标的光标移动至与该待录入字符邻接一个键入区,其中,突出显示的方式包括但不限于对匹配相符的待录入字符加粗显示、将该待录入字符的显示显色变更为预置颜色、对匹配相符的待录入字符高亮显示等等。
S104、显示该影像文件的预选区域及定位到的该待录入字符。
其中,该步骤S104将影像文件的预选区域及定位到的待录入字符同时显示在计算机设备的显示屏上,使得不需要用户查找,根据影像文件的显示内容及定位到的待录入字符即可帮助录单人员快速的录入对应的信息。
根据本实施例的一个示例如图4所示,显示的方式例如将该影像文件与该录单模板中匹配相符的待录入字符分屏显示。进一步地,分屏的方式不限于图4中绘制的左右分屏,还可以是上下分屏,分屏区域的分界线可以是规则的也可以是不规则的。
图2为根据本申请的另一实施例的根据影像文件在录单模板中定位的方法的流程图,如图2所示的根据影像文件在录单模板中定位的方法,该方法在包括以上步骤S101至S104的基础上,在上述步骤S101的步骤之前,该根据影像文件在录单模板中定位的方法还包括步骤S201和/或S202。
S201、获取影像文件的显示区域中预设区域的坐标,将获取的坐标所对应的区域确定为预选区域。
根据本实施例的一个示例,该预设区域的坐标包括影像文件的显示区域中预设的左上角的坐标和右下角的坐标,根据这两个坐标即可确定该预选的矩形区域。该步骤S201旨在为用户提供一影像模板的预设区域,由于对于同类别的纸质文件,例如同一公司的入职合同或者相同类别的保单合同,合同的格式一般都是固定的,即哪个位置填用户的个人信息、哪个位置填组织机构代码等公共字段的区域都是固定的,预先设置区域坐标可以快速的帮助用户选择影像文件上需要录入的内容。
S202、接收输入的影像文件的选择区域,将接收的区域确定为预选区域。
根据本实施例的一个示例,该步骤S202可以作为上述步骤S201的并列可选方案,也可以作为上述步骤S201的叠加方案,当作为上述步骤S201的并列可选方案时,该根据影像文件在录单模板中定位的方法包括上述步骤S101至S104的同时还包括上述步骤S201或步骤S202,当作为上述步骤S201的叠加方案时,该根据影像文件在录单模板中定位的方法包括上述步骤S101至S104的同时还包括上述步骤S201及步骤S202。
该步骤S202中通过接收用户(录单员)输入的影像文件的选择区域,提供了让用户自己选择预选区域的权限,使得当预先设置的预设区域的坐标不准确,或者由于扫描纸质文件时文件摆放的不正、或拍摄的过程中拍摄的图片不符合规定时导致预先设置的预设区域的坐标无法呈现在影像文件中的对应位置,致使依据预先设置的坐标确定的预选区域内或者改区域附近显示的内容不是录单员需要录入的内容时,用户可以通过手动的选择所需要匹配的预选区域进行字符识别,以在录单模板中匹配并显示匹配相符的待录入字符。
根据本实施例的一个示例,用户可以通过鼠标在显示屏上进行框选,计算机设备根据用户框选的区域选择该预选区域,当计算机设备的屏幕具有触摸功能时,用户还可以通过触摸显示屏上对应的位置,计算机设备根据用户触摸选择的位置确定对应的预选区域。
图3为根据本申请的又一实施例的根据影像文件在录单模板中定位的方法的流程图,如图3所示,该根据影像文件在录单模板中定位的方法的流程图在包括上述步骤S101、S103和S104的基础上,还包括以下步骤S301、S302。
S301、接收该影像文件的文件单号。
根据本实施例的一个示例,该影像文件的文件单号包括但不限于该影像文件的文件名称、依据用户的输入存储的该影像文件的单号。
S302、根据预设的文件单号与录单模板的类型标识的映射关系,获取对应类型的录单模板。
根据本实施例的一个示例,每个录单模板都对应存储有表示模板类型的类型标识,该文件单号与录单模板的类型标识的映射关系可以通过数据库中存储的关系表来实现,也可以通过指针的下一跳所指的对象的形式来实现。
根据本实施例的一个使用场景例如,文件单号为001352及001353的影像文件对应的类型标识为表示养老保险合同类的录单模板,则系统在接收单号为001352或001353影像文件时,根据预设的文件单号与类型标识的对应关系,获取养老保险合同的录单模板,录单员根据获取的养老保险合同的录单模板及匹配的养老保险合同的录单模板中的待录入字符,根据在该养老保 险合同的录单模板中定位的待录入字符,在对应的位置输入需要录入的内容,省去了用户自己在录单模板中查找对应栏目的时间和工作,提高了录单员的工作效率。
上述步骤S102具体为步骤S303:
S303、根据预设的录单模板的待录入字符,在获取的录单模板中匹配与识别到的字符相符的待录入字符。
其中,上述步骤S101~S303的标号并不用于限定本实施例中各个步骤的先后顺序,各个步骤的编号只是为了使得描述各个步骤时可以通用引用该步骤的标号进行便捷的指代,例如上述步骤S301、S302可以在S101的步骤之前,也可以在步骤S101的步骤之后,只要各个步骤执行的顺序不影响本实施例的逻辑关系即可。
本实施例通过将影像文件的文件单号与录单模板中对应类型的模板关联起来,使得不了解待录入文件所归属的类别的用户,根据预设的文件单号与录单模板的类型标识的映射关系,系统即可自动提供正确的录单模板,一方面给录单员的工作带来便利,另一方面使得用户可以根据不同类别影像文件,选择对应类型的录单模板,提高了本申请的适用范围。
图4为根据本申请的一个实施例的使用场景示意图,下面结合图4来详细描述根据本实施例的一个使用场景,如图4所示,根据本实施例的一个使用场景,可以将影像文件的显示区域与录单模板的显示区域分屏显示,使得用户可以在同一屏幕上对照影像文件中显示的信息进行电子文档的录入,其中分屏的方式不限于左右分屏,还可以是将影像文件的显示区域与录单模板的显示区域分为上下两屏来显示。
如图4左屏中影像文件的显示内容,其中,通过获取影像文件的显示区域中预设区域的坐标确定的预选区域或通过接收输入的影像文件的选择区域确定的预选区域中识别的字符为“B姓名:XXX、”,根据预设的文件单号与录单模板的类型标识的映射关系,确定的录单模板为右屏中显示区域显示的录单模板,其中,该录单模板中预设的待录入字符包括“B姓名”、“B身份 证号”等等,由于识别的字符中包括了待录入字符“B姓名”,因此判断识别到的字符“B姓名:XXX、”与该录单模板中的待录入字符“B姓名”匹配相符,则将该录单模板定位到匹配相符的待录入字符,即将匹配相符的待录入字符“B姓名”突出显示以实现定位,并显示该影像文件的预选区域及定位到的该待录入字符“B姓名”。
图5为根据本申请的一个实施例的根据影像文件在录单模板中定位的装置的示范性结构框图,下面结合图5来详细描述根据本申请的一个实施例的根据影像文件在录单模板中定位的装置,如图5所示,该根据影像文件在录单模板中定位的装置10包括:
字符识别模块11,用于识别影像文件中预选区域内的字符;
匹配模块12,用于根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符;
定位模块13,用于将该录单模板定位到匹配相符的待录入字符;
显示模块14,用于显示该影像文件的预选区域及定位到的该待录入字符。
其中,其中,根据录入不同类型的电子文档的需求,还包括预存模块,用于预存与每种类型的电子文档对应的录单模板,该预存模块还用于存储对每个录单模板添加类型标识的标签,以便于将影像文件与对应类型的录单模板关联起来,例如保险合同类的录单模板与保单合同的影像文件、员工的入职合同的录单模板与员工合同的影像文件、病人的电子病历的录单模板与病人病历的影像文件等等。
根据本实施例的一个示例,上述匹配模块12判断匹配是否相符的标准可以是通过判断录单合同中预设的待录入字符是否被包含在识别到的字符中,具体地步骤包括:获取预设的录单模板中的待录入字符,当识别到的字符中包含有获取的该待录入字符时,判断该识别到的字符与获取的该待录入字符匹配相符。其中,匹配模块12判断待录入字符与识别到的字符是否相符可以借助于KMP(The Knuth-Morris-Pratt Algorithm,克努特·莫里斯·普拉特)算法,例如在影像文件的预选区域中识别到的字符串T为:a b a c a a b a c a b  a c a b a a b b,其中一个预设的待录入字符为字符串W为:a b a c a b,在常规的字符匹配的过程中,我们会把T[0]跟W[0]匹配,如果相同则匹配下一个字符,直到出现不相同的情况,此时我们会丢弃前面的匹配信息,然后把T[1]跟W[0]匹配,循环进行,直到待录入字符的字符串结束,或者出现匹配成功的情况。这种丢弃前面的匹配信息的方法,极大地降低了匹配效率,而在KMP算法中,在匹配失败时依据匹配失败时已匹配的字符的个数,对字符串W进行最大量的移动,以减少匹配次数,提高匹配效率。
根据本实施例的一个示例,该定位模块还用于对匹配相符的待录入字符突出显示或将鼠标的光标移动至与该待录入字符邻接一个键入区,其中,突出显示的方式包括但不限于对匹配相符的待录入字符加粗显示、将该待录入字符的显示显色变更为预置颜色、对匹配相符的待录入字符高亮显示等等。
根据本实施例的一个示例,该根据影像文件在录单模板中定位的装置10还包括:
预选区域的第一确定模块,用于获取影像文件的显示区域中预设区域的坐标,将获取的坐标所对应的区域确定为该预选区域。
其中,上述预存模块还用于存储预设的影像文件的显示区域中预设的左上角的坐标和右下角的坐标,预选区域的第一确定模块根据这两个坐标即可确定该预选的矩形区域。该预选区域的第一确定模块为用户提供一影像模板的预设区域,由于对于同类别的纸质文件,例如同一公司的入职合同或者相同类别的保单合同,合同的格式一般都是固定的,即哪个位置填用户的个人信息、哪个位置填组织机构代码等公共字段的区域都是固定的,预先设置区域坐标可以快速的帮助用户选择影像文件上需要录入的内容。
根据本实施例的一个示例,该根据影像文件在录单模板中定位的装置10还包括:
预选区域的第二确定模块,用于接收输入的影像文件的选择区域,将接收的区域确定为预选区域。
该预选区域的第二确定模块通过接收用户(录单员)输入的影像文件的 选择区域,提供了让用户自己选择预选区域的权限,使得当预先设置的预设区域的坐标不准确,或者由于扫描纸质文件时文件摆放的不正、或拍摄的过程中拍摄的图片不符合规定时导致预先设置的预设区域的坐标无法呈现在影像文件中的对应位置,致使依据预先设置的坐标确定的预选区域内或者改区域附近显示的内容不是录单员需要录入的内容时,用户可以通过手动的选择所需要匹配的预选区域进行字符识别,以在录单模板中匹配并显示匹配相符的待录入字符。
作为可选地,该匹配模块12还包括:
字符获取单元,用于获取预设的录单模板中的待录入字符;
判断单元,用于当识别到的所述字符中包含有获取的所述待录入字符时,判断所述识别到的字符与获取的所述待录入字符匹配相符。
更进一步地,该根据影像文件在录单模板中定位的装置还包括:
单号接收模块,用于接收该影像文件的文件单号;
模板获取模块,用于根据预设的文件单号与录单模板的类型标识的映射关系,获取对应类型的录单模板;
该匹配模块还用于在获取的录单模板中匹配与识别到的字符相符的待录入字符。
根据本实施例的另一个示例,上述显示模块14还用于将该影像文件与该录单模板中匹配相符的待录入字符分屏显示。
根据本申请的一个实施例提供的一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,该处理器执行该计算机可读指令时实现上述根据影像文件在录单模板中定位的方法。
在一个实施例中,提供了一种计算机设备,包括存储器和一个或多个处理器,存储器中存储有计算机可读指令,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:识别影像文件中预选区域内的字符;根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符;将录单模板定位到匹配相符的待录入字符;及显示影像文件的 预选区域及定位到的待录入字符。
在一个实施例中,一个或多个处理器执行识别影像文件中预选区域内的字符的步骤之前,一个或多个处理器还执行以下步骤:获取影像文件的显示区域中预设区域的坐标,将获取的坐标所对应的区域确定为预选区域。
在一个实施例中,一个或多个处理器执行识别影像文件中预选区域内的字符的步骤之前,一个或多个处理器还执行以下步骤:接收输入的影像文件的选择区域,将接收的区域确定为预选区域。
在一个实施例中,一个或多个处理器执行根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符的步骤,包括:获取预设的录单模板中的待录入字符;及当识别到的字符中包含有获取的待录入字符时,判断识别到的字符与获取的待录入字符匹配相符。
在一个实施例中,一个或多个处理器执行根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符的步骤之前,一个或多个处理器还执行以下步骤:接收影像文件的文件单号;根据预设的文件单号与录单模板的类型标识的映射关系,获取对应类型的录单模板;及在获取的录单模板中匹配与识别到的字符相符的待录入字符。
其中上述预选区域的第一确定模块及预选区域的第二确定模块中的“第一”和“第二”的意义仅在于将两个预选区域的确定模块加以区分,并不用于限定哪个预选区域的确定模块的优先级更高或者其它的限定意义。
本实施例通过识别影像文件中预选区域内的字符,根据识别到的字符在录单模板的待录入字符进行匹配,将匹配成功的字符定位并与影像文件的上述预选区域对应显示,使得用户只需要在影像文件中确定一预选区域,不需要自己查找,系统就可以直接将录单模板定位到对应的待录入字符,以便于用户对照该预选区域及该区域附近显示的内容,根据定位的待录入字符在录单模板中输入对应的信息,给用户带来便利的同时提高用户的工作效率。
图6为根据本申请的一个实施例的计算机设备的示范性结构框图,如图6所示,该计算机设备包括通过系统总线连接的处理器、非易失性存储介质、 内存储器、输入装置和显示屏。
其中,该计算机设备的非易失性存储介质可存储操作系统和计算机可读指令,该计算机可读指令被执行时,可使得处理器执行本申请各实施例的一种根据影像文件在录单模板中定位的方法,该方法的具体实现过程可参考图1至图4中各实施例的具体内容,在此不再赘述。该计算机设备的处理器用于提供计算和控制能力,支撑整个计算机设备的运行。该内存储器中可储存有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行一种根据影像文件在录单模板中定位的方法。计算机设备的输入装置用于各个参数的输入,计算机设备的显示屏用于进行显示。
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。
在一个实施例中,提供了一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:识别影像文件中预选区域内的字符;根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符;将录单模板定位到匹配相符的待录入字符;及显示影像文件的预选区域及定位到的待录入字符。
在一个实施例中,一个或多个处理器执行识别影像文件中预选区域内的字符的步骤之前,一个或多个处理器还执行以下步骤:获取影像文件的显示区域中预设区域的坐标,将获取的坐标所对应的区域确定为预选区域。
在一个实施例中,一个或多个处理器执行识别影像文件中预选区域内的 字符的步骤之前,一个或多个处理器还执行以下步骤:接收输入的影像文件的选择区域,将接收的区域确定为预选区域。
在一个实施例中,一个或多个处理器执行根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符的步骤,包括:获取预设的录单模板中的待录入字符;及当识别到的字符中包含有获取的待录入字符时,判断识别到的字符与获取的待录入字符匹配相符。
在一个实施例中,一个或多个处理器执行根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符的步骤之前,一个或多个处理器还执行以下步骤:接收影像文件的文件单号;根据预设的文件单号与录单模板的类型标识的映射关系,获取对应类型的录单模板;及在获取的录单模板中匹配与识别到的字符相符的待录入字符。
其中上述预选区域的第一确定模块及预选区域的第二确定模块中的“第一”和“第二”的意义仅在于将两个预选区域的确定模块加以区分,并不用于限定哪个预选区域的确定模块的优先级更高或者其它的限定意义。
本实施例通过识别影像文件中预选区域内的字符,根据识别到的字符在录单模板的待录入字符进行匹配,将匹配成功的字符定位并与影像文件的上述预选区域对应显示,使得用户只需要在影像文件中确定一预选区域,不需要自己查找,系统就可以直接将录单模板定位到对应的待录入字符,以便于用户对照该预选区域及该区域附近显示的内容,根据定位的待录入字符在录单模板中输入对应的信息,给用户带来便利的同时提高用户的工作效率。
根据本实施例的一个示例,上述实施例方法中的全部或部分流程,可以通过计算机可读指令来指令相关的硬件来完成,所述计算机可读指令可存储于一计算机可读取存储介质中,如本申请实施例中,该计算机可读指令可存储于计算机系统的存储介质中,并被该计算机系统中的至少一个处理器执行,以实现包括如上述各方法的实施例的流程。该存储介质包括但不限于磁碟、优盘、光盘、只读存储记忆体(Read-Only Memory,ROM)。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未 对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种根据影像文件在录单模板中定位的方法,包括:
    识别影像文件中预选区域内的字符;
    根据预设的录单模板的待录入字符,匹配与所述识别到的字符相符的待录入字符;
    将所述录单模板定位到匹配相符的待录入字符;及
    显示所述影像文件的预选区域及定位到的所述待录入字符。
  2. 根据权利要求1所述的方法,其特征在于,所述识别影像文件中预选区域内的字符之前,还包括:
    获取影像文件的显示区域中预设区域的坐标,将获取的坐标所对应的区域确定为预选区域。
  3. 根据权利要求1所述的方法,其特征在于,所述识别影像文件中预选区域内的字符之前,还包括:
    接收输入的影像文件的选择区域,将接收的区域确定为预选区域。
  4. 根据权利要求1所述的方法,其特征在于,所述根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符,包括:
    获取预设的录单模板中的待录入字符;及
    当识别到的所述字符中包含有获取的所述待录入字符时,判断所述识别到的字符与获取的所述待录入字符匹配相符。
  5. 根据权利要求1至4任一项所述的方法,其特征在于,在所述根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符之前,所述方法还包括:
    接收所述影像文件的文件单号;
    根据预设的文件单号与录单模板的类型标识的映射关系,获取对应类型的录单模板;及
    在获取的录单模板中匹配与识别到的字符相符的待录入字符。
  6. 根据权利要求1至4任一项所述的方法,其特征在于,所述方法还包 括:
    将所述影像文件与所述录单模板中匹配相符的待录入字符分屏显示。
  7. 一种根据影像文件在录单模板中定位的装置,所述装置包括:
    字符识别模块,用于识别影像文件中预选区域内的字符;
    匹配模块,用于根据预设的录单模板的待录入字符,匹配与所述识别到的字符相符的待录入字符;
    定位模块,用于将所述录单模板定位到匹配相符的待录入字符;及
    显示模块,用于显示所述影像文件的预选区域及定位到的所述待录入字符。
  8. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    预选区域的第一确定模块,用于获取影像文件的显示区域中预设区域的坐标,将获取的坐标所对应的区域确定为预选区域;及
    预选区域的第二确定模块,用于接收输入的影像文件的选择区域,将接收的区域确定为预选区域。
  9. 根据权利要求7所述的装置,其特征在于,所述匹配模块包括:
    字符获取单元,用于获取预设的录单模板中的待录入字符;及
    判断单元,用于当识别到的所述字符中包含有获取的所述待录入字符时,判断所述识别到的字符与获取的所述待录入字符匹配相符。
  10. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    单号接收模块,用于接收所述影像文件的文件单号;
    模板获取模块,用于根据预设的文件单号与录单模板的类型标识的映射关系,获取对应类型的录单模板;及
    所述匹配模块还用于在获取的录单模板中匹配与识别到的字符相符的待录入字符。
  11. 一种计算机设备,包括存储器和一个或多个处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    识别影像文件中预选区域内的字符;
    根据预设的录单模板的待录入字符,匹配与所述识别到的字符相符的待录入字符;
    将所述录单模板定位到匹配相符的待录入字符;及
    显示所述影像文件的预选区域及定位到的所述待录入字符。
  12. 根据权利要求11所述的计算机设备,其特征在于,所述一个或多个处理器执行所述识别影像文件中预选区域内的字符的步骤之前,所述一个或多个处理器还执行以下步骤:
    获取影像文件的显示区域中预设区域的坐标,将获取的坐标所对应的区域确定为预选区域。
  13. 根据权利要求11所述的计算机设备,其特征在于,所述一个或多个处理器执行所述识别影像文件中预选区域内的字符的步骤之前,所述一个或多个处理器还执行以下步骤:
    接收输入的影像文件的选择区域,将接收的区域确定为预选区域。
  14. 根据权利要求11所述的计算机设备,其特征在于,所述一个或多个处理器执行所述根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符的步骤,包括:
    获取预设的录单模板中的待录入字符;及
    当识别到的所述字符中包含有获取的所述待录入字符时,判断所述识别到的字符与获取的所述待录入字符匹配相符。
  15. 根据权利要求11所述的计算机设备,其特征在于,所述一个或多个处理器执行所述根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符的步骤之前,所述一个或多个处理器还执行以下步骤:
    接收所述影像文件的文件单号;
    根据预设的文件单号与录单模板的类型标识的映射关系,获取对应类型的录单模板;及
    在获取的录单模板中匹配与识别到的字符相符的待录入字符。
  16. 一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    识别影像文件中预选区域内的字符;
    根据预设的录单模板的待录入字符,匹配与所述识别到的字符相符的待录入字符;
    将所述录单模板定位到匹配相符的待录入字符;及
    显示所述影像文件的预选区域及定位到的所述待录入字符。
  17. 根据权利要求16所述的存储介质,其特征在于,所述一个或多个处理器执行所述识别影像文件中预选区域内的字符的步骤之前,所述一个或多个处理器还执行以下步骤:
    获取影像文件的显示区域中预设区域的坐标,将获取的坐标所对应的区域确定为预选区域。
  18. 根据权利要求16所述的存储介质,其特征在于,所述一个或多个处理器执行所述识别影像文件中预选区域内的字符的步骤之前,所述一个或多个处理器还执行以下步骤:
    接收输入的影像文件的选择区域,将接收的区域确定为预选区域。
  19. 根据权利要求16所述的存储介质,其特征在于,所述一个或多个处理器执行所述根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符的步骤,包括:
    获取预设的录单模板中的待录入字符;及
    当识别到的所述字符中包含有获取的所述待录入字符时,判断所述识别到的字符与获取的所述待录入字符匹配相符。
  20. 根据权利要求16所述的存储介质,其特征在于,所述一个或多个处理器执行所述根据预设的录单模板的待录入字符,匹配与识别到的字符相符的待录入字符的步骤之前,所述一个或多个处理器还执行以下步骤:
    接收所述影像文件的文件单号;
    根据预设的文件单号与录单模板的类型标识的映射关系,获取对应类型的录单模板;及
    在获取的录单模板中匹配与识别到的字符相符的待录入字符。
PCT/CN2017/108004 2017-07-25 2017-10-27 根据影像文件在录单模板中定位的方法、装置及相关设备 Ceased WO2019019446A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710614422.1A CN107688805A (zh) 2017-07-25 2017-07-25 根据影像文件在录单模板中定位的方法、装置及相关设备
CN201710614422.1 2017-07-25

Publications (1)

Publication Number Publication Date
WO2019019446A1 true WO2019019446A1 (zh) 2019-01-31

Family

ID=61152998

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108004 Ceased WO2019019446A1 (zh) 2017-07-25 2017-10-27 根据影像文件在录单模板中定位的方法、装置及相关设备

Country Status (2)

Country Link
CN (1) CN107688805A (zh)
WO (1) WO2019019446A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110942069A (zh) * 2019-10-22 2020-03-31 云南大学 车险保单的关键信息提取方法、装置、存储介质及设备
CN113130023A (zh) * 2021-04-22 2021-07-16 嘉兴易迪希计算机技术有限公司 Edc系统中图文识别录入方法及系统
CN113920519A (zh) * 2021-10-11 2022-01-11 国网河北省电力有限公司衡水供电分公司 文件检测方法、终端设备及存储介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502656A (zh) * 2018-05-16 2019-11-26 珠海金山办公软件有限公司 一种查找方法、装置、电子设备及可读存储介质
CN108962357A (zh) * 2018-06-28 2018-12-07 深圳开立生物医疗科技股份有限公司 一种注释方法、系统、设备及计算机可读存储介质
CN109409401A (zh) * 2018-08-30 2019-03-01 深圳市买买提信息科技有限公司 一种信息核对方法、装置和系统
CN109542899A (zh) * 2018-10-31 2019-03-29 桂林金发明科技开发有限公司 一种基于靶符号的数据自动录入方法及系统
CN109635265A (zh) * 2018-11-29 2019-04-16 济南荣耀合创电力科技有限公司 一种基于图像识别的试验报告生成系统
CN109840469B (zh) * 2018-12-13 2023-10-24 中国平安财产保险股份有限公司 基于图像识别的保单录入方法和相关装置
CN112668298A (zh) * 2021-01-15 2021-04-16 上海杉互健康科技有限公司 基于移动终端的问卷录入方法、系统、设备及存储介质
CN114594894B (zh) * 2022-02-25 2024-07-02 青岛海信移动通信技术有限公司 界面元素的标记方法及终端设备、存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455479A (zh) * 2012-05-28 2013-12-18 中兴通讯股份有限公司 一种新建联系人的方法及终端
CN104408403A (zh) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 一种二次录入不一致的仲裁方法及装置
CN104680129A (zh) * 2015-01-08 2015-06-03 百度在线网络技术(北京)有限公司 一种为用户提供信息的方法与装置
CN105095842A (zh) * 2014-05-22 2015-11-25 阿里巴巴集团控股有限公司 一种单据的信息识别的方法和装置
CN105094329A (zh) * 2015-07-23 2015-11-25 武汉沃思财务外包服务有限公司 数据录入方法、装置及应用其的电子设备
CN106933870A (zh) * 2015-12-29 2017-07-07 平安科技(深圳)有限公司 投保资料的录单方法及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968627A (zh) * 2011-08-31 2013-03-13 上海夏尔软件有限公司 基于区域关键字位置识别的精确图像切分方法
CN104636117A (zh) * 2013-11-12 2015-05-20 江苏奥博洋信息技术有限公司 一种表格图像的自动切分方法
CN104112128B (zh) * 2014-06-19 2018-01-26 中国工商银行股份有限公司 应用于票据影像字符识别的数字图像处理系统及方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455479A (zh) * 2012-05-28 2013-12-18 中兴通讯股份有限公司 一种新建联系人的方法及终端
CN105095842A (zh) * 2014-05-22 2015-11-25 阿里巴巴集团控股有限公司 一种单据的信息识别的方法和装置
CN104408403A (zh) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 一种二次录入不一致的仲裁方法及装置
CN104680129A (zh) * 2015-01-08 2015-06-03 百度在线网络技术(北京)有限公司 一种为用户提供信息的方法与装置
CN105094329A (zh) * 2015-07-23 2015-11-25 武汉沃思财务外包服务有限公司 数据录入方法、装置及应用其的电子设备
CN106933870A (zh) * 2015-12-29 2017-07-07 平安科技(深圳)有限公司 投保资料的录单方法及系统

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110942069A (zh) * 2019-10-22 2020-03-31 云南大学 车险保单的关键信息提取方法、装置、存储介质及设备
CN113130023A (zh) * 2021-04-22 2021-07-16 嘉兴易迪希计算机技术有限公司 Edc系统中图文识别录入方法及系统
CN113130023B (zh) * 2021-04-22 2023-04-07 嘉兴易迪希计算机技术有限公司 Edc系统中图文识别录入方法及系统
CN113920519A (zh) * 2021-10-11 2022-01-11 国网河北省电力有限公司衡水供电分公司 文件检测方法、终端设备及存储介质

Also Published As

Publication number Publication date
CN107688805A (zh) 2018-02-13

Similar Documents

Publication Publication Date Title
WO2019019446A1 (zh) 根据影像文件在录单模板中定位的方法、装置及相关设备
JP2021057783A5 (ja) 情報処理装置、情報処理装置の制御方法及びそのプログラム
US20170192774A1 (en) Management apparatus, management system, management method, and non-transitory computer readable medium
US20170124397A1 (en) Photographic Image Extraction Apparatus, Photographic Image Extraction Method, and Program
US11153446B2 (en) Information processing apparatus for presenting an object for a batch operation without selection in advance and non-transitory computer readable medium
JP2015170014A (ja) 画像処理装置及びプログラム
JP6521856B2 (ja) 情報処理装置、プログラム、及び情報処理方法
US8413037B2 (en) User selection of flaw present within digitally scanned document
JP6917688B2 (ja) 帳票読取装置、帳票読取方法、プログラム、および帳票読取システム
JP2021016024A (ja) 情報処理装置、情報処理装置の制御方法、及びプログラム
CN116991270A (zh) 应用功能界面进入方法、装置、电子设备及存储介质
US9077872B2 (en) Document management apparatus and document management method
US11163992B2 (en) Information processing apparatus and non-transitory computer readable medium
JP6122357B2 (ja) 情報処理装置、文書合成システム、情報処理方法、及びプログラム
US11055886B2 (en) Methods and systems for automatic filling of colors in outline images at a multi-function device
JP5883837B2 (ja) 電子アルバム用人物画像決定装置ならびにその制御方法,その制御プログラムおよびその制御プログラムを格納した記録媒体
US11462014B2 (en) Information processing apparatus and non-transitory computer readable medium
US12192420B2 (en) Apparatus and computer readable medium for executing process related to electronic document
JP6789776B2 (ja) 情報処理装置、情報処理方法及びプログラム
US9912834B2 (en) Document camera device and cutout assistance method
US11914654B2 (en) Document management apparatus, document management system, and non-transitory computer readable medium storing program
US9753640B2 (en) Communication apparatus, control apparatus, method of controlling input unit, and medium
KR102891777B1 (ko) 특정 전자 서재를 통해 독서 통합 정보를 제공하는 방법 및 이를 이용한 서버
CN116402026B (zh) 应用内容批注方法、装置、设备以及存储介质
JP6795770B2 (ja) 情報処理装置と、その処理方法及びプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17918965

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17918965

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05/08/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17918965

Country of ref document: EP

Kind code of ref document: A1