CN107133618A - Electronic certificate recognizes triggering method and device - Google Patents

Electronic certificate recognizes triggering method and device Download PDF

Info

Publication number
CN107133618A
CN107133618A CN201710269514.0A CN201710269514A CN107133618A CN 107133618 A CN107133618 A CN 107133618A CN 201710269514 A CN201710269514 A CN 201710269514A CN 107133618 A CN107133618 A CN 107133618A
Authority
CN
China
Prior art keywords
difference
average
predeterminable area
component
gray value
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.)
Granted
Application number
CN201710269514.0A
Other languages
Chinese (zh)
Other versions
CN107133618B (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.)
Beijing Sinosecu Technology Co ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201710269514.0A priority Critical patent/CN107133618B/en
Publication of CN107133618A publication Critical patent/CN107133618A/en
Application granted granted Critical
Publication of CN107133618B publication Critical patent/CN107133618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • 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)
  • Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

This application provides a kind of electronic certificate identification triggering method and device, wherein, this method includes:To certificate rest area continuous collecting video image, and all single-frame images in the video image are converted into the initial picture of rgb color pattern;Calculate the average gray value (and/or average color component) of the difference predeterminable area of the initial picture, when the absolute value of difference between the average gray value of the difference predeterminable area of initial picture described in the average gray value and a later frame of the difference predeterminable area of initial picture described in former frame is more than gray value difference threshold, trigger signal is exported.The technical scheme provided using the embodiment of the present application, it is no longer necessary to which staff presses certificate or separately uses operation button, improves the operating efficiency of certificate identification, moreover, parts count can be reduced effectively, reduces cost, reduce the fault point.

Description

