CN113538449A - Image correction method, device, server and storage medium - Google Patents

Image correction method, device, server and storage medium Download PDF

Info

Publication number
CN113538449A
CN113538449A CN202010309721.6A CN202010309721A CN113538449A CN 113538449 A CN113538449 A CN 113538449A CN 202010309721 A CN202010309721 A CN 202010309721A CN 113538449 A CN113538449 A CN 113538449A
Authority
CN
China
Prior art keywords
image
outline
angle
target
sub
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.)
Pending
Application number
CN202010309721.6A
Other languages
Chinese (zh)
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.)
SF Technology Co Ltd
SF Tech Co Ltd
Original Assignee
SF Technology 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 SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN202010309721.6A priority Critical patent/CN113538449A/en
Publication of CN113538449A publication Critical patent/CN113538449A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/181Segmentation; Edge detection involving edge growing; involving edge linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Abstract

The embodiment of the application discloses an image correction method, an image correction device, a server and a storage medium, wherein the method comprises the following steps: preprocessing an initial image to be subjected to bar code identification to obtain a first image corresponding to a bar code identification area to be corrected; cutting the first image to obtain a second image; segmenting the second image into a plurality of subimages with preset number; calculating a target angle of the first image which needs to be rotated for correction according to the plurality of sub-images; and rotating the first image according to the target angle to obtain a corrected third image. The embodiment of the application provides an image correction method, which cuts off a region with large deformation in an initial image, reduces errors, obtains a target angle of the initial image needing to be rotated by using the center of gravity of the image, is simple in calculation and high in precision, and reduces manpower and material resources.

Description

