[go: nahoru, domu]

CN110674818B - Card surface detection method, device, equipment and medium - Google Patents

Card surface detection method, device, equipment and medium Download PDF

Info

Publication number
CN110674818B
CN110674818B CN201911217528.3A CN201911217528A CN110674818B CN 110674818 B CN110674818 B CN 110674818B CN 201911217528 A CN201911217528 A CN 201911217528A CN 110674818 B CN110674818 B CN 110674818B
Authority
CN
China
Prior art keywords
alpha channel
card surface
target picture
channel value
preset area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911217528.3A
Other languages
Chinese (zh)
Other versions
CN110674818A (en
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.)
Jiede China Technology Co Ltd
Original Assignee
Giesecke and Devrient GmbH
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 Giesecke and Devrient GmbH filed Critical Giesecke and Devrient GmbH
Priority to CN201911217528.3A priority Critical patent/CN110674818B/en
Publication of CN110674818A publication Critical patent/CN110674818A/en
Application granted granted Critical
Publication of CN110674818B publication Critical patent/CN110674818B/en
Priority to PCT/CN2020/133562 priority patent/WO2021110089A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a card surface detection method, a device, equipment and a medium. The method comprises the following steps: determining a target picture so that the target picture covers a preset area of a card surface to be detected; detecting Alpha channel values of the vertexes of the preset area; and detecting whether the target picture completely covers the preset area of the card surface to be detected based on the Alpha channel value of the vertex of the preset area. According to the card surface detection method, the card surface detection device, the card surface detection equipment and the card surface detection medium, whether the uploaded pattern completely covers the whole card surface can be automatically detected when a user self-defines the card surface pattern, manual verification is not needed, and the card surface detection efficiency and the card surface detection accuracy are improved.

Description

