WO2020042754A1 - Method and apparatus for verifying holographic anti-counterfeiting code - Google Patents

Method and apparatus for verifying holographic anti-counterfeiting code Download PDF

Info

Publication number
WO2020042754A1
WO2020042754A1 PCT/CN2019/094394 CN2019094394W WO2020042754A1 WO 2020042754 A1 WO2020042754 A1 WO 2020042754A1 CN 2019094394 W CN2019094394 W CN 2019094394W WO 2020042754 A1 WO2020042754 A1 WO 2020042754A1
Authority
WO
WIPO (PCT)
Prior art keywords
holographic
code
counterfeit
holographic anti
frame
Prior art date
Application number
PCT/CN2019/094394
Other languages
French (fr)
Chinese (zh)
Inventor
钱浩然
谢畅
彭宇翔
王恒
孙谷飞
袁皓
Original Assignee
众安信息技术服务有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 众安信息技术服务有限公司 filed Critical 众安信息技术服务有限公司
Priority to JP2019549445A priority Critical patent/JP6868119B2/en
Priority to SG11202008829SA priority patent/SG11202008829SA/en
Publication of WO2020042754A1 publication Critical patent/WO2020042754A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/757Matching configurations of points or features

Definitions

  • the present disclosure belongs to the technical field of anti-counterfeiting codes, and in particular relates to a holographic anti-counterfeiting code verification method and device.
  • Holographic anti-counterfeiting technology is a new type of anti-counterfeiting technology developed by the application of laser anti-counterfeiting technology. It is also called laser holographic anti-counterfeiting. Labels made using holographic anti-counterfeiting technology contain more information and therefore have a deeper level of anti-counterfeiting effect than ordinary laser anti-counterfeiting labels. Holographic images are highly technical due to the latest achievements in the fields of laser, precision mechanics and physical chemistry. For most small batch counterfeiters, it is difficult to master the full set of manufacturing technology and the purchase of manufacturing equipment.
  • Hologram means "all information", that is, compared with ordinary photography, which only records the light and dark changes of objects, laser holography can also record the spatial changes of objects. Observing the holographic anti-counterfeiting code at different angles will show different images, such as multi-channel holographic anti-counterfeiting technology: When the logo is rotated, the multi-channel holographic anti-counterfeiting will see different patterns on the same position of the logo; 360 ° computer dot matrix Holographic technology: 360 ° computer dot-matrix holographic technology will show the combination and transformation of light spots such as radial, ring, and spiral within the 360 ° viewing range of the image, which is highly dynamic; dynamic coding anti-counterfeiting technology: dynamic coding anti-counterfeiting is a trademark In front of you, turning the logo slowly will cause a continuous motion pattern.
  • a holographic anti-counterfeiting code verification method includes:
  • mapping table The mapping relationship between different projection angles and image features of the sample holographic anti-counterfeit code is stored in the sample;
  • a holographic anti-counterfeit code verification device includes:
  • a first acquisition module configured to acquire video streams with holographic anti-counterfeit codes at different projection angles
  • a first extraction module configured to extract a projection angle and an image feature of the holographic security code in each frame of one or more frames of the video stream
  • a matching module configured to match a projection angle and an image feature of the holographic security code in each frame in a pre-stored mapping table to obtain a matching rate of the holographic security code in each frame,
  • the mapping table stores mapping relationships between different projection angles and image features of the sample holographic anti-counterfeiting code
  • a first determination module is configured to determine whether the holographic security code is successfully verified according to a matching rate of the holographic security code in each frame.
  • a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, causes the processor to perform the following processing:
  • mapping table The mapping relationship between different projection angles and image features of the sample holographic anti-counterfeit code is stored in the sample;
  • a low-cost, high-efficiency, automated holographic anti-counterfeit code verification can be achieved.
  • FIG. 1 schematically illustrates a flowchart of a holographic security code verification method according to an embodiment of the present disclosure
  • FIG. 2 schematically illustrates a flowchart of a holographic anti-counterfeiting code verification method according to another embodiment of the present disclosure
  • FIG. 3 schematically illustrates a flowchart of a holographic anti-counterfeiting code verification method according to another embodiment of the present disclosure
  • FIG. 4 schematically illustrates a configuration block diagram of a holographic anti-counterfeit code verification device according to another embodiment of the present disclosure
  • FIG. 5 schematically illustrates a configuration of a computing device according to an embodiment of the present disclosure.
  • the present disclosure provides a holographic anti-counterfeiting code verification method and device, which can implement low-cost and high-efficiency automated holographic anti-counterfeiting code verification.
  • the execution subject of the technical solution of the present disclosure may be, for example, a mobile terminal such as a computer, an iPad, or a mobile phone, or an electronic device such as a dedicated device for holographic anti-counterfeit code verification.
  • FIG. 1 schematically illustrates a flowchart of a holographic anti-counterfeiting code verification method according to an embodiment of the present disclosure.
  • step S101 video streams with holographic anti-counterfeiting codes at different projection angles are obtained.
  • the holographic anti-counterfeiting code can be set in a local area on the anti-counterfeiting label, and the anti-counterfeiting label is a carrier of the holographic anti-counterfeiting code.
  • the security label can also include information other than the holographic security code.
  • an image acquisition device may be used to perform video stream data collection on the holographic security code in advance.
  • the image acquisition device may be, for example, a camera installed on a mobile terminal such as a computer, an iPad, or a mobile phone, or an electronic device such as a dedicated device for holographic anti-counterfeit code verification.
  • the image acquisition device may also be a device separate from the above-mentioned electronic device. After the video stream is collected, the image acquisition device inputs the video stream to the electronic device.
  • the embodiment of the present disclosure does not limit the specific input process.
  • the shooting angle may be changed during the process of capturing the video stream to obtain a video stream with holographic anti-counterfeit codes at different projection angles.
  • the shooting angle may be transformed according to a preset angle transformation value.
  • the preset angle transformation value may be an angle range value, or a plurality of discrete angle values.
  • other angle transformation values may be set according to actual needs.
  • video streams with holographic anti-counterfeit codes at different projection angles may be pre-recorded using an image acquisition device, or may be acquired in real time by an image acquisition device.
  • the video stream data of the holographic anti-counterfeiting code may include continuous multi-frame images.
  • the projection angle in this embodiment may be, for example, an angle formed between the holographic anti-counterfeiting code and the projection surface of the camera. Specifically, the angle formed by the connection between the center point of the holographic anti-counterfeiting code and the center point of the projection surface of the camera and the projection surface of the camera.
  • the orthographic projection angle may correspond to an angle at which the holographic security code on the security label is photographed from directly above.
  • step S102 the projection angle and image feature of the holographic security code in each frame of one or more frames of the video stream are extracted.
  • the image features of the holographic anti-counterfeit code can be extracted by computer vision.
  • feature extraction algorithms such as orb, surf, or sift can be used.
  • the embodiment of the present disclosure does not limit the specific extraction process.
  • the one or more frames extracted from the video stream may be continuous frames or discrete frames arranged in chronological order.
  • extracting a projection angle of the holographic security code in each frame of one or more frames of the video stream may include: extracting image characteristics of the holographic security code extracted from each frame and pre-stored security code image characteristics Perform a comparison, generate a transformation matrix, and calculate the projection angle of the holographic security code in each frame.
  • the pre-stored anti-counterfeit code image features may be obtained by performing feature extraction on an orthographic image obtained by photographing a sample holographic anti-counterfeit code at an orthographic projection angle in advance.
  • the orthographic image features may be stored in a pre-built mapping table corresponding to the orthographic angle.
  • the method provided by the embodiment of the present disclosure may further include:
  • Each frame of one or more frames of the video stream is pre-processed.
  • the pre-processing may include operations such as truncation thresholding processing, contrast enhancement processing, and image denoising processing.
  • step S103 the projection angle and image characteristics of the holographic anti-counterfeit code in each frame are matched in a pre-stored mapping table to obtain the matching rate of the holographic anti-counterfeit code in each frame.
  • the mapping table stores a mapping relationship between different projection angles of the sample holographic anti-counterfeiting code and image characteristics of the sample holographic anti-counterfeiting code.
  • a mapping table is queried to see if there is the same projection angle as the projection angle of the holographic anti-counterfeit code. If it exists, the image characteristics and mapping table of the holographic anti-counterfeit code The image features corresponding to the middle projection angle are subjected to similarity calculation; the matching rate of the holographic anti-counterfeit code in each frame is determined according to the calculated similarity. Among them, methods such as Euclidean distance, horse distance, or cosine function can be used to calculate the similarity.
  • the embodiment of the present disclosure does not limit the specific matching process.
  • step S104 it is determined whether the verification of the holographic security code is successful according to the matching rate of the holographic security code in each frame.
  • the matching rates of all holographic anti-counterfeiting codes in the one or more frames of the video stream may be counted to determine whether the holographic anti-counterfeiting code is successfully verified.
  • the statistical matching rate may be, for example, an average matching rate of the holographic anti-counterfeit code in the one or more frames, or may be a sum of the matching rates of the holographic anti-counterfeit code in each frame.
  • other methods can also be used to calculate the matching rate.
  • the preset threshold can be set according to actual needs. For example, a preset threshold is set to 0.8. When the statistical result of the matching rate is 0.6, it can be determined that the verification of the holographic anti-counterfeiting code fails.
  • a verification result indicating whether the verification of the holographic anti-counterfeit code is successful may be generated and displayed to the user in the electronic device.
  • the verification result can be output in text form on the screen of the electronic device, such as outputting the text content "verification successful” or "verification failed".
  • the holographic anti-counterfeit code verification is successful by outputting the symbol identification “ ⁇ ”, to indicate that the holographic anti-counterfeit code verification failure is output, and so on.
  • the projection angle and image characteristics of the holographic security code in the video stream are matched in a pre-stored mapping table, and according to the matching rate of the holographic security code, it is determined whether the holographic security code is successfully verified and the accuracy is achieved.
  • the purpose of performing holographic anti-counterfeit code verification is to achieve the technical effect of automatic verification with low cost and high efficiency of holographic anti-counterfeit code verification.
  • FIG. 2 schematically illustrates a flowchart of a holographic security code verification method according to another embodiment of the present disclosure.
  • the holographic anti-counterfeit code verification method includes steps S201 to S203 in addition to the steps described in FIG. 1.
  • steps S201 to S203 in addition to the steps described in FIG. 1.
  • the steps described in FIG. 1 are omitted.
  • Steps S201 to S203 are steps for constructing a mapping table, and may be performed before step S103 described in FIG. 1, for example.
  • step S201 a plurality of sample images of the sample holographic anti-counterfeit code at different projection angles are acquired.
  • the different projection angles may include an orthographic projection angle, and the orthographic projection angle corresponds to the orthographic image.
  • the sample holographic anti-counterfeit code can be photographed at different projection angles to obtain multiple sample images of the sample holographic anti-counterfeit code at different projection angles.
  • the camera can be used to photograph the sample holographic anti-counterfeiting code.
  • the sample holographic anti-counterfeiting code can be photographed by using an image acquisition device separate from the electronic device, and then multiple sample images of the sample holographic anti-counterfeiting code at different projection angles are input into the electronic device.
  • the embodiment of the present disclosure does not limit the specific input process.
  • step S202 a plurality of sample image features corresponding to different projection angles are extracted from the plurality of sample images.
  • the extraction of image features may be implemented by a method similar to the extraction of image features of the holographic security code described in step S102.
  • computer vision can be used for feature extraction.
  • a mapping table is constructed according to the correspondence between different projection angles and a plurality of sample image features.
  • the mapping table may be stored in the electronic device for the matching process in step S103 described above.
  • a mapping table is constructed according to the corresponding relationship between different projection angles and the characteristics of multiple sample images, so that the change of the feature state of the security code with the projection angle is stored in the mapping table for subsequent use of the mapping table for Holographic security code check.
  • FIG. 3 schematically illustrates a flowchart of a holographic security code verification method according to another embodiment of the present disclosure.
  • the holographic anti-counterfeit code verification method includes steps S301 to S303 in addition to the steps described in FIG. 1.
  • steps S301 to S303 in addition to the steps described in FIG. 1.
  • the steps described in FIG. 1 are omitted.
  • Steps S301 to S303 shown in FIG. 3 are steps for determining the authenticity of the video stream, and may be performed before step S103 described in FIG. 1, for example.
  • step S301 image features of anti-counterfeit labels in multiple frames of a video stream are extracted.
  • the security label includes a holographic security code.
  • extracting the image features of the anti-counterfeit label may be implemented by using a method similar to that of extracting the image features of the holographic anti-counterfeit code described in step S102.
  • computer vision can be used for feature extraction.
  • step S302 the image features of the anti-counterfeit label in each of the multiple frames are compared with the image features of the sample holographic anti-counterfeit code stored in the mapping table to determine whether the holographic anti-counterfeit code in each of the multiple frames is Location on security label.
  • the holographic anti-counterfeiting code is located at a lower left position, a central position, a lower right position, or the like of the anti-counterfeiting label.
  • step S303 the authenticity of the video stream is determined according to changes in the position of the holographic anti-counterfeit code on the anti-counterfeit label in a plurality of frames.
  • the location may include coordinate information.
  • the position vector of the holographic anti-counterfeiting code can be calculated according to the coordinate information of the holographic anti-counterfeiting code; the position vector of the holographic anti-counterfeiting code in each frame of multiple frames and the order of each frame in the video stream are used to determine the holographic anti-counterfeiting in the video stream The position of the code changes.
  • the authenticity of the video stream is determined by changing the position of the holographic anti-counterfeit code on the anti-counterfeit label in the video stream. If the position change in the video stream is smooth and smooth, the video stream can be determined to be true. For example, if the position of two consecutive frames changes greatly, it can be determined that the video stream is forged.
  • the embodiment of the present disclosure does not limit the specific determination process.
  • steps S301 to S303 may be performed before step S102, or may be performed after step S102, or may be performed simultaneously with step S102, which is not limited in the embodiment of the present disclosure.
  • the authenticity of the video stream is determined.
  • the matching process in the subsequent step S103 need not be performed, thereby further improving the verification efficiency of the holographic anti-counterfeiting code.
  • FIG. 4 schematically illustrates a configuration block diagram of a holographic anti-counterfeit code verification device according to another embodiment of the present disclosure.
  • the apparatus 4000 may include a processing circuit 4010.
  • the processing circuit 4010 of the device 4000 provides various functions of the device 4000.
  • the processing circuit 4010 of the device 4000 may be configured to perform the holographic security code verification method described above with reference to FIG. 1.
  • the processing circuit 4010 may refer to various implementations of a digital circuit system, an analog circuit system, or a mixed signal (combination of analog and digital) circuit system that performs functions in a computing system.
  • the processing circuit may include, for example, a circuit such as an integrated circuit (IC), an application specific integrated circuit (ASIC), a portion or circuit of a separate processor core, the entire processor core, a separate processor, such as a field programmable gate array (FPGA) Programmable hardware devices, and / or systems including multiple processors.
  • IC integrated circuit
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the processing circuit 4010 may include a first acquisition module 4020, a first extraction module 4030, a matching module 4040, and a first determination module 4050.
  • the first obtaining module 4020 is configured to obtain a video stream having a holographic anti-counterfeiting code at different projection angles; the first obtaining module 4030 is configured to extract the holographic anti-counterfeiting in each frame of one or more frames of the video stream Code projection angle and image feature; the matching module 4040 is configured to match the projection angle and image feature of the holographic security code in each frame in a pre-stored mapping table to obtain the The matching rate of the holographic anti-counterfeiting code is described, wherein the mapping table stores a mapping relationship between different projection angles and image features of the sample holographic anti-counterfeiting code; the first determination module 4050 is configured to perform The matching rate of the holographic security code determines whether the holographic security code is successfully verified.
  • the above modules 4020 to 4050 may be respectively configured to perform steps S101 to S104 in the holographic anti-counterfeit code verification method shown in FIG. 1.
  • the apparatus 4000 may further include a memory (not shown).
  • the memory of the device 4000 may store information generated by the processing circuit 4010 and programs and data for the operation of the device 4000.
  • the memory may be a volatile memory and / or a non-volatile memory.
  • the memory may include, but is not limited to, random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), read-only memory (ROM), and flash memory.
  • RAM random access memory
  • DRAM dynamic random access memory
  • SRAM static random access memory
  • ROM read-only memory
  • flash memory flash memory
  • the apparatus 4000 may be implemented at a chip level, or may be implemented at a device level by including other external components.
  • each of the foregoing modules is only a logical module divided according to a specific function that it implements, and is not intended to limit a specific implementation manner.
  • the foregoing modules may be implemented as independent physical entities, or may be implemented by a single entity (for example, a processor (CPU or DSP, etc.), an integrated circuit, etc.).
  • the apparatus 4000 may further include: a second acquisition module 4060 configured to extract a plurality of sample image features corresponding to the different projection angles from the plurality of sample images; a second extraction module 4070, Configured to extract a plurality of sample image features corresponding to the different projection angles from the plurality of sample images; a building module 4080 configured to configure a correspondence relationship between the different projection angles and the plurality of sample image features To build the mapping table.
  • the above-mentioned modules 4060 to 4080 may be respectively configured to execute steps S201 to S203 in the holographic anti-counterfeit code verification method shown in FIG. 2.
  • the device 4000 may further include: a third extraction module 4090 configured to calculate an average matching rate of the holographic anti-counterfeit code in the one or more frames; a comparison module 4100 configured to convert all The image features of the anti-counterfeit label in each of the multiple frames are compared with the image features of the sample holographic anti-counterfeit code stored in the mapping table to determine what is in each of the multiple frames. A position of the holographic security code on the security label; a second determination module 4110 configured to determine the video stream according to a change in the position of the holographic security code on the security label in the plurality of frames; Authenticity.
  • the above-mentioned modules 4090 to 4110 may be respectively configured to perform steps S301 to S303 in the holographic anti-counterfeit code verification method shown in FIG. 3 described above.
  • the holographic anti-counterfeit code verification device of the present disclosure it is possible to realize a low-cost and high-efficiency automated holographic anti-counterfeit code verification.
  • the holographic anti-counterfeit code verification device provided in the foregoing embodiment performs the holographic anti-counterfeit code verification method
  • only the above-mentioned division of functional modules is used as an example.
  • the above functions may be allocated according to needs Completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the holographic anti-counterfeit code verification device provided by the foregoing embodiment belongs to the same concept as the holographic anti-counterfeit code verification method embodiment, and its specific implementation process is described in the method embodiment in detail, and is not repeated here.
  • FIG. 5 illustrates an exemplary configuration of a computing device 500 that can implement an embodiment of the present invention.
  • the computing device 500 is an example of a hardware device to which the above-mentioned aspects of the present invention can be applied.
  • Computing device 500 may be any machine configured to perform processes and / or calculations.
  • the computing device 500 may be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal data assistant (PDA), a smart phone, an on-board computer, or a combination thereof.
  • PDA personal data assistant
  • the computing device 500 may include one or more elements that may be connected or communicated with the bus 502 via one or more interfaces.
  • the bus 502 may include, but is not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, etc.
  • Computing device 500 may include, for example, one or more processors 504, one or more input devices 506, and one or more output devices 508.
  • the one or more processors 504 may be any kind of processor, and may include, but are not limited to, one or more general-purpose processors or special-purpose processors (such as special-purpose processing chips).
  • the processor 504 may, for example, correspond to the processing circuit 4010 in FIG. 4 and is configured to implement the functions of each module of the holographic anti-counterfeit code verification device of the present disclosure.
  • the input device 506 may be any type of input device capable of inputting information to a computing device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a microphone, and / or a remote controller.
  • the output device 508 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer.
  • the computing device 500 may also include or be connected to a non-transitory storage device 514, which may be any non-transitory storage device that can implement data storage, and may include, but is not limited to, a disk drive, optical Data can be read from storage devices, solid-state memories, floppy disks, flexible disks, hard disks, magnetic tapes or any other magnetic media, compact disks or any other optical media, cache memory and / or any other memory chips or modules, and / or computers , Instructions, and / or any other medium of code.
  • the computing device 500 may also include a random access memory (RAM) 510 and a read-only memory (ROM) 512.
  • the ROM 512 may store programs, utilities, or processes to be executed in a non-volatile manner.
  • the RAM 510 may provide volatile data storage and store instructions related to the operation of the computing device 500.
  • the computing device 500 may also include a network / bus interface 516 coupled to the data link 518.
  • the network / bus interface 516 may be any kind of device or system capable of enabling communication with external devices and / or networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication device, and / or a chipset (such as Bluetooth TM devices, 802.11 devices, WiFi devices, WiMax devices, cellular communication facilities, etc.).
  • Solution 1 a holographic anti-counterfeiting code verification device, including:
  • One or more processors are One or more processors;
  • a memory having computer-executable instructions stored thereon, which, when executed by the one or more processors, cause the one or more processors:
  • mapping table The mapping relationship between different projection angles and image features of the sample holographic anti-counterfeit code is stored in the sample;
  • Solution 2 In the holographic anti-counterfeit code verification device of Solution 1, the computer-executable instructions, when executed by the one or more processors, cause the one or more processors to:
  • mapping table Constructing the mapping table according to the correspondence between the different projection angles and the features of the plurality of sample images.
  • Solution 3 In the holographic anti-counterfeit code verification device of item 1, determining whether the holographic anti-counterfeit code is successfully verified according to the matching rate of the holographic anti-counterfeit code in each frame includes:
  • the average matching rate is compared with a preset threshold to determine whether the holographic anti-counterfeit code is successfully verified.
  • Solution 4 In the holographic anti-counterfeit code verification device of the first solution, the video stream is obtained by shooting the holographic anti-counterfeit code by using a preset angle conversion value to change the shooting angle.
  • Solution 5 In the holographic anti-counterfeit code verification device of any one of Solutions 1 to 4, the computer-executable instructions, when executed by the one or more processors, cause the one or more processors:
  • the foregoing embodiments may be embodied as computer-readable codes on a computer-readable medium.
  • a computer-readable medium is any data storage device that can store data, which can thereafter be read by a computer system. Examples of computer-readable media include read-only memory, random-access memory, CD-ROMs, DVDs, magnetic tapes, hard drives, solid-state drives, and optical data storage devices.
  • the computer-readable medium may also be distributed among network-coupled computer systems such that the computer-readable code is stored and executed in a distributed manner.
  • Hardware circuits may include combined logic circuits, clock storage devices (such as floppy disks, flip-flops, latches, etc.), finite state machines, memories such as static random access memory or embedded dynamic random access memory, custom-designed circuits, Any combination of programmable logic arrays.