Electronic certificate recognizes triggering method and device
Technical field
The present invention relates to electronic certificate identification technology field, particularly a kind of electronic certificate identification triggering method and device.
Background technology
The major function of electronic certificate identification equipment carries out electronic capture to certificate, is then sent to computer and is identified Processing.More electronic certificate identification equipment is used before, is by setting shift knob or the identification software in computer Middle setting start button, after certificate is positioned over certificate rest area, opens the start button in shift knob or click software, comes Start electronic certificate identification equipment certificate is shot and recognized, read related certificate information.In such processing procedure, Need certificate being pressed against in certificate rest area, to ensure the stability of certificate identification, cause the knot of electronic certificate identification equipment Structure is generally complex, moreover, while certificate is pressed, in addition it is also necessary to which operating personnel separately uses operation button, causes operation Not easy, time and effort consuming.
Period, the present inventor, it was provided with socket, and the socket is used for it is proposed that one kind is by electronic certificate identification equipment Place certificate, including LED transmitting tubes, LED reception pipe, trigger element and camera, the LED transmitting tubes and the LED reception Pipe is separately positioned on the socket both up and down, and the LED transmitting tubes are used to launch infrared waves, institute to the LED reception pipe Stating LED reception pipe is used to receive the tube-launched infrared waveses of the LED, and the trigger element is used in the LED reception Pipe produces trigger signal when can not receive the tube-launched infrared waveses of the LED, is sent to camera, and the camera is used In the trigger signal for receiving trigger element transmission, certificate is shot.The electronic certificate identification equipment can automatic start set The standby shooting for carrying out certificate.However, equipment is in installation process, higher is required to the assembly precision of part, particularly LED transmittings Pipe and LED reception pipe, the higher and more part of cost also cause the trouble point of the equipment more, later maintenance cost It is higher.
In view of the above-mentioned problems, not yet proposing effective solution at present.
The content of the invention
The purpose of the application is to provide a kind of electronic certificate identification triggering method and device, it is no longer necessary to which staff presses Press certificate or separately use operation button, improve the operating efficiency of certificate identification, moreover, parts count can be reduced effectively, drop Low cost, reduces the fault point.
Triggering method is recognized this application provides a kind of electronic certificate, it includes:
It is converted into certificate rest area continuous collecting video image, and by all single-frame images in the video image The initial picture of rgb color pattern;
Calculate the average gray value and/or average color component of the difference predeterminable area of the initial picture;
Accordingly, initial picture described in former frame difference predeterminable area average gray value and a later frame described in just When the absolute value of difference between the average gray value of the difference predeterminable area of beginning picture is more than gray value difference threshold, and/or The average color component of the difference predeterminable area of initial picture described in former frame and the difference of initial picture described in a later frame are preset When the absolute value of difference between the average color component in region is more than color component difference threshold, trigger signal is exported.
A kind of electronic certificate identification triggering device that the application is provided, it includes:Image capture module, computing module and defeated Go out module,
Described image acquisition module, for certificate rest area continuous collecting video image, and by the video image All single-frame images be converted into the initial picture of rgb color pattern;
The computing module, the average gray value of the difference predeterminable area for calculating the initial picture, and/or be used for Calculate the average color component of the difference predeterminable area of the initial picture;
The output module, average gray value and a later frame for the difference predeterminable area of initial picture described in former frame When the absolute value of difference between the average gray value of the difference predeterminable area of the initial picture is more than gray value difference threshold, And/or, the average color component of the difference predeterminable area of initial picture described in former frame and the difference of initial picture described in a later frame When the absolute value for being worth the difference between the average color component of predeterminable area is more than color component difference threshold, output triggering letter Number.
Electronic certificate identification triggering method and device that the application is provided, are by the video image in certificate rest area Trigger signal is exported when certificate feature is detected in predeterminable area, the certificate rest area continuous collecting video is mainly utilized in Image, and all single-frame images in the video image are converted into the initial picture of rgb color pattern, by comparing phase The size of the average gray value of the difference predeterminable area of adjacent two frame initial pictures and average color component, to judge the certificate Certificate whether is placed in rest area, and thus exports trigger signal.It follows that being to pass through using the embodiment of the application The average gray value and average color component compared between the difference predeterminable area of adjacent two frames initial picture is defeated to judge whether Go out trigger signal, therefore, judge that precision is higher;In addition, trigger signal is actively exported by trigger module, it is not necessary to staff Certificate is pressed again or operation button is separately used, and effectively increases the operating efficiency of certificate identification;Moreover, using the application's Electronic certificate recognizes triggering method or device, it is not necessary to extra in electronic certificate identification equipment to install LED transmitting tubes and LED The parts such as reception pipe, not only effectively reduce cost, also effectively reduce the trouble point of equipment.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in application, for those of ordinary skill in the art, are not paying the premise of creative labor Under, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is electronic certificate identification a kind of method flow diagram of embodiment (block diagram) of triggering method that the application is provided.
Fig. 2 is the method flow diagram (block diagram) that the electronic certificate that the application is provided recognizes another embodiment of triggering method.
Fig. 3 is the method flow diagram (block diagram) that the electronic certificate that the application is provided recognizes triggering method another embodiment.
Fig. 4 is that the electronic certificate that the application is provided recognizes a kind of embodiment of the triggering device by criterion of gray value Structural representation (block diagram).
Fig. 5 is that the electronic certificate that the application is provided recognizes a kind of embodiment of the triggering device by criterion of red component Structural representation (block diagram).
Fig. 6 is that the electronic certificate that the application is provided recognizes a kind of embodiment of the triggering device by criterion of green component Structural representation (block diagram).
Fig. 7 is that the electronic certificate that the application is provided recognizes a kind of embodiment of the triggering device by criterion of blue component Structural representation (block diagram).
Fig. 8 is that the electronic certificate that the application is provided recognizes triggering device using red component and green component as criterion A kind of structural representation of embodiment (block diagram).
Fig. 9 is that the electronic certificate that the application is provided recognizes triggering device using red component and blue component as criterion A kind of structural representation of embodiment (block diagram).
Figure 10 is that the electronic certificate that the application is provided recognizes triggering device using green component and blue component as criterion A kind of embodiment structural representation (block diagram).
Figure 11 is that the electronic certificate that the application is provided recognizes triggering device using gray value, red component and green component to sentence A kind of structural representation (block diagram) of embodiment of disconnected standard.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, it is real below in conjunction with the application The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation Example only some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, this area is common The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to the application protection Scope.
Fig. 1 to Fig. 3 is a kind of method flow diagram of the embodiment of electronic certificate identification triggering method described herein.Though So this application provides such as following embodiments or method operating procedure shown in the drawings, but based on conventional or without creativeness Work can include more or less operating procedures in the process.It is not present in logicality necessary causal In step, the execution sequence of these steps is not limited to the embodiment of the present application description and execution sequence shown in the drawings.Described side When method device in practice or end product are applied, progress order can be connected according to embodiment or method shown in the drawings Perform or parallel execution (environment of such as parallel processor or multiple threads, or even distributed processing environment).
Electronic certificate identification triggering method and device that the application is provided, are by the video image in certificate rest area Trigger signal is exported when certificate feature is detected in predeterminable area, the certificate rest area continuous collecting video is mainly utilized in Image, and all single-frame images in the video image are converted into the initial picture of rgb color pattern, with described initial The change of the average gray value and average color component that are detected in the difference predeterminable area of picture is turned to certificate feature, to judge Certificate whether is placed in the certificate rest area, and thus exports trigger signal.It follows that utilizing the embodiment party of the application Case, is sentenced by comparing the average gray value between the difference predeterminable area of adjacent two frames initial picture and average color component It is disconnected whether to export trigger signal, therefore, judge that precision is higher;In addition, trigger signal is actively exported by trigger module, it is not necessary to Staff presses certificate or separately uses operation button again, effectively increases the operating efficiency of certificate identification;Moreover, using The electronic certificate identification triggering method or device of the application, it is not necessary to extra in electronic certificate identification equipment to install LED hairs The part such as pipe and LED reception pipe is penetrated, cost is not only effectively reduced, the trouble point of equipment is also effectively reduced.
Wherein, rgb color pattern (be also translated as " RGB ", fewer with) is a kind of color standard of industrial quarters, is By to red (Red), green (Green), the change of blue (Blue) three Color Channels and their superpositions each other come To miscellaneous color, RGB is the color for representing three passages of red, green, blue, and this standard almost includes the mankind and regarded The all colours that power can be perceived are current with one of most wide color system.Rgb color pattern is figure using RGB models The intensity level that the RGB component of each pixel is distributed in the range of one 0 to 255 as in.For example:Pure red R values are that 255, G values are 0, B value is 0;Tri- values of R, G, B of grey are equal (except 0 and 255);R, G, B of white are 255;R, G, B of black be 0.RGB image is only using three kinds of colors, so that it may so that they are mixed according to different ratios, 16777216 kinds are reappeared on screen Color.Under RGB patterns, every kind of RGB compositions all can be used from 0 (black) to the value of 255 (whites).For example, shiny red uses R Value 246, G values 20 and B values 50.When all three signal component values are equal, gray shade is produced.When the value of all the components is 255 When, result is pure white;When the value is 0, result is ater.
Specifically as shown in Figure 1 to Figure 3, a kind of electronic certificate identification triggering method that embodiments herein is provided, can be with Including:
Step 1:To certificate rest area continuous collecting video image, and all single-frame images in the video image are equal It is converted into the initial picture of rgb color pattern;
The single frames picture is converted into the initial picture of rgb color pattern, made each in the initial picture Individual pixel all has red component, green component and blue component, in order to the red component beneficial to pixel, green component And blue component, carry out the calculating of next step.The S301 in S201 and Fig. 3 in specific S101, Fig. 2 referred in Fig. 1.
Step 2:Calculate the average gray value and/or average color component of the difference predeterminable area of the initial picture;
The average gray value of the difference predeterminable area of the initial picture and average color component, which can be used as, judges institute State the parameter that certificate whether is placed in certificate rest area.
In a specific embodiment as shown in Figure 1, the average ash of the difference predeterminable area of the initial picture is selected Angle value is used as the parameter for judging whether to place certificate in the certificate rest area, as S102:Calculate the difference of the initial picture It is worth the average gray value of predeterminable area.
Wherein, the average gray value of the difference predeterminable area refers to the ash of all pixels point in the difference predeterminable area The average value of angle value.In step S101, we have been obtained for the red point of each pixel in the initial picture Amount, green component and blue component.The gray value for calculating pixel by the color component of pixel has a variety of conversion formulas, In actual use, most suitable formula can be chosen according to the Target Photo and identifying purpose of image recognition.
Particularly, step S102 can include:
S1021:By red component, green component and the blue component of each pixel in the difference predeterminable area, Calculate the gray value of each pixel in the difference predeterminable area;
By taking any pixel point in the difference predeterminable area as an example, each pixel can be passed through by below equation Red component, green component and the blue component of point, calculate the gray value of the pixel:
Grey=0.299*R+0.587*G+0.114*B
In addition, in order to avoid the floating-point operation of low speed, it would however also be possible to employ integer arithmetic, such as by scaling 1000 times come real Existing integer arithmetic algorithm, i.e., calculate Grey value by below equation:
Grey=(299*R+587*G+114*B)/1000
Wherein, Grey represents the gray value of the pixel, and R represents the red component of the pixel, and G represents the pixel Green component, B represents the blue component of the pixel.
S1022:The average value of the gray value of all pixels point in the difference predeterminable area is calculated, the difference preset areas is used as The average gray value in domain.
In a specific embodiment as shown in Figure 2, the average face of the difference predeterminable area of the initial picture is selected Colouring component is used as the parameter for judging whether to place certificate in the certificate rest area, as S202:Calculate the initial picture The average color component of difference predeterminable area.
It is well known that color component includes red component, green component and blue component.With the average color component During as judging whether to place the parameter of certificate in the certificate rest area, red component, green component and blueness can be chosen One of which, two of which in component or three kinds are all selected, and this just includes six kinds of situations.According to selected color point Amount, the average color component of the difference predeterminable area includes average red component and/or average green component and/or average indigo plant Colouring component;Accordingly, the average color component of the difference predeterminable area of the initial picture is calculated, including:
It is the flat of the difference predeterminable area to calculate the average value of the red component of all pixels point in the difference predeterminable area Equal red component, and/or
It is the flat of the difference predeterminable area to calculate the average value of the green component of all pixels point in the difference predeterminable area Equal green component, and/or
It is the flat of the difference predeterminable area to calculate the average value of the blue component of all pixels point in the difference predeterminable area Equal blue component.
In a specific embodiment as shown in Figure 3, the average ash of the difference predeterminable area of the initial picture is selected Angle value and average color component are as the parameter for judging whether to place certificate in the certificate rest area, as S302:Calculate The average gray value and average color component of the difference predeterminable area of the initial picture.
Such a situation be exactly using the average gray value in first two situation and average color component as parameter, therefore, Calculating in this case, both needs to complete the calculating of average gray value, it is also desirable to complete the calculating of average color component.By Include six kinds of situations in the selection of the average color component, therefore, such a situation correspondingly also includes six kinds of situations.
Step 3:Accordingly, initial picture described in former frame difference predeterminable area average gray value and a later frame When the absolute value of difference between the average gray value of the difference predeterminable area of the initial picture is more than gray value difference threshold, And/or initial picture described in former frame difference predeterminable area average color component and initial picture described in a later frame difference When the absolute value for being worth the difference between the average color component of predeterminable area is more than color component difference threshold, output triggering letter Number.
S103:It is corresponding with the first situation in S102, if as shown in figure 1, selecting the difference of the initial picture pre- If the average gray value in region is as the parameter for judging whether to place certificate in the certificate rest area, i.e., described in former frame just The average gray of the difference predeterminable area of initial picture described in the average gray value and a later frame of the difference predeterminable area of beginning picture When the absolute value of difference between value is more than gray value difference threshold, it is believed that exist in the difference predeterminable area of the initial picture " certificate feature ", that is to say, that there is certificate in the certificate rest area, now, exports trigger signal.
In order to further improve the precision of output trigger signal, at least one gray scale is additionally provided with the initial picture Be worth predeterminable area, and initial picture described in former frame difference predeterminable area average gray value and a later frame described in it is initial The absolute value of difference between the average gray value of the difference predeterminable area of picture is more than gray value difference threshold and a later frame institute When the average gray value for stating at least one gray value predeterminable area of initial picture is more than gray value threshold value, trigger signal is exported.
Particularly, include a difference predeterminable area in the initial picture and multiple gray values are default Region;The gray value threshold value includes multiple secondary gray value threshold values;In the difference predeterminable area of initial picture described in former frame Average gray value and a later frame described in initial picture difference predeterminable area average gray value between difference absolute value More than the average gray value of each gray value predeterminable area of initial picture described in gray value difference threshold and a later frame When being all higher than the corresponding secondary gray value threshold value, trigger signal is exported.
S203:It is corresponding with second of situation in S102, as shown in Fig. 2 the difference that have selected the initial picture is pre- If the average color component in region is as the parameter for judging whether to place certificate in the certificate rest area, i.e., described in former frame The average color component of the difference predeterminable area of initial picture is averaged with the difference predeterminable area of initial picture described in a later frame When the absolute value of difference between color component is more than color component difference threshold, it is believed that the difference preset areas of the initial picture There is " certificate feature " in domain, that is to say, that there is certificate in the certificate rest area, now, export trigger signal.
From the foregoing it will be appreciated that according to selected color component, being divided into six kinds of situations, the average face of the difference predeterminable area Colouring component includes average red component and/or average green component and/or average blue component;So, accordingly, the face Colouring component difference threshold includes red component difference threshold and/or green component difference threshold and/or blue component difference threshold.
Therefore, in this step, the condition of output trigger signal also accordingly includes following several situations:
The difference of the average red component of the difference predeterminable area of the former frame picture and a later frame picture is preset When difference between the average red component in region is more than the red component difference threshold, and/or
The difference of the average green component of the difference predeterminable area of the former frame picture and a later frame picture is preset When difference between the average green component in region is more than the green component difference threshold, and/or
The difference of the average blue component of the difference predeterminable area of the former frame picture and a later frame picture is preset When difference between the average blue component in region is more than the blue component difference threshold.
So that the average color component of the difference predeterminable area includes red component as an example, touched to further improve output The precision of signalling, sets at least one red component predeterminable area in the initial picture, and in former frame picture Between the average red component of the difference predeterminable area of the average red component of difference predeterminable area and a later frame picture Difference is more than at least one red component predeterminable area of initial picture described in the red component difference threshold and a later frame When average red component is more than red component threshold value, trigger signal is exported.
Particularly, include a difference predeterminable area in the initial picture and multiple red components are pre- If region;The red component threshold value includes multiple secondary red component threshold values;In the difference predeterminable area of former frame picture Difference between the average red component of the difference predeterminable area of average red component and a later frame picture is more than described red The average red component of each red component predeterminable area of initial picture described in colouring component difference threshold and a later frame When being all higher than the corresponding secondary red component threshold value, trigger signal is exported.
Again so that the average color component of the difference predeterminable area includes green component as an example, in order to further improve output The precision of trigger signal, sets at least one green component predeterminable area in the initial picture, and in former frame picture Difference predeterminable area average green component and a later frame picture difference predeterminable area average green component between Difference be more than at least one green component predeterminable area of initial picture described in the green component difference threshold and a later frame Average green component be more than green component threshold value when, export trigger signal.
Particularly, include a difference predeterminable area in the initial picture and multiple green components are pre- If region;The green component threshold value includes multiple secondary green component threshold values;In the difference predeterminable area of former frame picture Difference between the average green component of the difference predeterminable area of average green component and a later frame picture is more than described green The average green component of each green component predeterminable area of initial picture described in colouring component difference threshold and a later frame When being all higher than the corresponding secondary green component threshold value, trigger signal is exported.
Then so that the average color component of the difference predeterminable area includes blue component as an example, in order to further improve defeated Go out the precision of trigger signal, at least one blue component predeterminable area is set in the initial picture, and in former frame figure The average blue component of the difference predeterminable area of the average blue component of the difference predeterminable area of piece and a later frame picture it Between difference be more than at least one blue component preset areas of initial picture described in the blue component difference threshold and a later frame When the average blue component in domain is more than blue component threshold value, trigger signal is exported.
Particularly, include a difference predeterminable area in the initial picture and multiple blue components are pre- If region;The blue component threshold value includes multiple secondary blue component threshold values;In the difference predeterminable area of former frame picture Difference between the average blue component of the difference predeterminable area of average blue component and a later frame picture is more than the indigo plant The average blue component of each blue component predeterminable area of initial picture described in colouring component difference threshold and a later frame When being all higher than the corresponding secondary blue component threshold value, trigger signal is exported.
When the average color component of the difference predeterminable area includes its in red component, green component and blue component In two kinds or three kinds all include when, by that analogy, repeat no more.
S303:It is corresponding with the third situation in S102, as shown in figure 3, the difference that have selected the initial picture is pre- If the average gray value in region and average color component are as the parameter for judging whether to place certificate in the certificate rest area, So, initial picture described in former frame difference predeterminable area average gray value and a later frame described in initial picture difference The absolute value of difference between the average gray value of predeterminable area is more than initial picture described in gray value difference threshold and former frame Difference predeterminable area average color component and initial picture described in a later frame difference predeterminable area average color component Between difference absolute value be more than color component difference threshold when, can just export trigger signal.Equally, export in such cases The standard of trigger signal, it is different according to the average color component of selection, also including six kinds of situations.
Based on same inventive concept, a kind of electronic certificate identification triggering device is additionally provided in embodiments herein, such as Described in the following examples.Because electronic certificate recognizes that triggering device solves the principle of problem and electronic certificate recognizes triggering method It is similar, therefore the implementation of electronic certificate identification triggering device may refer to the implementation that electronic certificate recognizes triggering method, repetition Place is repeated no more.Used below, term " unit ", " subelement " or " module " can realize the software of predetermined function And/or the combination of hardware.Although the device described by following examples is preferably realized with software, hardware, or soft The realization of the combination of part and hardware is also that may and be contemplated.
Fig. 4 is that the electronic certificate of the embodiment of the present application recognizes a kind of structured flowchart of triggering device.Although the application is provided Such as following embodiments or apparatus structure shown in the drawings, but based on it is conventional or without performing creative labour in said device More or less modular units can be included.It is not present in logicality in necessary causal structure, these devices Modular structure be not limited to the embodiment of the present application description and modular structure shown in the drawings.Described modular structure is in practice When device or end product are applied, can be connected according to embodiment or modular structure shown in the drawings the execution of carry out order or It is parallel to perform (such as the environment of parallel processor or multiple threads, or even distributed processing environment).
Specifically as shown in Figures 4 to 6, the electronic certificate identification triggering device that a kind of embodiment of the application is provided, can With including:Image capture module 401, computing module 402 and output module 403,
Described image acquisition module 401, for certificate rest area continuous collecting video image, and by the video image In all single-frame images be converted into the initial picture of rgb color pattern;
The computing module 402, the average gray value of the difference predeterminable area for calculating the initial picture, and/or For the average color component for the difference predeterminable area for calculating the initial picture;
The output module 403, for initial picture described in former frame difference predeterminable area average gray value with after The absolute value of difference between the average gray value of the difference predeterminable area of initial picture described in one frame is more than gray value difference threshold During value, and/or, the average color component of the difference predeterminable area of initial picture described in former frame and initial picture described in a later frame Difference predeterminable area average color component between difference absolute value be more than color component difference threshold when, output triggering Signal.
In a feasible embodiment, as shown in figure 4, selecting being averaged for the difference predeterminable area of the initial picture Gray value is used as the parameter for judging whether to place certificate in the certificate rest area.The computing module 402 includes gray value meter Calculate module 4021 and average gray value computing module 4022;
The gray value computing module 4021 be used for by the red component of each pixel in the difference predeterminable area, Green component and blue component, calculate the gray value of each pixel in the difference predeterminable area;
The average gray value computing module 4022 is used for the gray value for calculating all pixels point in the difference predeterminable area Average value, be used as the average gray value of the difference predeterminable area.
In order to further improve the precision of output trigger signal, the output module 403, for initial described in former frame The average gray value of the difference predeterminable area of initial picture described in the average gray value and a later frame of the difference predeterminable area of picture Between difference absolute value be more than gray value difference threshold when and a later frame described in initial picture at least one gray value it is pre- If the average gray value in region is more than gray value threshold value, trigger signal is exported.
Particularly, the initial picture includes a difference predeterminable area and multiple gray value preset areas Domain;The gray value threshold value includes multiple secondary gray value threshold values;
The output module 403, the average gray for the difference predeterminable area in initial picture described in former frame The absolute value of difference between the average gray value of the difference predeterminable area of initial picture described in value and a later frame is more than ash The average gray value of each gray value predeterminable area of initial picture is big during angle value difference threshold and described in a later frame When the corresponding secondary gray value threshold value, trigger signal is exported.
In another optional embodiment, the average color of the difference predeterminable area of the initial picture can be selected Component is used as the parameter for judging whether to place certificate in the certificate rest area.As shown in Fig. 5 to Figure 10, the average color point Amount can include average red component and/or average green component and/or average blue component;Accordingly, the color point Amount difference threshold can also include red component difference threshold and/or green component difference threshold and/or blue component difference threshold Value;Accordingly, the computing module 402 includes red component computing module 4023 and/or green component computing module 4024 And/or blue component computing module 4025;Wherein,
The red component computing module 4023 is used for the red component for calculating all pixels point in the difference predeterminable area Average value be the difference predeterminable area average red component,
The green component computing module 4024 is used for the green component for calculating all pixels point in the difference predeterminable area Average value be the difference predeterminable area average green component,
The blue component computing module 4025 is used for the blue component for calculating all pixels point in the difference predeterminable area Average value be the difference predeterminable area average blue component;
Accordingly, the output module 403 include red output module 4031 and/or green output module 4032 and/ Or blue output module 4033, wherein,
The red output module 4031 be used for the former frame picture difference predeterminable area average red component with Difference between the average red component of the difference predeterminable area of a later frame picture is more than the red component difference threshold When, trigger signal is exported,
The green output module 4032 be used for the former frame picture difference predeterminable area average green component with Difference between the average green component of the difference predeterminable area of a later frame picture is more than the green component difference threshold When, trigger signal is exported,
The blue output module 4033 be used for the former frame picture difference predeterminable area average blue component with Difference between the average blue component of the difference predeterminable area of a later frame picture is more than the blue component difference threshold When, export trigger signal.
In order to further improve the precision of output trigger signal, when the average color component includes red component, At least one red component predeterminable area is additionally provided with the initial picture.The red output module 4031 be used for it is described before The average red of the average red component of the difference predeterminable area of one frame picture and the difference predeterminable area of a later frame picture Difference between component is more than at least one red component of initial picture described in the red component difference threshold and a later frame When the average red component of predeterminable area is more than red component threshold value, trigger signal is exported.
Particularly, the initial picture includes a difference predeterminable area and multiple red component preset areas Domain;The red component threshold value includes multiple secondary red component threshold values;The red output module 4031 is used for described previous The average red point of the average red component of the difference predeterminable area of frame picture and the difference predeterminable area of a later frame picture Difference between amount is more than each described red component of initial picture described in the red component difference threshold and a later frame When the average red component of predeterminable area is all higher than the corresponding secondary red component threshold value, trigger signal is exported.
Likewise, when the average color component includes green component, being additionally provided with least in the initial picture One green component predeterminable area.The green output module 4032 is used for the flat of the difference predeterminable area of the former frame picture Difference between the average green component of the difference predeterminable area of equal green component and a later frame picture is more than the green The average green component of at least one green component predeterminable area of initial picture described in component difference threshold and a later frame is more than During green component threshold value, trigger signal is exported.
Particularly, the initial picture includes a difference predeterminable area and multiple green component preset areas Domain;The green component threshold value includes multiple secondary green component threshold values;The green output module 4031 is used for described previous The average green point of the average green component of the difference predeterminable area of frame picture and the difference predeterminable area of a later frame picture Difference between amount is more than each described green component of initial picture described in the green component difference threshold and a later frame When the average green component of predeterminable area is all higher than the corresponding secondary green component threshold value, trigger signal is exported.
Likewise, when the average color component includes blue component, being additionally provided with least in the initial picture One blue component predeterminable area.The blue output module 4033 is used for the flat of the difference predeterminable area of the former frame picture Difference between the average blue component of the difference predeterminable area of equal blue component and a later frame picture is more than the blueness The average blue component of at least one blue component predeterminable area of initial picture described in component difference threshold and a later frame is more than During blue component threshold value, trigger signal is exported.
Particularly, the initial picture includes a difference predeterminable area and multiple blue component preset areas Domain;The blue component threshold value includes multiple secondary blue component threshold values;The blue output module 4031 is used for described previous The average blueness point of the average blue component of the difference predeterminable area of frame picture and the difference predeterminable area of a later frame picture Difference between amount is more than each described blue component of initial picture described in the blue component difference threshold and a later frame When the average blue component of predeterminable area is all higher than the corresponding secondary blue component threshold value, trigger signal is exported.
With average gray value, average red component and the average green point of the difference predeterminable area for selecting the initial picture Amount is simultaneously peaceful with average gray value as exemplified by the parameter for judging whether to place certificate in the certificate rest area, illustrating how Equal color component is as a parameter to judge whether place certificate in the certificate rest area.The initial picture includes an institute State difference predeterminable area, multiple gray value predeterminable areas, multiple red component predeterminable areas and multiple greens Component predeterminable area;The gray value threshold value includes multiple secondary gray value threshold values;The red component threshold value includes multiple times Level red component threshold value;The green component threshold value includes multiple secondary green component threshold values.
As shown in figure 11, the computing module 402 includes gray value computing module 4021, average gray value computing module 4022nd, red component computing module 4023 and green component computing module 4025;
The output module 403, for when meeting three below condition, exporting trigger signal:
1st, initial graph described in the average gray value and a later frame of the difference predeterminable area of initial picture described in former frame It is when the absolute value of difference between the average gray value of the difference predeterminable area of piece is more than gray value difference threshold and latter The average gray value of the gray value predeterminable area of each of initial picture described in frame is all higher than the corresponding secondary ash Angle value threshold value;
2nd, the difference of the average red component of the difference predeterminable area of the former frame picture and a later frame picture is pre- If the difference between the average red component in region is more than initial picture described in the red component difference threshold and a later frame The average red component of each red component predeterminable area is all higher than the corresponding secondary red component threshold value;
3rd, the difference of the average green component of the difference predeterminable area of the former frame picture and a later frame picture is pre- If the difference between the average green component in region is more than initial picture described in the green component difference threshold and a later frame The average green component of each green component predeterminable area is all higher than the corresponding secondary green component threshold value.
Device or module that above-described embodiment is illustrated, can specifically be realized by computer chip or entity, or by with The product of certain function is realized.For convenience of description, it is divided into various modules during description apparatus above with function to describe respectively. The function of each module can be realized in same or multiple softwares and/or hardware when implementing the application.It is of course also possible to It will realize that the module of certain function combines realization by multiple submodule or subelement.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can Realized by the mode of software plus required hardware.Understood based on such, the technical scheme of the application is substantially in other words The part contributed to prior art can be embodied in the form of software product, can also be by the implementation of Data Migration During embody.The application's can be used for numerous general or special purpose computing system environments or configuration in whole or in part In.For example:Personal computer, server computer, handheld device or portable set, laptop device, mobile communication terminal, Multicomputer system, the system based on microprocessor, programmable electronic equipment, network PC, minicom, mass computing DCE of machine including any of the above system or equipment etc..
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application have it is many deformation and Change is without departing from spirit herein, it is desirable to which appended claim includes these deformations and changed without departing from the application's Spirit.

Claims (10)

1. a kind of electronic certificate recognizes triggering method, it is characterised in that methods described includes:
RGB is converted into certificate rest area continuous collecting video image, and by all single-frame images in the video image The initial picture of color mode;
Calculate the average gray value and/or average color component of the difference predeterminable area of the initial picture;
Accordingly, initial picture described in former frame difference predeterminable area average gray value and a later frame described in initial graph When the absolute value of difference between the average gray value of the difference predeterminable area of piece is more than gray value difference threshold, and/or it is previous The average color component of the difference predeterminable area of initial picture described in frame and the difference predeterminable area of initial picture described in a later frame Average color component between difference absolute value be more than color component difference threshold when, export trigger signal.
2. according to the method described in claim 1, it is characterised in that the difference predeterminable area for calculating the initial picture is averaged Gray value, including:
By red component, green component and the blue component of each pixel in the difference predeterminable area, the difference is calculated It is worth the gray value of each pixel in predeterminable area;
The average value of the gray value of all pixels point in the difference predeterminable area is calculated, the average ash of the difference predeterminable area is used as Angle value.
3. method according to claim 2, it is characterised in that the difference predeterminable area of initial picture described in former frame it is flat The absolute value of difference between the average gray value of the difference predeterminable area of initial picture described in equal gray value and a later frame is more than During gray value difference threshold, in addition to:
When the average gray value of at least one gray value predeterminable area of initial picture described in a later frame is more than gray value threshold value.
4. method according to claim 3, it is characterised in that the initial picture includes a difference predeterminable area With multiple gray value predeterminable areas;The gray value threshold value includes multiple secondary gray value threshold values;
Wherein, the average gray value of at least one gray value predeterminable area of initial picture described in a later frame is more than gray value threshold value When, including:
The average gray value of the gray value predeterminable area of each of initial picture described in a later frame is all higher than corresponding institute When stating secondary gray value threshold value.
5. according to the method described in claim 1, it is characterised in that the average color component include average red component and/ Or average green component and/or average blue component;Accordingly, the color component difference threshold includes red component difference Threshold value and/or green component difference threshold and/or blue component difference threshold;
Accordingly, the average color component of the difference predeterminable area of the initial picture is calculated, including:
It is the average red of the difference predeterminable area to calculate the average value of the red component of all pixels point in the difference predeterminable area Colouring component, and/or
It is the average green of the difference predeterminable area to calculate the average value of the green component of all pixels point in the difference predeterminable area Colouring component, and/or
The average value for calculating the blue component of all pixels point in the difference predeterminable area is the average indigo plant of the difference predeterminable area Colouring component;
Accordingly, the average color component of the difference predeterminable area of initial picture described in former frame and initial graph described in a later frame When the absolute value of difference between the average color component of the difference predeterminable area of piece is more than color component difference threshold, including:
The difference predeterminable area of the average red component of the difference predeterminable area of the former frame picture and a later frame picture Average red component between difference be more than the red component difference threshold when, and/or
The difference predeterminable area of the average green component of the difference predeterminable area of the former frame picture and a later frame picture Average green component between difference be more than the green component difference threshold when, and/or
The difference predeterminable area of the average blue component of the difference predeterminable area of the former frame picture and a later frame picture Average blue component between difference be more than the blue component difference threshold when.
6. a kind of electronic certificate recognizes triggering device, it is characterised in that the electronic certificate identification triggering device includes:Image is adopted Collect module, computing module and output module,
Described image acquisition module, for certificate rest area continuous collecting video image, and by the institute in the video image There is single-frame images to be converted into the initial picture of rgb color pattern;
The computing module, the average gray value of the difference predeterminable area for calculating the initial picture, and/or for calculating The average color component of the difference predeterminable area of the initial picture;
The output module, for described in the average gray value and a later frame of the difference predeterminable area of initial picture described in former frame When the absolute value of difference between the average gray value of the difference predeterminable area of initial picture is more than gray value difference threshold, and/ Or, the average color component and the difference of initial picture described in a later frame of the difference predeterminable area of initial picture described in former frame are pre- If the absolute value of the difference between the average color component in region is more than color component difference threshold, trigger signal is exported.
7. electronic certificate according to claim 6 recognizes triggering device, it is characterised in that the computing module includes gray scale It is worth computing module and average gray value computing module;
The gray value computing module is used for red component, green component by each pixel in the difference predeterminable area And blue component, calculate the gray value of each pixel in the difference predeterminable area;
The average gray value computing module is used for the average value for calculating the gray value of all pixels point in the difference predeterminable area, It is used as the average gray value of the difference predeterminable area.
8. electronic certificate according to claim 7 recognizes triggering device, it is characterised in that the output module, for The difference preset areas of initial picture described in the average gray value and a later frame of the difference predeterminable area of initial picture described in former frame The absolute value of difference between the average gray value in domain be more than gray value difference threshold when and a later frame described in initial picture extremely When the average gray value of a few gray value predeterminable area is more than gray value threshold value, trigger signal is exported.
9. electronic certificate according to claim 8 recognizes triggering device, it is characterised in that the initial picture includes one The difference predeterminable area and multiple gray value predeterminable areas;The gray value threshold value includes multiple secondary gray value thresholds Value;
The output module, for the difference predeterminable area in initial picture described in former frame average gray value with it is latter The absolute value of difference between the average gray value of the difference predeterminable area of initial picture described in frame is more than gray value difference The average gray value of each gray value predeterminable area of initial picture is all higher than corresponding during threshold value and described in a later frame The secondary gray value threshold value when, export trigger signal.
10. electronic certificate according to claim 6 recognizes triggering device, it is characterised in that the average color component bag Include average red component and/or average green component and/or average blue component;Accordingly, the color component difference threshold Value includes red component difference threshold and/or green component difference threshold and/or blue component difference threshold;
Accordingly, the computing module includes red component computing module and/or green component computing module and/or blueness point Computing module is measured, wherein,
The red component computing module is used for the average value for calculating the red component of all pixels point in the difference predeterminable area For the average red component of the difference predeterminable area,
The green component computing module is used for the average value for calculating the green component of all pixels point in the difference predeterminable area For the average green component of the difference predeterminable area,
The blue component computing module is used for the average value for calculating the blue component of all pixels point in the difference predeterminable area For the average blue component of the difference predeterminable area;
Accordingly, the output module includes red output module and/or green output module and/or blue output module, Wherein,
The red output module be used for the former frame picture difference predeterminable area average red component with it is described latter When difference between the average red component of the difference predeterminable area of frame picture is more than the red component difference threshold, output is touched Signal,
The green output module be used for the former frame picture difference predeterminable area average green component with it is described latter When difference between the average green component of the difference predeterminable area of frame picture is more than the green component difference threshold, output is touched Signal,
The blue output module be used for the former frame picture difference predeterminable area average blue component with it is described latter When difference between the average blue component of the difference predeterminable area of frame picture is more than the blue component difference threshold, output is touched Signal.
CN201710269514.0A 2017-04-24 2017-04-24 Electronic certificate identification triggering method and device Active CN107133618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710269514.0A CN107133618B (en) 2017-04-24 2017-04-24 Electronic certificate identification triggering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710269514.0A CN107133618B (en) 2017-04-24 2017-04-24 Electronic certificate identification triggering method and device