Card surface detection method, device, equipment and medium
Technical Field
The present invention relates to the field of detection technologies, and in particular, to a method, an apparatus, a device, and a medium for card surface detection.
Background
With the increasing number of personalized articles, users also prefer to customize some patterns on the articles to make the articles more distinctive.
For example, smart cards are widely used by users in daily life, but most of the smart cards belonging to the same category have the same style. For example, the traffic card of each person is identical in appearance, and the bank cards of each person belonging to the same bank are also identical in appearance, so that the personalized requirements of the users cannot be met.
Therefore, in order to meet the personalized requirements of users, the users can customize the patterns of the card surface at present. However, when the user customizes the pattern of the card surface, the card manufactured by the system according to the picture uploaded by the user is often generated due to different sizes of the uploaded pictures, and the appearance of the card surface is affected by factors such as the position and size of the picture displayed on the card surface, and even the use of the card is affected. Therefore, manual review is often performed on the uploaded pictures to ensure that the user can obtain a card meeting the requirements. However, the efficiency of manual review is low, and some slight errors cannot be accurately judged.
Disclosure of Invention
The embodiment of the invention provides a card surface detection method, a device, equipment and a medium, which can automatically detect whether an uploaded pattern completely covers the whole card surface when a user self-defines a card surface pattern, do not need manual verification, and improve the card surface detection efficiency and the card surface detection accuracy.
In a first aspect, a method for card surface detection is provided, which includes:
acquiring a target picture so that the target picture covers a preset area of a card surface to be detected;
detecting Alpha channel values of the vertexes of the preset area;
and detecting whether the target picture completely covers the preset area of the card surface to be detected based on the Alpha channel value of the vertex of the preset area.
Under the condition that the target picture covers the preset area of the card surface to be detected, whether the target picture completely covers the preset area of the card surface to be detected can be detected by detecting the Alpha channel value of the vertex of the preset area, manual verification is not needed, and the card surface detection efficiency and the card surface detection accuracy are improved.
In some implementations of the first aspect, before acquiring the target picture, the method for detecting the card surface further includes:
and setting the initial Alpha channel value of the preset area of the card surface to be detected to be 0%.
By setting the initial Alpha channel value of the preset area to 0%, the Alpha channel value of the preset area covered with the target picture can be obviously distinguished from the initial Alpha channel value, and the accuracy of card surface detection is further improved.
In some implementation manners of the first aspect, detecting whether the target picture completely covers the preset area of the card surface to be detected based on an Alpha channel value of a vertex of the preset area includes:
and if the Alpha channel value of at least one vertex of the preset area is not changed, judging that the target picture does not completely cover the preset area of the card surface to be detected.
The Alpha channel value of at least one vertex of the preset area is obtained through detection and is not changed, so that the situation that the target picture does not completely cover the preset area of the card surface to be detected can be judged, the calculated amount of the system can be reduced, and the detection efficiency of the system is improved.
In some implementations of the first aspect, detecting whether the target picture completely covers the preset area of the card surface to be detected further includes:
if the target picture does not completely cover the preset area of the card surface to be detected, determining the vertex position of which the Alpha channel value is not changed;
and generating adjustment prompt information based on the vertex position of which the Alpha channel value is not changed.
Under the condition that the target card does not completely cover the preset area of the card surface to be detected, adjustment prompt information can be generated based on the vertex position of which the Alpha channel value is not changed, adjustment suggestions are provided for a user, and the use experience of the user is improved.
In some implementations of the first aspect, generating adjustment hint information based on vertex positions for which Alpha channel values have not changed comprises:
and prompting that the target picture needs to move to the vertex position of which the Alpha channel value is not changed, and/or prompting that the target picture needs to be amplified.
By providing specific adjustment prompt information for the user, the user can adjust the picture in a targeted manner, and the use experience of the user is improved.
In some implementations of the first aspect, generating adjustment hint information based on vertex positions for which Alpha channel values have not changed comprises:
and carrying out flashing prompt at the vertex position where the Alpha channel value is not changed.
In some implementations of the first aspect, generating adjustment hint information based on vertex positions for which Alpha channel values have not changed comprises:
acquiring a pixel value corresponding to the contrast color of the target picture according to a preset rule;
carrying out flash prompting at the vertex position where the Alpha channel value is not changed by using the pixel value corresponding to the contrast color of the target picture;
wherein, the preset rule comprises: and taking the contrast color of the background color with the largest occupation ratio as the contrast color of the target picture in the plurality of background colors included by the target picture.
By utilizing the pixel values corresponding to the contrast colors of the target picture, the flashing prompt is carried out at the vertex positions where the Alpha channel values are not changed, so that the user can more intuitively know which positions of the target picture on the preset area of the card surface to be detected are not covered by the target picture, the user can adjust the positions of the target picture in a targeted manner, and the use experience of the user is improved.
In a second aspect, a card surface detection apparatus is provided, the apparatus comprising: the acquisition module is used for acquiring a target picture so that the target picture covers a preset area of a card surface to be detected;
the first detection module is used for detecting Alpha channel values of the vertexes of the preset area;
and the second detection module is used for detecting whether the target picture completely covers the preset area of the card surface to be detected based on the Alpha channel value of the vertex of the preset area.
In a third aspect, a card surface detecting apparatus is provided, the apparatus comprising:
a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the method for card surface detection as provided in the embodiments of the present invention described above.
In a fourth aspect, a computer storage medium is provided, in which computer program instructions are stored, and when executed by a processor, the computer program instructions implement the method for detecting a card face provided in the above embodiment of the present invention.
According to the card surface detection method, device, equipment and medium provided by the embodiment of the invention, under the condition that the target picture covers the preset area of the card surface to be detected, whether the target picture completely covers the preset area of the card surface to be detected can be detected by detecting the Alpha channel value of the vertex of the preset area, manual verification is not needed, and the card surface detection efficiency and the card surface detection accuracy are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 illustrates a flow diagram of a method of card face detection in accordance with one embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating card face detection according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a card surface detection apparatus according to an embodiment of the invention;
fig. 4 shows a block diagram of an exemplary hardware architecture of an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In order to meet the requirements of users for self-defining card patterns, the users are allowed to draw the background picture of the card surface into the pattern of the user uploaded picture by uploading the picture so as to meet the personalized requirements of the users.
However, when the user adjusts the covering position of the uploaded picture on the card surface, the fine error cannot be recognized by human eyes, so that the adjusted uploaded picture cannot be completely covered on the card surface, and the attractiveness of the card is finally affected.
Therefore, the embodiment of the invention provides a card surface detection method, a device, equipment and a medium, which can automatically detect whether an uploaded pattern completely covers the whole card surface when a user adjusts the covering position of the uploaded picture in a preset area of the card surface, do not need manual verification, and improve the card surface detection efficiency and the card surface detection accuracy.
The following describes a method, an apparatus, a device and a medium for card surface detection according to an embodiment of the present invention with reference to the accompanying drawings. It should be noted that these examples are not intended to limit the scope of the present disclosure.
The method of card surface detection according to an embodiment of the invention is described in detail below with reference to fig. 1.
In order to better understand the technical solution of the present invention, the method for detecting the card surface according to the embodiment of the present invention is described in detail below with reference to fig. 1.
Fig. 1 is a flowchart illustrating a method of card face detection according to an embodiment of the present invention. As shown in fig. 1, the method for detecting a card surface in the embodiment of the present invention may include the following steps:
s101, acquiring a target picture so that the target picture covers a preset area of a card surface to be detected.
S102, detecting Alpha channel values of the vertexes of the preset area.
S103, detecting whether the target picture completely covers the preset area of the card surface to be detected based on the Alpha channel value of the vertex of the preset area.
Where Alpha channel is understood as an opacity parameter, an Alpha channel value of 0% indicates complete transparency, and an Alpha channel value of 100% indicates complete opacity.
In the embodiment of the invention, after the terminal device acquires the target picture uploaded by the user, the target picture can be displayed in the preset area of the card surface to be detected. The size of the preset area of the card surface to be detected can be an area consistent with the size of the card to be detected.
In view of the fact that the Alpha channel value of the vertex of the preset area changes when the target picture covers the preset area of the card surface to be detected, the Alpha channel value of the vertex of the preset area only needs to be detected, and whether the target picture completely covers the preset area of the card surface to be detected can be judged by judging whether the Alpha channel value of the vertex of the preset area changes. The card surface detection method of the embodiment of the invention has small calculation amount, thereby improving the system detection efficiency.
In an embodiment of the present invention, before acquiring the target picture, the method for detecting the card surface further includes:
and setting the initial Alpha channel value of the preset area of the card surface to be detected to be 0%. For example, the preset area of the card surface to be detected can be set to be colorless and transparent RGBA (0, 0,0, 0).
In the embodiment of the invention, the initial Alpha channel value of the preset area of the card surface to be detected is set to be 0%, so that the Alpha channel value covered with the target picture can be obviously distinguished from the initial Alpha channel value, the terminal equipment can conveniently detect the Alpha channel value of the preset area, the efficiency of the terminal equipment for detecting the Alpha channel value of the preset area is improved, and the accuracy of card surface detection is improved.
In an embodiment of the present invention, the preset area of the card surface to be detected has an initial Alpha channel value, and if the target picture completely covers the preset area, it is detected that the Alpha channel values of all vertices of the preset area should change and are no longer the initial Alpha channel value of the preset area. However, if it is detected that the Alpha channel value of at least one vertex of the preset area is unchanged and still is the initial Alpha channel value, it may be determined that the target image does not completely cover the preset area of the card surface to be detected.
For example, if the preset area is a rectangle, the initial Alpha channel value of the preset area is 0%, and the Alpha channel value of the vertex of the upper left corner of the preset area of the card surface to be detected is still 0%, it is determined that the Alpha channel value at the vertex of the upper left corner of the preset area of the card surface to be detected is not changed, and it can be considered that the target picture does not cover the vertex of the upper left corner of the preset area, so that it can be determined that the target picture does not completely cover the preset area of the card surface to be detected.
In the embodiment of the invention, whether the target picture completely covers the preset area of the card surface to be detected can be judged by detecting the Alpha channel value at the vertex of the card surface to be detected, the calculated amount is small, and the detection efficiency is high.
In an embodiment of the present invention, after detecting whether the target picture completely covers the preset region of the card surface to be detected, if the target picture is not completely covered in the preset region of the card surface to be detected, the position of the vertex where the Alpha channel value is not changed may be further determined. For example, the position of the vertex with unchanged Alpha channel value is obtained as the upper left corner of the preset area. And generating adjustment prompt information based on the vertex position which is determined that the Alpha channel value is not changed.
As an example, as shown in fig. 2, fig. 2 shows a schematic diagram of card surface detection according to an embodiment of the present invention. In fig. 2, the initial Alpha channel value of the preset area is 0%, the gray area is the display area of the target picture in the preset area, and by detecting the Alpha channel value at the vertex of the preset area, it is obtained that the vertex with the Alpha channel value of 0% still exists in the preset area (the vertex with the Alpha channel value unchanged), and it can be determined that the target picture does not completely cover the preset area of the card surface to be detected.
Next, the positions of vertices whose Alpha channel value is 0% can be further determined. When determining that the positions of the vertices with the Alpha channel value of 0% are vertex 1 (upper left corner) and vertex 4 (lower left corner) of the preset area, the adjustment prompt information may be generated. The adjustment information may be an adjustment prompt by blinking at the positions of the vertex 1 and the vertex 4, or may be an adjustment prompt by generating an information popup and displaying the adjustment prompt information.
In the embodiment of the invention, under the condition that the target card does not completely cover the preset area of the card surface to be detected, the adjustment prompt information is generated based on the vertex position of the Alpha channel value which is not changed, so that the adjustment suggestion can be provided for the user, and the use experience of the user is further improved.
In an embodiment of the present invention, based on the vertex position where the Alpha channel value has not changed, it may further prompt the user that the target picture needs to be moved to the vertex position where the Alpha channel value has not changed, and/or prompt the user that the target picture needs to be enlarged.
For example, with reference to fig. 2, taking an initial Alpha channel value of the preset region as 0%, when determining that positions of vertices with Alpha channel values of 0% are vertex 1 (upper left corner) and vertex 4 (lower left corner) of the preset region, an adjustment prompt message of "the target picture needs to move to the upper left corner of the preset region" may be prompted to the user, or an adjustment prompt message of "the target picture needs to move to the lower left corner of the preset region" may be prompted to the user, and an adjustment prompt message of "the target picture needs to be enlarged" may also be prompted to the user. The user can select the adjustment mode autonomously according to the adjustment prompt information. For example, in the case shown in fig. 2, the user only needs to select to perform the motion adjustment on the target picture, and does not need to perform the enlargement processing on the target picture.
In addition, when the terminal determines the position of the vertex with the Alpha channel value of 0%, and the vertex is on the same side of the preset area, the terminal can also directly prompt the user to move towards a certain direction of the preset area. For example, when the positions of the vertices with the Alpha channel value of 0% are the upper left corner and the lower left corner of the preset region, the system determines that both the positions of the two vertices are located on the left side of the preset display region, and may prompt the user with an adjustment prompt identifier of "the target picture needs to move to the left side of the preset region".
In the embodiment of the invention, the vertex position of the Alpha channel value which is not changed is determined, and the specific adjustment prompt information is provided for the user, so that the user can adjust the picture in a targeted manner, and the use experience of the user is improved.
In an embodiment of the invention, a flashing prompt can be performed at the vertex position where the Alpha channel value is not changed.
For example, when it is determined that the vertex positions where the Alpha channel value is not changed are vertex 1 (upper left corner) of the preset region and vertex 4 (lower left corner) of the preset region, the positions of vertex 1 and vertex 4 may be flashed through the identifiers of other shapes such as a rectangle and a circle, so as to remind the user of the uncovered position of the target picture on the preset region.
In an embodiment of the present invention, a pixel value corresponding to the contrast color of the target picture may also be obtained according to a preset rule, and a blinking prompt may be performed at a vertex position where the Alpha channel value is not changed by using the pixel value corresponding to the contrast color of the target picture. The preset rule may be that, among a plurality of background colors included in the target picture, a contrast color of the background color with the largest occupation ratio is used as the contrast color of the target picture.
For example, the target picture includes a plurality of background colors of red, blue, and green. Since the proportion of red to the background color of the target picture is 60%, which is the largest, the contrast color cyan of red is selected as the contrast color of the target picture. Next, cyan may be flashed at the top left vertex of the preset area (the vertex where the Alpha channel value has not changed).
In the embodiment of the invention, the flicker prompt is carried out at the vertex position where the Alpha channel value is not changed by using the pixel value corresponding to the contrast color of the target picture, so that a user can more intuitively know which position on the preset area of the card surface to be detected is not covered by the target picture, the position of the target picture can be specifically adjusted by the user, and the use experience of the user is improved.
Based on the specific implementation manner of the card surface detection method provided by the embodiment, correspondingly, the application also provides a specific implementation manner of the card surface detection device. Please refer to fig. 3.
The apparatus for card surface detection according to the embodiment of the present invention, which corresponds to the method for card surface detection, is described in detail below with reference to fig. 3.
Fig. 3 is a schematic structural diagram of a device for detecting a card surface according to an embodiment of the invention.
As shown in fig. 3, the apparatus for detecting a card surface includes:
the obtaining module 310 is configured to obtain a target picture, so that the target picture covers a preset area of a card surface to be detected;
the detection module 320 is configured to detect an Alpha channel value of a vertex of the preset area, and detect whether the target picture completely covers the preset area of the card surface to be detected based on the Alpha channel value of the vertex of the preset area.
In the embodiment of the invention, through the card surface detection device, after the terminal device obtains the target picture uploaded by the user, only the Alpha channel value of the vertex of the preset area needs to be detected, and whether the target picture completely covers the preset area of the card surface to be detected can be judged by judging the Alpha channel value of the vertex of the preset area. The manual checking is not needed, the system calculation amount is small, and the system detection efficiency can be improved.
In one embodiment of the present invention, the apparatus for detecting a card surface further includes:
and the setting module is used for setting the initial Alpha channel value of the preset area of the card surface to be detected to be 0% before the target picture is acquired.
In the embodiment of the invention, the initial Alpha channel value of the preset area of the card surface to be detected is set to be 0%, so that the Alpha channel value of the preset area covered with the target picture can be obviously distinguished from the initial Alpha channel value, and the card surface detection accuracy is improved.
In an embodiment of the present invention, the detection module is further configured to determine that the target picture does not completely cover the preset area of the card surface to be detected if the Alpha channel value of at least one vertex of the preset area is not changed.
In the embodiment of the invention, whether the target picture completely covers the preset area of the card surface to be detected can be judged by detecting the Alpha channel value at the vertex of the card surface to be detected, the calculated amount is small, and the detection efficiency is high.
In an embodiment of the present invention, the obtaining module 310 further includes:
and the determining module is used for determining the vertex position of which the Alpha channel value is not changed if the target picture does not completely cover the preset area of the card surface to be detected.
And the generation submodule is used for generating adjustment prompt information based on the vertex position of which the Alpha channel value is not changed.
In the embodiment of the invention, under the condition that the target card does not completely cover the preset area of the card surface to be detected, the adjustment prompt information is generated based on the vertex position of the Alpha channel value which is not changed, so that the adjustment suggestion can be provided for the user, and the use experience of the user is further improved.
In an embodiment of the invention, the generation submodule is specifically configured to:
and prompting that the target picture needs to move to the vertex position of which the Alpha channel value is not changed, and/or prompting that the target picture needs to be amplified.
In the embodiment of the invention, the vertex position of the Alpha channel value which is not changed is determined, and the specific adjustment prompt information is provided for the user, so that the user can adjust the picture in a targeted manner, and the use experience of the user is improved.
In one embodiment of the invention, the generation submodule is further configured to:
and carrying out flashing prompt at the vertex position where the Alpha channel value is not changed.
In an embodiment of the invention, the generating submodule is further specifically configured to:
acquiring a pixel value corresponding to the contrast color of the target picture according to a preset rule;
carrying out flash prompting at the vertex position where the Alpha channel value is not changed by using the pixel value corresponding to the contrast color of the target picture; wherein, the preset rule comprises: and taking the contrast color of the background color with the largest occupation ratio as the contrast color of the target picture in the plurality of background colors included by the target picture.
In the embodiment of the invention, the flicker prompt is carried out at the vertex position where the Alpha channel value is not changed by using the pixel value corresponding to the contrast color of the target picture, so that a user can more intuitively know which position on the preset area of the card surface to be detected is not covered by the target picture, the position of the target picture can be specifically adjusted by the user, and the use experience of the user is improved.
Each module of the card surface detection device provided in the embodiment of the present invention has a function of implementing the card surface detection method/step in the embodiment shown in fig. 1 to 2, and can achieve the technical effect corresponding to the embodiment shown in fig. 1 to 2, and for brevity, no further description is given here.
FIG. 4 sets forth a block diagram of an exemplary hardware architecture of computing devices capable of implementing the method and apparatus for card face detection according to embodiments of the present invention.
As shown in fig. 4, computing device 400 includes an input device 401, an input interface 402, a central processor 403, a memory 404, an output interface 405, and an output device 406. The input interface 402, the central processing unit 403, the memory 404, and the output interface 405 are connected to each other through a bus 410, and the input device 401 and the output device 406 are connected to the bus 410 through the input interface 402 and the output interface 405, respectively, and further connected to other components of the computing device 400.
Specifically, the input device 401 receives input information from the outside and transmits the input information to the central processor 403 through the input interface 402; the central processor 403 processes the input information based on computer-executable instructions stored in the memory 404 to generate output information, stores the output information temporarily or permanently in the memory 404, and then transmits the output information to the output device 406 through the output interface 405; output device 406 outputs the output information outside of computing device 400 for use by a user.
That is, the computing device 400 shown in fig. 4 may also be implemented as a card face detection device that may include: a memory storing computer-executable instructions; and a processor which, when executing computer executable instructions, may implement the method of card face detection described in connection with fig. 1 and 2.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium has computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement the method for card face detection provided by embodiments of the present invention.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention. The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. For example, the algorithms described in the specific embodiments may be modified without departing from the basic spirit of the invention. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (8)