Abstract

A method and apparatus for verifying a holographic anti-counterfeiting code. The method for verifying a holographic anti-counterfeiting code comprises: acquiring a video stream containing a holographic anti-counterfeiting code at different projection angles (S101); extracting the projection angles and image features of the holographic anti-counterfeiting code in each frame among one or more frames of the video stream (S102); matching the projection angles and image features of the holographic anti-counterfeiting code in each frame in a pre-stored mapping table so as to obtain the matching rate of the holographic anti-counterfeiting code in each frame (S103), wherein the mapping relationship between different projection angles and image features of a sample holographic anti-counterfeiting code is stored in the mapping table; according to the matching rate of the holographic anti-counterfeiting code in each frame, determining whether the holographic anti-counterfeiting code is successfully verified (S104).

Description

一种全息防伪码校验方法及装置Method and device for verifying holographic anti-counterfeit code 技术领域Technical field
本公开属于防伪码技术领域,尤其涉及一种全息防伪码校验方法及装置。The present disclosure belongs to the technical field of anti-counterfeiting codes, and in particular relates to a holographic anti-counterfeiting code verification method and device.
背景技术Background technique
全息防伪技术是应用激光防伪技术发展起来的一种新型防伪技术,又称激光全息防伪,使用全息防伪技术制作的标签包含的信息更加丰富,因此比普通的激光防伪标签具有更深层次的防伪效果。全息图像由于综合了激光、精密机械和物理化学等学科的最新成果,技术含量高。对多数小批量伪造者而言,全套制造技术的掌握和制造设备的购置难以做到。Holographic anti-counterfeiting technology is a new type of anti-counterfeiting technology developed by the application of laser anti-counterfeiting technology. It is also called laser holographic anti-counterfeiting. Labels made using holographic anti-counterfeiting technology contain more information and therefore have a deeper level of anti-counterfeiting effect than ordinary laser anti-counterfeiting labels. Holographic images are highly technical due to the latest achievements in the fields of laser, precision mechanics and physical chemistry. For most small batch counterfeiters, it is difficult to master the full set of manufacturing technology and the purchase of manufacturing equipment.
“全息”的意思为“全部信息”,即相对于普通照相的只记录物体的明暗变化,激光全息照相还能记录物体的空间变化。在不同的角度观察全息防伪码会呈现出不同的影像,例如多通道全息防伪技术:多通道全息防伪在转动标识时,会看到在标识的同一位置上出现不同的图案;360°计算机点阵全息技术:360°计算机点阵全息技术在图像360°的观察范围内会出现放射状、环状、螺旋状等光点的组合与变换,动感极强;动态编码防伪技术:动态编码防伪是将商标置于眼前,缓慢地转动商标会出现连续动作的图案。"Hologram" means "all information", that is, compared with ordinary photography, which only records the light and dark changes of objects, laser holography can also record the spatial changes of objects. Observing the holographic anti-counterfeiting code at different angles will show different images, such as multi-channel holographic anti-counterfeiting technology: When the logo is rotated, the multi-channel holographic anti-counterfeiting will see different patterns on the same position of the logo; 360 ° computer dot matrix Holographic technology: 360 ° computer dot-matrix holographic technology will show the combination and transformation of light spots such as radial, ring, and spiral within the 360 ° viewing range of the image, which is highly dynamic; dynamic coding anti-counterfeiting technology: dynamic coding anti-counterfeiting is a trademark In front of you, turning the logo slowly will cause a continuous motion pattern.
发明内容Summary of the Invention
在下文中给出了关于本公开的简要概述,以便提供关于本公开的一些方面的基本理解。但是,应当理解,这个概述并不是关于本公开的穷举性概述。它并不是意图用来确定本公开的关键性部分或重要部分,也不是意图用来限定本公开的范围。其目的仅仅是以简化的形式给出关于本公开的某些概念,以此作为稍后给出的更详细描述的前序。A brief overview of the disclosure is given below in order to provide a basic understanding of some aspects of the disclosure. It should be understood, however, that this summary is not an exhaustive overview of the present disclosure. It is not intended to identify key or important parts of the disclosure, nor is it intended to limit the scope of the disclosure. Its purpose is merely to present some concepts of the disclosure in a simplified form as a prelude to the more detailed description that is presented later.
根据本公开的一个方面,提供了一种全息防伪码校验方法,所述方法包括:According to an aspect of the present disclosure, a holographic anti-counterfeiting code verification method is provided, the method includes:
获取具有不同投影角度下的全息防伪码的视频流;Obtain video streams with holographic anti-counterfeit codes at different projection angles;
提取所述视频流的一个或多个帧的每一帧中所述全息防伪码的投影角度和图像特征;Extracting a projection angle and an image feature of the holographic security code in each frame of one or more frames of the video stream;
将所述每一帧中所述全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,以得到所述每一帧中所述全息防伪码的匹配率,其中,所述映射表中存储有样本全息防伪码的不同投影角度和图像特征之间的映射关系;Matching the projection angle of the holographic anti-counterfeiting code and the image characteristics in each frame in a pre-stored mapping table to obtain a matching rate of the holographic anti-counterfeiting code in each frame, wherein the mapping table The mapping relationship between different projection angles and image features of the sample holographic anti-counterfeit code is stored in the sample;
根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功。Determining whether the verification of the holographic security code is successful according to the matching rate of the holographic security code in each frame.
根据本公开的另一方面,提供了一种全息防伪码校验装置,所述装置包括:According to another aspect of the present disclosure, a holographic anti-counterfeit code verification device is provided, the device includes:
第一获取模块,被配置为获取具有不同投影角度下的全息防伪码的视频流;A first acquisition module configured to acquire video streams with holographic anti-counterfeit codes at different projection angles;
第一提取模块,被配置为提取所述视频流的一个或多个帧的每一帧中所述全息防伪码的投影角度和图像特征;A first extraction module configured to extract a projection angle and an image feature of the holographic security code in each frame of one or more frames of the video stream;
匹配模块,被配置为将所述每一帧中所述全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,以得到所述每一帧中所述全息防伪码的匹配率,其中,所述映射表中存储有样本全息防伪码的不同投影角度和图像特征之间的映射关系;A matching module configured to match a projection angle and an image feature of the holographic security code in each frame in a pre-stored mapping table to obtain a matching rate of the holographic security code in each frame, The mapping table stores mapping relationships between different projection angles and image features of the sample holographic anti-counterfeiting code;
第一判定模块,被配置为根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功。A first determination module is configured to determine whether the holographic security code is successfully verified according to a matching rate of the holographic security code in each frame.
根据本公开的又一方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器运行时,使所述处理器执行如下处理:According to yet another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, causes the processor to perform the following processing:
获取具有不同投影角度下的全息防伪码的视频流;Obtain video streams with holographic anti-counterfeit codes at different projection angles;
提取所述视频流的一个或多个帧的每一帧中所述全息防伪码的投影角度和图像特征;Extracting a projection angle and an image feature of the holographic security code in each frame of one or more frames of the video stream;
将所述每一帧中所述全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,以得到所述每一帧中所述全息防伪码的匹配率,其中,所述映射表中存储有样本全息防伪码的不同投影角度和图像特征之间的映射关系;Matching the projection angle of the holographic anti-counterfeiting code and the image characteristics in each frame in a pre-stored mapping table to obtain a matching rate of the holographic anti-counterfeiting code in each frame, wherein the mapping table The mapping relationship between different projection angles and image features of the sample holographic anti-counterfeit code is stored in the sample;
根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功。Determining whether the verification of the holographic security code is successful according to the matching rate of the holographic security code in each frame.
根据本公开的一个或多个实施例,能够实现低成本、高效率的自动化的全息防伪码校验。According to one or more embodiments of the present disclosure, a low-cost, high-efficiency, automated holographic anti-counterfeit code verification can be achieved.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present disclosure more clearly, the drawings used in the description of the embodiments are briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained according to these drawings without paying creative labor.
图1示意性示出了根据本公开一实施例的全息防伪码校验方法的流程图;FIG. 1 schematically illustrates a flowchart of a holographic security code verification method according to an embodiment of the present disclosure;
图2示意性示出了根据本公开另一实施例的全息防伪码校验方法的流程图;2 schematically illustrates a flowchart of a holographic anti-counterfeiting code verification method according to another embodiment of the present disclosure;
图3示意性示出了根据本公开另一实施例的全息防伪码校验方法的流程图;3 schematically illustrates a flowchart of a holographic anti-counterfeiting code verification method according to another embodiment of the present disclosure;
图4示意性示出了根据本公开另一实施例的全息防伪码校验装置的配置框图;4 schematically illustrates a configuration block diagram of a holographic anti-counterfeit code verification device according to another embodiment of the present disclosure;
图5示意性示出了可以实现根据本公开的实施例的计算设备的配置。FIG. 5 schematically illustrates a configuration of a computing device according to an embodiment of the present disclosure.
具体实施方式detailed description
为使本公开的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图, 对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the objectives, technical solutions, and advantages of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be described clearly and completely in combination with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are merely Some, but not all, embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by a person having ordinary skill in the art without making creative efforts fall within the protection scope of the present disclosure.
关于全息防伪码的校验,发明人知晓的方式是通过人工的方法进行校验。这样的人工校验需要校验人员具有专业的防伪知识,并且需要使用专业的校验设备进行校验。人工校验方式的校验成本较高、效率较低。本公开提供了一种全息防伪码校验方法及装置,能够实现低成本、高效率的自动化的全息防伪码校验。Regarding the verification of the holographic anti-counterfeiting code, the inventor knows that the verification is performed manually. Such manual verification requires that the verification personnel have professional anti-counterfeiting knowledge, and need to use professional verification equipment for verification. The manual verification method has higher verification cost and lower efficiency. The present disclosure provides a holographic anti-counterfeiting code verification method and device, which can implement low-cost and high-efficiency automated holographic anti-counterfeiting code verification.
在对本公开实施例中技术方案作进一步详细的说明之前,首先对本公开技术方案的执行主体进行说明。本公开的技术方案的执行主体例如可以是电脑、iPad、手机这样的移动终端或者用于全息防伪码校验的专用设备等电子设备。Before the technical solutions in the embodiments of the present disclosure are further described in detail, first, the main body of the technical solutions of the present disclosure will be described. The execution subject of the technical solution of the present disclosure may be, for example, a mobile terminal such as a computer, an iPad, or a mobile phone, or an electronic device such as a dedicated device for holographic anti-counterfeit code verification.
下面参照图1~图5来说明根据本公开的全息防伪码校验方法及装置。The following describes a holographic anti-counterfeiting code verification method and device according to the present disclosure with reference to FIGS. 1 to 5.
图1示意性示出了根据本公开一实施例的全息防伪码校验方法的流程图。FIG. 1 schematically illustrates a flowchart of a holographic anti-counterfeiting code verification method according to an embodiment of the present disclosure.
如图1所示,在步骤S101中,获取具有不同投影角度下的全息防伪码的视频流。As shown in FIG. 1, in step S101, video streams with holographic anti-counterfeiting codes at different projection angles are obtained.
全息防伪码可以被设置在防伪标签上的局部区域内,防伪标签是全息防伪码的载体。此外,防伪标签上还可以包括除全息防伪码之外的信息。The holographic anti-counterfeiting code can be set in a local area on the anti-counterfeiting label, and the anti-counterfeiting label is a carrier of the holographic anti-counterfeiting code. In addition, the security label can also include information other than the holographic security code.
在一些实施例中,可以预先利用图像采集设备对全息防伪码进行视频流数据采集。图像采集设备例如可以是安装在电脑、iPad、手机这样的移动终端或者用于全息防伪码校验的专用设备等电子设备上的摄像头。另外,图像采集设备也可以是与上述电子设备分离的设备,在采集到视频流之后,由图像采集设备将视频流输入到电子设备。本公开实施例对具体的输入过程不加以限定。In some embodiments, an image acquisition device may be used to perform video stream data collection on the holographic security code in advance. The image acquisition device may be, for example, a camera installed on a mobile terminal such as a computer, an iPad, or a mobile phone, or an electronic device such as a dedicated device for holographic anti-counterfeit code verification. In addition, the image acquisition device may also be a device separate from the above-mentioned electronic device. After the video stream is collected, the image acquisition device inputs the video stream to the electronic device. The embodiment of the present disclosure does not limit the specific input process.
在一些实施例中,可以在采集视频流的过程中变换拍摄角度,以得到具有不同投影角度下的全息防伪码的视频流。在一些实施例中,可以根据预设的角度变换值来变换拍摄角度。预设的角度变换值可以为一角度范围值,也可以为多个离散的角度值,另外也可以根据实际需要设定其它角度变换值。In some embodiments, the shooting angle may be changed during the process of capturing the video stream to obtain a video stream with holographic anti-counterfeit codes at different projection angles. In some embodiments, the shooting angle may be transformed according to a preset angle transformation value. The preset angle transformation value may be an angle range value, or a plurality of discrete angle values. In addition, other angle transformation values may be set according to actual needs.
在一些实施例中,具有不同投影角度下的全息防伪码的视频流可以是利用图像采集设备预先录制的,也可以是通过图像采集设备实时采集的。其中,全息防伪码的视频流数据可以包括连续的多帧图像。In some embodiments, video streams with holographic anti-counterfeit codes at different projection angles may be pre-recorded using an image acquisition device, or may be acquired in real time by an image acquisition device. The video stream data of the holographic anti-counterfeiting code may include continuous multi-frame images.
本实施例中的投影角度例如可以是全息防伪码与摄像机投影面之间所成的角度。具体可以为,全息防伪码中心点与摄像机投影面中心点的连线与摄像机投影面所成的角度。其中,正投影角度可以对应从正上方向下对防伪标签上的全息防伪码进行拍摄的角度。The projection angle in this embodiment may be, for example, an angle formed between the holographic anti-counterfeiting code and the projection surface of the camera. Specifically, the angle formed by the connection between the center point of the holographic anti-counterfeiting code and the center point of the projection surface of the camera and the projection surface of the camera. The orthographic projection angle may correspond to an angle at which the holographic security code on the security label is photographed from directly above.
在步骤S102中,提取视频流的一个或多个帧的每一帧中全息防伪码的投影角度和图 像特征。In step S102, the projection angle and image feature of the holographic security code in each frame of one or more frames of the video stream are extracted.
在一些实施例中,提取全息防伪码的图像特征可采用计算机视觉的方法进行特征提取。比如可以采用orb、surf或sift等特征提取算法。本公开实施例对具体的提取过程不加以限定。In some embodiments, the image features of the holographic anti-counterfeit code can be extracted by computer vision. For example, feature extraction algorithms such as orb, surf, or sift can be used. The embodiment of the present disclosure does not limit the specific extraction process.
在一些实施例中,从视频流提取的一个或多个帧可以是连续的帧,也可以是按时间顺序排列的离散的帧。In some embodiments, the one or more frames extracted from the video stream may be continuous frames or discrete frames arranged in chronological order.
在一些实施例中,提取视频流的一个或多个帧的每一帧中全息防伪码的投影角度可以包括:将提取到每一帧中的全息防伪码的图像特征与预存的防伪码图像特征进行比对,生成转换矩阵,计算每一帧中的全息防伪码的投影角度。在一些实施例中,预存的防伪码图像特征可以为预先对样本全息防伪码在正投影角度下拍摄得到的正投影图像进行特征提取而得到的。In some embodiments, extracting a projection angle of the holographic security code in each frame of one or more frames of the video stream may include: extracting image characteristics of the holographic security code extracted from each frame and pre-stored security code image characteristics Perform a comparison, generate a transformation matrix, and calculate the projection angle of the holographic security code in each frame. In some embodiments, the pre-stored anti-counterfeit code image features may be obtained by performing feature extraction on an orthographic image obtained by photographing a sample holographic anti-counterfeit code at an orthographic projection angle in advance.
在一些实施例中,正投影图像特征可以与正投影角度对应地存储在预先构建的映射表中。In some embodiments, the orthographic image features may be stored in a pre-built mapping table corresponding to the orthographic angle.
可选地,在步骤S102之前,本公开实施例提供的方法还可以包括:Optionally, before step S102, the method provided by the embodiment of the present disclosure may further include:
对视频流的一个或多个帧的每一帧进行预处理,其中,预处理可以包括截断阈值化处理、对比度增强处理及图像去噪声处理等操作。Each frame of one or more frames of the video stream is pre-processed. The pre-processing may include operations such as truncation thresholding processing, contrast enhancement processing, and image denoising processing.
本实施例中,通过对视频流的一个或多个帧的每一帧进行预处理,能够消除视频帧中可能存在的噪音,恢复有用的真实的信息,增强相关信息的可检测性和最大限度地简化所需的图像,从而增加在步骤S102中进行图像特征提取的可靠性。进而,可以增加如下述步骤S103所述的对全息防伪码进行匹配时的匹配可靠性。In this embodiment, by pre-processing each frame of one or more frames of the video stream, it is possible to eliminate noise that may exist in the video frames, restore useful and real information, and enhance the detectability and maximum of related information. Simplify the required image, thereby increasing the reliability of image feature extraction in step S102. Furthermore, it is possible to increase the matching reliability when matching the holographic anti-counterfeiting code as described in step S103 below.
在步骤S103中,将每一帧中全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,以得到每一帧中全息防伪码的匹配率。In step S103, the projection angle and image characteristics of the holographic anti-counterfeit code in each frame are matched in a pre-stored mapping table to obtain the matching rate of the holographic anti-counterfeit code in each frame.
其中,映射表中存储有样本全息防伪码的不同投影角度和样本全息防伪码的图像特征之间的映射关系。The mapping table stores a mapping relationship between different projection angles of the sample holographic anti-counterfeiting code and image characteristics of the sample holographic anti-counterfeiting code.
在一些实施例中,针对每一帧的全息防伪码,在映射表中查询是否存在与该全息防伪码的投影角度相同的投影角度,若存在,则对该全息防伪码的图像特征与映射表中投影角度对应的图像特征进行相似度计算;根据计算得到的相似度确定每一帧中全息防伪码的匹配率。其中,可以采用欧氏距离、马式距离或余弦函数等方法进行计算相似度。In some embodiments, for each frame of the holographic anti-counterfeit code, a mapping table is queried to see if there is the same projection angle as the projection angle of the holographic anti-counterfeit code. If it exists, the image characteristics and mapping table of the holographic anti-counterfeit code The image features corresponding to the middle projection angle are subjected to similarity calculation; the matching rate of the holographic anti-counterfeit code in each frame is determined according to the calculated similarity. Among them, methods such as Euclidean distance, horse distance, or cosine function can be used to calculate the similarity.
本公开实施例对具体的匹配过程不加以限定。The embodiment of the present disclosure does not limit the specific matching process.
在步骤S104中,根据每一帧中全息防伪码的匹配率,判定全息防伪码是否校验成功。In step S104, it is determined whether the verification of the holographic security code is successful according to the matching rate of the holographic security code in each frame.
在一些实施例中,可以统计视频流的所述一个或多个帧中所有全息防伪码的匹配率, 以判定全息防伪码是否校验成功。统计的匹配率例如可以是所述一个或多个帧中全息防伪码的平均匹配率,也可以是每个帧中全息防伪码的匹配率之和。另外,也可以采用其它方法对匹配率进行统计。In some embodiments, the matching rates of all holographic anti-counterfeiting codes in the one or more frames of the video stream may be counted to determine whether the holographic anti-counterfeiting code is successfully verified. The statistical matching rate may be, for example, an average matching rate of the holographic anti-counterfeit code in the one or more frames, or may be a sum of the matching rates of the holographic anti-counterfeit code in each frame. In addition, other methods can also be used to calculate the matching rate.
在一些实施例中,可以判定匹配率统计结果是否大于预设阈值,若大于所述预设阈值,则判定全息防伪码校验成功;否则,判定全系防伪码校验失败。In some embodiments, it can be determined whether the statistical result of the matching rate is greater than a preset threshold, and if it is greater than the preset threshold, it is judged that the holographic anti-counterfeit code verification is successful; otherwise, it is judged that the entire system anti-counterfeit code verification fails.
预设阈值可以根据实际需要进行设定,比如,设定预设阈值为0.8,当匹配率统计结果值为0.6时,则可确定校验所述全息防伪码失败。The preset threshold can be set according to actual needs. For example, a preset threshold is set to 0.8. When the statistical result of the matching rate is 0.6, it can be determined that the verification of the holographic anti-counterfeiting code fails.
在一些实施例中,可以生成用于指示校验全息防伪码是否成功的校验结果,并在电子设备中向用户显示该结果。In some embodiments, a verification result indicating whether the verification of the holographic anti-counterfeit code is successful may be generated and displayed to the user in the electronic device.
例如,校验结果可以在电子设备的屏幕上以文本形式输出,如输出文字内容“校验成功”或者“校验失败”。此外,还可以通过输出符号标识“√”来指示全息防伪码校验成功,输出符号标识“×”来指示全息防伪码校验失败,等等。For example, the verification result can be output in text form on the screen of the electronic device, such as outputting the text content "verification successful" or "verification failed". In addition, it is also possible to indicate that the holographic anti-counterfeit code verification is successful by outputting the symbol identification “√”, to indicate that the holographic anti-counterfeit code verification failure is output, and so on.
在本实施例中,通过将视频流中全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,并根据全息防伪码的匹配率,判定全息防伪码是否校验成功,达到了准确进行全息防伪码校验的目的,从而实现了全息防伪码校验成本低、效率高的自动化校验的技术效果。In this embodiment, the projection angle and image characteristics of the holographic security code in the video stream are matched in a pre-stored mapping table, and according to the matching rate of the holographic security code, it is determined whether the holographic security code is successfully verified and the accuracy is achieved. The purpose of performing holographic anti-counterfeit code verification is to achieve the technical effect of automatic verification with low cost and high efficiency of holographic anti-counterfeit code verification.
图2示意性示出了根据本公开另一实施例的全息防伪码校验方法的流程图。在该实施例中,该全息防伪码校验方法除了包括图1中描述的步骤之外,还包括步骤S201至步骤S203。为了描述简洁起见,省略了图1中描述的步骤。FIG. 2 schematically illustrates a flowchart of a holographic security code verification method according to another embodiment of the present disclosure. In this embodiment, the holographic anti-counterfeit code verification method includes steps S201 to S203 in addition to the steps described in FIG. 1. For brevity of description, the steps described in FIG. 1 are omitted.
步骤S201至步骤S203是用于构建映射表的步骤,例如可以在图1中描述的步骤S103之前执行。Steps S201 to S203 are steps for constructing a mapping table, and may be performed before step S103 described in FIG. 1, for example.
如图2所示,在步骤S201中,获取样本全息防伪码在不同投影角度下的多个样本图像。As shown in FIG. 2, in step S201, a plurality of sample images of the sample holographic anti-counterfeit code at different projection angles are acquired.
其中,不同投影角度中可以包括正投影角度,正投影角度对应正投影图像。The different projection angles may include an orthographic projection angle, and the orthographic projection angle corresponds to the orthographic image.
在一些实施例中,可以对样本全息防伪码进行不同投影角度的拍摄,以得到样本全息防伪码在不同投影角度下的多个样本图像。可以利用安装在电子设备上的摄像头等对样本全息防伪码进行拍摄。另外,也可以利用与电子设备分离的图像采集设备对样本全息防伪码进行拍摄,然后将样本全息防伪码在不同投影角度下的多个样本图像输入到电子设备中。本公开实施例对具体的输入过程不加以限定。In some embodiments, the sample holographic anti-counterfeit code can be photographed at different projection angles to obtain multiple sample images of the sample holographic anti-counterfeit code at different projection angles. The camera can be used to photograph the sample holographic anti-counterfeiting code. In addition, the sample holographic anti-counterfeiting code can be photographed by using an image acquisition device separate from the electronic device, and then multiple sample images of the sample holographic anti-counterfeiting code at different projection angles are input into the electronic device. The embodiment of the present disclosure does not limit the specific input process.
在步骤S202中,从多个样本图像中提取对应于不同投影角度的多个样本图像特征。In step S202, a plurality of sample image features corresponding to different projection angles are extracted from the plurality of sample images.
在一些实施例中,提取图像特征可采用与上述步骤S102中描述的提取全息防伪码的 图像特征相类似的方法来实现。例如,可以采用计算机视觉的方法进行特征提取。In some embodiments, the extraction of image features may be implemented by a method similar to the extraction of image features of the holographic security code described in step S102. For example, computer vision can be used for feature extraction.
在步骤S203中,根据不同投影角度和多个样本图像特征的对应关系,构建映射表。映射表可以存储在电子设备中,以用于上述步骤S103中的匹配过程。In step S203, a mapping table is constructed according to the correspondence between different projection angles and a plurality of sample image features. The mapping table may be stored in the electronic device for the matching process in step S103 described above.
本公开实施例中,通过根据不同投影角度和多个样本图像特征的对应关系,构建映射表,从而将防伪码随投影角度变换的特征状态变化情况储存到映射表中,以便后续利用映射表进行全息防伪码校验。In the embodiment of the present disclosure, a mapping table is constructed according to the corresponding relationship between different projection angles and the characteristics of multiple sample images, so that the change of the feature state of the security code with the projection angle is stored in the mapping table for subsequent use of the mapping table for Holographic security code check.
图3示意性示出了根据本公开另一实施例的全息防伪码校验方法的流程图。在该实施例中,该全息防伪码校验方法除了包括图1中描述的步骤之外,还包括步骤S301至步骤S303。为了描述简洁起见,省略了图1中描述的步骤。FIG. 3 schematically illustrates a flowchart of a holographic security code verification method according to another embodiment of the present disclosure. In this embodiment, the holographic anti-counterfeit code verification method includes steps S301 to S303 in addition to the steps described in FIG. 1. For brevity of description, the steps described in FIG. 1 are omitted.
图3所示的步骤S301至S303是对视频流的真伪进行判定的步骤,例如可以在图1中描述的步骤S103之前执行。Steps S301 to S303 shown in FIG. 3 are steps for determining the authenticity of the video stream, and may be performed before step S103 described in FIG. 1, for example.
如图3所示,在步骤S301中,提取视频流的多个帧中防伪标签的图像特征。其中,防伪标签包括全息防伪码。As shown in FIG. 3, in step S301, image features of anti-counterfeit labels in multiple frames of a video stream are extracted. The security label includes a holographic security code.
在一些实施例中,提取防伪标签的图像特征可以采用与上述步骤S102中描述的提取全息防伪码的图像特征相类似的方法来实现。例如,可以采用计算机视觉的方法进行特征提取。In some embodiments, extracting the image features of the anti-counterfeit label may be implemented by using a method similar to that of extracting the image features of the holographic anti-counterfeit code described in step S102. For example, computer vision can be used for feature extraction.
在步骤S302中,将多个帧的每一帧中防伪标签的图像特征与映射表中存储的样本全息防伪码的图像特征进行比对,以确定多个帧的每一帧中全息防伪码在防伪标签上的位置。In step S302, the image features of the anti-counterfeit label in each of the multiple frames are compared with the image features of the sample holographic anti-counterfeit code stored in the mapping table to determine whether the holographic anti-counterfeit code in each of the multiple frames is Location on security label.
在一些实施例中,可以确定全息防伪码位于防伪标签的左下方位置、中央位置或右下方位置等。In some embodiments, it may be determined that the holographic anti-counterfeiting code is located at a lower left position, a central position, a lower right position, or the like of the anti-counterfeiting label.
在步骤S303中,根据多个帧中全息防伪码在防伪标签上的位置的变化,判定视频流的真伪。In step S303, the authenticity of the video stream is determined according to changes in the position of the holographic anti-counterfeit code on the anti-counterfeit label in a plurality of frames.
在一些实施例中,位置可以包括坐标信息。可以根据全息防伪码的坐标信息计算得到全息防伪码的位置矢量;根据多个帧的每一帧中全息防伪码的位置矢量和该每一帧在视频流中的顺序,确定视频流中全息防伪码的位置的变化。In some embodiments, the location may include coordinate information. The position vector of the holographic anti-counterfeiting code can be calculated according to the coordinate information of the holographic anti-counterfeiting code; the position vector of the holographic anti-counterfeiting code in each frame of multiple frames and the order of each frame in the video stream are used to determine the holographic anti-counterfeiting in the video stream The position of the code changes.
在一些实施例中,可以判断全息防伪码在防伪标签上的位置的变化是否存在突变。如果存在突变,则判定视频流是伪造的;如果不存在突变,则判定视频流是真实的。In some embodiments, it can be determined whether there is a sudden change in the position of the holographic security code on the security label. If there is a mutation, it is determined that the video stream is fake; if there is no mutation, it is determined that the video stream is real.
在本实施例中,通过根据视频流中全息防伪码在防伪标签上的位置的变化判断视频流的真伪,若视频流中位置的变化平缓流畅,可判定视频流为真,若出现突变,比如连续两帧位置发生较大的变化,则可判定视频流为伪造。本公开实施例对具体的判定过程不加以限定。In this embodiment, the authenticity of the video stream is determined by changing the position of the holographic anti-counterfeit code on the anti-counterfeit label in the video stream. If the position change in the video stream is smooth and smooth, the video stream can be determined to be true. For example, if the position of two consecutive frames changes greatly, it can be determined that the video stream is forged. The embodiment of the present disclosure does not limit the specific determination process.
需要说明的是,步骤S301至步骤S303可以在步骤S102之前执行,也可以在步骤S102之后执行,还可以与步骤S102同时执行,本公开实施例对此不加以限定。It should be noted that steps S301 to S303 may be performed before step S102, or may be performed after step S102, or may be performed simultaneously with step S102, which is not limited in the embodiment of the present disclosure.
本公开实施例中,对视频流的真伪进行判定,在判定视频流为假时,无需执行后续步骤S103中的匹配过程,由此能够进一步提高全息防伪码的校验效率。In the embodiment of the present disclosure, the authenticity of the video stream is determined. When it is determined that the video stream is false, the matching process in the subsequent step S103 need not be performed, thereby further improving the verification efficiency of the holographic anti-counterfeiting code.
图4示意性示出了根据本公开另一实施例的全息防伪码校验装置的配置框图。FIG. 4 schematically illustrates a configuration block diagram of a holographic anti-counterfeit code verification device according to another embodiment of the present disclosure.
在一些实施例中,装置4000可以包括处理电路4010。装置4000的处理电路4010提供装置4000的各种功能。在一些实施例中,装置4000的处理电路4010可以被配置为执行以上参照图1描述的全息防伪码校验方法。In some embodiments, the apparatus 4000 may include a processing circuit 4010. The processing circuit 4010 of the device 4000 provides various functions of the device 4000. In some embodiments, the processing circuit 4010 of the device 4000 may be configured to perform the holographic security code verification method described above with reference to FIG. 1.
处理电路4010可以指在计算系统中执行功能的数字电路系统、模拟电路系统或混合信号(模拟和数字的组合)电路系统的各种实现。处理电路可以包括例如诸如集成电路(IC)、专用集成电路(ASIC)这样的电路、单独处理器核心的部分或电路、整个处理器核心、单独的处理器、诸如现场可编程门阵列(FPGA)的可编程硬件设备、和/或包括多个处理器的系统。The processing circuit 4010 may refer to various implementations of a digital circuit system, an analog circuit system, or a mixed signal (combination of analog and digital) circuit system that performs functions in a computing system. The processing circuit may include, for example, a circuit such as an integrated circuit (IC), an application specific integrated circuit (ASIC), a portion or circuit of a separate processor core, the entire processor core, a separate processor, such as a field programmable gate array (FPGA) Programmable hardware devices, and / or systems including multiple processors.
在一些实施例中,处理电路4010可以包括第一获取模块4020、第一提取模块4030、匹配模块4040、第一判定模块4050。In some embodiments, the processing circuit 4010 may include a first acquisition module 4020, a first extraction module 4030, a matching module 4040, and a first determination module 4050.
第一获取模块4020被配置为获取具有不同投影角度下的全息防伪码的视频流;第一提取模块4030被配置为提取所述视频流的一个或多个帧的每一帧中所述全息防伪码的投影角度和图像特征;匹配模块4040被配置为将所述每一帧中所述全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,以得到所述每一帧中所述全息防伪码的匹配率,其中,所述映射表中存储有样本全息防伪码的不同投影角度和图像特征之间的映射关系;第一判定模块4050,被配置为根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功。上述模块4020~4050可以分别被配置为执行前述图1中所示的全息防伪码校验方法中的步骤S101~步骤S104。The first obtaining module 4020 is configured to obtain a video stream having a holographic anti-counterfeiting code at different projection angles; the first obtaining module 4030 is configured to extract the holographic anti-counterfeiting in each frame of one or more frames of the video stream Code projection angle and image feature; the matching module 4040 is configured to match the projection angle and image feature of the holographic security code in each frame in a pre-stored mapping table to obtain the The matching rate of the holographic anti-counterfeiting code is described, wherein the mapping table stores a mapping relationship between different projection angles and image features of the sample holographic anti-counterfeiting code; the first determination module 4050 is configured to perform The matching rate of the holographic security code determines whether the holographic security code is successfully verified. The above modules 4020 to 4050 may be respectively configured to perform steps S101 to S104 in the holographic anti-counterfeit code verification method shown in FIG. 1.
在一些实施例中,装置4000还可以包括存储器(未图示)。装置4000的存储器可以存储由处理电路4010产生的信息以及用于装置4000操作的程序和数据。存储器可以是易失性存储器和/或非易失性存储器。例如,存储器可以包括但不限于随机存取存储器(RAM)、动态随机存取存储器(DRAM)、静态随机存取存储器(SRAM)、只读存储器(ROM)以及闪存存储器。另外,装置4000可以以芯片级来实现,或者也可以通过包括其它外部部件而以设备级来实现。In some embodiments, the apparatus 4000 may further include a memory (not shown). The memory of the device 4000 may store information generated by the processing circuit 4010 and programs and data for the operation of the device 4000. The memory may be a volatile memory and / or a non-volatile memory. For example, the memory may include, but is not limited to, random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), read-only memory (ROM), and flash memory. In addition, the apparatus 4000 may be implemented at a chip level, or may be implemented at a device level by including other external components.
应当理解,上述各个模块仅是根据其所实现的具体功能所划分的逻辑模块,而不是用于限制具体的实现方式。在实际实现时,上述各个模块可被实现为独立的物理实体,或者 也可由单个实体(例如,处理器(CPU或DSP等)、集成电路等)来实现。It should be understood that each of the foregoing modules is only a logical module divided according to a specific function that it implements, and is not intended to limit a specific implementation manner. In actual implementation, the foregoing modules may be implemented as independent physical entities, or may be implemented by a single entity (for example, a processor (CPU or DSP, etc.), an integrated circuit, etc.).
在一些实施例中,装置4000还可以包括:第二获取模块4060,被配置为从所述多个样本图像中提取对应于所述不同投影角度的多个样本图像特征;第二提取模块4070,被配置为从所述多个样本图像中提取对应于所述不同投影角度的多个样本图像特征;构建模块4080,被配置为根据所述不同投影角度和所述多个样本图像特征的对应关系,构建所述映射表。上述模块4060~4080例如可以分别被配置为执行前述图2中所示的全息防伪码校验方法中的步骤S201~S203。In some embodiments, the apparatus 4000 may further include: a second acquisition module 4060 configured to extract a plurality of sample image features corresponding to the different projection angles from the plurality of sample images; a second extraction module 4070, Configured to extract a plurality of sample image features corresponding to the different projection angles from the plurality of sample images; a building module 4080 configured to configure a correspondence relationship between the different projection angles and the plurality of sample image features To build the mapping table. The above-mentioned modules 4060 to 4080 may be respectively configured to execute steps S201 to S203 in the holographic anti-counterfeit code verification method shown in FIG. 2.
在一些实施例中,装置4000还可以包括:第三提取模块4090,被配置为计算所述一个或多个帧中所述全息防伪码的平均匹配率;比对模块4100,被配置为将所述多个帧的每一帧中所述防伪标签的图像特征与所述映射表中存储的所述样本全息防伪码的图像特征进行比对,以确定所述多个帧的每一帧中所述全息防伪码在所述防伪标签上的位置;第二判定模块4110,被配置为根据所述多个帧中所述全息防伪码在所述防伪标签上的位置的变化,判定所述视频流的真伪。上述模块4090~4110例如可以分别被配置为执行前述图3中所示的全息防伪码校验方法中的步骤S301~S303。In some embodiments, the device 4000 may further include: a third extraction module 4090 configured to calculate an average matching rate of the holographic anti-counterfeit code in the one or more frames; a comparison module 4100 configured to convert all The image features of the anti-counterfeit label in each of the multiple frames are compared with the image features of the sample holographic anti-counterfeit code stored in the mapping table to determine what is in each of the multiple frames. A position of the holographic security code on the security label; a second determination module 4110 configured to determine the video stream according to a change in the position of the holographic security code on the security label in the plurality of frames; Authenticity. The above-mentioned modules 4090 to 4110 may be respectively configured to perform steps S301 to S303 in the holographic anti-counterfeit code verification method shown in FIG. 3 described above.
根据本公开的全息防伪码校验装置,能够实现低成本、高效率的自动化的全息防伪码校验。According to the holographic anti-counterfeit code verification device of the present disclosure, it is possible to realize a low-cost and high-efficiency automated holographic anti-counterfeit code verification.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the devices and modules described above may refer to the corresponding processes in the foregoing method embodiments, and are not repeated here.
需要说明的是:上述实施例提供的全息防伪码校验装置在执行全息防伪码校验方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的全息防伪码校验装置与全息防伪码校验方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the holographic anti-counterfeit code verification device provided in the foregoing embodiment performs the holographic anti-counterfeit code verification method, only the above-mentioned division of functional modules is used as an example. In practical applications, the above functions may be allocated according to needs Completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the holographic anti-counterfeit code verification device provided by the foregoing embodiment belongs to the same concept as the holographic anti-counterfeit code verification method embodiment, and its specific implementation process is described in the method embodiment in detail, and is not repeated here.
图5示出了可以实现根据本发明的实施例的计算设备500的示例性配置。计算设备500是可以应用本发明的上述方面的硬件设备的实例。计算设备500可以是被配置为执行处理和/或计算的任何机器。计算设备500可以是但不限制于工作站、服务器、台式计算机、膝上型计算机、平板计算机、个人数据助手(PDA)、智能电话、车载计算机或以上组合。FIG. 5 illustrates an exemplary configuration of a computing device 500 that can implement an embodiment of the present invention. The computing device 500 is an example of a hardware device to which the above-mentioned aspects of the present invention can be applied. Computing device 500 may be any machine configured to perform processes and / or calculations. The computing device 500 may be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal data assistant (PDA), a smart phone, an on-board computer, or a combination thereof.
如图5所示,计算设备500可以包括可以经由一个或多个接口与总线502连接或通信的一个或多个元件。总线502可以包括但不限于,工业标准架构(Industry Standard Architecture,ISA)总线、微通道架构(Micro Channel Architecture,MCA)总线、增强ISA(EISA)总线、视频电子标准协会(VESA)局部总线、以及外设组件互连(PCI)总线 等。计算设备500可以包括例如一个或多个处理器504、一个或多个输入设备506、以及一个或多个输出设备508。一个或多个处理器504可以是任何种类的处理器,并且可以包括但不限于一个或多个通用处理器或专用处理器(诸如专用处理芯片)。处理器504例如可以对应于图4中的处理电路4010,被配置为实现本公开的全息防伪码校验装置的各模块的功能。输入设备506可以是能够向计算设备输入信息的任何类型的输入设备,并且可以包括但不限于鼠标、键盘、触摸屏、麦克风和/或远程控制器。输出设备508可以是能够呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端、振动器和/或打印机。As shown in FIG. 5, the computing device 500 may include one or more elements that may be connected or communicated with the bus 502 via one or more interfaces. The bus 502 may include, but is not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, etc. Computing device 500 may include, for example, one or more processors 504, one or more input devices 506, and one or more output devices 508. The one or more processors 504 may be any kind of processor, and may include, but are not limited to, one or more general-purpose processors or special-purpose processors (such as special-purpose processing chips). The processor 504 may, for example, correspond to the processing circuit 4010 in FIG. 4 and is configured to implement the functions of each module of the holographic anti-counterfeit code verification device of the present disclosure. The input device 506 may be any type of input device capable of inputting information to a computing device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a microphone, and / or a remote controller. The output device 508 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer.
计算设备500还可以包括或被连接至非暂态存储设备514,该非暂态存储设备514可以是任何非暂态的并且可以实现数据存储的存储设备,并且可以包括但不限于盘驱动器、光存储设备、固态存储器、软盘、柔性盘、硬盘、磁带或任何其他磁性介质、压缩盘或任何其他光学介质、缓存存储器和/或任何其他存储芯片或模块、和/或计算机可以从其中读取数据、指令和/或代码的其他任何介质。计算设备500还可以包括随机存取存储器(RAM)510和只读存储器(ROM)512。ROM 512可以以非易失性方式存储待执行的程序、实用程序或进程。RAM 510可提供易失性数据存储,并存储与计算设备500的操作相关的指令。计算设备500还可包括耦接至数据链路518的网络/总线接口516。网络/总线接口516可以是能够启用与外部装置和/或网络通信的任何种类的设备或系统,并且可以包括但不限于调制解调器、网络卡、红外线通信设备、无线通信设备和/或芯片集(诸如蓝牙 TM设备、802.11设备、WiFi设备、WiMax设备、蜂窝通信设施等)。 The computing device 500 may also include or be connected to a non-transitory storage device 514, which may be any non-transitory storage device that can implement data storage, and may include, but is not limited to, a disk drive, optical Data can be read from storage devices, solid-state memories, floppy disks, flexible disks, hard disks, magnetic tapes or any other magnetic media, compact disks or any other optical media, cache memory and / or any other memory chips or modules, and / or computers , Instructions, and / or any other medium of code. The computing device 500 may also include a random access memory (RAM) 510 and a read-only memory (ROM) 512. The ROM 512 may store programs, utilities, or processes to be executed in a non-volatile manner. The RAM 510 may provide volatile data storage and store instructions related to the operation of the computing device 500. The computing device 500 may also include a network / bus interface 516 coupled to the data link 518. The network / bus interface 516 may be any kind of device or system capable of enabling communication with external devices and / or networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication device, and / or a chipset (such as Bluetooth devices, 802.11 devices, WiFi devices, WiMax devices, cellular communication facilities, etc.).
另外,本公开的一个或多个实施例可以如下实施。In addition, one or more embodiments of the present disclosure may be implemented as follows.
方案1:一种全息防伪码校验装置,包括:Solution 1: a holographic anti-counterfeiting code verification device, including:
一个或多个处理器;One or more processors;
存储器,其上存储有计算机可执行指令,所述计算机可执行指令在由所述一个或多个处理器执行时使得所述一个或多个处理器:A memory having computer-executable instructions stored thereon, which, when executed by the one or more processors, cause the one or more processors:
获取具有不同投影角度下的全息防伪码的视频流;Obtain video streams with holographic anti-counterfeit codes at different projection angles;
提取所述视频流的一个或多个帧的每一帧中所述全息防伪码的投影角度和图像特征;Extracting a projection angle and an image feature of the holographic security code in each frame of one or more frames of the video stream;
将所述每一帧中所述全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,以得到所述每一帧中所述全息防伪码的匹配率,其中,所述映射表中存储有样本全息防伪码的不同投影角度和图像特征之间的映射关系;Matching the projection angle of the holographic anti-counterfeiting code and the image characteristics in each frame in a pre-stored mapping table to obtain a matching rate of the holographic anti-counterfeiting code in each frame, wherein the mapping table The mapping relationship between different projection angles and image features of the sample holographic anti-counterfeit code is stored in the sample;
根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功。Determining whether the verification of the holographic security code is successful according to the matching rate of the holographic security code in each frame.
方案2:在方案1的全息防伪码校验装置中,所述计算机可执行指令在由所述一个或 多个处理器执行时使得所述一个或多个处理器:Solution 2: In the holographic anti-counterfeit code verification device of Solution 1, the computer-executable instructions, when executed by the one or more processors, cause the one or more processors to:
获取所述样本全息防伪码在不同投影角度下的多个样本图像;Obtaining multiple sample images of the sample holographic anti-counterfeit code at different projection angles;
从所述多个样本图像中提取对应于所述不同投影角度的多个样本图像特征;Extracting a plurality of sample image features corresponding to the different projection angles from the plurality of sample images;
根据所述不同投影角度和所述多个样本图像特征的对应关系,构建所述映射表。Constructing the mapping table according to the correspondence between the different projection angles and the features of the plurality of sample images.
方案3:在方案1的全息防伪码校验装置中,所述根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功包括:Solution 3: In the holographic anti-counterfeit code verification device of item 1, determining whether the holographic anti-counterfeit code is successfully verified according to the matching rate of the holographic anti-counterfeit code in each frame includes:
计算所述一个或多个帧中所述全息防伪码的平均匹配率;Calculating an average matching rate of the holographic security code in the one or more frames;
将所述平均匹配率与预设阈值进行比较,以判定所述全息防伪码是否校验成功。The average matching rate is compared with a preset threshold to determine whether the holographic anti-counterfeit code is successfully verified.
方案4:在方案1的全息防伪码校验装置中,所述视频流是以预设的角度变换值变换拍摄角度对所述全息防伪码进行拍摄得到的。Solution 4: In the holographic anti-counterfeit code verification device of the first solution, the video stream is obtained by shooting the holographic anti-counterfeit code by using a preset angle conversion value to change the shooting angle.
方案5:在方案1至4任一项的全息防伪码校验装置中,所述计算机可执行指令在由所述一个或多个处理器执行时使得所述一个或多个处理器:Solution 5: In the holographic anti-counterfeit code verification device of any one of Solutions 1 to 4, the computer-executable instructions, when executed by the one or more processors, cause the one or more processors:
提取所述视频流的多个帧中防伪标签的图像特征,其中,所述防伪标签包括所述全息防伪码;Extracting image features of a security label in multiple frames of the video stream, wherein the security label includes the holographic security code;
将所述多个帧的每一帧中所述防伪标签的图像特征与所述映射表中存储的所述样本全息防伪码的图像特征进行比对,以确定所述多个帧的每一帧中所述全息防伪码在所述防伪标签上的位置;Comparing the image feature of the security label in each of the multiple frames with the image feature of the sample holographic security code stored in the mapping table to determine each frame of the multiple frames The position of the holographic anti-counterfeit code on the anti-counterfeit label;
根据所述多个帧中所述全息防伪码在所述防伪标签上的位置的变化,判定所述视频流的真伪。Determine the authenticity of the video stream according to a change in the position of the holographic anti-counterfeit code on the anti-counterfeit label in the multiple frames.
方案6:在方案5的全息防伪码校验装置中,根据所述多个帧中所述全息防伪码在所述防伪标签上的位置是否发生突变,判定所述视频流的真伪。Scheme 6: In the holographic anti-counterfeit code checking device of the fifth scheme, the authenticity of the video stream is determined according to whether the positions of the holographic anti-counterfeit codes on the anti-counterfeit labels in the multiple frames are abruptly changed.
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的方法和装置,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。All the above-mentioned optional technical solutions may be used in any combination to form optional embodiments of the present disclosure, which will not be described in detail here. In the several embodiments provided by the present disclosure, it should be understood that the disclosed methods and devices may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. In actual implementation, there may be another division manner. For example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented.
需要说明的是,在本公开的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本公开的描述中,除非另有说明,“多个”的含义是两个或两个以上。It should be noted that, in the description of the present disclosure, the terms “first”, “second”, and the like are used for descriptive purposes only, and cannot be understood to indicate or imply relative importance. In addition, in the description of the present disclosure, unless otherwise stated, "a plurality" means two or more.
可单独地或以任何组合方式来使用前述实施例的各个方面、实施方案、具体实施或特征。可由软件、硬件或硬件与软件的组合来实现前述实施方案的各个方面。Various aspects, implementations, implementations, or features of the foregoing embodiments may be used individually or in any combination. Various aspects of the foregoing embodiments may be implemented by software, hardware, or a combination of hardware and software.
例如,前述实施例可体现为计算机可读介质上的计算机可读代码。计算机可读介质为可存储数据的任何数据存储设备,所述数据其后可由计算机系统读取。计算机可读介质的示例包括只读存储器、随机存取存储器、CD-ROM、DVD、磁带、硬盘驱动器、固态驱动器和光学数据存储设备。计算机可读介质还可分布在网络耦接的计算机系统中使得计算机可读代码以分布式方式来存储和执行。For example, the foregoing embodiments may be embodied as computer-readable codes on a computer-readable medium. A computer-readable medium is any data storage device that can store data, which can thereafter be read by a computer system. Examples of computer-readable media include read-only memory, random-access memory, CD-ROMs, DVDs, magnetic tapes, hard drives, solid-state drives, and optical data storage devices. The computer-readable medium may also be distributed among network-coupled computer systems such that the computer-readable code is stored and executed in a distributed manner.
例如,前述实施例可采用硬件电路的形式。硬件电路可以包括组合式逻辑电路、时钟存储设备(诸如软盘、触发器、锁存器等)、有限状态机、诸如静态随机存取存储器或嵌入式动态随机存取存储器的存储器、定制设计电路、可编程逻辑阵列等的任意组合。For example, the foregoing embodiments may take the form of a hardware circuit. Hardware circuits may include combined logic circuits, clock storage devices (such as floppy disks, flip-flops, latches, etc.), finite state machines, memories such as static random access memory or embedded dynamic random access memory, custom-designed circuits, Any combination of programmable logic arrays.
以上所述仅为本公开的较佳实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above are merely preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modification, equivalent replacement, or improvement made within the spirit and principles of the present disclosure shall be included in the protection of the present disclosure. Within range.