Image correction method, device, server and storage medium
Technical Field
The application relates to the field of image recognition, in particular to an image correction method, an image correction device, a server and a storage medium.
Background
Because the barcode technology has the characteristics of accuracy, rapidness, convenience and economy, the barcode technology can easily permeate into various fields of automatic management, and algorithms for barcode identification are also endless. However, no matter which recognition algorithm is used to recognize the barcode, when the user captures the barcode image with the recognition device, the barcode image is often not captured from the optimal angle, which may result in a recognition failure.
However, in the method for correcting the surface sheet in the prior art, the angle of the surface sheet is completely random and has no rule; and the areas of the bar code and the waybill number have fuzzy, folding and shielding areas, so that the identification of the waybill is difficult, and the accuracy of correcting the angle is not high.
Disclosure of Invention
The embodiment of the application provides an image correction method, an image correction device, a server and a storage medium, and aims to solve the problems that an image correction method in the prior art is difficult to identify a face sheet and calculate a correction angle.
In a first aspect, the present application provides an image rectification method, including: preprocessing an initial image to be subjected to bar code identification to obtain a first image corresponding to a bar code identification area to be corrected;
cutting the first image to obtain a second image;
segmenting the second image into a plurality of sub-images with preset number;
calculating a target angle of the first image which needs to be rotated for correction according to the plurality of sub-images;
and rotating the first image according to the target angle to obtain a corrected third image.
Further, the cutting the first image to obtain a second image includes:
carrying out outline extraction processing on the first image to obtain a first outline image corresponding to the first image;
determining a plurality of corner points of the first outer contour image;
and cutting the first outline image according to the plurality of angular points to obtain a second outline image, wherein the second outline image is an outline image of the second image.
Further, the cutting the first outline image according to the plurality of corner points to obtain the second outline image includes:
determining a first angle between the first outline image and the horizontal direction or the vertical direction according to a target edge line in the first outline image;
and according to the first angle, cutting the first outline image to obtain a second outline image.
Further, the cutting the first outline image according to the first angle to obtain the second outline image includes:
comparing the first angle with a preset angle to obtain a comparison result;
according to the comparison result, taking a first target corner point corresponding to the target edge line as a starting point, and intersecting a line with the first outer contour image;
taking a second target corner point opposite to the first target corner point as a starting point, making another intersecting line to intersect with the first outer contour image, and dividing the first outer contour image into a plurality of areas;
and cutting a first target area adjacent to the first target corner point and a second target area adjacent to the second target corner point to obtain the second outline image.
Further, the segmenting the second image, and segmenting the second image into a plurality of sub-images of a preset number, includes:
determining a plurality of bisector points of the second outline image in the horizontal direction or the vertical direction;
and equally dividing the second outline image into a plurality of sub-images with preset quantity by utilizing the plurality of equally dividing points and the two intersecting lines.
Further, the calculating a target angle, which needs to be rotated, of the first image according to the plurality of sub-images includes:
respectively calculating the gravity centers corresponding to the sub-images;
connecting a plurality of the centers of gravity to obtain the image direction of the first image;
and calculating to obtain a target angle of the first image, which needs to be rotated, according to the image direction of the first image.
Further, calculating a target angle, which needs to be rotated for correcting the first image, according to the image direction of the first image, includes:
determining a first angle between the first image and a horizontal or vertical direction according to the image direction of the first image;
and calculating to obtain a target angle of the first image needing to be rotated according to the first angle.
In a second aspect, the present application provides an image rectification apparatus comprising:
the system comprises a preprocessing unit, a correction unit and a correction unit, wherein the preprocessing unit is used for preprocessing an initial image to be subjected to bar code identification to obtain a first image corresponding to a bar code identification area to be corrected;
the cutting unit is used for cutting the first image to obtain a second image;
the segmentation unit is used for segmenting the second image and segmenting the second image into a plurality of sub-images with preset number;
the angle calculation unit is used for calculating a target angle of the first image to be corrected and rotated according to the plurality of sub-images;
and the rotating unit is used for rotating the first image according to the target angle to obtain a corrected third image.
Further, the cutting unit is specifically configured to:
carrying out outline extraction processing on the first image to obtain a first outline image corresponding to the first image;
determining a plurality of corner points of the first outer contour image;
and cutting the first outline image according to the plurality of corner points to obtain the second image.
Further, the cutting unit is specifically configured to:
determining a plurality of random values corresponding to the plurality of corner points, wherein the random values are used for determining deformation of the plurality of corner points;
and cutting the first outline image according to the angular points and the random values to obtain the second image.
Further, the cutting unit is specifically configured to:
taking any two opposite corner points as starting points, making two intersecting lines to intersect with the first outer contour image, and dividing the first outer contour image into a plurality of areas, wherein the intersecting lines are two horizontal intersecting lines or two vertical intersecting lines;
determining a first target corner point with the largest random value in the first outline image and a second target corner point opposite to the first target corner point according to the sizes of the random values;
and cutting off a first target area corresponding to the first target corner point and a second target area corresponding to the second target corner point to obtain the second outline image.
Further, the segmentation unit is specifically configured to: determining a plurality of bisector points of the second outline image in the horizontal direction or the vertical direction;
and dividing the second outline image into a plurality of sub-images with preset number by utilizing the plurality of equally dividing points and the two intersecting lines.
Further, the angle calculation unit is specifically configured to:
respectively calculating the gravity centers corresponding to the sub-images;
connecting a plurality of the centers of gravity to obtain the image direction of the first image;
and calculating to obtain a target angle of the first image which needs to be rotated for correction according to the image direction of the first image.
Further, the angle calculation unit is specifically configured to:
determining a first angle between the first image and a horizontal direction or a vertical direction according to the image direction of the first image;
and calculating to obtain a target angle of the first image which needs to be rotated for correction according to the first angle.
In a third aspect, the present application further provides a server, including:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the steps in the image rectification method as described in any one of the above.
In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps in the image rectification method as described in any one of the above.
The embodiment of the application provides an image correction method, an image correction device, a server and a storage medium, wherein an initial image to be subjected to bar code identification is cut, and an area with larger deformation is cut; segmenting the cut image to obtain a plurality of sub-images; and respectively calculating the gravity centers of a plurality of sub-images, obtaining the direction of the cut image according to the gravity centers, obtaining a target angle of the initial image which needs to be rotated according to the direction of the cut image, and further performing rotation correction on the initial image according to the target angle. Therefore, the area with large deformation in the initial image is cut off, errors are reduced, meanwhile, the target angle of the initial image needing to be rotated is obtained by the aid of the center of gravity of the image, calculation is simple, accuracy is high, and manpower and material resources are reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a host monitoring system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an embodiment of an image rectification method according to the present application;
FIG. 3 is a flowchart illustrating an embodiment of cropping a first image to obtain a second image according to the present disclosure;
FIG. 4 is a flowchart illustrating an embodiment of cropping the first outline image according to a first angle to obtain a second outline image according to the present application;
FIG. 5 is a schematic diagram of an embodiment of cropping a first outline image according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another embodiment of cropping the first outline image according to the embodiment of the present application;
FIG. 7 is a schematic diagram of an embodiment of segmenting a second image provided by the present application;
fig. 8 is a schematic flowchart of an embodiment of calculating a target angle, which needs to be rotated, of a first image according to a plurality of sub-images according to the present application;
FIG. 9 is a schematic view of an embodiment of an image rectification device provided in the present application;
fig. 10 is a schematic structural diagram of a server according to an embodiment of the present application.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
When the computer vision technology is used for recognizing the bill bar code and the waybill number, decoding through an Optical Character Recognition technology (OCR) is required to enable the bill to be 'corrected', namely, the bar code and the waybill number of the bill are in a horizontal state, but how to correct the angle of an image of the bill with any angle is a difficult problem.
Embodiments of the present application provide an image rectification method, an image rectification apparatus, a server, and a storage medium, which are described below.
As shown in fig. 1, a schematic view of a scenario of a host monitoring system according to an embodiment of the present application is provided, where the host monitoring system may include a plurality of hosts 100 and a server 200, the hosts 100 and the server 200 are connected through a network, and a host monitoring apparatus, such as the server in fig. 1, is integrated in the server 200, and the hosts 100 may access the server 200.
In the embodiment of the invention, the server 200 is mainly used for preprocessing an initial image to be subjected to bar code identification to obtain a first image corresponding to a bar code identification area to be corrected; cutting the first image to obtain a second image; segmenting the second image into a plurality of subimages with preset number; calculating a target angle of the first image needing to be rotated according to the plurality of sub-images; and rotating the first image according to the target angle to obtain a corrected third image.
In this embodiment of the present invention, the server 200 may be an independent server, or may be a server network or a server cluster composed of servers, for example, the server 200 described in this embodiment of the present invention includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud server composed of a plurality of servers. Among them, the Cloud server is constituted by a large number of computers or web servers based on Cloud Computing (Cloud Computing). In the embodiment of the present invention, the server and the host may implement communication through any communication manner, including but not limited to mobile communication based on the third Generation Partnership Project (3 GPP), Long Term Evolution (LTE), Worldwide Interoperability for Microwave Access (WiMAX), or computer network communication based on the TCP/IP Protocol Suite (TCP/IP), User Datagram Protocol (UDP) Protocol, and the like.
It will be appreciated that the host 100 used in embodiments of the present invention may be a device that includes both receiving and transmitting hardware, i.e., a device having receiving and transmitting hardware capable of performing two-way communications over a two-way communications link. Such a host may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display. The host 100 may specifically be a desktop terminal or a mobile terminal, and the host 100 may also specifically be one of a mobile phone, a tablet computer, a notebook computer, and the like.
Those skilled in the art will appreciate that the application environment shown in fig. 1 is only one application scenario related to the present invention, and does not constitute a limitation to the application scenario of the present invention, and that other application environments may further include more or less servers than those shown in fig. 1, or a network connection relationship of servers, for example, only 1 server and 2 hosts are shown in fig. 1, and it will be understood that the host monitoring system may further include one or more other servers, or/and one or more hosts connected to a server network, and is not limited herein.
In addition, as shown in fig. 1, the host monitoring system may further include a memory 300 for storing data, such as host data, for example, host status data during host operation.
It should be noted that the scenario diagram of the host monitoring system shown in fig. 1 is merely an example, and the host monitoring system and the scenario described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided in the embodiment of the present invention.
The embodiment of the present application provides an image correction method, which can well calculate an angle at which a facebook needs to be rotationally corrected, and as shown in fig. 2, is a schematic flow diagram of an embodiment of the image correction method provided in the embodiment of the present application, and the image correction method includes:
21. preprocessing an initial image to be subjected to bar code identification to obtain a first image corresponding to a bar code identification area to be corrected;
22. cutting the first image to obtain a second image;
23. and segmenting the second image into a plurality of sub-images with preset number.
24. And calculating to obtain a target angle of the first image which needs to be rotated for correction according to the plurality of sub-images.
25. And rotating the first image according to the target angle to obtain a corrected third image.
Different from the prior art, the image correction method provided in the embodiment of the application cuts the initial image to be subjected to bar code identification, and cuts out the area with larger deformation; segmenting the cut image to obtain a plurality of sub-images; and respectively calculating the gravity centers of a plurality of sub-images, obtaining the direction of the cut image according to the gravity centers, obtaining a target angle of the initial image which needs to be rotated according to the direction of the cut image, and further performing rotation correction on the initial image according to the target angle. Therefore, the area with large deformation in the initial image is cut off, errors are reduced, meanwhile, the target angle of the initial image needing to be rotated is obtained by the aid of the center of gravity of the image, calculation is simple, accuracy is high, and manpower and material resources are reduced.
In the embodiment of the application, for an initial image which needs to be subjected to barcode recognition, preprocessing is required to be performed first, so that a first image corresponding to a barcode recognition area to be corrected is obtained. Specifically, when any initial image which needs to be subjected to barcode recognition and correction is obtained, the initial image needs to be subjected to barcode recognition area segmentation, and a first image corresponding to the barcode recognition area to be corrected is obtained. In some embodiments of the application, the initial image may be an express waybill, and the preprocessing of the initial image to be subjected to barcode recognition at this time includes screening a barcode region or an invoice number region on the express waybill from the entire waybill, and performing subsequent processing and recognition only on the barcode region or the invoice number region on the express waybill.
In some embodiments of the present application, the processing of the initial image may be performed by using a MaskRCNN technique, and specifically, the processing of the initial image by using the MaskRCNN may include: carrying out target detection on the initial image; performing target segmentation on the initial image; pixel-level object segmentation is performed on the initial image.
In the above embodiment, the step of performing target detection on the initial image refers to drawing a target frame in the initial image, that is, dividing the initial image into a plurality of regions to be detected. Then, several regions to be detected belonging to the same object (a person, or an object) are taken out. For each object, the object classification is needed to distinguish what the object is, whether it is a person, an object, or another type. In the process of segmenting the target of the initial image, the features of each region to be detected need to be extracted by using a convolutional neural network, and then classification is performed through the extracted features to obtain the category corresponding to the target in the region to be detected.
The pixel-level target segmentation of the initial image means that the size of the region to be detected needs to be continuously adjusted in the process of extracting the features, so that the target judgment is more accurate. In other words, in the process of continuously adjusting the size of the region to be detected, pixel-level segmentation can be performed on the initial image, so that the target in the initial image can be identified more accurately.
The initial image to be subjected to bar code recognition is preprocessed by using MaskRCNN, so that the bar code recognition area in the bill can be accurately separated from the bill, and a first image corresponding to the bar code recognition area to be corrected is obtained. In the subsequent correction process, only the first image needs to be processed, and the whole surface sheet does not need to be processed, so that the workload is greatly reduced, and the manpower and the material resources are saved.
It should be noted that the list includes the barcode and the waybill number, and in the same list, the barcode and the waybill number are in one-to-one correspondence and unique, and meanwhile, the barcode and the waybill number are parallel in position, so that if image rectification is desired, only one of the barcode or the waybill number needs to be processed to obtain an angle that needs to be rectified. Namely, the bar code identification area to be corrected can be a bar code area in the bill or a waybill number area in the bill.
In some embodiments of the present application, after the first image corresponding to the barcode identification area to be corrected is obtained, the first image needs to be cut to obtain a second image. As shown in fig. 3, an embodiment of a flowchart for cropping a first image to obtain a second image according to the embodiment of the present application, the cropping the first image to obtain the second image may include:
31. and carrying out outline extraction processing on the first image to obtain a first outline image corresponding to the first image.
32. A plurality of corner points of the first outline image are determined.
33. And cutting the first outline image according to a plurality of angular points to obtain a second outline image, wherein the second outline image is the outline image of the second image.
In the above embodiment, since in practical cases, a plurality of sheets are photographed at the same time, the area occupied by a particular sheet in the photograph is not large; meanwhile, the area occupied by the bar code area in the panel is not large, so that the whole bar code area is fuzzy and irregular, the acquired first image is not a complete regular image, the edge of the first image is still bent, and the correction precision is affected, so that the first image needs to be processed again, and a part of the area of the first image is cut.
Specifically, the outline extraction processing needs to be performed on the first image, and only the edge of the first image is zigzag, so that only the first outline image corresponding to the first image needs to be extracted, and only the first image needs to be cropped according to the first outline image.
In the above embodiment, OpenCV may be used to extract the first outline image corresponding to the first image. OpenCV is an open-source free computer vision library, and the object of OpenCV is to construct a simple and easy-to-use computer vision framework, and functions contained in the framework help developers to conveniently and quickly implement image processing and video processing.
Specifically, extracting the first outline image corresponding to the first image by using OpenCV may include two parts, namely image extraction and contour extraction. The image extraction can include reading an image path, converting an image format, and displaying the image on an operation interface. And the contour extraction may include reading an image on the operation interface; carrying out gray level processing on the image to obtain a gray level image corresponding to the image; then carrying out binarization processing on the gray level image; and marking and extracting the outline by using the gray-scale map after the binarization processing.
In the embodiment, before the gray processing is performed on the image, the image can be enhanced, so that the edge of the image is more obvious, and the subsequent image contour extraction is facilitated.
After the first outline image corresponding to the first image is obtained, a plurality of corner points of the first outline image are also required to be determined. In the case of the bill recognition, since the bill is generally rectangular and the barcode recognition area is generally rectangular, the first image corresponding to the barcode recognition area is generally rectangular and the first outline image corresponding to the first image is also rectangular. A plurality of corner points of the first outline image are a plurality of corners of the first outline image. In some embodiments of the present application, the corner points of the first outline image may be four.
In some embodiments of the present application, after obtaining the first outline image and determining the plurality of corner points of the first outline image, cutting the first outline image according to the plurality of corner points to obtain the second outline image, which may include: and determining a first angle between the first outline image and the horizontal direction or the vertical direction according to the target edge line in the first outline image. And cutting the first outline image according to the first angle to obtain a second outline image. Wherein the second outline image is an outline image of the second image.
Specifically, as described above, the edge of the first image is curved, and therefore the edge of the first outline image corresponding to the first image is also curved, that is, the edge line of the first outline image is curved, and such a curved outline image affects the accuracy of image correction, so the first outline image needs to be cropped to improve the accuracy of image correction.
In a specific embodiment of the present application, the first outline image is a rectangular structure and includes four edge lines, and the first outline image includes four corner points. Although the edge lines of the first outline image are meandering, the four corner points of the first outline image can be used to determine a first angle between the first outline image and the vertical direction or the horizontal direction.
Specifically, taking the target edge line corresponding to the short side in the first outline image as an example, since two points can determine a straight line, the target edge line can be used to determine the first angle between the target edge line and the horizontal direction or the vertical direction. It should be noted that, since the edge line of the first outline image is meandering, the first angle is only an estimated value and is not an accurate value.
After determining the first angle between the first outline image and the horizontal direction or the vertical direction, the first outline image may be cropped according to the first angle to obtain a second outline image.
In some embodiments of the present application, as shown in fig. 4, a flowchart of an embodiment of cropping the first outline image according to the first angle to obtain the second outline image is provided for the embodiments of the present application. The cropping the first outline image according to the first angle to obtain the second outline image may include:
41. and comparing the first angle with a preset angle to obtain a comparison result.
42. And according to the comparison result, taking the first target corner point corresponding to the target edge line as a starting point, and intersecting the intersection line with the first outer contour image.
43. And taking a second target corner point opposite to the first target corner point as a starting point, making another intersection line to intersect with the first outer contour image, and dividing the first outer contour image into a plurality of areas.
44. And cutting off a first target area adjacent to the first target corner point and a second target area adjacent to the second target corner point to obtain a second outline image.
Specifically, as shown in fig. 5, a schematic view of an embodiment of cropping a first outline image is provided for the embodiment of the present application. Since the initial image is not in the horizontal state, the first image is not in the horizontal state, and the first outline image is not in the horizontal state, the first outline image needs to be subjected to rotation correction.
In a specific embodiment of the present application, since the first outline image includes four corner points, a first angle of the first outline image is determined, and in this embodiment, the first angle may be an angle between the target edge line 410 corresponding to the short side of the first outline image and the horizontal direction.
In the above embodiment, the comparison result may be obtained by comparing the first angle with the preset angle. Specifically, whether the first angle is larger than a preset angle is judged, if the first angle is larger than the preset angle, a first target corner point, namely a corner point 401, corresponding to a target edge line 410 is taken as a starting point to make a first vertical intersection line 405 to intersect with the first outline image, and meanwhile, a corner point 403 opposite to the corner point 401 is taken as a starting point to make a second vertical intersection line 406 to intersect with the first outline image; the first outline image is divided into three regions by the first vertical intersection line 405 and the second vertical intersection line 406.
Because the edge of the first image is zigzag, that is, the first outline image is zigzag, it is necessary to cut off a partial region of the first outline image to ensure the calculation accuracy of the angle, but it is also necessary to ensure that the smaller the area of the cut-off partial region is, the better the area is, so it can be determined through mathematical calculation that when the first angle between the target edge line 410 and the horizontal direction is greater than the preset angle, the vertical intersection line is made to divide the first outline image into a plurality of regions, and then the cutting is performed, so that the cut-off area is the smallest.
In the above embodiment, the first target corner is a corner 401, the second target corner is a corner 403, and a partial region of the first outline image that needs to be cut out is a first target region adjacent to the first target corner 401 and including a corner 404; and a second target region adjacent to second target corner 403, comprising corner 402; i.e. the area to the left of the first vertical intersection 405 and the area to the right of the second vertical intersection 406 in fig. 5. And the first target area and the second target area are cut off to obtain a second outline image.
Fig. 6 is a schematic diagram of another embodiment of cropping the first outline image according to the embodiment of the present application. At this time, the first angle is smaller than the preset angle, and can be obtained through mathematical calculation, when the first angle between the target edge line 410 and the horizontal direction is smaller than the preset angle, the horizontal intersection line is made to divide the first outline image into a plurality of areas, and then the cutting is performed, so that the cut area is the minimum.
Specifically, the corner 404 may be a third target corner, the corner 404 may be used as a starting point to make a first horizontal intersection 408 to intersect with the first outline image, the corner 402 may be used as a fourth target corner, and the corner 404 may be used as a starting point to make a second horizontal intersection 407 to intersect with the first outline image; at this time, the first horizontal intersection 408 and the second horizontal intersection 407 divide the first outline image into three regions.
In this case, the third target region adjacent to the third target corner 404 may be a region above the first horizontal intersection line, and the fourth target region adjacent to the fourth target corner 402 may be a region below the second horizontal intersection line. At this time, the third target region and the fourth target region are cut out, and the second outline image can be obtained.
In the embodiment of the present application, the value of the preset angle may be set manually, and specifically, the preset angle may be 45 °. In the embodiment of the present application, since the value of the first angle is a predicted value and is not an accurate value, actually comparing the value between the first angle and the preset angle can be to determine whether the first angle is within a preset range, where the preset range takes 45 ° as a standard and allows a certain error value; that is, in one embodiment of the present application, the preset range may be (42 °, 47 °). If the first angle is larger than 47 degrees or smaller than 42 degrees, judging whether a horizontal intersecting line or a vertical intersecting line is intersected with the first outer contour image; if the first angle is within the range of (42 °, 47 °), either a horizontal intersection or a vertical intersection may be made to intersect the first outline image.
It should be noted that, in the embodiment of the present application, when the long side or the short side of the first outline image is taken as the target edge line, the first angle is different, and further, the area to be cut of the first outline image is also different. Specifically, the first outline image may be cut by taking the short side of the first outline image as the target edge line, which is not described herein again.
In the embodiment of the present application, after the second outline image is obtained, the second outline image needs to be segmented, and the second outline image is segmented into a plurality of sub-images of a preset number to determine the image direction of the first image. Specifically, the segmenting the second outline image, and the segmenting the second outline image into a plurality of sub-images with a preset number may include:
determining a plurality of bisectors of the second outline image in the horizontal direction or the vertical direction; and equally dividing the second outline image into a plurality of sub-images with preset quantity by utilizing a plurality of equally dividing points and horizontal intersecting lines or vertical intersecting lines.
Specifically, as shown in fig. 7, a schematic diagram of an embodiment of segmenting the second outline image is provided for the present application. In fig. 7, a first vertical intersection line 405 is intersected with the second outline image with the corner point 401 as a starting point, and a second vertical intersection line 406 is intersected with the second outline image with the corner point 403 as a starting point. After the second outline image is obtained and cropped, the second outline image lacks two corner points and target areas corresponding to the corner points relative to the second outline image.
At this time, a plurality of bisectors of the second outline image in the vertical direction may be determined, and after the plurality of bisectors are determined, a vertical intersecting line may be made to intersect with the second outline image by using the plurality of bisectors as starting points, and at this time, the second outline image is equally divided into a plurality of sub-images of a preset number by using the bisectors and the original first vertical intersecting line 405 and the original second vertical intersecting line 406.
Referring to fig. 7, in an embodiment of the present application, the edge line of the second outline image in the vertical direction may be divided into a plurality of line segments with equal lengths, that is, the edge of the second outline image in the vertical direction is divided into a plurality of equal segments, and a plurality of perpendicular intersecting lines are made to intersect with the second outline image at the plurality of equal points respectively with the plurality of equal points as a starting point. Wherein the bisector point may be a bisection point, i.e., the bisector point is a midpoint. At this time, the midpoint 701 and the midpoint 702 of the second outline image in the horizontal direction are connected, the two midpoints form a straight line, and the straight line, the first vertical intersection line 405 and the second vertical intersection line 406 divide the second outline image equally into two sub-images.
In other embodiments of the present application, a plurality of bisectors of the second outline image in the horizontal direction may also be determined, and a horizontal intersecting line with the plurality of bisectors as a starting point intersects the second outline image, so as to divide the second outline image into a plurality of sub-images. The specific process may refer to the foregoing, and is not described herein.
In other embodiments of the present application, the bisector point may also be a trisection point, a quartesion point, etc., and is not limited herein. And the number of the sub-images is related to the number of the bisector points, which is not limited herein.
And after the second outline image is equally divided into a plurality of sub-images, calculating to obtain a target angle of the first image, which needs to be rotated, according to the plurality of sub-images. As shown in fig. 8, a flowchart of an embodiment of calculating a target angle, which needs to be rotated, of a first image according to a plurality of sub-images provided by the present application is shown, specifically, in some embodiments of the present application, calculating a target angle, which needs to be rotated, of a first image according to a plurality of sub-images may include:
81. and respectively calculating the gravity centers corresponding to the plurality of sub-images.
82. And connecting the multiple centers of gravity to obtain the image direction of the first image.
83. And calculating to obtain a target angle of the first image which needs to be rotated for correcting according to the image direction of the first image.
On the basis of the foregoing embodiment, calculating a target angle that the first image needs to be rotated according to the image direction of the first image may include: a first angle between the first image and a horizontal direction or a vertical direction is determined according to an image direction of the first image. And calculating to obtain a target angle of the first image needing to be rotated according to the first angle.
Specifically, after obtaining the plurality of sub-images, the centers of gravity corresponding to the plurality of sub-images may be calculated, and after obtaining the plurality of centers of gravity, the plurality of centers of gravity may be connected to obtain the image direction of the first image. When there are a plurality of sub-images, the corresponding image centroids are also a plurality of, and in this case, the plurality of centroids can be connected as much as possible by a method such as fitting. Since the two points can determine a straight line, after obtaining the multiple centers of gravity, the direction of the straight line formed by the multiple centers of gravity can be determined, and then the image direction of the first image can be determined. The image orientation of the first image determined at this time is a value which is different from the first angle and is relatively accurate.
In the embodiment of the application, the first outer contour image is equally divided into two sub-images, the gravity centers of the two sub-images are respectively calculated, and then the image direction of the first image is determined, so that the calculation accuracy is highest. The number of the sub-images is the minimum by the segmentation, the area of each sub-image is the maximum, the number of pixel points included in each sub-image is the maximum, and the calculation accuracy is higher.
After the image direction of the first image is determined, a first angle between the first image and the horizontal direction or the vertical direction can be determined according to the image direction of the first image. According to the first angle, the target angle of the first image needing to be rotated can be calculated.
In an embodiment of the present application, please refer to fig. 7, a direction of a dotted line in fig. 7 is an image direction of the first image. After the image direction of the first image is determined, a first angle between the image direction of the first image and the vertical direction can be detected to be 30 °, and then a target angle of the first image to be rotated can be calculated as: and 60 degrees is equal to 90 degrees to 30 degrees.
In the above embodiment, the first image is rotated in the horizontal direction, with the target angle being 60 °; if the first image is rotated in the vertical direction, the target angle at this time is 30 °. I.e. the target angle by which the first image needs to be rotated is related to the direction of rotation of the first image.
In the embodiments of the present application, the specific process of calculating the gravity centers of a plurality of sub-images may refer to the prior art, and is not limited herein.
On the basis of the foregoing embodiments, in other embodiments of the present application, the image rectification method provided by the present application may further include: and outputting the third image so as to identify the third image.
The present application further provides an image correction apparatus, as shown in fig. 9, which is an exemplary view of the image correction apparatus provided by the present application, the image correction apparatus including:
the preprocessing unit 901 and the preprocessing unit 901 are configured to preprocess an initial image to be subjected to barcode recognition, so as to obtain a first image corresponding to a barcode recognition area to be corrected.
And a cutting unit 902, wherein the cutting unit 902 is used for cutting the first image to obtain a second image.
And a dividing unit 903, wherein the dividing unit 903 is used for dividing the second image into a plurality of sub-images with preset number.
And an angle calculation unit 904, where the angle calculation unit 904 is configured to calculate a target angle that needs to be rotated for the first image rectification according to the plurality of sub-images.
And a rotating unit 905, wherein the rotating unit 905 is used for rotating the first image according to the target angle to obtain a corrected third image.
According to the image correction device provided by the embodiment of the application, the area with larger deformation is cut by cutting the initial image to be subjected to bar code identification; segmenting the cut image to obtain a plurality of sub-images; and respectively calculating the gravity centers of a plurality of sub-images, obtaining the direction of the cut image according to the gravity centers, obtaining a target angle of the initial image which needs to be rotated according to the direction of the cut image, and further performing rotation correction on the initial image according to the target angle. Therefore, the area with large deformation in the initial image is cut off, errors are reduced, meanwhile, the target angle of the initial image needing to be rotated is obtained by the aid of the center of gravity of the image, calculation is simple, accuracy is high, and manpower and material resources are reduced.
Specifically, in some embodiments of the present application, the cutting unit 902 may be specifically configured to: carrying out outline extraction processing on a first image to obtain a first outline image corresponding to the first image; determining a plurality of corner points of the first outer contour image; and cutting the first outline image according to the plurality of angular points to obtain a second outline image, wherein the second outline image is the outline image of the second image.
The cutting unit 902 cuts the first outline image according to the plurality of corner points to obtain a second outline image, which may include: and determining a first angle between the first outline image and the horizontal direction or the vertical direction according to the target edge line in the first outline image. And cutting the first outline image according to the first angle to obtain a second outline image. Wherein the second outline image is an outline image of the second image.
In some embodiments of the present application, the cutting unit 902 may be further specifically configured to: comparing the first angle with a preset angle to obtain a comparison result; according to the comparison result, taking a first target corner point corresponding to the target edge line as a starting point, and intersecting a line of intersection with the first outer contour image; taking a second target angular point opposite to the first target angular point as a starting point, making another intersection line to intersect with the first outer contour image, and dividing the first outer contour image into a plurality of areas; and cutting off a first target area opposite to the first target corner point and a second target area opposite to the second target corner point to obtain a second outline image.
In other embodiments of the present application, the splitting unit 903 may be specifically configured to: determining a plurality of bisectors of the second outline image in the horizontal direction or the vertical direction; and dividing the second outline image into a plurality of sub-images with a preset number by utilizing a plurality of bisectors and two intersecting lines.
In other embodiments of the present application, the angle calculating unit 904 may be specifically configured to: respectively calculating the gravity centers corresponding to the plurality of sub-images; connecting the multiple centers of gravity to obtain the image direction of the first image; and calculating to obtain a target angle of the first image which needs to be rotated for correcting according to the image direction of the first image.
Specifically, the calculating the angle of the target angle that needs to be rotated for the first image rectification by the angle calculating unit 904 according to the image direction of the first image may specifically include: determining a first angle between the first image and a horizontal direction or a vertical direction according to the image direction of the first image; and calculating to obtain a target angle of the first image needing to be rotated according to the first angle.
The present application further provides a server, which integrates any one of the image rectification devices provided in the embodiments of the present application, as shown in fig. 10, which shows a schematic structural diagram of the server according to the embodiments of the present application, specifically:
the server may include components such as a processor 1001 of one or more processing cores, memory 1002 of one or more computer-readable storage media, a power source 1003, and an input unit 1004. Those skilled in the art will appreciate that the server architecture shown in FIG. 10 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Wherein:
the processor 1001 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 1002 and calling data stored in the memory 1002, thereby performing overall monitoring of the server. Optionally, processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1001.
The memory 1002 may be used to store software programs and modules, and the processor 1001 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 1002 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 access to the memory 1002.
The server further includes a power source 1003 for supplying power to each component, and preferably, the power source 1003 may be logically connected to the processor 1001 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are implemented through the power management system. The power source 1003 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The server may also include an input unit 1004, and the input unit 1004 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 1001 in the server loads the executable file corresponding to the process of one or more application programs into the memory 1002 according to the following instructions, and the processor 1001 runs the application programs stored in the memory 1002, so as to implement various functions as follows:
and preprocessing the initial image to be subjected to the bar code identification to obtain a first image corresponding to the bar code identification area to be corrected. And cutting the first image to obtain a second image. And segmenting the second image into a plurality of sub-images with preset number. And calculating to obtain a target angle of the first image needing to be rotated according to the plurality of sub-images. And rotating the first image according to the target angle to obtain a corrected third image.
The present application also provides a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like. The storage medium stores a computer program, and the computer program is loaded by the processor to execute the steps in any one of the methods for training a character recognition model provided in the embodiments of the present application. For example, the computer program may be loaded by a processor to perform the steps of:
and preprocessing the initial image to be subjected to the bar code identification to obtain a first image corresponding to the bar code identification area to be corrected. And cutting the first image to obtain a second image. And segmenting the second image into a plurality of sub-images with preset number. And calculating to obtain a target angle of the first image needing to be rotated according to the plurality of sub-images. And rotating the first image according to the target angle to obtain a corrected third image.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
In a specific implementation, each unit or structure may be implemented as an independent entity, or may be combined arbitrarily to be implemented as one or several entities, and the specific implementation of each unit or structure may refer to the foregoing method embodiment, which is not described herein again.
The foregoing detailed description is directed to an image rectification method, an image rectification apparatus, a server, and a storage medium provided in the embodiments of the present application, and specific embodiments are applied in the present application to explain the principles and embodiments of the present application, and the description of the foregoing embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An image rectification method, characterized in that the method comprises:
preprocessing an initial image to be subjected to bar code identification to obtain a first image corresponding to a bar code identification area to be corrected;
cutting the first image to obtain a second image;
segmenting the second image into a plurality of sub-images with preset number;
calculating a target angle of the first image which needs to be rotated for correction according to the plurality of sub-images;
and rotating the first image according to the target angle to obtain a corrected third image.
2. The image rectification method according to claim 1, wherein the cropping the first image to obtain a second image comprises:
carrying out outline extraction processing on the first image to obtain a first outline image corresponding to the first image;
determining a plurality of corner points of the first outer contour image;
and cutting the first outline image according to the plurality of angular points to obtain a second outline image, wherein the second outline image is an outline image of the second image.
3. The image rectification method according to claim 2, wherein the first outline image comprises a plurality of edge lines, and the cropping the first outline image according to the plurality of corner points to obtain the second outline image comprises:
determining a first angle between the first outline image and the horizontal direction or the vertical direction according to a target edge line in the first outline image;
and according to the first angle, cutting the first outline image to obtain a second outline image.
4. The image rectification method according to claim 3, wherein the cropping the first outline image according to the first angle to obtain the second outline image comprises:
comparing the first angle with a preset angle to obtain a comparison result;
according to the comparison result, taking a first target corner point corresponding to the target edge line as a starting point, and intersecting a line with the first outer contour image;
taking a second target corner point opposite to the first target corner point as a starting point, making another intersecting line to intersect with the first outer contour image, and dividing the first outer contour image into a plurality of areas;
and cutting out a first target area opposite to the first target corner point and a second target area opposite to the second target corner point to obtain the second outline image.
5. The image rectification method according to claim 4, wherein the segmenting the second image into a plurality of sub-images of a preset number comprises:
determining a plurality of bisector points of the second outline image in the horizontal direction or the vertical direction;
and equally dividing the second outline image into a plurality of sub-images with preset quantity by utilizing the plurality of equally dividing points and the two intersecting lines.
6. The image rectification method according to claim 1, wherein the calculating a target angle of the first image to be rotated according to the plurality of sub-images comprises:
respectively calculating the gravity centers corresponding to the sub-images;
connecting a plurality of the centers of gravity to obtain the image direction of the first image;
and calculating to obtain a target angle of the first image, which needs to be rotated, according to the image direction of the first image.
7. The image rectification method according to claim 6, wherein calculating a target angle to be rotated for the first image according to the image direction of the first image comprises:
determining a first angle between the first image and a horizontal direction or a vertical direction according to the image direction of the first image;
and calculating to obtain a target angle of the first image which needs to be rotated for correction according to the first angle.
8. An image rectification apparatus characterized by comprising:
the system comprises a preprocessing unit, a correction unit and a correction unit, wherein the preprocessing unit is used for preprocessing an initial image to be subjected to bar code identification to obtain a first image corresponding to a bar code identification area to be corrected;
the cutting unit is used for cutting the first image to obtain a second image;
the segmentation unit is used for segmenting the second image and segmenting the second image into a plurality of sub-images with preset number;
the angle calculation unit is used for calculating a target angle of the first image needing to be rotated according to the plurality of sub-images;
and the rotating unit is used for rotating the first image according to the target angle to obtain a corrected third image.
9. A server, characterized in that the server comprises:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the steps in the image rectification method of any one of claims 1 to 5.
10. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor for performing the steps of the image rectification method according to any one of claims 1 to 5.
CN202010309721.6A 2020-04-20 2020-04-20 Image correction method, device, server and storage medium Pending CN113538449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010309721.6A CN113538449A (en) 2020-04-20 2020-04-20 Image correction method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010309721.6A CN113538449A (en) 2020-04-20 2020-04-20 Image correction method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN113538449A true CN113538449A (en) 2021-10-22

