WO2018205789A1 - 卡片放置方向的识别方法、装置以及图像处理装置 - Google Patents

卡片放置方向的识别方法、装置以及图像处理装置 Download PDF

Info

Publication number
WO2018205789A1
WO2018205789A1 PCT/CN2018/082538 CN2018082538W WO2018205789A1 WO 2018205789 A1 WO2018205789 A1 WO 2018205789A1 CN 2018082538 W CN2018082538 W CN 2018082538W WO 2018205789 A1 WO2018205789 A1 WO 2018205789A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
fixed area
image
standard
card image
Prior art date
Application number
PCT/CN2018/082538
Other languages
English (en)
French (fr)
Inventor
马杨晓
陈盈贵
孙燕
Original Assignee
珠海赛纳打印科技股份有限公司
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 珠海赛纳打印科技股份有限公司 filed Critical 珠海赛纳打印科技股份有限公司
Publication of WO2018205789A1 publication Critical patent/WO2018205789A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • G06V10/242Aligning, centring, orientation detection or correction of the image by image rotation, e.g. by 90 degrees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • G06V10/245Aligning, centring, orientation detection or correction of the image by locating a pattern; Special marks for positioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/04Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa

Definitions

  • the present invention relates to the field of image recognition technologies, and in particular, to a method, an apparatus, and an image processing apparatus for recognizing a card placement direction.
  • ID cards for example, copy of ID card, bank. Copy of the card, copy of the social security card, etc.; the following is an example of copying the ID card.
  • the ID card is double-sidedly copied, the user usually needs to put the front face into the designated device in the scanning device. In the area, then put the back side into the designated area; this is easy for users who do not understand the scanning device, copying errors, wasting paper, and wasting user time.
  • the invention provides a method and a device for identifying a card placement direction, and an image processing device, which are used to solve the problem that the processing flow existing in the prior art is cumbersome, complicated, and has a low recognition rate.
  • An aspect of the present invention provides a method for identifying a card placement direction, including:
  • the fixed area is location information of the feature identifier in the card image
  • the feature value characterizing the fixed area characteristic is a parameter that can be used to represent the specific attribute of the fixed area based on the fixed area image pixel information. value.
  • the positioning direction of the card is identified according to the fixed area and the feature value characterizing the fixed area characteristic, including:
  • the standard direction fixed area and the standard direction feature value are The corresponding predetermined direction is confirmed as the placement direction of the card;
  • the predetermined direction includes a positive direction, a reverse direction, a left direction, and a right direction.
  • the method further includes:
  • the card image after horizontal mirroring and vertical mirroring is output.
  • the method further includes:
  • the rotated card image is output.
  • the method further includes:
  • the fixed area matches a preset standard front fixed area, confirm that the card image is a front image of the card; or
  • the card image is the reverse image of the card.
  • the card type corresponding to the standard type fixed area and the standard type feature information is confirmed as the Card type information.
  • Another aspect of the present invention provides an apparatus for identifying a card placement direction, including:
  • a scanning module for scanning a card to obtain a fixed area on the card image
  • An acquiring module configured to acquire, in the fixed area, a feature value on the card image that characterizes the fixed area
  • a processing module configured to identify a placement direction of the card according to the fixed area and a feature value that characterizes the fixed area
  • the fixed area is location information of the feature identifier in the card image
  • the feature value characterizing the fixed area characteristic is a parameter that can be used to represent the specific attribute of the fixed area based on the fixed area image pixel information. value.
  • the processing module for:
  • the standard direction fixed area and the standard direction feature value are The corresponding predetermined direction is confirmed as the placement direction of the card;
  • the predetermined direction includes a positive direction, a reverse direction, a left direction, and a right direction.
  • the processing module is further configured to perform horizontal mirroring processing and vertical mirror processing on the card image after confirming that the card is placed in a reverse direction, so that the display direction of the card image is Change to the positive direction;
  • the device also includes:
  • An output module for outputting card images after horizontal mirroring and vertical mirroring.
  • the processing module is further configured to: after confirming that the placing direction of the card is a left direction/right direction, performing rotation processing on the card image to cause a display direction of the card image Change to the positive direction;
  • the device also includes:
  • An output module for outputting a rotated card image.
  • the processing module is further configured to: after acquiring a fixed area on the image of the card,
  • the fixed area matches a preset standard front fixed area, confirm that the card image is a front image of the card; or
  • the card image is the reverse image of the card.
  • the acquiring module is further configured to:
  • the card type corresponding to the standard type fixed area and the standard type feature information is confirmed as the Card type information.
  • Still another aspect of the present invention provides an image processing apparatus including the above-described card placement direction identifying means.
  • the method, device and image processing device for identifying a card placement direction acquires a fixed area on a card image and a feature value in the fixed area that characterizes the fixed area, and then fixes the fixed area and characterizes the fixed area.
  • the characteristic value of the regional characteristic is analyzed and processed, which can effectively identify the placement direction of the card, avoiding the use of the more complicated optical character recognition method in the prior art to identify the placement direction of the card, simplifying the recognition processing flow, and the identification process is simple It is easy to implement and has a high recognition rate, which improves the practicality of the identification method and is beneficial to the promotion and application of the market.
  • FIG. 1 is a schematic flowchart of a method for identifying a card placement direction according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of identifying a placement direction of the card according to the fixed area and the feature value of the fixed area characteristic according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of a method for identifying a card placement direction according to another embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of a method for identifying a card placement direction according to another embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of determining front and back sides of the card image according to the fixed area according to an embodiment of the present disclosure
  • FIG. 6 is a schematic flowchart of acquiring type information of the card according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural view of a front side of an ID card provided by a specific embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a front side of an ID card provided in a reverse direction according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural view showing the left side direction of the front side of the ID card provided by the embodiment of the present invention.
  • FIG. 10 is a schematic structural view of a front side of an ID card provided in a specific direction according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a reverse direction of a reverse side of an ID card according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of placing a reverse side of an opposite side of an ID card according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a fixed area for obtaining an ID card front side according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a fixed area for obtaining a reverse side of an ID card according to an embodiment of the present invention.
  • 15 is a schematic structural diagram of a correct output direction of an ID card according to an embodiment of the present invention.
  • 16 is a schematic structural diagram 1 of an error output direction of an identity card according to an embodiment of the present invention.
  • 17 is a schematic structural diagram 2 of an error output direction of an identity card according to an embodiment of the present invention.
  • FIG. 18 is a schematic structural diagram of an apparatus for identifying a card placement direction according to an embodiment of the present invention.
  • FIG. 19 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for recognizing a card placement direction according to an embodiment of the present invention.
  • the embodiment provides a method for recognizing a card placement direction, and the identification method is used for a card.
  • the placement direction is identified so that the user can copy or scan the card; specifically, the identification method includes:
  • S101 Scan the card to obtain a fixed area on the card image
  • the above card may be: an ID card, a social security card, a bank card or a student card, etc.; when a card image needs to be acquired, the card may be scanned by a scanner in the prior art, and then the fixed area on the card image may be Identifying, wherein the fixed area is location information of the feature identifier in the card image.
  • the feature identifier is preset, and different types of cards have different feature identifiers, and may also be based on the card. Different placement modes are used to set different fixed areas. For example, the fixed area of the card placed horizontally is different from the fixed area of the card placed vertically, tilted, or in other places; for example, for an ID card, the fixed area can be fixed.
  • the preset feature identifiers are the national emblem, the ID number, and the user avatar, and the national emblem area and the ID number of the ID card placed horizontally. Area and avatar area with vertical ID The national emblem area, the ID number area, and the avatar area of the film are different; for the social security card, the fixed area can be set as the national emblem area, the social security number area, the avatar area, and the like, in which case the preset feature identifier is set.
  • the national emblem area, the social security number area, and the avatar area are different from the national security area, social security number area, and avatar area of the social security card placed vertically. It should be noted that although the social security The card and the fixed area of the ID card have the same situation (that is, both the national emblem area and the user avatar), however, the size, size, and specific location of the fixed areas of the two cards (including the national emblem area and the user avatar) are different.
  • the card can be placed in any direction when scanning the card, for example, the card can be placed in the forward direction, placed in the opposite direction, or placed obliquely.
  • the tilt correction processing may be preferentially performed on the card image in the oblique direction, so that the card image can be changed from the oblique direction to the positive direction, the reverse direction, the left direction, or the right.
  • the side direction which can effectively improve the accuracy of the acquisition of the fixed area.
  • S102 Acquire, in a fixed area, a feature value on a card image that characterizes a fixed area;
  • the feature value of the fixed area characteristic in the fixed area on the card image may be further obtained, and the feature value of the fixed area characteristic is obtained based on the fixed area image pixel information to represent the fixed area specific attribute.
  • the parameter value for example, the number of black and white points in the fixed area, or image brightness information or image boundary information calculated based on the number of black and white points in the fixed area, as long as the fixed area on the card can be found by using these parameter values.
  • the number of black and white points is the number of feature points of the feature identifier, and the number of the feature points may be the number of pixel points or pixel values, etc.
  • the pixel point or pixel value in the fixed area may be calculated and analyzed. To get the number of black and white dots on the card image.
  • the method may further include: preprocessing the card image by using a preset processing method, To remove interference data from the card image.
  • the pre-set processing method may be a morphological closing operation in the prior art, that is, first swelling and then etching, and the card image is preprocessed by the morphological closing algorithm, and the feature points on the card image may be retained and removed. Interfere with the data, thereby effectively ensuring the accuracy and reliability of the acquisition of the feature values of the fixed area characteristics.
  • S103 Identify a card placement direction according to a fixed area and a feature value that characterizes the fixed area;
  • the positioning direction of the card can be accurately determined by analyzing the fixed area and the number of black and white points, thereby ensuring the accurate reliability of the card placement direction identification; wherein the card placement direction can include: The positive direction is placed, the reverse direction is placed, the left direction is placed, and the right direction is placed.
  • the orientation words provided above are determined by the user's perspective of printing the card, that is, when the user needs to print the card, the orientation is placed.
  • the card image printed by the card is the correct image that the user needs.
  • the method for recognizing the card placement direction provided by this embodiment can effectively identify the placement direction of the card by acquiring the fixed area on the card image and the number of black and white points in the fixed area, and then analyzing and processing the fixed area and the number of black and white points.
  • the use of the more complicated optical character recognition method in the prior art to identify the placement direction of the card is simplified, the recognition processing flow is simplified, and the recognition process is simple and easy to implement, and also has a high recognition rate, thereby improving the
  • the practicality of the identification method is conducive to the promotion and application of the market.
  • FIG. 2 is a schematic flowchart of identifying a placement direction of the card according to the fixed area and the characteristic value of the fixed area characteristic according to an embodiment of the present invention; on the basis of the foregoing embodiment, referring to FIG. 1-2
  • the specific implementation manner for identifying the placement direction of the card according to the fixed area and the number of black and white points is not limited, and those skilled in the art may set according to specific design requirements, and more preferably, according to the fixed area.
  • the number of black and white dots to identify the placement direction of the card to include:
  • the placement direction may include: a positive direction, a reverse direction, a left direction, and a right direction. Therefore, the step may specifically include:
  • the fixed area can be compared with a plurality of standard fixed areas corresponding to all types of cards set in advance, and the number of black and white points is corresponding to multiple types of cards of all types set in advance.
  • the number of standard black and white points is analyzed and compared;
  • the above plurality of standard fixed areas include: a standard forward fixed area, a standard reverse fixed area, a standard left fixed area, and a standard right fixed area;
  • the above plurality of standard black and white points include : the number of standard forward black and white points, the number of standard reverse black and white points, the number of standard left to black and white points, and the number of standard right to black and white points.
  • the above standard black and white points can be a specific value or a value. Interval, if the number of standard black and white points is a numerical interval, then the value of the number of black and white points may be included in the numerical interval.
  • the positioning direction of the card can be basically judged to be the positive direction.
  • the number of black and white points and the standard are positive. Analyze and compare the number of black and white points. If the number of black and white points matches the number of standard forward black and white points, the positive direction corresponding to the standard positive fixed area and the standard forward black and white point can be accurately and effectively confirmed as the card.
  • a placement direction; wherein the matching may include: the same or the same degree ratio is greater than or equal to a preset ratio threshold.
  • the positioning direction of the card can be basically judged to be the reverse direction.
  • the number of black and white points and the standard are reversed. Analyze and compare the number of black and white points. If the number of black and white points matches the number of standard reverse black and white points, the opposite direction corresponding to the standard reverse fixed area and the standard reverse black and white point number can be accurately and effectively confirmed as the card. Place the direction.
  • the positioning direction of the card can be basically judged to be the left direction.
  • the number of black and white points is The standard left side analyzes and compares the number of black and white points. If the number of black and white points matches the standard left side to the number of black and white points, the standard left side can be accurately and effectively matched to the fixed area and the standard left side to the number of black and white points. The left direction is confirmed as the card placement direction.
  • the position of the card can be basically judged to be the right direction.
  • the number of black and white points is The standard right side analyzes and compares the number of black and white points. If the number of black and white points matches the number of standard right side black and white points, the standard right side fixed area and the standard right side correspond to the number of black and white points. The direction of the right side is confirmed as the direction in which the card is placed.
  • the placement direction of the card can be accurately and effectively recognized, and the accuracy and reliability of the identification method are ensured.
  • steps S1031-S1034 are only schematically illustrated by using the number of black and white points as the characteristic value of the characteristic of the fixed area.
  • the other parameters are similar as the feature values for characterizing the fixed area, and are not described again.
  • FIG. 3 is a schematic flowchart of a method for identifying a card placement direction according to another embodiment of the present invention
  • FIG. 4 is a schematic flowchart diagram of a method for identifying a card placement direction according to another embodiment of the present invention
  • the card image can be rotated. Operation, specifically, rotating the card image by 180° so that the display direction of the card image is changed from the reverse direction to the positive direction; or, the card image may be subjected to horizontal mirror processing and vertical mirror processing, specifically, in the card image.
  • the order of the horizontal mirroring process and the vertical mirroring process is not limited.
  • the card image may be horizontally mirrored first.
  • FIG. 8 is taken as an example, and the card image in FIG.
  • the lower right corner changes to the lower left corner, and the information in the card image is still in the reverse state; then the horizontally mirrored card image is vertically mirrored, and at this time, the card image is changed from the lower left corner to the upper left corner, and The information in the card image changes from the reverse state to the forward state, thereby realizing the image of the card.
  • the display direction is changed from the reverse direction to the positive direction; or, the card image may be vertically mirrored first.
  • the card image in FIG. 8 is changed from the lower right corner to the upper right corner, and the information in the card image is still reversed. To the state; then the image after the vertical mirroring is horizontally mirrored.
  • the card image is changed from the upper right corner to the upper left corner, and the information in the card image is changed from the reverse state to the forward state, thereby It is realized that the display direction of the card image is changed from the reverse direction to the positive direction, as shown in FIG. Similarly, the card image in Fig. 12 is also changed to the positive direction after horizontal mirroring and vertical mirroring, as shown in Fig. 11.
  • the card image After changing the display direction of the card image to the positive direction, the card image can be directly output at this time, and the card image output at this time is also the positive direction, that is, the correct image of the printing or copying operation required by the user.
  • the display direction of the card image is in the reverse direction
  • the display direction of the card image is changed from the reverse direction to the positive direction, thereby effectively facilitating the user to print or copy the card.
  • the operation further improves the convenience and reliability of the identification method.
  • the card image can be rotated. Processing, so that the display direction of the card image can be changed from the left direction/right direction to the positive direction; specifically, when the display direction of the card image is the left direction, as shown in FIG. 9, the card image can be oriented Rotate right by 90°, so that the display direction of the card image is changed from the left direction to the positive direction, as shown in FIG. 7; and when the display direction of the card image is the right direction, as shown in FIG.
  • the card can be The image is rotated 90° to the left, so that the display direction of the card image is changed from the right direction to the positive direction, thereby effectively ensuring that the card image is displayed regardless of the placement direction of the card image.
  • the direction is changed to the positive direction, as shown in Figure 7.
  • the display direction of the card image is the left direction/right direction
  • the display direction of the card image is changed from the left direction/right direction to the positive direction, thereby effectively facilitating the user.
  • the card is printed or copied, which further improves the convenience and reliability of the identification method.
  • FIG. 5 is a schematic flowchart of determining a front and back surface of a card image according to a fixed area according to an embodiment of the present invention.
  • a card is acquired. After the fixed area on the image, set the method to also include:
  • S401 Determine the front and back sides of the card image according to the fixed area.
  • the fixed area on the front side is different from the fixed area on the reverse side. Therefore, the front and back sides of the card image can be confirmed according to the fixed area; in addition, if the card is placed according to the fixed area and the number of black and white points Before the recognition is performed, that is, the front and back sides of the card image are determined according to the fixed area, then in the process of identifying the placement direction of the card according to the fixed area and the number of black and white points, the process of analyzing and comparing is effectively reduced, for example, if it is determined The card image is front, so when comparing the fixed area and the number of black and white points, you can compare the fixed area with the standard fixed area where all types of cards are on the front, and the number of black and white points and the standard of all types of cards on the front.
  • the number of black and white points is compared, thereby effectively removing the fixed area, the number of black and white points and the standard fixed area on the opposite side of the card, and the number of standard black and white points for analysis and comparison; this effectively shortens the analysis of the fixed area and the number of black and white points. Contrast time, further High efficiency of the recognition process.
  • determining the front and back sides of the card according to the fixed area may include:
  • the fixed area is analyzed and compared with the preset fixed area.
  • the standard fixed area at this time includes the standard front fixed area and the standard reverse fixed area of all card types; when the analysis and comparison result is: the fixed area and the standard front fixed area When matching, it can be confirmed that the card image is the front image of the card, wherein the above matching means that the fixed area is completely the same as the standard front fixed area.
  • the card image is the reverse image of the card, wherein the above matching means that the fixed area is identical to the standard front fixed area.
  • the front side and the back side of the card can be set according to specific design requirements.
  • the side including the national emblem can be referred to as the front side of the card
  • the side including the avatar and the ID number is called the reverse side of the card; alternatively, the side including the national emblem may be referred to as the opposite side of the card, and the side including the avatar and the ID number may be referred to as the front side of the card;
  • they have different front and back sides, and thus have different front fixed areas and reverse fixed areas. Therefore, the front and back sides of the card can be accurately and effectively determined by analyzing and processing the fixed areas. When applied, the user can effectively prevent the repeated printing of the card, and the convenience and reliability of the identification method are further improved.
  • FIG. 6 is a schematic flowchart of acquiring type information of a card according to an embodiment of the present invention.
  • the method is set to Also includes:
  • S501 Acquire type information of the card.
  • the type information of the card can be obtained before the card placement direction is recognized according to the fixed area and the number of black and white points. Then, in the process of identifying the placement direction of the card according to the fixed area and the number of black and white points, the process of analyzing and comparing is effectively reduced, for example, if the type information of the card is determined to be an ID card, then the fixed area and the black and white point are The quantity is analyzed and compared, and the fixed area can be compared with the standard fixed area of the card of the ID card on the front side, and the number of black and white points is compared with the number of standard black and white points of the card of the ID card on the front side, thereby effectively removing the fixed area.
  • the type information of the card is obtained, including:
  • S5011 Obtain the type information of the card input by the user before scanning the card; or,
  • the scanning device may send the prompt information to the user.
  • the user may directly input the type information of the card according to the prompt information, or may select the card in the preset card type option. Type information.
  • the foregoing feature information may include: color information of the card, pattern information of the card, card information located in the fixed area, and the like; the manner of acquiring the feature information is similar to the manner of acquiring the fixed area on the acquired card image, specifically Refer to the above statement.
  • the specific analysis processing method is to analyze and compare the fixed area with the standard type fixed area of all types of cards, and to feature information with all types of cards.
  • the standard feature information is analyzed and compared; if the analysis result is: the fixed area matches the standard type fixed area, and the feature information matches the standard type feature information, the card type corresponding to the standard type fixed area and the standard type feature information is
  • the confirmation is the type information of the card, wherein the matching includes: the same or the same degree is greater than or equal to a preset threshold threshold.
  • the practicability of the identification method can be effectively improved, and if the type information of the card is obtained before the card placement direction is recognized according to the fixed area and the number of black and white points, then, according to the fixed area and In the process of identifying the placement direction of the card, the number of black and white points effectively reduces the process of analysis and comparison, effectively improves the efficiency of the identification method, and further ensures the accuracy and reliability of the identification method.
  • the side with the national emblem in the ID card is the front side of the ID card, as shown in the figure. 7-8, wherein, Figure 7 is the front positive direction of the ID card, Figure 8 is the front and back direction of the ID card; the side with the avatar and ID card number in the ID card is the opposite side of the ID card, as shown in Figure 11- 12, wherein, Figure 11 is the reverse direction of the ID card, Figure 12 is the opposite direction of the ID card; and then the identification direction of the ID card is identified, the specific steps are as follows:
  • Step A Scanning the ID card to obtain a fixed area on the card image; in order to improve the recognition rate, the card image needs to be appropriately cropped before the identification of the ID card in the forward and reverse direction; and, in addition, the card image
  • the process of analyzing and processing includes: when the card image of the ID card is front, the fixed area can be set as the national emblem area, and the manner of obtaining the fixed area is as shown in FIG. 13 , and the two-dimensional coordinate system is established along the card image (ie, includes the X axis). And the Y-axis), and determine a vertex angle of the card image as the origin of the coordinate system, and then determine the coordinate information of the national emblem region in the established two-dimensional coordinate system (ie, C (X0, in FIG.
  • the position information of the national emblem of the feature identifier can be determined, so that the fixed area on the card image can be obtained; when the card image of the ID card is the reverse side, the fixed area can be The avatar area and the ID number area are set, and the manner of obtaining the fixed area is similar to the manner of obtaining the fixed area of the front side. For details, refer to FIG. 14 .
  • Step B After determining the fixed area, obtain the number of black and white points in the fixed image in the card image;
  • Step C Analyze and compare the fixed area and the number of black and white points to determine the orientation of the ID card.
  • the standard forward fixed area and the standard forward black and white point number are positive.
  • the direction is confirmed as the direction in which the card is placed.
  • the display direction of the card image is the correct direction for the user to print and copy, as shown in FIG. 15; if the fixed area matches the preset standard reverse fixed area, and The number of black and white dots matches the preset number of standard reverse black and white dots.
  • the opposite direction corresponding to the standard reverse fixed area and the standard reverse black and white dot number is confirmed as the card placement direction.
  • the card image display direction is not The correct direction for the user to print and copy, as shown in Figure 16-17.
  • the method can be set to include:
  • Step D If the card is placed in the positive direction, the card image can be directly printed and output;
  • Step E If the card is placed in the opposite direction, the card image needs to be horizontally mirrored and vertically mirrored, so that the display direction of the card image is changed from the reverse direction to the positive direction, and then the card image is printed and output, thereby being effective. It is ensured that the output image obtained by the user is the correct card image.
  • the method may further include:
  • Step F performing tilt correction on the card image to ensure the output quality of the card image; and, when printing out one or more card images, one or more card images may be typeset, specifically, The printing style of the card image is selected in a plurality of pre-set typographic styles for the convenience of the user to view, further improving the practicability of the method.
  • the technical solution provided by the embodiment can confirm the forward and reverse placement directions of the ID card only by determining the fixed area and the number of black and white points, and avoid the complicated processing of the character segmentation direction by using the OCR; and the number of the black and white points can be processed by hardware. It can be quickly obtained, and the processing speed is faster, which effectively ensures the practicability of the identification method and is beneficial to the promotion and application of the market.
  • FIG. 18 is a schematic structural diagram of a card placement direction identification device according to an embodiment of the present invention.
  • the embodiment provides a card placement direction identification device, and the identification device is used for card placement.
  • the direction is effectively identified.
  • the device includes:
  • a scanning module 1 for scanning a card to obtain a fixed area on the image of the card
  • the scanning module 1 can be a scanner, and the scanner can include a sensor, and a fixed area on the card image can be acquired by the set sensor.
  • the obtaining module 2 is configured to obtain, in the fixed area, a feature value on the card image that characterizes the fixed area, and the feature value that represents the fixed area characteristic is a feature that is based on the fixed area image pixel information and can represent the specific attribute of the fixed area.
  • the parameter value for example, the number of black and white points in the fixed area, or image brightness information or image boundary information calculated based on the number of black and white points in the fixed area, as long as the fixed area on the card can be found by using these parameter values.
  • the present embodiment schematically illustrates the case where the number of black and white points is used as a characteristic value for characterizing the fixed area, and other parameters are similar as the characteristic values for characterizing the fixed area, and will not be described below;
  • the processing module 3 is configured to identify the placement direction of the card according to the fixed area and the number of black and white points;
  • the processing module 3 in this embodiment is further configured to preprocess the card image by using a preset processing method to remove the card before acquiring the number of black and white points on the card image. Interference data in the image.
  • the fixed area is the location information of the feature identifier in the card image, and the number of black and white points is the number of feature points of the feature identifier.
  • the card placement direction identification device obtained by the embodiment obtains the fixed area on the card image and the number of black and white points in the fixed area through the scanning module 1 and the acquisition module 2, and the post-processing module 3 analyzes the fixed area and the number of black and white points.
  • the processing can effectively identify the placement direction of the card, avoid using the more complicated optical character recognition method in the prior art to identify the placement direction of the card, simplify the recognition processing flow, and the identification process is simple and easy to implement, and also has The higher recognition rate improves the practicability of the identification device and is beneficial to the promotion and application of the market.
  • the specific implementation manner for the processing module 3 to identify the placement direction of the card according to the fixed area and the number of black and white points is not limited, and those skilled in the art can The specific design requirements are set.
  • the processing module 3 is configured to: if the fixed area matches the preset standard direction fixed area, and the number of black and white points matches the preset number of standard direction black and white points, the standard will be The predetermined direction corresponding to the direction fixing area and the number of standard black and white points is confirmed as the placing direction of the card; wherein the predetermined direction may include a positive direction, a reverse direction, a left direction, and a right direction.
  • the processing module 3 is configured to: if the fixed area matches a preset standard forward fixed area, and the number of black and white points matches the preset number of standard forward black and white points, the standard forward fixed area, The positive direction corresponding to the standard forward black and white point number is confirmed as the card placement direction; or, if the fixed area matches the preset standard reverse fixed area, and the number of black and white points is compared with the preset standard reverse black and white point number Matching, the opposite direction corresponding to the standard reverse fixed area and the standard reverse black and white point number is confirmed as the card placement direction; or, if the fixed area matches the preset standard left side fixed area, and the number of black and white points Matching with the preset standard left-to-side black-and-white point number, confirm the card placement direction from the standard left side to the fixed area, the standard left side to the left side direction corresponding to the number of black-and-white points; or, if the fixed area is preset The standard right side matches the fixed area, and the number of black and white points matches the
  • the placement direction of the card can be accurately and effectively recognized, and the accurate reliability of the identification device is ensured.
  • the processing module 3 is also used to confirm the placement direction of the card. After the reverse direction, the card image is subjected to horizontal mirror processing and vertical mirror processing so that the display direction of the card image is changed to the positive direction;
  • the apparatus further includes an output module 4 for outputting the card image after the horizontal mirroring process and the vertical mirroring process.
  • the processing module 3 is further configured to rotate the card image after confirming that the card placement direction is the left direction/right direction, so that the display direction of the card image is changed to a positive direction;
  • the apparatus further includes an output module 4 for outputting the rotated card image.
  • the processing module 3 in this embodiment is further configured to determine, according to the fixed area, after acquiring the fixed area on the card image. The front and back of the card image.
  • the processing module 3 is configured to: if the fixed area matches the preset standard front fixed area, confirm that the card image is the front image of the card; or, if the fixed area matches the preset standard reverse fixed area, Then confirm that the card image is the reverse image of the card.
  • the acquisition module 3 in this embodiment is further configured to acquire type information of the card.
  • the obtaining module 3 is configured to: obtain the type information of the card input by the user before scanning the card; or obtain the feature information on the card image after acquiring the fixed area on the card image; If the pre-set standard type fixed area matches, and the feature information matches the standard type feature information, the card type corresponding to the standard type fixed area and the standard type feature information is confirmed as the type information of the card.
  • the technical solution provided by the embodiment can confirm the forward and reverse placement directions of the ID card only by determining the fixed area and the number of black and white points, and avoid the complicated processing of the character segmentation direction by using the OCR; and the number of the black and white points can be processed by hardware. It can be quickly obtained, the processing speed is faster, and the practicality of the identification device is effectively ensured, which is beneficial to the promotion and application of the market.
  • FIG. 19 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention.
  • still another aspect of the present embodiment provides an image processing apparatus 100, including the card placement direction identification apparatus 101 according to any one of the above embodiments, wherein the operation principle and the identification apparatus 101 are For the function of the implementation, refer to the description in the foregoing embodiment, and details are not described herein again.
  • the image processing apparatus 100 may be a scanner, a printer having a scanning function, a copying machine, or the like, and the image processing apparatus 100 includes an output module in the above-described identification apparatus 101, and the output module may output an electronic document to an application device ( This includes: smartphones, PCs, tablets, etc., or you can export electronic files directly to paper documents.
  • an application device This includes: smartphones, PCs, tablets, etc., or you can export electronic files directly to paper documents.
  • the image processing apparatus 100 provided in this embodiment can confirm the positive and negative placement directions of the ID card only by determining the fixed area and the number of black and white points by the setting device 101 of the card placement direction, and avoid using the OCR for character segmentation direction.
  • the complicated processing; and the above-mentioned number of black and white points can be quickly obtained by hardware processing, and the processing speed is faster, which effectively ensures the practicability of the image processing apparatus 100, and is favorable for market promotion and application.

Landscapes

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

Abstract

本发明提供一种卡片放置方向的识别方法、装置以及图像处理装置,方法包括:对卡片进行扫描,获取卡片图像上的固定区域;在固定区域内,获取所述卡片图像上表征所述固定区域特性的特征值;根据固定区域和表征所述固定区域特性的特征值对卡片的放置方向进行识别;固定区域为特征标识在卡片图像中的位置信息,表征所述固定区域特性的特征值为基于所述固定区域图像像素信息所获取的能表征所述固定区域特定属性的参数值。因此,本发明可以有效地识别卡片的放置方向,避免采用较为复杂的光学字符识别方式来对放置方向进行识别,简化了识别处理流程,且识别过程简单、容易实现,同时具有较高的识别率。

Description

卡片放置方向的识别方法、装置以及图像处理装置
相关申请交叉引用
本申请要求于2017年5月9日提交中国专利局、申请号为201710321533.3、发明名称为"卡片放置方向的识别方法、装置以及图像处理装置"的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及图像识别技术领域,尤其涉及一种卡片放置方向的识别方法、装置以及图像处理装置。
背景技术
随着生活水平的不断提高,日常生活中增加了各种各样的服务业务,在人们需要办理服务业务时,经常会需要到各种证件卡片的复印件,例如,身份证的复印件、银行卡的复印件、社保卡的复印件等等;下面以复印身份证为例进行说明,在现有技术中的身份证双面复印的时候,通常需要用户先把正面放到扫描装置中指定的区域内,然后再把背面放到指定的区域内;这样对于不了解扫描装置的用户而言,容易复印错误,浪费纸张,而且浪费用户的时间。并且现有技术中的身份证双面复印时,由于用户放置身份证的随意性容易导致最终输出图像上下颠倒,并且用户必须按照指定顺序放置身份证的正反面;如果不熟悉扫描装置的用户,经常容易操作错误,使用非常不便。
为了解决现有技术中存在的上述扫描装置操作不便的技术问题,中国专利申请号为CN201410072000.2的专利申请中公开了一种能自动识别正反面的方法,但是该自动识别方法需要通过复杂的光学字符识别(Optical Character Recognition,简称OCR)获取卡片中的文字信息,处理流程繁琐、复杂且识别率较低。
发明内容
本发明提供一种卡片放置方向的识别方法、装置以及图像处理装置,用于解决现有技术存在的处理流程繁琐、复杂且识别率较低的问题。
本发明的一方面提供了一种卡片放置方向的识别方法,包括:
对卡片进行扫描,获取卡片图像上的固定区域;
在所述固定区域内,获取所述卡片图像上的表征所述固定区域特性的特征值;
根据所述固定区域和表征所述固定区域特性的特征值对所述卡片的放置方向进行识别;
其中,所述固定区域为特征标识在所述卡片图像中的位置信息,表征所述固定区域特性的特征值为基于所述固定区域图像像素信息所获取的能表征所述固定区域特定属性的参数值。
如上所述的方法,根据所述固定区域和表征所述固定区域特性的特征值对所述卡片的放置方向进行识别,包括:
若所述固定区域与预先设置的标准方向固定区域相匹配,且表征所述固定区域特性的特征值与预先设置的标准方向特征值相匹配,则将所述标准方向固定区域、标准方向特征值所对应的预定方向确认为所述卡片的放置方向;
其中,所述预定方向包括正方向、反方向、左侧方向和右侧方向。
如上所述的方法,在确认所述卡片的放置方向为反方向之后,所述方法还包括:
对所述卡片图像进行水平镜像处理和垂直镜像处理,以使得所述卡片图像的显示方向变更为正方向;
输出经过水平镜像处理和垂直镜像处理后的卡片图像。
如上所述的方法,在确认所述卡片的放置方向为左侧方向/右侧方向之后,所述方法还包括:
对所述卡片图像进行旋转处理,以使得所述卡片图像的显示方向变更为正方向;
输出经过旋转处理后的卡片图像。
如上所述的方法,在获取卡片图像上的固定区域之后,所述方法还包括:
若所述固定区域与预先设置的标准正面固定区域相匹配,则确认所述卡片图像为卡片的正面图像;或者,
若所述固定区域与预先设置的标准反面固定区域相匹配,则确认所述卡片图像为卡片的反面图像。
如上所述的方法,在对卡片进行扫描之前,获取用户输入的卡片的类型信息;或者,
在获取卡片图像上的固定区域之后,获取所述卡片图像上的特征信息;
若所述固定区域与预先设置的标准类型固定区域相匹配,且所述特征信息与标准类型特征信息相匹配,则将所述标准类型固定区域、标准类型特征信息所对应的卡片类型确认为该卡片的类型信息。
本发明的另一方面提供了一种卡片放置方向的识别装置,包括:
扫描模块,用于对卡片进行扫描,获取卡片图像上的固定区域;
获取模块,用于在所述固定区域内,获取所述卡片图像上的表征所述固定区域特性的特征值;
处理模块,用于根据所述固定区域和表征所述固定区域特性的特征值对所述卡片的放置方向进行识别;
其中,所述固定区域为特征标识在所述卡片图像中的位置信息,表征所述固定区域特性的特征值为基于所述固定区域图像像素信息所获取的能表征所述固定区域特定属性的参数值。
如上所述的装置,所述处理模块,用于:
若所述固定区域与预先设置的标准方向固定区域相匹配,且表征所述固定区域特性的特征值与预先设置的标准方向特征值相匹配,则将所述标准方向固定区域、标准方向特征值所对应的预定方向确认为所述卡片的放置方向;
其中,所述预定方向包括正方向、反方向、左侧方向和右侧方向。
如上所述的装置,所述处理模块,还用于在确认所述卡片的放置方向为反方向之后,对所述卡片图像进行水平镜像处理和垂直镜像处理,以使得所述卡片图像的显示方向变更为正方向;
所述装置还包括:
输出模块,用于输出经过水平镜像处理和垂直镜像处理后的卡片图像。
如上所述的装置,所述处理模块,还用于在确认所述卡片的放置方向为左侧方向/右侧方向之后,对所述卡片图像进行旋转处理,以使得所述卡片图像的显示方向变更为正方向;
所述装置还包括:
输出模块,用于输出经过旋转处理后的卡片图像。
如上所述的装置,所述处理模块,还用于:在获取卡片图像上的固定区域之后,
若所述固定区域与预先设置的标准正面固定区域相匹配,则确认所述卡片图像为卡片的正面图像;或者,
若所述固定区域与预先设置的标准反面固定区域相匹配,则确认所述卡片图像为卡片的反面图像。
如上所述的装置,所述获取模块,还用于:
在对卡片进行扫描之前,获取用户输入的卡片的类型信息;或者,
在获取卡片图像上的固定区域之后,获取所述卡片图像上的特征信息;
若所述固定区域与预先设置的标准类型固定区域相匹配,且所述特征信息与标准类型特征信息相匹配,则将所述标准类型固定区域、标准类型特征信息所对应的卡片类型确认为该卡片的类型信息。
本发明的又一方面提供了一种图像处理装置,包括上述的卡片放置方向的识别装置。
本发明提供的卡片放置方向的识别方法、装置以及图像处理装置,通过获取卡片图像上的固定区域以及位于固定区域内的表征所述固定区域特性的特征值,而后对固定区域以及表征所述固定区域特性的特征值进行分析处理,可以有效地识别卡片的放置方向,避免采用现有技术中较为复杂的光学字符识别方式来对卡片的放置方向进行识别,简化了识别处理流程,且识别过程简单、容易实现,同时还具有较高的识别率,从而提高了该识别方法的实用性,有利于市场的推广与应用。
附图说明
图1为本发明一实施例提供的一种卡片放置方向的识别方法的流程示意图;
图2为本发明实施例提供的根据所述固定区域和表征固定区域特性的特征值对所述卡片的放置方向进行识别的流程示意图;
图3为本发明另一实施例提供的一种卡片放置方向的识别方法的流程示 意图;
图4为本发明又一实施例提供的一种卡片放置方向的识别方法的流程示意图;
图5为本发明实施例提供的根据所述固定区域确定所述卡片图像的正反面的流程示意图;
图6为本发明实施例提供的获取所述卡片的类型信息的流程示意图;
图7为本发明具体实施例提供的身份证卡片正面的正方向放置的结构示意图;
图8为本发明具体实施例提供的身份证卡片正面的反方向放置的结构示意图;
图9为本发明具体实施例提供的身份证卡片正面的左侧方向放置的结构示意图;
图10为本发明具体实施例提供的身份证卡片正面的右侧方向放置的结构示意图;
图11为本发明具体实施例提供的身份证卡片反面的正方向放置的结构示意图;
图12为本发明具体实施例提供的身份证卡片反面的反方向放置的结构示意图;
图13为本发明具体实施例提供的获取身份证卡片正面的固定区域的结构示意图;
图14为本发明具体实施例提供的获取身份证卡片反面的固定区域的结构示意图;
图15为本发明具体实施例提供的身份证正确输出方向的结构示意图;
图16为本发明具体实施例提供的身份证错误输出方向的结构示意图一;
图17为本发明具体实施例提供的身份证错误输出方向的结构示意图二;
图18为本发明实施例提供的一种卡片放置方向的识别装置的结构示意图;
图19为本发明实施例提供的一种图像处理装置的结构示意图。
具体实施方式
下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实例用于说明本发明,但不用来限制本发明的范围。
图1为本发明一实施例提供的一种卡片放置方向的识别方法的流程示意图;参考附图1可知,本实施例提供了一种卡片放置方向的识别方法,该识别方法用于对卡片的放置方向进行识别,以便于用户对卡片进行复印或扫描;具体的,该识别方法包括:
S101:对卡片进行扫描,获取卡片图像上的固定区域;
上述的卡片可以为:身份证、社保卡、银行卡或者学生卡等等;在需要获取卡片图像时,可以采用现有技术中的扫描仪对卡片进行扫描,之后可以对卡片图像上的固定区域进行识别,其中,上述的固定区域为特征标识在卡片图像中的位置信息,可以理解的是,特征标识为预先设置的,并且不同类型的卡片具有不同的特征标识,并且,还可以依据卡片的不同放置形态来设置不同的固定区域,如:横向放置的卡片的固定区域与纵向放置、倾斜放置或者处于其他放置状态的卡片的固定区域不同;例如,对于身份证卡片而言,可以将固定区域设置为国徽区域、身份证号码区域以及头像区域等等,在这种情况下,预先设置的特征标识为国徽、身份证号码以及用户头像,并且横向放置的身份证卡片的国徽区域、身份证号码区域以及头像区域与纵向放置的身份证卡片的国徽区域、身份证号码区域以及头像区域不同;而对于社保卡而言,可以将固定区域设置为国徽区域、社保号码区域以及头像区域等等,在这种情况下,预先设置的特征标识为国徽、社保号码以及用户头像,并且横向放置的社保卡的国徽区域、社保号码区域以及头像区域与纵向放置的社保卡的国徽区域、社保号码区域以及头像区域不同,需要说明的是,虽然社保卡与身份证的固定区域存在相同的情况(即都包括国徽区域和用户头像),然而,两个卡片的固定区域(包括:国徽区域和用户头像)的尺寸、大小以及具体位置均不相同。
需要说明的是,由于在对卡片进行扫描时,卡片的放置方向可以为任意的,例如,卡片可以为正方向放置、反方向放置或者倾斜放置,当卡片为倾斜放置时,所获取的卡片图像为倾斜方向,此时,为了便于固定区域获取的准确可靠性,可以优先对倾斜方向的卡片图像进行倾斜校正处理,使得卡片图像可以由倾斜方向变更为正方向、反方向、左侧方向或右侧方向,这样可 以有效地提高固定区域获取的精确程度。
S102:在固定区域内,获取卡片图像上的表征固定区域特性的特征值;
在获取到固定区域之后,可以进一步获取卡片图像上固定区域中的表征固定区域特性的特征值,表征固定区域特性的特征值为基于固定区域图像像素信息所获取的能表征所述固定区域特定属性的参数值,例如,该固定区域中的黑白点数量,或者基于该固定区域中黑白点数量计算得到的图像亮度信息或者图像边界信息等,只要能够通过这些参数值可以找到卡片上的固定区域即可;其中,黑白点数量为特征标识的特征点数量,该特征点数量可以为像素点的数量或像素值等等,此时,则可以通过对固定区域内的像素点或像素值的分析计算来获取卡片图像上的黑白点数量。
进一步的,为了保证固定区域特性的特征值获取的准确可靠性,在获取卡片图像上的固定区域特性的特征值之前,该方法还可以包括:采用预先设置的处理方法对卡片图像进行预处理,以去除卡片图像中的干扰数据。
其中,上述预先设置的处理方法可以为现有技术中的形态学闭运算,即先膨胀后腐蚀,通过上述形态学闭运算算法对卡片图像进行预处理,可以保留卡片图像上的特征点,去除干扰数据,从而有效地保证了固定区域特性的特征值获取的准确可靠性。
S103:根据固定区域和表征固定区域特性的特征值对卡片的放置方向进行识别;
为了表述方便,下文以黑白点数量作为表征固定区域特性的特征值为例进行示意性说明,其他参数作为表征固定区域特性的特征值的情况也类似,下面不再赘述。在获取到固定区域和黑白点数量之后,可以通过对固定区域和黑白点数量的分析判断准确识别卡片的放置方向,保证了卡片放置方向识别的准确可靠性;其中,卡片的放置方向可以包括:正方向放置、反方向放置、左侧方向放置和右侧方向放置,上述所提供的方位词均是以用户打印卡片的视角进行确定的,也即,在用户存在打印卡片需求时,正方向放置的卡片所打印出来的卡片图像正是用户所需要的正确图像。
本实施例提供的卡片放置方向的识别方法,通过获取卡片图像上的固定区域以及位于固定区域内的黑白点数量,而后对固定区域以及黑白点数量进行分析处理,可以有效地识别卡片的放置方向,避免采用现有技术中较为复 杂的光学字符识别方式来对卡片的放置方向进行识别,简化了识别处理流程,且识别过程简单、容易实现,同时还具有较高的识别率,从而提高了该识别方法的实用性,有利于市场的推广与应用。
图2为本发明实施例提供的根据所述固定区域和表征固定区域特性的特征值对所述卡片的放置方向进行识别的流程示意图;在上述实施例的基础上,继续参考附图1-2可知,本实施例对于根据固定区域和黑白点数量对卡片的放置方向进行识别的具体实现方式不做限定,本领域技术人员可以根据具体的设计需求进行设置,较为优选的,可以将根据固定区域和黑白点数量对卡片的放置方向进行识别设置为包括:
若固定区域与预先设置的标准方向固定区域相匹配,且黑白点数量与预先设置的标准方向黑白点数量相匹配,则将标准方向固定区域、标准方向黑白点数量所对应的预定方向确认为卡片的放置方向;其中,上述的预定方向可以包括正方向、反方向、左侧方向和右侧方向,因此,该步骤具体可以包括:
S1031:若固定区域与预先设置的标准正向固定区域相匹配,且黑白点数量与预先设置的标准正向黑白点数量相匹配,则将标准正向固定区域、标准正向黑白点数量所对应的正方向确认为卡片的放置方向;或者,
在获取到固定区域和黑白点数量之后,可以将固定区域与预先设置的所有类型卡片所对应的多个标准固定区域进行分析对比,将黑白点数量与预先设置的所有类型卡片所对应的多个标准黑白点数量进行分析对比;上述多个标准固定区域包括:标准正向固定区域、标准反向固定区域、标准左侧向固定区域以及标准右侧向固定区域;上述多个标准黑白点数量包括:标准正向黑白点数量、标准反向黑白点数量、标准左侧向黑白点数量以及标准右侧向黑白点数量;需要说明的是,上述的标准黑白点数量可以为一个具体数值或者一个数值区间,若标准黑白点数量为一个数值区间,那么在该数值区间内可以包括若干个黑白点数量的数值。
当分析对比的结果为固定区域与标准正向固定区域相匹配,此时可以基本判断卡片的放置方向为正方向,为了进一步保证对卡片放置方向识别的准确可靠性,将黑白点数量与标准正向黑白点数量进行分析对比,若黑白点数量与标准正向黑白点数量相匹配,则可以准确、有效地将标准正向固定区域、 标准正向黑白点数量所对应的正方向确认为卡片的放置方向;其中,上述的相匹配可以包括:完全相同或者相同的程度比例大于或等于预先设置的比例阈值。
S1032:若固定区域与预先设置的标准反向固定区域相匹配,且黑白点数量与预先设置的标准反向黑白点数量相匹配,则将标准反向固定区域、标准反向黑白点数量所对应的反方向确认为卡片的放置方向;或者,
当分析对比的结果为固定区域与标准反向固定区域相匹配,此时可以基本判断卡片的放置方向为反方向,为了进一步保证对卡片放置方向识别的准确可靠性,将黑白点数量与标准反向黑白点数量进行分析对比,若黑白点数量与标准反向黑白点数量相匹配,则可以准确、有效地将标准反向固定区域、标准反向黑白点数量所对应的反方向确认为卡片的放置方向。
S1033:若固定区域与预先设置的标准左侧向固定区域相匹配,且黑白点数量与预先设置的标准左侧向黑白点数量相匹配,则将标准左侧向固定区域、标准左侧向黑白点数量所对应的左侧方向确认卡片的放置方向;或者,
当分析对比的结果为固定区域与标准左侧向固定区域相匹配,此时可以基本判断卡片的放置方向为左侧方向,为了进一步保证对卡片放置方向识别的准确可靠性,将黑白点数量与标准左侧向黑白点数量进行分析对比,若黑白点数量与标准左侧向黑白点数量相匹配,则可以准确、有效地将标准左侧向固定区域、标准左侧向黑白点数量所对应的左侧方向确认为卡片的放置方向。
S1034:若固定区域与预先设置的标准右侧向固定区域相匹配,且黑白点数量与预先设置的标准右侧向黑白点数量相匹配,则将标准右侧向固定区域、标准右侧向黑白点数量所对应的右侧方向确认卡片的放置方向。
当分析对比的结果为固定区域与标准右侧向固定区域相匹配,此时可以基本判断卡片的放置方向为右侧方向,为了进一步保证对卡片放置方向识别的准确可靠性,将黑白点数量与标准右侧向黑白点数量进行分析对比,若黑白点数量与标准右侧向黑白点数量相匹配,则可以准确、有效地将标准右侧向固定区域、标准右侧向黑白点数量所对应的右侧方向确认为卡片的放置方向。
通过将固定区域、黑白点数量与预先设置的标准固定区域、标准黑白点 数量进行分析对比之后,可以准确、有效地识别出卡片的放置方向,保证了该识别方法使用的准确可靠性。
需要说明的是,上述步骤S1031-S1034仅以黑白点数量作为表征固定区域特性的特征值为例进行示意性说明,其他参数作为表征固定区域特性的特征值的情况也类似,不再赘述。
图3为本发明另一实施例提供的一种卡片放置方向的识别方法的流程示意图;图4为本发明又一实施例提供的一种卡片放置方向的识别方法的流程示意图;在上述实施例的基础上,继续参考附图3-4可知,在对卡片的放置方向进行识别完毕后,为了方便用户对卡片进行复印、打印操作,可以在确认卡片的放置方向为反方向之后,将方法设置为还包括:
S201:对卡片图像进行水平镜像处理和垂直镜像处理,以使得卡片图像的显示方向变更为正方向;
在确认卡片图像的显示方向为反方向时,如图8.12所示,由于此时卡片图像的显示方向与用户所需要进行打印或复印操作的正确图像相差180°,因此,可以对卡片图像进行旋转操作,具体的,将卡片图像旋转180°,以使得卡片图像的显示方向由反方向变更为正方向;或者,也可以对卡片图像进行水平镜像处理和垂直镜像处理,具体的,在卡片图像进行镜像处理时,对于水平镜像处理和垂直镜像处理的先后顺序不做限定,例如:可以先将卡片图像进行水平镜像处理,此时,以图8为例进行说明,图8中的卡片图像会由右下角变换到左下角,并且卡片图像中的信息仍处于反向状态;而后再将水平镜像处理后的卡片图像进行垂直镜像处理,此时,卡片图像会由左下角变换到左上角,并且,卡片图像中的信息会由反向状态变为正向状态,从而实现了将卡片图像的显示方向由反方向变更为正方向;或者,也可以先将卡片图像进行垂直镜像处理,此时,图8中的卡片图像会由右下角变换到右上角,并且卡片图像中的信息仍处于反向状态;而后再将垂直镜像处理后的图像进行水平镜像处理,此时,卡片图像会由右上角变换到左上角,并且,卡片图像中的信息会由反向状态变换为正向状态,从而实现了将卡片图像的显示方向由反方向变更为正方向,如图7所示。相类似的,图12中的卡片图像进行水平镜像处理和垂直镜像处理后也会变更为正方向,如图11所示。
S202:输出经过水平镜像处理和垂直镜像处理后的卡片图像。
在将卡片图像的显示方向变更为正方向之后,此时可以直接输出卡片图像,并且此时所输出的卡片图像也为正方向,即为用户所需要的打印或复印操作的正确图像。
当卡片图像的显示方向为反方向时,通过对卡片图像进行水平镜像处理和垂直镜像处理,使得卡片图像的显示方向由反方向变更为正方向,从而有效地方便了用户对卡片进行打印或复印操作,进一步提高了该识别方法使用的方便可靠性。
或者,在确认卡片的放置方向为左侧方向/右侧方向之后,将方法设置为还包括:
S301:对卡片图像进行旋转处理,以使得卡片图像的显示方向变更为正方向;
在确认卡片图像的显示方向为左侧方向/右侧方向时,由于此时卡片图像的显示方向与用户所需要进行打印或复印操作的正方向版本相差90°,因此,可以对卡片图像进行旋转处理,从而可以使得卡片图像的显示方向由左侧方向/右侧方向变更为正方向;具体的,当卡片图像的显示方向为左侧方向时,如图9所示,可以对卡片图像进行向右旋转90°处理,从而使得卡片图像的显示方向由左侧方向变更为正方向,如图7所示;而当卡片图像的显示方向为右侧方向时,如图10所示,可以对卡片图像进行向左旋转90°处理,从而使得卡片图像的显示方向由右侧方向变更为正方向,从而有效地保证了无论卡片图像处于何种放置方向,经过处理后,均可以使得卡片图像的显示方向变更为正方向,如图7所示。
S302:输出经过旋转处理后的卡片图像。
当卡片图像的显示方向为左侧方向/右侧方向时,通过对卡片图像进行旋转处理,使得卡片图像的显示方向由左侧方向/右侧方向变更为正方向,从而有效地方便了用户对卡片进行打印或复印操作,进一步提高了该识别方法使用的方便可靠性。
图5为本发明实施例提供的根据固定区域确定卡片图像的正反面的流程示意图;在上述实施例的基础上,继续参考附图5可知,为了进一步提高该识别方法的实用性,在获取卡片图像上的固定区域之后,将方法设置为还包括:
S401:根据固定区域确定卡片图像的正反面。
一般情况下,对于卡片图像而言,正面的固定区域与反面的固定区域不同,因此,可以根据固定区域来确认卡片图像的正反面;另外,若根据固定区域和黑白点数量对卡片的放置方向进行识别之前,即根据固定区域来确定卡片图像的正反面,那么,在根据固定区域和黑白点数量对卡片的放置方向进行识别的过程中,会有效地减少分析对比的过程,例如,若确定卡片图像是正面,那么在对固定区域和黑白点数量进行分析对比时,可以将固定区域与所有类型的卡片位于正面的标准固定区域进行比较,将黑白点数量与所有类型的卡片位于正面的标准黑白点数量进行比较,从而有效地去除了固定区域、黑白点数量与位于卡片反面的标准固定区域、标准黑白点数量进行分析比较的过程;这样有效地缩短了对固定区域和黑白点数量进行分析对比的时间,进一步提高了该识别方法的效率。
具体的,根据固定区域确定卡片的正反面可以包括:
S4011:若固定区域与预先设置的标准正面固定区域相匹配,则确认卡片图像为卡片的正面图像;或者,
将固定区域与预先设置的标固定区域进行分析对比,此时的标准固定区域包括所有卡片类型的标准正面固定区域和标准反面固定区域;当分析对比的结果为:固定区域与标准正面固定区域相匹配时,则可以确认卡片图像为卡片的正面图像,其中,上述的相匹配是指固定区域与标准正面固定区域完全相同。
S4012:若固定区域与预先设置的标准反面固定区域相匹配,则确认卡片图像为卡片的反面图像。
当分析对比的结果为:固定区域与标准反面固定区域相匹配时,则可以确认卡片图像为卡片的反面图像,其中,上述的相匹配是指固定区域与标准正面固定区域完全相同。
需要说明的是,对于卡片的正面和反面的定义而言,本领域技术人员可以根据具体的设计需求进行设置,例如:对于身份证而言,可以将包括国徽的一面称为卡片的正面,将包括头像和身份证号码的一面称为卡片的反面;或者,也可以将包括国徽的一面称为卡片的反面,将包括头像和身份证号码的一面称为卡片的正面均可;而对于不同的卡片而言,其具有不同的正面和 反面,进而也具有不同的正面固定区域和反面固定区域,因此,可以通过对固定区域的分析处理,准确、有效地确定卡片的正面和反面,这样在具体应用时,可以有效地防止用户出现重复打印卡片的情况,进一步提高了该识别方法使用的方便可靠性。
图6为本发明实施例提供的获取卡片的类型信息的流程示意图;在上述实施例的基础上,继续参考附图6可知,为了进一步提高该识别方法的实用性,本实施例将方法设置为还包括:
S501:获取卡片的类型信息。
一般情况下,对于卡片图像而言,不同类型的卡片具有不同的固定区域和黑白点数量,因此,可以在根据固定区域和黑白点数量对卡片的放置方向进行识别之前,获取卡片的类型信息,那么,在根据固定区域和黑白点数量对卡片的放置方向进行识别的过程中,会有效地减少分析对比的过程,例如,若确定卡片的类型信息为身份证,那么在对固定区域和黑白点数量进行分析对比值,可以将固定区域与身份证的卡片位于正面的标准固定区域进行比较,将黑白点数量与身份证的卡片位于正面的标准黑白点数量进行比较,从而有效地去除了固定区域、黑白点数量与其他类型卡片所对应的标准固定区域、标准黑白点数量进行分析比较的过程;这样有效地缩短了对固定区域和黑白点数量进行分析对比的时间,进一步提高了该识别方法的效率。
具体的,获取卡片的类型信息,包括:
S5011:在对卡片进行扫描之前,获取用户输入的卡片的类型信息;或者,
在对卡片进行扫描之前,扫描设备可以向用户发送提示信息,用户接收到提示信息之后,可以根据该提示信息直接输入卡片的类型信息,或者,也可以在预先设置的卡片类型选项中选择卡片的类型信息。
S5012:在获取卡片图像上的固定区域之后,获取卡片图像上的特征信息;
其中,上述的特征信息可以包括:卡片的颜色信息、卡片的图案信息、位于固定区域内的卡片信息等;获取特征信息的方式与上述获取卡片图像上的固定区域的获取方式相类似,具体可参考上述陈述内容。
S5013:若固定区域与预先设置的标准类型固定区域相匹配,且特征信息与标准类型特征信息相匹配,则将标准类型固定区域、标准类型特征信息所对应的卡片类型确认为该卡片的类型信息。
在获取到特征信息之后,可以对固定区域和特征信息进行分析处理,具体分析处理的方式为将固定区域与所有类型的卡片的标准类型固定区域进行分析对比,将特征信息与所有类型的卡片的标准特征信息进行分析对比;若分析对比结果为:固定区域与标准类型固定区域相匹配,且特征信息与标准类型特征信息相匹配,则将标准类型固定区域、标准类型特征信息所对应的卡片类型确认为该卡片的类型信息,其中,上述的相匹配包括:完全相同或者相同程度大于或等于预先设置的阈值门限。
通过获取卡片的类型信息,可以有效地提高该识别方法的实用性,并且若在根据固定区域和黑白点数量对卡片的放置方向进行识别之前,获取卡片的类型信息,那么,在根据固定区域和黑白点数量对卡片的放置方向进行识别的过程中,会有效地减少分析对比的过程,有效地提高了该识别方法的效率,进一步保证了该识别方法使用的准确可靠性。
为了更加清楚本实施例技术方案的实现过程,下面以对身份证的正反放置方向的识别为例进行说明,并且预先设定:身份证中带有国徽的一面为身份证的正面,如图7-8所示,其中,图7为身份证的正面正方向,图8为身份证的正面反方向;身份证中带有头像和身份证号码的一面为身份证的反面,如图11-12所示,其中,图11为身份证的反面正方向,图12为身份证的反面反方向;而后对身份证的正反放置方向进行识别,具体的步骤如下:
步骤A:对身份证卡片进行扫描,获取到卡片图像上的固定区域;为了提高识别率,需要在进行身份证的正反放置方向进行识别之前,对卡片图像进行适当裁剪;另外,对卡片图像进行分析处理的过程包括:当身份证的卡片图像为正面时,固定区域可以设置为国徽区域,具体获取固定区域的方式如图13所示,沿卡片图像建立二维坐标系(即包括X轴和Y轴),并将卡片图像的一个顶角处确定为坐标系的原点处,而后在所建立的二维坐标系中确定国徽区域的坐标信息(即为附图13中的C(X0,Y0)、D(X1,Y1)),根据上述的坐标信息即可确定特征标识国徽的位置信息,从而即可获取卡片图像上的固定区域;当身份证的卡片图像为反面时,固定区域可以设置为头像区域和身份证号码区域,而获取固定区域的方式与上述获取正面的固定区域的方式相类似,具体可参考附图14所示。
步骤B:在确定固定区域之后,获取卡片图像上位于固定区域内的黑白 点数量;
步骤C:对固定区域以及黑白点数量进行分析对比,确定身份证卡片的正反放置方向;
具体的,若固定区域与标准正向固定区域相匹配,且黑白点数量与预先设置的标准正向黑白点数量相匹配,则将标准正向固定区域、标准正向黑白点数量所对应的正方向确认为卡片的放置方向,此时卡片图像的显示方向即为用户所需要进行打印、复印的正确方向,如图15所示;若固定区域与预先设置的标准反向固定区域相匹配,且黑白点数量与预先设置的标准反向黑白点数量相匹配,则将标准反向固定区域、标准反向黑白点数量所对应的反方向确认为卡片的放置方向,此时卡片图像的显示方向不是用户所需要进行打印、复印的正确方向,如图16-17所示。
因此,若用户需要对身份证进行打印或者复印操作,可以将方法设置为包括:
步骤D:若卡片的放置方向为正方向,则可以直接打印并输出卡片图像;
步骤E:若卡片的放置方向为反方向,则需要对卡片图像进行水平镜像处理和垂直镜像处理,使得卡片图像的显示方向由反方向变更为正方向,而后打印并输出卡片图像,从而可以有效地保证用户所获取到的输出图像为正确的卡片图像。
另外,具体应用时,在输出卡片图像之前,该方法还可以包括:
步骤F:对卡片图像进行倾斜矫正,以保证卡片图像的输出质量;并且,当需要对一个或多个卡片图像进行打印输出时,还可以对一个或多个卡片图像进行排版,具体的,可以在预先设置的多个排版样式中选择卡片图像的打印样式,以方便用户查看,进一步提高了该方法的实用性。
本实施例提供的技术方案仅通过固定区域以及黑白点数量进行判断即可确认了身份证的正反放置方向,避免使用OCR进行字符分割方向的复杂处理;而且上述的黑白点数量可以通过硬件处理就能快速获取,处理速度更快,有效地保证了该识别方法的实用性,有利于市场的推广与应用。
图18为本发明实施例提供的一种卡片放置方向的识别装置的结构示意图,参考附图18可知,本实施例提供了一种卡片放置方向的识别装置,该识 别装置用于对卡片的放置方向进行有效识别,具体的,该装置包括:
扫描模块1,用于对卡片进行扫描,获取卡片图像上的固定区域;
其中,扫描模块1可以为扫描仪,并且扫描仪中可以包括有传感器,通过所设置的传感器可以获取到卡片图像上的固定区域。
获取模块2,用于在固定区域内,获取卡片图像上的表征固定区域特性的特征值,表征固定区域特性的特征值为基于固定区域图像像素信息所获取的能表征所述固定区域特定属性的参数值,例如,该固定区域中的黑白点数量,或者基于该固定区域中黑白点数量计算得到的图像亮度信息或者图像边界信息等,只要能够通过这些参数值可以找到卡片上的固定区域即可;为了表述方便,本实施例以黑白点数量作为表征固定区域特性的特征值为例进行示意性说明,其他参数作为表征固定区域特性的特征值的情况也类似,下面不再赘述;
处理模块3,用于根据固定区域和黑白点数量对卡片的放置方向进行识别;
为了保证黑白点数量获取的准确可靠性,本实施例中的处理模块3,还用于在获取卡片图像上的黑白点数量之前,采用预先设置的处理方法对卡片图像进行预处理,以去除卡片图像中的干扰数据。
其中,固定区域为特征标识在卡片图像中的位置信息,黑白点数量为特征标识的特征点数量。
本实施例提供的卡片放置方向的识别装置的具体原理和实现方式均与图1所示的实施例类似,此处不再赘述。
本实施例提供的卡片放置方向的识别装置,通过扫描模块1和获取模块2获取卡片图像上的固定区域以及位于固定区域内的黑白点数量,而后处理模块3对固定区域以及黑白点数量进行分析处理,可以有效地识别卡片的放置方向,避免采用现有技术中较为复杂的光学字符识别方式来对卡片的放置方向进行识别,简化了识别处理流程,且识别过程简单、容易实现,同时还具有较高的识别率,从而提高了该识别装置的实用性,有利于市场的推广与应用。
在上述实施例的基础上,继续参考附图18可知,本实施例对于处理模块3根据固定区域和黑白点数量对卡片的放置方向进行识别的具体实现方式不 做限定,本领域技术人员可以根据具体的设计需求进行设置,较为优选的,处理模块3用于:若固定区域与预先设置的标准方向固定区域相匹配,且黑白点数量与预先设置的标准方向黑白点数量相匹配,则将标准方向固定区域、标准方向黑白点数量所对应的预定方向确认为卡片的放置方向;其中,上述的预定方向可以包括正方向、反方向、左侧方向和右侧方向。
具体的,该处理模块3用于:若固定区域与预先设置的标准正向固定区域相匹配,且黑白点数量与预先设置的标准正向黑白点数量相匹配,则将标准正向固定区域、标准正向黑白点数量所对应的正方向确认为卡片的放置方向;或者,若固定区域与预先设置的标准反向固定区域相匹配,且黑白点数量与预先设置的标准反向黑白点数量相匹配,则将标准反向固定区域、标准反向黑白点数量所对应的反方向确认为卡片的放置方向;或者,若固定区域与预先设置的标准左侧向固定区域相匹配,且黑白点数量与预先设置的标准左侧向黑白点数量相匹配,则将标准左侧向固定区域、标准左侧向黑白点数量所对应的左侧方向确认卡片的放置方向;或者,若固定区域与预先设置的标准右侧向固定区域相匹配,且黑白点数量与预先设置的标准右侧向黑白点数量相匹配,则将标准右侧向固定区域、标准右侧向黑白点数量所对应的右侧方向确认卡片的放置方向。
本实施例提供的卡片放置方向的识别装置的具体原理和实现方式均与图2所示的实施例类似,此处不再赘述。
通过处理模块3将固定区域、黑白点数量与预先设置的标准固定区域、标准黑白点数量进行分析对比之后,可以准确、有效地识别出卡片的放置方向,保证了该识别装置使用的准确可靠性。
在上述实施例的基础上,继续参考附图18可知,在对卡片的放置方向进行识别完毕后,为了方便用户对卡片进行复印、打印操作,处理模块3,还用于在确认卡片的放置方向为反方向之后,对卡片图像进行水平镜像处理和垂直镜像处理,以使得卡片图像的显示方向变更为正方向;
装置还包括:输出模块4,用于输出经过水平镜像处理和垂直镜像处理后的卡片图像。
或者,处理模块3,还用于在确认卡片的放置方向为左侧方向/右侧方向之后,对卡片图像进行旋转处理,以使得卡片图像的显示方向变更为正方向;
装置还包括:输出模块4,用于输出经过旋转处理后的卡片图像。
本实施例提供的卡片放置方向的识别装置的具体原理、实现方式以及有益效果均与图3-图4所示的实施例类似,此处不再赘述。
在上述实施例的基础上,继续参考附图18可知,为了进一步提高该识别装置的实用性,本实施例中的处理模块3还用于在获取卡片图像上的固定区域之后,根据固定区域确定卡片图像的正反面。
具体的,处理模块3,用于:若固定区域与预先设置的标准正面固定区域相匹配,则确认卡片图像为卡片的正面图像;或者,若固定区域与预先设置的标准反面固定区域相匹配,则确认卡片图像为卡片的反面图像。
本实施例提供的卡片放置方向的识别装置的具体原理、实现方式以及有益效果均与图5所示的实施例类似,此处不再赘述。
在上述实施例的基础上,继续参考附图18可知,为了进一步提高该识别装置的实用性,本实施例中的获取模块3,还用于获取卡片的类型信息。
具体的,获取模块3,用于:在对卡片进行扫描之前,获取用户输入的卡片的类型信息;或者,在获取卡片图像上的固定区域之后,获取卡片图像上的特征信息;若固定区域与预先设置的标准类型固定区域相匹配,且特征信息与标准类型特征信息相匹配,则将标准类型固定区域、标准类型特征信息所对应的卡片类型确认为该卡片的类型信息。
本实施例提供的卡片放置方向的识别装置的具体原理、实现方式以及有益效果均与图6-15所示的实施例类似,此处不再赘述。
本实施例提供的技术方案仅通过固定区域以及黑白点数量进行判断即可确认了身份证的正反放置方向,避免使用OCR进行字符分割方向的复杂处理;而且上述的黑白点数量可以通过硬件处理就能快速获取,处理速度更快,有效地保证了该识别装置的实用性,有利于市场的推广与应用。
图19为本发明实施例提供的一种图像处理装置的结构示意图。参考附图19所示,本实施例的又一方面提供了一种图像处理装置100,包括上述任意一个实施例所述的卡片放置方向的识别装置101,其中,识别装置101的工作原理以及所实现的功能作用参见前述实施例中的描述,在此不再赘述。
其中,该图像处理装置100可以为扫描仪、具有扫描功能的打印机或者复印机等等,并且该图像处理装置100包括上述识别装置101中的输出模块, 该输出模块可以将电子文档输出至应用设备(包括:智能手机、个人电脑PC、平板电脑等)处,或者,也可以将电子文件直接输出为纸质文档。
本实施例提供的图像处理装置100,仅通过所设置的卡片放置方向的识别装置101对固定区域以及黑白点数量进行判断即可确认了身份证的正反放置方向,避免使用OCR进行字符分割方向的复杂处理;而且上述的黑白点数量可以通过硬件处理就能快速获取,处理速度更快,有效地保证了该图像处理装置100的实用性,有利于市场的推广与应用。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (13)

  1. 一种卡片放置方向的识别方法,其特征在于,包括:
    对卡片进行扫描,获取卡片图像上的固定区域;
    在所述固定区域内,获取所述卡片图像上表征所述固定区域特性的特征值;
    根据所述固定区域和表征所述固定区域特性的特征值对所述卡片的放置方向进行识别;
    其中,所述固定区域为特征标识在所述卡片图像中的位置信息,表征所述固定区域特性的特征值为基于所述固定区域图像像素信息所获取的能表征所述固定区域特定属性的参数值。
  2. 根据权利要求1所述的方法,其特征在于,根据所述固定区域和表征所述固定区域特性的特征值对所述卡片的放置方向进行识别,包括:
    若所述固定区域与预先设置的标准方向固定区域相匹配,且表征所述固定区域特性的特征值与预先设置的标准方向特征值相匹配,则将所述标准方向固定区域、标准方向特征值所对应的预定方向确认为所述卡片的放置方向;
    其中,所述预定方向包括正方向、反方向、左侧方向和右侧方向。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    在确认所述卡片的放置方向为反方向之后,对所述卡片图像进行水平镜像处理和垂直镜像处理,以使得所述卡片图像的显示方向变更为正方向;
    输出经过水平镜像处理和垂直镜像处理后的卡片图像。
  4. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    在确认所述卡片的放置方向为左侧方向/右侧方向之后,对所述卡片图像进行旋转处理,以使得所述卡片图像的显示方向变更为正方向;
    输出经过旋转处理后的卡片图像。
  5. 根据权利要求1-4中任意一项所述的方法,其特征在于,在获取卡片图像上的固定区域之后,所述方法还包括:
    若所述固定区域与预先设置的标准正面固定区域相匹配,则确认所述卡片图像为卡片的正面图像;或者,
    若所述固定区域与预先设置的标准反面固定区域相匹配,则确认所述卡 片图像为卡片的反面图像。
  6. 根据权利要求1-4中任意一项所述的方法,其特征在于,所述方法还包括:
    在对卡片进行扫描之前,获取用户输入的卡片的类型信息;或者,
    在获取卡片图像上的固定区域之后,获取所述卡片图像上的特征信息;
    若所述固定区域与预先设置的标准类型固定区域相匹配,且所述特征信息与标准类型特征信息相匹配,则将所述标准类型固定区域、标准类型特征信息所对应的卡片类型确认为该卡片的类型信息。
  7. 一种卡片放置方向的识别装置,其特征在于,包括:
    扫描模块,用于对卡片进行扫描,获取卡片图像上的固定区域;
    获取模块,用于在所述固定区域内,获取所述卡片图像上的表征所述固定区域特性的特征值;
    处理模块,用于根据所述固定区域和表征所述固定区域特性的特征值对所述卡片的放置方向进行识别;
    其中,所述固定区域为特征标识在所述卡片图像中的位置信息,表征所述固定区域特性的特征值为基于所述固定区域图像像素信息所获取的能表征所述固定区域特定属性的参数值。
  8. 根据权利要求7所述的装置,其特征在于,所述处理模块,用于:
    若所述固定区域与预先设置的标准方向固定区域相匹配,且表征所述固定区域特性的特征值与预先设置的标准方向特征值相匹配,则将所述标准方向固定区域、标准方向特征值所对应的预定方向确认为所述卡片的放置方向;
    其中,所述预定方向包括正方向、反方向、左侧方向和右侧方向。
  9. 根据权利要求8所述的装置,其特征在于,
    所述处理模块,还用于在确认所述卡片的放置方向为反方向之后,对所述卡片图像进行水平镜像处理和垂直镜像处理,以使得所述卡片图像的显示方向变更为正方向;
    所述装置还包括:
    输出模块,用于输出经过水平镜像处理和垂直镜像处理后的卡片图像。
  10. 根据权利要求8所述的装置,其特征在于,
    所述处理模块,还用于在确认所述卡片的放置方向为左侧方向/右侧方向 之后,对所述卡片图像进行旋转处理,以使得所述卡片图像的显示方向变更为正方向;
    所述装置还包括:
    输出模块,用于输出经过旋转处理后的卡片图像。
  11. 根据权利要求7-10中任意一项所述的装置,其特征在于,所述处理模块,还用于:在获取卡片图像上的固定区域之后,
    若所述固定区域与预先设置的标准正面固定区域相匹配,则确认所述卡片图像为卡片的正面图像;或者,
    若所述固定区域与预先设置的标准反面固定区域相匹配,则确认所述卡片图像为卡片的反面图像。
  12. 根据权利要求7-10中任意一项所述的装置,其特征在于,所述获取模块,还用于:
    在对卡片进行扫描之前,获取用户输入的卡片的类型信息;或者,
    在获取卡片图像上的固定区域之后,获取所述卡片图像上的特征信息;
    若所述固定区域与预先设置的标准类型固定区域相匹配,且所述特征信息与标准类型特征信息相匹配,则将所述标准类型固定区域、标准类型特征信息所对应的卡片类型确认为该卡片的类型信息。
  13. 一种图像处理装置,其特征在于,包括权利要求7-12中任意一项所述的卡片放置方向的识别装置。
PCT/CN2018/082538 2017-05-09 2018-04-10 卡片放置方向的识别方法、装置以及图像处理装置 WO2018205789A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710321533.3 2017-05-09
CN201710321533.3A CN107194397A (zh) 2017-05-09 2017-05-09 卡片放置方向的识别方法、装置以及图像处理装置

Publications (1)

Publication Number Publication Date
WO2018205789A1 true WO2018205789A1 (zh) 2018-11-15

Family

ID=59873692

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082538 WO2018205789A1 (zh) 2017-05-09 2018-04-10 卡片放置方向的识别方法、装置以及图像处理装置

Country Status (2)

Country Link
CN (2) CN107194397A (zh)
WO (1) WO2018205789A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194397A (zh) * 2017-05-09 2017-09-22 珠海赛纳打印科技股份有限公司 卡片放置方向的识别方法、装置以及图像处理装置
CN111186215B (zh) * 2018-11-15 2021-01-29 苏州苏大维格科技集团股份有限公司 一种激光打印系统及其打印方法
CN110223398A (zh) * 2019-06-12 2019-09-10 浙江机电职业技术学院 一种地铁自动售检票系统及方法
CN110991451B (zh) * 2019-11-01 2024-05-07 珠海奔图电子有限公司 扫描图像的卡片区域图像的校正方法及装置
CN111881810B (zh) * 2020-07-23 2024-03-29 前海人寿保险股份有限公司 基于ocr的证件识别方法、装置、终端和存储介质
CN111882615B (zh) * 2020-07-30 2024-03-12 珠海市新德汇信息技术有限公司 基于特征色块的卡片方向识别方法、装置及自助设备
CN117173391B (zh) * 2023-11-02 2024-03-19 广东省建筑设计研究院有限公司 一种基于深度学习和多视几何的倾斜图像矫正方法及系统

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1205485A (zh) * 1997-07-15 1999-01-20 三星电子株式会社 用于校正文件图像方向的方法
EP1073001A2 (en) * 1999-07-30 2001-01-31 Fujitsu Limited Document image correcting device and correcting method
CN1422068A (zh) * 2001-11-23 2003-06-04 力捷电脑股份有限公司 扫描方法
CN101639933A (zh) * 2009-07-16 2010-02-03 上海合合信息科技发展有限公司 图像旋转校正方法及系统、电子设备
CN102930265A (zh) * 2012-09-19 2013-02-13 广州市中崎商业机器有限公司 一种多身份证扫描方法及装置
CN106548171A (zh) * 2016-09-22 2017-03-29 青岛海信电器股份有限公司 一种图像自动校正的方法、装置及系统
CN107194397A (zh) * 2017-05-09 2017-09-22 珠海赛纳打印科技股份有限公司 卡片放置方向的识别方法、装置以及图像处理装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7679777B2 (en) * 2005-05-03 2010-03-16 Xerox Corporation Job supplement for electronic printing machines
CN105528602A (zh) * 2015-10-30 2016-04-27 小米科技有限责任公司 区域识别方法及装置
CN106295638B (zh) * 2016-07-29 2019-10-15 北京小米移动软件有限公司 证件图像倾斜校正方法和装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1205485A (zh) * 1997-07-15 1999-01-20 三星电子株式会社 用于校正文件图像方向的方法
EP1073001A2 (en) * 1999-07-30 2001-01-31 Fujitsu Limited Document image correcting device and correcting method
CN1422068A (zh) * 2001-11-23 2003-06-04 力捷电脑股份有限公司 扫描方法
CN101639933A (zh) * 2009-07-16 2010-02-03 上海合合信息科技发展有限公司 图像旋转校正方法及系统、电子设备
CN102930265A (zh) * 2012-09-19 2013-02-13 广州市中崎商业机器有限公司 一种多身份证扫描方法及装置
CN106548171A (zh) * 2016-09-22 2017-03-29 青岛海信电器股份有限公司 一种图像自动校正的方法、装置及系统
CN107194397A (zh) * 2017-05-09 2017-09-22 珠海赛纳打印科技股份有限公司 卡片放置方向的识别方法、装置以及图像处理装置

Also Published As

Publication number Publication date
CN108564081A (zh) 2018-09-21
CN107194397A (zh) 2017-09-22

Similar Documents

Publication Publication Date Title
WO2018205789A1 (zh) 卡片放置方向的识别方法、装置以及图像处理装置
US11087407B2 (en) Systems and methods for mobile image capture and processing
US10699146B2 (en) Mobile document detection and orientation based on reference object characteristics
US10635712B2 (en) Systems and methods for mobile image capture and processing
WO2021212873A1 (zh) 证件四角残缺检测方法、装置、设备及存储介质
US20210201069A1 (en) Image processing system, image processing method, and program
US20210209393A1 (en) Image processing system, image processing method, and program
US10887479B2 (en) Multifunctional peripheral device detecting and displaying signature lines within an electronic document
CN110991451B (zh) 扫描图像的卡片区域图像的校正方法及装置

Legal Events

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

Ref document number: 18798819

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18798819

Country of ref document: EP

Kind code of ref document: A1