1. A method of card surface detection, comprising:
acquiring a target picture so as to enable the target picture to cover a preset area of a card surface to be detected;
detecting Alpha channel values of the vertexes of the preset region, wherein the Alpha channel is an opaque parameter, and represents complete transparency when the Alpha channel value is 0%, and represents complete opacity when the Alpha channel value is 100%;
if the Alpha channel value of at least one vertex of the preset area is not changed, judging that the target picture does not completely cover the preset area of the card surface to be detected;
the size of the preset area is consistent with that of the card to be detected;
if the target picture does not completely cover the preset area of the card surface to be detected, determining the vertex position of which the Alpha channel value is not changed;
and generating adjustment prompt information based on the vertex position of which the Alpha channel value is not changed.
2. The card face detection method according to claim 1, wherein generating an adjustment prompt message based on the vertex positions where the Alpha channel values have not changed comprises:
and prompting that the target picture needs to move to the vertex position of which the Alpha channel value is not changed, and/or prompting that the target picture needs to be amplified.
3. The card face detection method according to claim 1, wherein generating an adjustment prompt message based on the vertex positions where the Alpha channel values have not changed comprises:
and carrying out flicker prompting at the vertex position where the Alpha channel value is not changed.
4. The method for detecting the card surface according to claim 3, wherein the flashing prompt is performed at the vertex position where the Alpha channel value is not changed, and the method comprises the following steps:
acquiring a pixel value corresponding to the contrast color of the target picture according to a preset rule;
carrying out flicker prompting at the vertex position where the Alpha channel value is not changed by using the pixel value corresponding to the contrast color of the target picture;
wherein the preset rule comprises: and taking the contrast color of the background color with the largest occupation ratio as the contrast color of the target picture in the plurality of background colors included by the target picture.
5. The method for detecting the card surface according to claim 1, wherein before the obtaining the target picture, the method further comprises:
and setting the initial Alpha channel value of the preset area of the card surface to be detected as 0%.
6. A card surface detecting device, comprising:
the acquisition module is used for acquiring a target picture so as to enable the target picture to cover a preset area of a card surface to be detected;
the first detection module is used for detecting an Alpha channel value of the vertex of the preset area, wherein the Alpha channel is an opaque parameter, when the Alpha channel value is 0%, the Alpha channel value is completely transparent, and when the Alpha channel value is 100%, the Alpha channel value is completely opaque;
the second detection module is used for judging that the target picture does not completely cover the preset area of the card surface to be detected if the Alpha channel value of at least one vertex of the preset area is not changed;
the size of the preset area is consistent with that of the card to be detected;
if the target picture does not completely cover the preset area of the card surface to be detected, determining the vertex position of which the Alpha channel value is not changed;
and generating adjustment prompt information based on the vertex position of which the Alpha channel value is not changed.
7. A card surface detection apparatus, characterized in that the apparatus comprises: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements a method of card face detection as claimed in any one of claims 1-5.
8. A computer storage medium having computer program instructions stored thereon, which when executed by a processor, implement a method of card face detection as claimed in any one of claims 1 to 5.
CN201911217528.3A 2019-12-03 2019-12-03 Card surface detection method, device, equipment and medium Active CN110674818B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911217528.3A CN110674818B (en) 2019-12-03 2019-12-03 Card surface detection method, device, equipment and medium
PCT/CN2020/133562 WO2021110089A1 (en) 2019-12-03 2020-12-03 Method, apparatus, device and medium for card surface detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911217528.3A CN110674818B (en) 2019-12-03 2019-12-03 Card surface detection method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110674818A CN110674818A (en) 2020-01-10
CN110674818B true CN110674818B (en) 2020-04-24