Family

ID=78093547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010309721.6A Pending CN113538449A (en) 2020-04-20 2020-04-20 Image correction method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113538449A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114872048A (en) * 2022-05-27 2022-08-09 河南职业技术学院 Robot steering engine angle calibration method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271590A (en) * 2008-03-28 2008-09-24 华中科技大学 Method for acquiring cam contour object shape
CN108021837A (en) * 2016-11-04 2018-05-11 株式会社理光 A kind of bar code detection method, bar code detecting device and electronic equipment
WO2018120038A1 (en) * 2016-12-30 2018-07-05 深圳前海达闼云端智能科技有限公司 Method and device for target detection
CN110046530A (en) * 2019-03-15 2019-07-23 中科院微电子研究所昆山分所 A kind of bar code Slant Rectify method based on multitask target detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271590A (en) * 2008-03-28 2008-09-24 华中科技大学 Method for acquiring cam contour object shape
CN108021837A (en) * 2016-11-04 2018-05-11 株式会社理光 A kind of bar code detection method, bar code detecting device and electronic equipment
WO2018120038A1 (en) * 2016-12-30 2018-07-05 深圳前海达闼云端智能科技有限公司 Method and device for target detection
CN110046530A (en) * 2019-03-15 2019-07-23 中科院微电子研究所昆山分所 A kind of bar code Slant Rectify method based on multitask target detection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余静;杨保海;: "一种类圆形图像目标分割方法的研究", 计算机仿真, no. 12, 15 December 2010 (2010-12-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114872048A (en) * 2022-05-27 2022-08-09 河南职业技术学院 Robot steering engine angle calibration method
CN114872048B (en) * 2022-05-27 2024-01-05 河南职业技术学院 Robot steering engine angle calibration method

Similar Documents

Publication Publication Date Title
US20210064674A1 (en) Determining functional and descriptive elements of application images for intelligent screen automation
US8712188B2 (en) System and method for document orientation detection
US20170309001A1 (en) Correcting perspective distortion in double-page spread images
CN110647882A (en) Image correction method, device, equipment and storage medium
CN111860489A (en) Certificate image correction method, device, equipment and storage medium
CN109447117B (en) Double-layer license plate recognition method and device, computer equipment and storage medium
CN111553251B (en) Certificate four-corner defect detection method, device, equipment and storage medium
Li et al. Automatic comic page segmentation based on polygon detection
CN109948521B (en) Image deviation rectifying method and device, equipment and storage medium
CN111222452A (en) Face matching method and device, electronic equipment and readable storage medium
CN116168351A (en) Inspection method and device for power equipment
CN113538449A (en) Image correction method, device, server and storage medium
CN115471439A (en) Method and device for identifying defects of display panel, electronic equipment and storage medium
CN115830604A (en) Surface single image correction method, device, electronic apparatus, and readable storage medium
CN113139905A (en) Image splicing method, device, equipment and medium
CN113326836A (en) License plate recognition method and device, server and storage medium
CN113850238B (en) Document detection method and device, electronic equipment and storage medium
EP3639203B1 (en) Out-of-bounds detection of a document in a live camera feed
CN115311237A (en) Image detection method and device and electronic equipment
CN115620315A (en) Handwritten text detection method, device, server and storage medium
CN114663418A (en) Image processing method and device, storage medium and electronic equipment
CN115619698A (en) Method and device for detecting defects of circuit board and model training method
CN113077524A (en) Automatic calibration method, device and equipment for binocular fisheye camera and storage medium
CN110210291B (en) Guide vane parameter acquisition method and device, electronic equipment and storage medium
CN115731554A (en) Express mail list identification method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination