Image detection method, device, equipment and storage medium
By performing preliminary posture correction on ID card and bank card images, the problem of low text recognition accuracy caused by insufficient posture correction in the existing technology is solved, and higher text recognition accuracy is achieved.
Patent Information
- Application Number
- CN201911148894.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-11-21
AI Technical Summary
With the existing technology, when the number of users increases, manual verification of ID card and bank card images is difficult to meet real-time requirements, and document posture correction cannot ensure that the target document is adjusted to the preset standard posture, resulting in a low text recognition accuracy rate.
By obtaining the detection image of the target file image, determining its position information in the detection image and the position information of the preset anchor point, performing preliminary posture correction based on the relative relationship, and rotating the target image so that its posture reaches or is close to the preset standard posture. And perform image post-processing to improve text recognition accuracy.
Through preliminary posture correction, the difficulty of image post-processing is reduced and the accuracy of text recognition is significantly improved.
Smart Images

Figure CN111767916B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer software, and in particular to an image detection method, apparatus, device and storage medium. Background Art
[0002] With the improvement of security awareness, many platforms, especially financial and wealth management product platforms, usually require users to upload ID card images, bank card images, etc. when registering, and then complete the user identity verification based on the ID card images, bank card images and other identity information uploaded by the user.
[0003] In the process of realizing the present invention, the inventors found that the prior art has at least the following problems: with the increase in the number of users, it is difficult to meet the real-time requirements of users for manual verification of identity card images and bank card images, and therefore automatic identification technology for document information has emerged, such as scene text detection (An Efficient and Accurate Scene Text Detector, referred to as EAST), natural scene text detection (Connectionist Text Proposal Network, referred to as CTPN) optical character recognition (OCR), etc. However, the accuracy of the text recognition results of these detection technologies are affected by the document posture, and the document posture correction of the prior art only adjusts the inclined edge line to the horizontal edge line, but cannot guarantee that the target document is adjusted to a preset standard posture so that the text on it is in a positive posture, resulting in a very low accuracy rate of text recognition. Summary of the invention
[0004] The embodiments of the present invention provide an image detection method, apparatus, device and storage medium to improve the accuracy of text recognition in target file images.
[0005] In a first aspect, an embodiment of the present invention provides an image detection method, comprising:
[0006] Acquire a detection image containing a target file image;
[0007] Determine first position information of the target document image in the detection image and second position information of a preset anchor point in the target document image;
[0008] According to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information, a preliminary posture correction of the target file image is completed to obtain a target image;
[0009] The target image is post-processed to obtain the desired target content.
[0010] In a second aspect, an embodiment of the present invention further provides an image detection device, including:
[0011] An acquisition module, used for acquiring a detection image containing a target file image;
[0012] A position information determination module, used to determine first position information of the target document image in the detection image and second position information of a preset anchor point in the target document image;
[0013] A preliminary correction module, configured to complete preliminary posture correction of the target file image to obtain a target image according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information;
[0014] The post-processing module is used to perform image post-processing on the target image to obtain the desired target content.
[0015] In a third aspect, an embodiment of the present invention further provides a computer device, the device comprising:
[0016] one or more processors;
[0017] A storage device for storing one or more programs;
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the image detection method as described in any embodiment.
[0019] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the image detection method as described in any embodiment when executed by a computer processor.
[0020] The technical solution of the image detection method provided by the embodiment of the present invention includes: obtaining a detection image containing a target document image; determining the first position information of the target document image in the detection image and the second position information of a preset anchor point in the target document image; rotating the target document image or the detection image according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target document of the preset standard posture and the second position information, completing the preliminary posture correction of the target document image to obtain the target image; performing image post-processing on the target image to obtain the desired target content. The preliminary posture correction makes the posture of the target document image contained in the target image reach or approach the preset standard posture of the target document, which helps to reduce the difficulty of image post-processing and improve the accuracy of text recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of an image detection method provided by Embodiment 1 of the present invention;
[0023] Figure 2 Schematic diagram of a scanned copy of an ID card (detection image) provided in Embodiment 1 of the present invention;
[0024] Figure 3A Schematic diagram of an ID card image (target document image) provided in Embodiment 1 of the present invention;
[0025] Figure 3B is a schematic diagram of a target image obtained through preliminary posture correction provided by the first embodiment of the present invention;
[0026] Figure 4 is a flow chart of an image detection method provided by Embodiment 2 of the present invention;
[0027] Figure 5 is a schematic diagram of a contour point provided by the second embodiment of the present invention as a corner point;
[0028] Figure 6 is a structural block diagram of an image detection device provided by Embodiment 3 of the present invention;
[0029] Figure 7 is a structural block diagram of another image detection device provided in Embodiment 3 of the present invention;
[0030] Figure 8 It is a structural block diagram of a computer device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described through implementation methods with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] Embodiment 1
[0033] Figure 1: is a flow chart of the image detection method provided by the first embodiment of the present invention. The technical solution of this embodiment is applicable to the case of identifying text information in a target file with a large rotation angle. The method can be executed by the image detection device provided by the embodiment of the present invention, and the device can be implemented in software and / or hardware and configured in a processor for application. The method specifically includes the following steps:
[0034] S101, obtaining a detection image including a target file image.
[0035] The target file is a file containing target text content to be identified, such as identity cards, passports, bank cards and other documents or cards.
[0036] The detected image is an image in any form such as a photo image or a scanned document of the target document.
[0037] S102: Determine first position information of a target document image in a detection image and second position information of a preset anchor point in the target document image.
[0038] The preset anchor point is preferably a fixed logo image, whose position in the target file is fixed, such as the national emblem image on an ID card or a bank card.
[0039] It is understandable that, due to the placement of the image, the target document image in the detection image may present a certain rotation angle. Taking the scanned copy of the ID card as an example, the target document image 11 may be located in the middle of the detection image 1, or may be located in the upper left, upper right, lower left or lower right of the detection image 1. Figure 2 As shown, in the ID card scan (detection image 1), the ID card image (target document image 11) is located at the lower right of the scan. For an ID card in a preset standard posture, the national emblem (preset anchor point 111) is located at the upper left of the ID card. In this scan, the national emblem is located at the lower right of the ID card, that is, the ID card image is rotated to the right by a rotation angle greater than 90 degrees relative to the ID card in the preset standard posture, which is a large-angle rotation in the field of text recognition.
[0040] When recognizing the text content of the target document image, if the target document image is rotated at a large angle relative to the preset standard posture of the target document, the accuracy of text recognition will be reduced. Therefore, the target document image needs to be rotated to the preset standard posture or close to the preset standard posture.
[0041] Before rotating the target document to the preset standard posture or close to the preset standard posture, the present embodiment first determines the first position information of the target document image 11 in the detection image 1, and the second position information of the preset anchor point 111 in the target document image 11. Preferably, the present embodiment inputs the detection image into a trained target detection model to obtain the first position information of the target document image in the detection image and the second position information of the preset anchor point in the target document image.
[0042] by Figure 2 For example, determine the position of the ID card image in the scanned copy, and the position of the Chinese emblem in the scanned copy in the ID card image.
[0043] S103, completing preliminary posture correction of the target file image to obtain the target image according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information.
[0044] After obtaining the first position information and the second position information, the detection image 1 can be rotated according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information, thereby completing the preliminary posture correction of the target file image 11 to obtain the target image. Through the preliminary posture correction, the posture of the target image reaches or approaches the preset standard posture of the target file.
[0045] For example, Figure 2 For example, after the position of the ID card image in the scan and the position of the national emblem in the ID card image are determined, the rotation matrix corresponding to the scan is determined according to the position of the ID card image in the scan, the position of the national emblem in the ID card image and the actual position of the national emblem on the ID card. The scan is rotated according to the rotation matrix to complete the preliminary posture correction of the ID card image, thereby obtaining a target image, the posture of which reaches or is close to the preset standard posture of the target file.
[0046] Optionally, after obtaining the first position information and the second position information, the target document image 11 may also be extracted from the detection image 1 according to the first position information, see Figure 3A As shown, the target document image 11 is then rotated according to the relative relationship between the actual position of the preset anchor point 111 in the target document of the preset standard posture and the second position information, thereby completing the preliminary correction of the target document image 11 to obtain the target image, see Figure 3B Through preliminary posture correction, the posture of the target image is made to reach or approach the preset standard posture of the target file.
[0047] For example, Figure 2For example, after the position of the ID card image in the scan and the position of the national emblem in the ID card image are determined, the ID card image is extracted from the scan according to the position of the ID card image in the scan, and then the rotation matrix corresponding to the ID card image is determined according to the position of the national emblem in the ID card image and the actual position of the national emblem on the ID card. The ID card image is rotated according to the rotation matrix to complete the preliminary posture correction of the ID card image, thereby obtaining a target image, the posture of which reaches or is close to the preset standard posture of the target file.
[0048] Optionally, this embodiment can input the detection image into a trained target detection model, and the target detection model can determine the first position information of the target file image in the detection image, extract the target file image from the detection image based on the first position information, and obtain the second position information of the preset anchor point in the target file image.
[0049] Among them, the target detection model can be established based on the existing machine learning method, and this embodiment does not make any specific limitations here.
[0050] S104: Perform image post-processing on the target image to obtain the desired target content.
[0051] Among them, image post-processing at least includes recognition of target text content, and sometimes may also include noise reduction processing according to actual conditions.
[0052] Since the rotation angle of the target image relative to the target file of the preset standard posture is very small, it is relatively easy to perform text recognition operation on the target image to obtain the required target text content.
[0053] The technical solution of the image detection method provided by the embodiment of the present invention includes: obtaining a detection image containing a target document image; determining the first position information of the target document image in the detection image and the second position information of a preset anchor point in the target document image; rotating the target document image or the detection image according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target document of the preset standard posture and the second position information, completing the preliminary posture correction of the target document image to obtain the target image; performing image post-processing on the target image to obtain the desired target content. The preliminary posture correction makes the posture of the target document image contained in the target image reach or approach the preset standard posture of the target document, which helps to reduce the difficulty of image post-processing and improve the accuracy of text recognition.
[0054] Embodiment 2
[0055] Figure 4This is a flow chart of the image detection method provided by the second embodiment of the present invention. Based on the above embodiment, the embodiment of the present invention adds a step of fine-tuning the posture of the target image through the coordinates of multiple contour points of the target file image to update the target image.
[0056] S201, obtaining a detection image including a target file image.
[0057] S202: Determine first position information of a target document image in a detection image and second position information of a preset anchor point in the target document image.
[0058] S203, completing preliminary posture correction of the target file image to obtain the target image according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information.
[0059] S204, inputting the target image into the trained contour point regression model to obtain a plurality of preset contour point coordinates of the target file image, completing posture fine-tuning of the target image according to the plurality of preset contour point coordinates to update the target image.
[0060] In order to reduce the difficulty of image post-processing and improve the accuracy of text recognition, before performing image post-processing on the target image, the coordinates of multiple preset contour points of the target file image in the target image are first determined, see Figure 5 , and then the posture fine-tuning of the target image is completed according to the coordinates of multiple preset contour points to update the target image.
[0061] The present embodiment preferably determines the coordinates of multiple preset contour points of the target document image in the target image through the trained contour point regression model. The multiple preset contour point coordinates can be determined according to actual conditions. The multiple preset contour point coordinates of the present embodiment are preferably the coordinates of the four corner points of the target document image.
[0062] The contour point regression model can be established based on the machine learning method of the prior art, and this embodiment does not make any specific limitation on it.
[0063] During posture fine-tuning, the present embodiment preferably determines the posture transformation matrix of the target image according to the positional relationship between multiple preset contour points of the target file of the preset standard posture, and then rotates the target image according to the posture transformation matrix, thereby completing the posture fine-tuning of the target image to update the target image. The posture fine-tuning makes the posture of the target file image in the target image consistent with the preset standard posture of the target file.
[0064] If a plurality of preset contour points are four corner points of the target file image, and the vertical coordinates of the two corner points of the same horizontal side of the target file with the preset standard posture are the same and the horizontal coordinates of the two corner points of the same vertical side are the same, then according to the obtained four corner point coordinates and the vertical coordinates of the two corner points of the same horizontal side of the target file with the preset standard posture are the same and the horizontal coordinates of the two corner points of the same vertical side are the same, the posture transformation matrix of the target image is determined, and then the target image is rotated according to the posture transformation matrix, thereby completing the posture fine-tuning of the target image to update the target image. The posture fine-tuning makes the posture of the target file image in the target image consistent with the preset standard posture of the target file.
[0065] After the updated target image is obtained, the coordinates of multiple preset contour points after posture fine-tuning are also obtained. The mapping matrix is determined according to the correspondence between the coordinates of multiple preset contour points of the target image before updating and the coordinates of multiple preset contour points of the target image after updating. Then, the updated target image is perspective transformed according to the mapping matrix, thereby eliminating the perspective deformation of the current target image to update the target image again.
[0066] S205: Perform image post-processing on the target image to obtain the desired target content.
[0067] This embodiment completes the posture fine-tuning of the target image based on the positional relationship between multiple preset contour points of the target file image in the target image, so that the target file image in the target image reaches the preset standard posture of the target file, thereby further reducing the difficulty of image post-processing and improving the accuracy of text recognition.
[0068] Embodiment 4
[0069] Figure 6 : is a structural block diagram of an image detection device provided in Embodiment 4 of the present invention. The device is used to execute the image detection method provided in any of the above embodiments, and the device can be implemented in software or hardware. The device includes:
[0070] An acquisition module 11 is used to acquire a detection image including a target file image;
[0071] A position information determination module 12, used to determine first position information of a target document image in a detection image and second position information of a preset anchor point in the target document image;
[0072] A preliminary correction module 13 is used to complete preliminary posture correction of the target file image to obtain the target image according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information;
[0073] The post-processing module 14 is used to perform image post-processing on the target image to obtain the desired target content.
[0074] The preliminary correction module 13 can be specifically used to rotate the detected image according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information, and complete the preliminary posture correction of the target file image to obtain the target image.
[0075] The preliminary correction module 13 can be specifically used to extract the target document image from the detection image according to the first position information; rotate the target document image according to the relative relationship between the actual position information of the preset anchor point in the target document of the preset standard posture and the second position information, and complete the preliminary correction of the target document image to obtain the target image.
[0076] like Figure 7 As shown, the device also includes a posture fine-tuning module 131, which is used to input the target image into the trained contour point regression model to obtain multiple preset contour point coordinates of the target file image; and complete the posture fine-tuning of the target image according to the preset contour point coordinates to update the target image.
[0077] like Figure 7 As shown, the device also includes a perspective elimination module 132, which is used to determine a mapping matrix based on multiple preset contour point coordinates of the target image before updating and corresponding multiple preset contour point coordinates of the target image after updating; and perform perspective transformation on the current target image according to the mapping matrix to eliminate the perspective deformation of the current target image.
[0078] The technical solution of the image detection device provided by the embodiment of the present invention is to obtain a detection image containing a target file image through an acquisition module; determine the first position information of the target file image in the detection image and the second position information of the preset anchor point in the target file image through a position information determination module; complete the preliminary posture correction of the target file image to obtain the target image according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information through a preliminary correction module; and perform image post-processing on the target image through a post-processing module to obtain the desired target content. The preliminary posture correction makes the posture of the target file image contained in the target image reach or approach the preset standard posture of the target file, which helps to reduce the difficulty of image post-processing and improve the accuracy of text recognition.
[0079] The image detection device provided in the embodiment of the present invention can execute the image detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0080] Embodiment 4
[0081] Figure 8 A schematic diagram of the structure of a computer device provided in Embodiment 4 of the present invention is shown in FIG. Figure 8 As shown, the device includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of processors 201 in the device can be one or more. Figure 8 A processor 201 is taken as an example; the processor 201, the memory 202, the input device 203 and the output device 204 in the device can be connected by a bus or other means. Figure 8 The example of connecting through bus is taken in the following.
[0082] The memory 202, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the image detection method in the embodiment of the present invention (for example, the acquisition module 11, the position information determination module 12, the preliminary correction module 13 and the post-processing module 14). The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 202, that is, realizes the above-mentioned image detection method.
[0083] The memory 202 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 202 may further include a memory remotely arranged relative to the processor 201, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0084] The input device 203 may be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the device.
[0085] The output device 204 may include a display device such as a display screen, for example, a display screen of a user terminal.
[0086] Embodiment 5
[0087] Embodiment 5 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute an image detection method when executed by a computer processor, the method comprising:
[0088] Acquire a detection image containing a target file image;
[0089] Determine first position information of the target document image in the detection image and second position information of a preset anchor point in the target document image;
[0090] According to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information, a preliminary posture correction of the target file image is completed to obtain a target image;
[0091] The target image is post-processed to obtain the desired target content.
[0092] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the image detection method provided by any embodiment of the present invention.
[0093] Through the above description of the implementation mode, the technicians in the field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation mode. Based on such an understanding, the technical solution of the present invention can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer's floppy disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (RandomAccess Memory, referred to as RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform the image detection method described in each embodiment of the present invention.
[0094] It is worth noting that in the embodiment of the above-mentioned image detection device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0095] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. An image detection method, characterized in that: include: Acquire a detection image containing a target file image; Determine first position information of the target document image in the detection image and second position information of a preset anchor point in the target document image, wherein the target document image is a rectangular image, and the preset anchor point is a fixed logo image located at a corner of the target document image; According to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information, a preliminary posture correction of the target file image is completed to obtain a target image; Performing image post-processing on the target image to obtain the desired target content; Before performing image post-processing on the target image to obtain the desired target content, the method further includes: Inputting the target image into a trained contour point regression model to obtain a plurality of preset contour point coordinates of the target file image; completing a posture fine-tuning of the target image according to the plurality of preset contour point coordinates to update the target image; The plurality of preset contour point coordinates are the coordinates of four corner points of the target file image, and the step of completing the posture fine-tuning of the target image according to the plurality of preset contour point coordinates to update the target image includes: Determine the attitude transformation matrix of the target image according to the coordinates of the four corner points and the fact that the vertical coordinates of the two corner points on the same horizontal side of the target file of the preset standard attitude are the same and the horizontal coordinates of the two corner points on the same vertical side are the same; Rotating the target image according to the posture transformation matrix, thereby completing posture fine-tuning of the target image to update the target image; Wherein, before performing image post-processing on the target image to obtain the desired target content, the method further includes: Determine a mapping matrix according to a correspondence between a plurality of preset contour point coordinates of the target image before updating and a plurality of preset contour point coordinates corresponding to the target image after updating; The current target image is perspective transformed according to the mapping matrix to eliminate the perspective deformation of the current target image.
2. The method according to claim 1, characterized in that According to the first position information, and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information, completing the preliminary posture correction of the target file image to obtain the target image, including: According to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information, the detection image is rotated to complete the preliminary posture correction of the target file image to obtain the target image.
3. The method according to claim 1, characterized in that According to the first position information, and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information, completing the preliminary posture correction of the target file image to obtain the target image, including: extracting a target file image from the detection image according to the first position information; According to the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information, the target file image is rotated to complete the preliminary correction of the target file image to obtain the target image.
4. The method according to any one of claims 1 to 3, characterized in that: The image post-processing includes recognition of target text content.
5. An image detection device, characterized in that: include: An acquisition module, used for acquiring a detection image containing a target file image; a position information determination module, used to determine first position information of the target document image in the detection image and second position information of a preset anchor point in the target document image, wherein the target document image is a rectangular image, and the preset anchor point is a fixed identification image located at a corner of the target document image; A preliminary correction module, configured to complete preliminary posture correction of the target file image to obtain a target image according to the first position information and the relative relationship between the actual position information of the preset anchor point in the target file of the preset standard posture and the second position information; A post-processing module, used for performing image post-processing on the target image to obtain the desired target content; The device further comprises a posture fine-tuning module, and the posture fine-tuning module is used for: Before performing image post-processing on the target image to obtain the desired target content, the target image is input into a trained contour point regression model to obtain a plurality of preset contour point coordinates of the target document image; completing a posture fine-tuning of the target image according to the plurality of preset contour point coordinates to update the target image; The plurality of preset contour point coordinates are the coordinates of four corner points of the target file image, and the step of completing the posture fine-tuning of the target image according to the plurality of preset contour point coordinates to update the target image includes: Determine the attitude transformation matrix of the target image according to the coordinates of the four corner points and the fact that the vertical coordinates of the two corner points on the same horizontal side of the target file of the preset standard attitude are the same and the horizontal coordinates of the two corner points on the same vertical side are the same; Rotating the target image according to the posture transformation matrix, thereby completing posture fine-tuning of the target image to update the target image; Wherein, before performing image post-processing on the target image to obtain the desired target content, the method further includes: Determine a mapping matrix according to a correspondence between a plurality of preset contour point coordinates of the target image before updating and a plurality of preset contour point coordinates corresponding to the target image after updating; The current target image is perspective transformed according to the mapping matrix to eliminate the perspective deformation of the current target image.
6. A computer device, characterized in that: The equipment includes: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the image detection method as described in any one of claims 1 to 4.
7. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to perform the image detection method according to any one of claims 1 to 4 when executed by a computer processor.