Claims (13)

  1. 一种全息防伪码校验方法,其特征在于,所述方法包括:A method for verifying a holographic anti-counterfeit code, wherein the method includes:
    获取具有不同投影角度下的全息防伪码的视频流;Obtain video streams with holographic anti-counterfeit codes at different projection angles;
    提取所述视频流的一个或多个帧的每一帧中所述全息防伪码的投影角度和图像特征;Extracting a projection angle and an image feature of the holographic security code in each frame of one or more frames of the video stream;
    将所述每一帧中所述全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,以得到所述每一帧中所述全息防伪码的匹配率,其中,所述映射表中存储有样本全息防伪码的不同投影角度和图像特征之间的映射关系;Matching the projection angle of the holographic anti-counterfeiting code and the image characteristics in each frame in a pre-stored mapping table to obtain a matching rate of the holographic anti-counterfeiting code in each frame, wherein the mapping table The mapping relationship between different projection angles and image features of the sample holographic anti-counterfeit code is stored in the sample;
    根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功。Determining whether the verification of the holographic security code is successful according to the matching rate of the holographic security code in each frame.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    获取所述样本全息防伪码在不同投影角度下的多个样本图像;Obtaining multiple sample images of the sample holographic anti-counterfeit code at different projection angles;
    从所述多个样本图像中提取对应于所述不同投影角度的多个样本图像特征;Extracting a plurality of sample image features corresponding to the different projection angles from the plurality of sample images;
    根据所述不同投影角度和所述多个样本图像特征的对应关系,构建所述映射表。Constructing the mapping table according to the correspondence between the different projection angles and the features of the plurality of sample images.
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功包括:The method according to claim 1, wherein determining whether the holographic security code is successfully verified according to a matching rate of the holographic security code in each frame comprises:
    计算所述一个或多个帧中所述全息防伪码的平均匹配率;Calculating an average matching rate of the holographic security code in the one or more frames;
    将所述平均匹配率与预设阈值进行比较,以判定所述全息防伪码是否校验成功。The average matching rate is compared with a preset threshold to determine whether the holographic anti-counterfeit code is successfully verified.
  4. 根据权利要求1所述的方法,其特征在于,所述视频流是以预设的角度变换值变换拍摄角度对所述全息防伪码进行拍摄得到的。The method according to claim 1, wherein the video stream is obtained by shooting the holographic anti-counterfeit code by changing a shooting angle with a preset angle transformation value.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, further comprising:
    提取所述视频流的多个帧中防伪标签的图像特征,其中,所述防伪标签包括所述全息防伪码;Extracting image features of a security label in multiple frames of the video stream, wherein the security label includes the holographic security code;
    将所述多个帧的每一帧中所述防伪标签的图像特征与所述映射表中存储的所述样本全息防伪码的图像特征进行比对,以确定所述多个帧的每一帧中所述全息防伪码在所述防伪标签上的位置;Comparing the image feature of the security label in each of the multiple frames with the image feature of the sample holographic security code stored in the mapping table to determine each frame of the multiple frames The position of the holographic anti-counterfeit code on the anti-counterfeit label;
    根据所述多个帧中所述全息防伪码在所述防伪标签上的位置的变化,判定所述视频流的真伪。Determine the authenticity of the video stream according to a change in the position of the holographic anti-counterfeit code on the anti-counterfeit label in the multiple frames.
  6. 根据权利要求5所述的方法,其特征在于,根据所述多个帧中所述全息防伪码在所述防伪标签上的位置是否发生突变,判定所述视频流的真伪。The method according to claim 5, wherein the authenticity of the video stream is determined according to whether a sudden change occurs in the position of the holographic anti-counterfeit code on the anti-counterfeit label in the multiple frames.
  7. 一种全息防伪码校验装置,其特征在于,所述装置包括:A holographic anti-counterfeit code verification device, characterized in that the device includes:
    第一获取模块,被配置为获取具有不同投影角度下的全息防伪码的视频流;A first acquisition module configured to acquire video streams with holographic anti-counterfeit codes at different projection angles;
    第一提取模块,被配置为提取所述视频流的一个或多个帧的每一帧中所述全息防伪码的投影角度和图像特征;A first extraction module configured to extract a projection angle and an image feature of the holographic security code in each frame of one or more frames of the video stream;
    匹配模块,被配置为将所述每一帧中所述全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,以得到所述每一帧中所述全息防伪码的匹配率,其中,所述映射表中存储有样本全息防伪码的不同投影角度和图像特征之间的映射关系;A matching module configured to match a projection angle and an image feature of the holographic security code in each frame in a pre-stored mapping table to obtain a matching rate of the holographic security code in each frame, The mapping table stores mapping relationships between different projection angles and image features of the sample holographic anti-counterfeiting code;
    第一判定模块,被配置为根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功。A first determination module is configured to determine whether the holographic security code is successfully verified according to a matching rate of the holographic security code in each frame.
  8. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The apparatus according to claim 7, further comprising:
    第二获取模块,被配置为获取所述样本全息防伪码在不同投影角度下的多个样本图像;A second acquisition module configured to acquire a plurality of sample images of the sample holographic anti-counterfeit code at different projection angles;
    第二提取模块,被配置为从所述多个样本图像中提取对应于所述不同投影角度的多个样本图像特征;A second extraction module configured to extract a plurality of sample image features corresponding to the different projection angles from the plurality of sample images;
    构建模块,被配置为根据所述不同投影角度和所述多个样本图像特征的对应关系,构建所述映射表。A construction module is configured to construct the mapping table according to a correspondence relationship between the different projection angles and the features of the plurality of sample images.
  9. 根据权利要求7所述的装置,其特征在于,所述第一判定模块被配置为:The apparatus according to claim 7, wherein the first determination module is configured to:
    计算所述一个或多个帧中所述全息防伪码的平均匹配率;Calculating an average matching rate of the holographic security code in the one or more frames;
    将所述平均匹配率与预设阈值进行比较,以判定所述全息防伪码是否校验成功。The average matching rate is compared with a preset threshold to determine whether the holographic anti-counterfeit code is successfully verified.
  10. 根据权利要求7所述的装置,其特征在于,所述视频流是以预设的角度变换值变换拍摄角度对所述全息防伪码进行拍摄得到的。The device according to claim 7, wherein the video stream is obtained by shooting the holographic anti-counterfeit code by changing a shooting angle with a preset angle transformation value.
  11. 根据权利要求7至10任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 7 to 10, wherein the device further comprises:
    第三提取模块,被配置为计算所述一个或多个帧中所述全息防伪码的平均匹配率;A third extraction module configured to calculate an average matching rate of the holographic security code in the one or more frames;
    比对模块,被配置为将所述多个帧的每一帧中所述防伪标签的图像特征与所述映射表中存储的所述样本全息防伪码的图像特征进行比对,以确定所述多个帧的每一帧中所述全息防伪码在所述防伪标签上的位置;The comparison module is configured to compare the image feature of the anti-counterfeit label in each of the multiple frames with the image feature of the sample holographic anti-counterfeit code stored in the mapping table to determine the The position of the holographic anti-counterfeit code on the anti-counterfeit label in each of a plurality of frames;
    第二判定模块,被配置为根据所述多个帧中所述全息防伪码在所述防伪标签上的位置的变化,判定所述视频流的真伪。A second determination module is configured to determine the authenticity of the video stream according to a change in the position of the holographic security code on the security label in the multiple frames.
  12. 根据权利要求11所述的装置,其特征在于,所述第二判定模块被配置为:根据所述多个帧中所述全息防伪码在所述防伪标签上的位置是否发生突变,判定所述视频流的真伪。The device according to claim 11, wherein the second determining module is configured to determine the position of the holographic anti-counterfeit code on the anti-counterfeit label according to whether a sudden change occurs in the plurality of frames, The authenticity of the video stream.
  13. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器运行时,使所述处理器执行如下处理:A computer-readable storage medium having stored thereon a computer program, characterized in that when the program is run by a processor, the processor causes the processor to perform the following processing:
    获取具有不同投影角度下的全息防伪码的视频流;Obtain video streams with holographic anti-counterfeit codes at different projection angles;
    提取所述视频流的一个或多个帧的每一帧中所述全息防伪码的投影角度和图像特征;Extracting a projection angle and an image feature of the holographic security code in each frame of one or more frames of the video stream;
    将所述每一帧中所述全息防伪码的投影角度和图像特征在预存的映射表中进行匹配,以得到所述每一帧中所述全息防伪码的匹配率,其中,所述映射表中存储有样本全息防伪码的不同投影角度和图像特征之间的映射关系;Matching the projection angle of the holographic anti-counterfeiting code and the image characteristics in each frame in a pre-stored mapping table to obtain a matching rate of the holographic anti-counterfeiting code in each frame, wherein the mapping table The mapping relationship between different projection angles and image features of the sample holographic anti-counterfeit code is stored in the sample;
    根据所述每一帧中所述全息防伪码的匹配率,判定所述全息防伪码是否校验成功。Determining whether the verification of the holographic security code is successful according to the matching rate of the holographic security code in each frame.
PCT/CN2019/094394 2018-08-31 2019-07-02 Method and apparatus for verifying holographic anti-counterfeiting code WO2020042754A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019549445A JP6868119B2 (en) 2018-08-31 2019-07-02 Holographic anti-counterfeit code inspection method and equipment
SG11202008829SA SG11202008829SA (en) 2018-08-31 2019-07-02 Holographic anti-counterfeiting code verification method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811009938.4A CN109389153B (en) 2018-08-31 2018-08-31 Holographic anti-counterfeiting code checking method and device
CN201811009938.4 2018-08-31

Publications (1)

Publication Number Publication Date
WO2020042754A1 true WO2020042754A1 (en) 2020-03-05

Family

ID=65418549

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/094394 WO2020042754A1 (en) 2018-08-31 2019-07-02 Method and apparatus for verifying holographic anti-counterfeiting code

Country Status (4)

Country Link
JP (1) JP6868119B2 (en)
CN (1) CN109389153B (en)
SG (1) SG11202008829SA (en)
WO (1) WO2020042754A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112001419A (en) * 2020-07-22 2020-11-27 李峰 Anti-counterfeiting identification method and device
CN116092061A (en) * 2023-04-12 2023-05-09 深圳企业云科技股份有限公司 Label verification method and device

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389153B (en) * 2018-08-31 2021-03-02 众安信息技术服务有限公司 Holographic anti-counterfeiting code checking method and device
TWI717716B (en) * 2019-04-01 2021-02-01 陳膺任 Anti-counterfeiting element verification method and system
CN110210312A (en) * 2019-04-29 2019-09-06 众安信息技术服务有限公司 A kind of method and system verifying certificate and holder
CN110427972B (en) * 2019-07-09 2022-02-22 众安信息技术服务有限公司 Certificate video feature extraction method and device, computer equipment and storage medium
CN110428027B (en) * 2019-07-22 2023-06-23 杭州沃朴物联科技有限公司 Identification and counterfeit detection method, device, equipment and medium based on LCD (liquid crystal display) anti-counterfeit label
CN110443623A (en) * 2019-07-22 2019-11-12 杭州沃朴物联科技有限公司 Fake method, device, equipment and medium are tested in identification for antifalsification label
CN110458583B (en) * 2019-07-30 2022-03-11 龙军 Anti-counterfeiting fidelity method
CN110766753B (en) * 2019-10-15 2023-08-18 大族激光科技产业集团股份有限公司 Positioning method and device for label anti-counterfeiting area and marking equipment
CN111027986A (en) * 2019-12-02 2020-04-17 深圳市智微智能软件开发有限公司 Anti-counterfeiting code verification method and system
CN110929828A (en) * 2019-12-06 2020-03-27 北京金衡融创网络科技有限公司 Anti-counterfeit label, identification method thereof and printed matter

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982606A (en) * 2011-09-07 2013-03-20 深圳兆日科技股份有限公司 Anti-fake method using physical feature recognition and anti-fake system using physical feature recognition
CN103279731A (en) * 2013-06-06 2013-09-04 格科微电子(上海)有限公司 Two-dimension code anti-fake method and anti-fake verification method thereof
CN108230536A (en) * 2017-12-28 2018-06-29 王道顺 One kind is to light variable security index identification method and device
CN109389153A (en) * 2018-08-31 2019-02-26 众安信息技术服务有限公司 A kind of holographic false proof code check method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860645A (en) * 2009-04-10 2010-10-13 威海华菱光电有限公司 Contact-type image sensor for identifying hologram image
CN101533513B (en) * 2009-04-24 2012-12-26 天津大学 Picture falsification testing method based on double-vision geometry
CN102054392A (en) * 2009-11-09 2011-05-11 郑阿奇 Video anticounterfeiting method
JP2012032909A (en) * 2010-07-29 2012-02-16 Seiko Epson Corp Object identification device, model data registration device, object identification method, object identification program, and robot
JP5431429B2 (en) * 2011-09-06 2014-03-05 東芝テック株式会社 Information processing apparatus and program
JP6507591B2 (en) * 2014-11-27 2019-05-08 凸版印刷株式会社 Anti-counterfeit medium
CN107111906B (en) * 2015-01-26 2020-01-21 凸版印刷株式会社 Identification device, identification method, and computer-readable medium containing identification program
US10592708B2 (en) * 2015-04-11 2020-03-17 Artience Lab Inc. Image recognition system, image recognition method, hologram recording medium, hologram playback device, and image capture device
CN105046807B (en) * 2015-07-09 2017-12-26 中山大学 A kind of counterfeit money recognition methods and system based on smart mobile phone
CN106599923B (en) * 2016-12-16 2020-01-24 广州广电运通金融电子股份有限公司 Method and device for detecting seal anti-counterfeiting features
CN108091246A (en) * 2017-12-28 2018-05-29 苏州印象镭射科技有限公司 The detection method of augmented reality label, the preparation method of augmented reality label and augmented reality label

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982606A (en) * 2011-09-07 2013-03-20 深圳兆日科技股份有限公司 Anti-fake method using physical feature recognition and anti-fake system using physical feature recognition
CN103279731A (en) * 2013-06-06 2013-09-04 格科微电子(上海)有限公司 Two-dimension code anti-fake method and anti-fake verification method thereof
CN108230536A (en) * 2017-12-28 2018-06-29 王道顺 One kind is to light variable security index identification method and device
CN109389153A (en) * 2018-08-31 2019-02-26 众安信息技术服务有限公司 A kind of holographic false proof code check method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112001419A (en) * 2020-07-22 2020-11-27 李峰 Anti-counterfeiting identification method and device
CN116092061A (en) * 2023-04-12 2023-05-09 深圳企业云科技股份有限公司 Label verification method and device
CN116092061B (en) * 2023-04-12 2023-09-22 深圳企业云科技股份有限公司 Label verification method and device

Also Published As

Publication number Publication date
CN109389153B (en) 2021-03-02
CN109389153A (en) 2019-02-26
JP2020533654A (en) 2020-11-19
SG11202008829SA (en) 2020-10-29
JP6868119B2 (en) 2021-05-12

Similar Documents

Publication Publication Date Title
WO2020042754A1 (en) Method and apparatus for verifying holographic anti-counterfeiting code
CN111753727B (en) Method, apparatus, device and readable storage medium for extracting structured information
CN106650662B (en) Target object shielding detection method and device
JP6030240B2 (en) Method and apparatus for face recognition
TWI654567B (en) Method and apparatus for extracting specific information from standard cards
TWI484444B (en) Non-transitory computer readable medium, electronic device, and computer system for face feature vector construction
US11151780B2 (en) Lighting estimation using an input image and depth map
TW201447775A (en) Method and system for recognizing information
CN106327546B (en) Method and device for testing face detection algorithm
WO2020220453A1 (en) Method and device for verifying certificate and certificate holder
TWI712980B (en) Claim information extraction method and device, and electronic equipment
US20200218772A1 (en) Method and apparatus for dynamically identifying a user of an account for posting images
WO2021047482A1 (en) Method and system for performing steganographic technique
EP2901259A1 (en) Handwritten signature detection, validation, and confirmation
WO2020244151A1 (en) Image processing method and apparatus, terminal, and storage medium
WO2022095359A1 (en) Anti-screen-capturing-based information security protection method and apparatus, electronic device and medium
WO2021189856A1 (en) Certificate check method and apparatus, and electronic device and medium
JP2024508403A (en) Data encryption methods, devices, computer equipment and computer programs
WO2015074405A1 (en) Methods and devices for obtaining card information
JP6987987B2 (en) Media feature comparison method and equipment
CN111552829A (en) Method and apparatus for analyzing image material
WO2020244076A1 (en) Face recognition method and apparatus, and electronic device and storage medium
CN108776959B (en) Image processing method and device and terminal equipment
US20230005171A1 (en) Visual positioning method, related apparatus and computer program product
WO2023109086A1 (en) Character recognition method, apparatus and device, and storage medium

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2019549445

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 19854135

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/06/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19854135

Country of ref document: EP

Kind code of ref document: A1