Family

ID=69088323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911217528.3A Active CN110674818B (en) 2019-12-03 2019-12-03 Card surface detection method, device, equipment and medium

Country Status (2)

Country Link
CN (1) CN110674818B (en)
WO (1) WO2021110089A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674818B (en) * 2019-12-03 2020-04-24 捷德(中国)信息科技有限公司 Card surface detection method, device, equipment and medium
CN112801165B (en) * 2021-01-22 2024-03-22 中国银联股份有限公司 Card auditing method and device
CN115243033A (en) * 2022-06-30 2022-10-25 东莞华贝电子科技有限公司 Color cast detection method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314597A (en) * 2010-06-28 2012-01-11 罗伯特·博世有限公司 Be used for discerning the method and apparatus of the objects interfered of camera review
CN108564155A (en) * 2018-04-23 2018-09-21 捷德(中国)信息科技有限公司 Smart card method for customizing, device and server
CN109275016A (en) * 2018-09-30 2019-01-25 联想(北京)有限公司 Display control method and display control apparatus

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1889732A1 (en) * 2006-08-18 2008-02-20 Setec Oy Method of superimposing an image onto another, method of personalizing a data carrier using the the method
CN101216924A (en) * 2008-01-11 2008-07-09 北京盈天信科技发展有限公司 A system and method to generate individualized bank cards
US8628008B1 (en) * 2008-10-16 2014-01-14 Wells Fargo Bank, N.A. System and method for card customization
US8416262B2 (en) * 2009-09-16 2013-04-09 Research In Motion Limited Methods and devices for displaying an overlay on a device display screen
US10250838B1 (en) * 2017-12-29 2019-04-02 Sling Media L.L.C. System and method for converting live action alpha-numeric text to re-rendered and embedded pixel information for video overlay
CN108510036B (en) * 2018-03-27 2019-04-26 武汉天喻信息产业股份有限公司 A kind of card face image generating method based on parametrization
CN109359644A (en) * 2018-08-28 2019-02-19 东软集团股份有限公司 Character image uniformity comparison method, apparatus, storage medium and electronic equipment
CN110674818B (en) * 2019-12-03 2020-04-24 捷德(中国)信息科技有限公司 Card surface detection method, device, equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314597A (en) * 2010-06-28 2012-01-11 罗伯特·博世有限公司 Be used for discerning the method and apparatus of the objects interfered of camera review
CN108564155A (en) * 2018-04-23 2018-09-21 捷德(中国)信息科技有限公司 Smart card method for customizing, device and server
CN109275016A (en) * 2018-09-30 2019-01-25 联想(北京)有限公司 Display control method and display control apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种真实感三维人脸交互式生成方法;谈国新 等;《武汉大学学报》;20141231;第40卷(第8期);第992-997页 *

Also Published As

Publication number Publication date
WO2021110089A1 (en) 2021-06-10
CN110674818A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN110674818B (en) Card surface detection method, device, equipment and medium
CN107945769B (en) Ambient light intensity detection method and device, storage medium and electronic equipment
CN109240572B (en) Method for obtaining picture, method and device for processing picture
CN108021863A (en) Electronic device, the character classification by age method based on image and storage medium
CN104517271B (en) Image processing method and device
CN105955754B (en) A kind of user interface character displaying method and device
CN110675839A (en) Screen adjusting method, electronic equipment and related device
US20140198993A1 (en) Exposure enhancement method and apparatus for a defogged image
CN108764139A (en) A kind of method for detecting human face, mobile terminal and computer readable storage medium
CN108063928A (en) Image automatic adjusting method, device and the electronic equipment of a kind of projecting apparatus
CN109729281A (en) Image processing method, device, storage medium and terminal
CN114138215B (en) Display method and related equipment
JP2015075920A (en) Image processing apparatus, image processing method, and program
CN110674819B (en) Card surface picture detection method, device, equipment and storage medium
CN103902875A (en) Verification code image generating method and device and verification method and device
CN110442313B (en) Display attribute adjusting method and related equipment
CN110475115B (en) Screen body picture crosstalk testing method and device and storage medium
KR20180111242A (en) Electronic device and method for providing colorable content
CN110444181A (en) Display methods, device, terminal and computer readable storage medium
CN109891459B (en) Image processing apparatus and image processing method
CN104915629A (en) Image processing apparatus and image processing method
CN107316281A (en) image processing method, device and terminal device
CN113196730A (en) Visual effect providing method and electronic device using same
CN112051920B (en) Sight line falling point determining method and device
CN106843713B (en) Method and device for displaying virtual keys

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 330096 No. 399 torch street, hi tech Development Zone, Jiangxi, Nanchang

Patentee after: Jiede (China) Technology Co., Ltd

Address before: 330096 No. 399 torch street, hi tech Development Zone, Jiangxi, Nanchang

Patentee before: Jiede (China) Information Technology Co., Ltd