Publications (2)

Publication Number Publication Date
CN107133618A true CN107133618A (en) 2017-09-05
CN107133618B CN107133618B (en) 2021-03-19

Family

ID=59716023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710269514.0A Active CN107133618B (en) 2017-04-24 2017-04-24 Electronic certificate identification triggering method and device

Country Status (1)

Country Link
CN (1) CN107133618B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109248378A (en) * 2018-09-09 2019-01-22 深圳硅基仿生科技有限公司 Video process apparatus, method and the retina stimulator of retina stimulator
CN113129242A (en) * 2019-12-31 2021-07-16 北京中安未来科技有限公司 Image identification triggering method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630361A (en) * 2008-12-30 2010-01-20 北京邮电大学 Plate number, body color and mark identification-based equipment and plate number, body color and mark identification-based method for identifying fake plate vehicles
CN201583967U (en) * 2009-06-06 2010-09-15 李连海 Certificate automatic shooting and recognizing recording instrument
CN104008360A (en) * 2014-05-16 2014-08-27 北京致胜宏达科技有限公司 Automatic bar code induction reading method and reader
CN104182726A (en) * 2014-02-25 2014-12-03 苏凯 Real name authentication system based on face identification
US9202145B2 (en) * 2012-11-30 2015-12-01 Safety Management Services, Inc. System and method of determining material reaction or sensitivity using high-speed video frames
CN105528604A (en) * 2016-01-31 2016-04-27 华南理工大学 Bill automatic identification and processing system based on OCR
WO2016089918A1 (en) * 2014-12-01 2016-06-09 Kustom Signals, Inc. In-car digital video system with integrated alpr
CN106326885A (en) * 2016-10-31 2017-01-11 深圳前海弘稼科技有限公司 Planting greenhouse security monitoring method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630361A (en) * 2008-12-30 2010-01-20 北京邮电大学 Plate number, body color and mark identification-based equipment and plate number, body color and mark identification-based method for identifying fake plate vehicles
CN201583967U (en) * 2009-06-06 2010-09-15 李连海 Certificate automatic shooting and recognizing recording instrument
US9202145B2 (en) * 2012-11-30 2015-12-01 Safety Management Services, Inc. System and method of determining material reaction or sensitivity using high-speed video frames
CN104182726A (en) * 2014-02-25 2014-12-03 苏凯 Real name authentication system based on face identification
CN104008360A (en) * 2014-05-16 2014-08-27 北京致胜宏达科技有限公司 Automatic bar code induction reading method and reader
WO2016089918A1 (en) * 2014-12-01 2016-06-09 Kustom Signals, Inc. In-car digital video system with integrated alpr
CN105528604A (en) * 2016-01-31 2016-04-27 华南理工大学 Bill automatic identification and processing system based on OCR
CN106326885A (en) * 2016-10-31 2017-01-11 深圳前海弘稼科技有限公司 Planting greenhouse security monitoring method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109248378A (en) * 2018-09-09 2019-01-22 深圳硅基仿生科技有限公司 Video process apparatus, method and the retina stimulator of retina stimulator
CN113129242A (en) * 2019-12-31 2021-07-16 北京中安未来科技有限公司 Image identification triggering method and device

Also Published As

Publication number Publication date
CN107133618B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
WO2021036636A1 (en) Vibration detection method and apparatus for lifting device, server and storage medium
CN106101561B (en) Camera focusing detection method and device
CN108307021B (en) Parallel following test equipment, cloud real machine and method for mobile terminal
EP2627069B1 (en) Method and wireless handheld device for determining image hue
CN100531427C (en) Motion detection method and system applied at the mobile monitoring terminal
CN103873781A (en) Method and device for obtaining wide-dynamic video camera
CN103310201B (en) The recognition methods of target blend color
CN104883504A (en) Method and device for opening HDR (high-dynamic range) function on intelligent terminal
CN102088539B (en) Method and system for evaluating pre-shot picture quality
CN105118027A (en) Image defogging method
CN110505477A (en) Double filter test methods, device, equipment and storage medium
CN105227873B (en) A kind of test method and device of on-screen display data
CN107133618A (en) Electronic certificate recognizes triggering method and device
CN105530422A (en) Electronic equipment, control method thereof, and control device
CN111881862B (en) Gesture recognition method and related device
CN113037997A (en) Image processing method and device and electronic equipment
CN112788329A (en) Video static frame detection method and device, television and storage medium
JP2023002768A (en) Image processing method, device, electronic equipment, storage medium, and computer program
CN104679462A (en) System and method for detecting screen
CN102724541A (en) Intelligent diagnosis and recovery method for monitoring images
CN113537092A (en) Smoke and fire detection method, device, equipment and storage medium
CN109996028A (en) Monitoring display equipment and watermark adding method
JP2023002773A (en) Image processing method, device, electronic equipment, storage medium, and computer program
CN117421967A (en) Display screen fault diagnosis method, device, equipment and medium
CN108600746B (en) The eclipsed detection method of Color image of visual, system and device

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
TA01 Transfer of patent application right

Effective date of registration: 20210223

Address after: 100191 room 1609, 16 / F, Yingu building, No.9, North Fourth Ring Road West, Haidian District, Beijing

Applicant after: BEIJING SINOSECU TECHNOLOGY Co.,Ltd.

Address before: 100190 room 1609, 16 / F, Yingu building, No.9, North Fourth Ring Road West, Haidian District, Beijing

Applicant before: Zhang Yan

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Electronic certificate recognition triggering method and device

Effective date of registration: 20220120

Granted publication date: 20210319

Pledgee: Haidian Beijing science and technology enterprise financing Company limited by guarantee

Pledgor: BEIJING SINOSECU TECHNOLOGY CO.,LTD.

Registration number: Y2022110000013

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230302

Granted publication date: 20210319

Pledgee: Haidian Beijing science and technology enterprise financing Company limited by guarantee

Pledgor: BEIJING SINOSECU TECHNOLOGY CO.,LTD.

Registration number: Y2022110000013

PC01 Cancellation of the registration of the contract for pledge of patent right