WO2023241242A1 - 一种数据识别方法及移动终端 - Google Patents

一种数据识别方法及移动终端 Download PDF

Info

Publication number
WO2023241242A1
WO2023241242A1 PCT/CN2023/091360 CN2023091360W WO2023241242A1 WO 2023241242 A1 WO2023241242 A1 WO 2023241242A1 CN 2023091360 W CN2023091360 W CN 2023091360W WO 2023241242 A1 WO2023241242 A1 WO 2023241242A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
verification
scan
scanned
check code
Prior art date
Application number
PCT/CN2023/091360
Other languages
English (en)
French (fr)
Inventor
房浩
卞雪达
Original Assignee
京东方科技集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Publication of WO2023241242A1 publication Critical patent/WO2023241242A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/12Detection or correction of errors, e.g. by rescanning the pattern
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition

Definitions

  • the present disclosure relates to the field of image recognition technology, and in particular to a data recognition method and a mobile terminal.
  • the scanning display device will be subject to The influence of various environmental factors, including the user's hand shaking causing the scanned image to be unclear; the moiré pattern caused by the difference between the resolution of the camera and the display device, making the scanned image more noisy; the display terminal having light pollution such as reflections and reflections; display The device itself lights up erratically.
  • OCR Optical Character Recognition
  • the present disclosure provides a data identification method and a mobile terminal, which are used to verify the scanned data through a check code when scanning data to be identified displayed on a display device, thereby improving the accuracy of the identification results.
  • an embodiment of the present disclosure provides a data identification method, including:
  • Each scan performs the following steps: use the scan data obtained from this scan to generate this time's Check code, use this check code to check the first data in this scan data;
  • the scanning is stopped, and the recognition result of the data to be recognized is determined to be the first data in this scan data.
  • it also includes:
  • the scan data obtained from each scan is used to generate a check code in the following way:
  • the preset verification algorithm is determined based on the verification algorithm that generates the first verification code in the scanned data.
  • generating a verification code using the first data in the scanned data based on a preset verification algorithm includes:
  • a check code is generated using characters at preset positions in the conversion data.
  • generating a verification code using the first data in the scanned data based on a preset verification algorithm includes:
  • a check code is generated using characters at preset positions in the check data.
  • the first data in each scanned data is verified using the check code each time in the following manner:
  • the check code is compared with the first check code in the scanned data, and the first data in the scanned data is checked according to the comparison result.
  • the verification is determined to pass in the following way:
  • the scan data obtained for each scan is determined in the following way:
  • scanning the displayed data to be identified at least once includes:
  • the mobile terminal scans the data to be identified displayed on the display device at least once; the data to be identified is generated by the display device based on factory information, and the data to be identified is used to characterize the anti-counterfeiting information of the display device.
  • an embodiment of the present disclosure provides a mobile terminal, including a processor and a memory.
  • the memory is used to store programs executable by the processor.
  • the processor is used to read the programs in the memory and Perform the following steps:
  • Each scan performs the following steps: using the scan data obtained from this scan to generate a check code for this time, and using the check code for this time to verify the first data in the scan data for this time;
  • the scanning is stopped, and the recognition result of the data to be recognized is determined to be the first data in this scan data.
  • the processor is specifically configured to execute:
  • the processor is specifically configured to generate a check code using the scan data obtained from each scan in the following manner:
  • the preset verification algorithm is determined based on the verification algorithm that generates the first verification code in the scanned data.
  • the processor is specifically configured to execute:
  • a check code is generated using characters at preset positions in the conversion data.
  • the processor is specifically configured to execute:
  • a check code is generated using characters at preset positions in the check data.
  • the processor is specifically configured to verify the first data in each scanned data by using the check code each time in the following manner:
  • the check code is compared with the first check code in the scanned data, and the first data in the scanned data is checked according to the comparison result.
  • the processor is specifically configured to determine that the verification is passed in the following manner:
  • the processor is specifically configured to determine the scan data obtained by each scan in the following manner:
  • the processor is specifically configured to execute:
  • the mobile terminal scans the data to be identified displayed on the display device at least once; the data to be identified is generated by the display device based on factory information, and the data to be identified is used to characterize the anti-counterfeiting information of the display device.
  • embodiments of the present disclosure also provide a data identification device, including:
  • a scanning unit used to scan the displayed data to be recognized at least once
  • the verification unit is used to perform the following steps for each scan: use the scan data obtained by this scan to generate this time's check code, and use this time's check code to calibrate the first data in this time's scan data. test;
  • the determining unit is configured to stop scanning when the verification is passed, and determine that the recognition result of the data to be recognized is the first data in the scanned data this time.
  • the determining unit is also used to:
  • the verification unit is specifically configured to generate a verification code using the scan data obtained from each scan in the following manner:
  • the preset verification algorithm is determined based on the verification algorithm that generates the first verification code in the scanned data.
  • the verification unit is specifically used for:
  • a check code is generated using characters at preset positions in the conversion data.
  • the verification unit is specifically used for:
  • a check code is generated using characters at preset positions in the check data.
  • the verification unit is specifically configured to verify the first data in each scanned data by using the verification code each time in the following manner:
  • the check code is compared with the first check code in the scanned data, and the first data in the scanned data is checked according to the comparison result.
  • the verification unit is specifically configured to determine whether the verification is passed in the following manner:
  • the verification unit is specifically configured to determine the scan data obtained by each scan in the following manner:
  • the scanning unit is specifically used for:
  • the mobile terminal scans the data to be identified displayed on the display device at least once; the data to be identified is generated by the display device based on factory information, and the data to be identified is used to characterize the anti-counterfeiting information of the display device.
  • embodiments of the present disclosure also provide a computer storage medium on which a computer program is stored, and when the program is executed by a processor, it is used to implement the steps of the method described in the first aspect.
  • Figure 1 is an implementation flow chart of a data identification method provided by an embodiment of the present disclosure
  • Figure 2 is a schematic diagram of a display device displaying an anti-counterfeiting mark provided by an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of a mobile terminal scanning interface provided by an embodiment of the present disclosure.
  • Figure 4 is an implementation flow chart of an OCR recognition method provided by an embodiment of the present disclosure
  • Figure 5 is a schematic diagram of a mobile terminal provided by an embodiment of the present disclosure.
  • Figure 6 is a schematic diagram of a data identification device provided by an embodiment of the present disclosure.
  • the term "and/or” describes the association relationship of associated objects, indicating that there may be Three relationships, for example, A and/or B, can represent: A exists alone, A and B exist simultaneously, and B exists alone.
  • the character "/" generally indicates that the related objects are in an "or” relationship.
  • OCR Optical Character Recognition
  • Embodiment 1 In a scenario where a smart mobile terminal is used to scan another display terminal and OCR (Optical Character Recognition) is used to identify the characters displayed on the display terminal, unlike scanning documents, walls, plants, etc., scanning Display devices will be affected by various environmental factors. It should be noted that OCR allows computers to automatically analyze printed or handwritten documents and prepare text data into editable formats for effective computer processing. If a computer can recognize various texts, patterns or styles like the human eye, it usually requires several steps such as image acquisition, preprocessing, segmentation, feature extraction, model training, and post-processing. When the image quality is high, the OCR recognition accuracy can generally reach more than 95%.
  • OCR Optical Character Recognition
  • the OCR recognition rate will decrease.
  • various environmental factors include the user's hand shaking causing the scanned image to be unclear; the moiré pattern caused by the difference between the resolution of the camera and the display device, making the scanned image more noisy; the display terminal having light pollution such as reflections and reflections; display The device itself lights up erratically. Due to the above-mentioned various environmental factors, when using OCR to identify displayed characters, the recognition rate is low and the user experience is poor.
  • the scenario of using a smart mobile terminal to scan another display terminal can be applied to the anti-counterfeiting inspection of the display screen.
  • the display screens that use some splicing screen brands in the market there is currently no device query tool to verify the authenticity and check the device factory information. , Therefore, it can be applied to display terminals that can generate and display verification codes, and smart mobile terminals can be used to perform anti-counterfeiting verification on display terminals that display verification codes to protect the legitimate rights and interests of the brand.
  • this embodiment provides a data recognition method, which improves the accuracy of the recognition result by verifying it with a check code and improves user experience. experience.
  • the core idea of a data identification method provided by this embodiment is to introduce a check code, generate a check code for the scanned data, and use the check code to check the first data in the scanned data, thereby The accuracy of the first data in the output scanned data is guaranteed.
  • this embodiment does not require manual intervention by the user during the scanning and verification process, the process of verifying and outputting the scanned data can be automatically realized. The entire process The process is invisible to users and can effectively improve the user experience.
  • a data identification method provided by this embodiment can be applied to mobile terminals.
  • the specific implementation process is as follows:
  • Step 100 Scan the displayed data to be identified at least once
  • the data to be recognized in this embodiment includes but is not limited to one or more combinations of characters, text, images, and QR codes, where the characters include one or two combinations of numbers and letters. , this embodiment does not limit this too much.
  • the data to be identified in this embodiment includes two parts, the first data and the first check code, where the mobile terminal and the display device agree in advance on the location or relative position of the first data and the first check code. Positional relationship, so that the scanned first data and the first check code can be distinguished from the scanned data.
  • the number of digits of the first check code is smaller than the number of digits of the first data.
  • this embodiment can perform multiple scans on the data to be identified. The number of scans is determined based on whether the verification of the first data passes. If during the first scan, the calculated check code pair If the first data passes the verification, the scan will stop. Otherwise, the scan will continue until the verification passes or the scanning time exceeds the set time.
  • this embodiment performs at least one scan on the displayed data to be identified in the following manner:
  • the data to be identified is generated by the display device based on factory information, and the data to be identified is used to characterize the anti-counterfeiting information of the display device.
  • the mobile terminal in this embodiment is a terminal equipped with a camera unit and has a scanning function.
  • the mobile terminal in this embodiment refers to a mobile device installed with an Android or IOS smart operating system, such as a mobile phone, equipped with a camera, and has the ability to use the camera to scan documents, pictures, content displayed on the display screen, etc.
  • the display device in this embodiment refers to a device equipped with a display screen and capable of displaying.
  • this embodiment can be applied to the scenario of identifying and judging the anti-counterfeiting logo displayed by the display device.
  • the display device will use the factory information (including manufacturer information, device identification and other information) to generate the anti-counterfeiting code (i.e. Data to be identified), where the anti-counterfeiting code can be a combination of numbers and letters, and the last two digits of the anti-counterfeiting code are used as check digits, and the characters on the last two digits are used as the first check digit, as shown in Figure 2.
  • the embodiment provides a schematic diagram of a display device displaying an anti-counterfeiting mark.
  • a check code will be generated based on the first data other than the first check code. If the check code and the first check code are If the check codes are consistent, it means that the display device is genuine. If they are inconsistent, you can continue scanning. When it is determined again that the generated check code is consistent with the first check code within the preset time, it means that the display device is genuine. If it exceeds the preset time, it means that the display device is genuine. If the time has not passed the verification, it means that the display device is counterfeit. In practical applications, the APP program can be installed on the mobile terminal.
  • this embodiment also provides a mobile terminal scanning interface, which scans the display device through the APP and uses a preset verification algorithm to generate a verification code for the first The data is verified and the verification results are returned to the APP for subsequent processing.
  • the preset verification algorithm used by the mobile terminal is consistent with the algorithm used by the display device when generating the first verification code.
  • Step 101 Each scan performs the following steps: using the scan data obtained from this scan to generate a check code for this time, and using the check code for this time to check the first data in the scan data for this time;
  • the scan data obtained for each scan is determined as follows:
  • OCR recognition is performed on the scanned image to obtain the scanned data, thereby using the first data in the scanned data to generate a check code, and judging the check code and the first check code in the scanned data. Whether they are consistent, and if they are consistent, it is determined that the verification is passed, and the first data is used as the recognition result of the data to be recognized.
  • a check code is generated for each scan based on the scan data of this scan, and the first data in the scan data is verified.
  • the first data and the first check code in the data to be identified may be different from the first data and the first check code in the scanned data obtained after scanning. , but since the first check code has fewer digits, the degree of impact is much smaller than that of the first data. Therefore, the scanned first data can be used to calculate the check code and the scanned first check code can be compared. , thereby verifying the first data.
  • the scan data obtained from each scan is used to generate a check code in the following manner:
  • the preset verification algorithm is determined based on the verification algorithm that generates the first verification code in the scanned data.
  • this embodiment provides at least two ways of generating a check code:
  • Method 1 After converting each character in the first data to ASCII code, perform a preset base conversion to obtain conversion data; use the characters in the preset bits in the conversion data to generate a check code .
  • the preset base in this embodiment includes but is not limited to a higher base than decimal.
  • the first data in this embodiment includes one or more characters; after converting each character to ASCII code, all the characters in the first data can be converted into numbers to obtain a character that is all The first data of the number, and then treat the first data as a decimal number and perform high decimal conversion.
  • the high-base system in this embodiment includes 10 numbers from 0 to 9, 26 uppercase English letters from AZ, a total of 36 characters, and the I and O that easily cause confusion are removed to form a 34-base system. decimal After the number is converted into a 34-digit number, the last two digits can be used as the check code.
  • Method 2 Based on the information digest algorithm or the secure hash algorithm, the verification data is generated according to the first data; the characters in the preset bits in the verification data are used to generate the verification code.
  • any signature algorithm among MD5, SHA128, and SHA256 to generate verification data based on the first data, and use the last two characters in the verification data as the verification code.
  • this embodiment uses the check code each time to verify the first data in each scanned data in the following manner:
  • the check code is compared with the first check code in the scanned data, and the first data in the scanned data is checked according to the comparison result.
  • the check code generated by this scan will be compared with the first check code in the scanned data to determine whether they are consistent. If they are consistent, it will be determined that the verification has passed. If they are inconsistent, it will be determined that the verification has failed. pass.
  • the check code when the check code is consistent with the first check code in the scan data, it is determined that the check of the first data in the scan data passes; when the check code and When the first check codes in the scanned data are inconsistent, it is determined that the check of the first data in the scanned data has failed.
  • Step 102 Stop scanning when the verification passes, and determine that the recognition result of the data to be recognized is the first data in this scan data.
  • each scan will compare whether the generated check code is consistent with the first check code in the scanned data. When they are consistent, it is determined that the check is passed and the scan is stopped, thereby determining that the recognition result is the first data. Otherwise, it will Continue scanning, and continuously verify the first scanned data through multiple scans to remove the influence of environmental factors to the greatest extent and improve the accuracy of identification.
  • scanning continues until the first data in the next scanned data is verified using the next verification code and it is determined that the verification passes, the scanning is stopped; determining that the The recognition result of the data to be recognized is the first data in the next scan data.
  • scanning continues when the verification fails. If the verification still fails when the scanning duration exceeds the threshold, scanning is stopped and information indicating that the verification fails is output.
  • the mobile terminal automatically performs OCR recognition to obtain the scan result during the scanning process, generates a check code based on the first data in the scan result, and compares the check code with the first check code in the scan result to see whether it is consistent. , if inconsistent, the next scan will be performed until the scan passes or the scan duration reaches the threshold and stops.
  • OCR recognition By initiating OCR recognition multiple times, the accuracy of OCR recognition is improved, and the mobile terminal is in a scanning state during the entire process. The user cannot perceive it, but in fact multiple recognitions have been performed, thus improving the user experience. .
  • this embodiment provides an OCR recognition method.
  • the implementation process of this method is as follows:
  • Step 400 Scan the data to be identified displayed on the display device through the mobile terminal;
  • the data to be identified in this embodiment includes first data and a first check code
  • the mobile terminal in this embodiment is a terminal equipped with a camera unit and has a scanning function.
  • Step 401 Perform OCR recognition on the scanned image obtained by this scan to determine this scan data
  • the scanned data includes first data and a first check code.
  • the scanned data and the data to be identified in this embodiment may be inconsistent or consistent. That is, the first data in the scanned data and the first data in the data to be identified may be consistent or inconsistent.
  • Step 402 Use the first data in this scan data to generate this check code
  • Step 403 Determine whether this check code is consistent with the first check code in this scan data. If yes, execute step 404; otherwise, execute step 405;
  • Step 404 Stop scanning and determine that the recognition result of the data to be recognized is the first data in this scan data
  • Step 405 Determine whether the scan duration reaches the threshold. If so, execute step 406; otherwise, return to step 400;
  • Step 406 Determine that the verification fails.
  • the display device in this embodiment calculates the first check code using the first data in the data to be recognized and the preset check algorithm, and displays the first data and the first check code simultaneously.
  • Mobile terminal scanning display The data to be recognized is subjected to OCR recognition to obtain the scanned data, and the first data in the scanned data is used to generate a check code, where the scanned data includes the first data and the first check code, and the first check code and the check code are compared code, if they are inconsistent, you can scan again and initiate OCR recognition.
  • the accuracy of OCR recognition and the user's scanning recognition experience can be improved.
  • Embodiment 2 Based on the same inventive concept, the embodiment of the present disclosure also provides a mobile terminal. Since the terminal is the terminal in the method in the embodiment of the present disclosure, and the principle of solving the problem of the terminal is similar to that of the method, Therefore, the implementation of the terminal can be referred to the implementation of the method, and repeated details will not be repeated.
  • the mobile terminal includes a processor 500 and a memory 501.
  • the memory 501 is used to store programs executable by the processor 500.
  • the processor 500 is used to read the programs in the memory 501. And perform the following steps:
  • Each scan performs the following steps: using the scan data obtained from this scan to generate a check code for this time, and using the check code for this time to verify the first data in the scan data for this time;
  • the scanning is stopped, and the recognition result of the data to be recognized is determined to be the first data in this scan data.
  • the processor 500 is specifically configured to execute:
  • the processor 500 is specifically configured to generate a check code using the scan data obtained from each scan in the following manner:
  • the preset verification algorithm is determined based on the verification algorithm that generates the first verification code in the scanned data.
  • the processor 500 is specifically configured to execute:
  • a check code is generated using characters at preset positions in the conversion data.
  • the processor 500 is specifically configured to execute:
  • a check code is generated using characters at preset positions in the check data.
  • the processor 500 is specifically configured to verify the first data in each scanned data by using the check code each time in the following manner:
  • the check code is compared with the first check code in the scanned data, and the first data in the scanned data is checked according to the comparison result.
  • the processor 500 is specifically configured to determine that the verification is passed in the following manner:
  • the processor 500 is specifically configured to determine the scan data obtained for each scan in the following manner:
  • the processor 500 is specifically configured to execute:
  • the mobile terminal scans the data to be identified displayed on the display device at least once; the data to be identified is generated by the display device based on factory information, and the data to be identified is used to characterize the anti-counterfeiting information of the display device.
  • Embodiment 3 Based on the same inventive concept, the embodiment of the present disclosure also provides a device for data identification, because this device is the device in the method in the embodiment of the present disclosure, and the principle of solving the problem of the device is the same as that of the method. are similar, so the implementation of the device can be referred to the implementation of the method, and repeated details will not be repeated.
  • the device includes:
  • the scanning unit 600 is used to scan the displayed data to be recognized at least once;
  • the verification unit 601 is used to perform the following steps for each scan: use the scan data obtained by this scan to generate this time's check code, and use this time's check code to perform the first data in this time's scan data. check;
  • the determining unit 602 is configured to stop scanning when the verification is passed, and determine that the recognition result of the data to be recognized is the first data in this scan data.
  • the determining unit 602 is also used to:
  • the verification unit 601 is specifically configured to generate a verification code using the scan data obtained from each scan in the following manner:
  • the preset verification algorithm is determined based on the verification algorithm that generates the first verification code in the scanned data.
  • the verification unit 601 is specifically used to:
  • a check code is generated using characters at preset positions in the conversion data.
  • the verification unit 601 is specifically used to:
  • a check code is generated using characters at preset positions in the check data.
  • the verification unit 601 is specifically configured to verify the first data in each scanned data by using each check code in the following manner:
  • the check code is compared with the first check code in the scanned data, and the first data in the scanned data is checked according to the comparison result.
  • the verification unit 601 is specifically configured to determine in the following manner Passed verification:
  • the verification unit 601 is specifically configured to determine the scan data obtained by each scan in the following manner:
  • the scanning unit 600 is specifically used to:
  • the mobile terminal scans the data to be identified displayed on the display device at least once; the data to be identified is generated by the display device based on factory information, and the data to be identified is used to characterize the anti-counterfeiting information of the display device.
  • embodiments of the present disclosure also provide a computer storage medium on which a computer program is stored.
  • the program is executed by a processor, the following steps are implemented:
  • Each scan performs the following steps: using the scan data obtained from this scan to generate a check code for this time, and using the check code for this time to verify the first data in the scan data for this time;
  • the scanning is stopped, and the recognition result of the data to be recognized is determined to be the first data in this scan data.
  • embodiments of the present disclosure may be provided as methods, systems, or computer program products. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) embodying computer-usable program code therein.
  • a computer-usable storage media including, but not limited to, magnetic disk storage, optical storage, and the like
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instructed device, the instructions
  • the equipment implements the functions specified in a process or processes in the flow diagram and/or in a block or blocks in the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)
  • Character Discrimination (AREA)

Abstract

本公开提供了一种数据识别方法及移动终端,用于在扫描显示设备显示的待识别数据时,通过校验码对扫描数据进行校验,从而提高识别结果的准确率。该方法包括:对显示的待识别数据进行至少一次扫描;其中每次扫描执行如下步骤:利用本次扫描得到的扫描数据生成本次的校验码,利用本次的校验码对本次的扫描数据中的第一数据进行校验;当校验通过时停止扫描,确定所述待识别数据的识别结果为本次的扫描数据中的第一数据。

Description

一种数据识别方法及移动终端
相关申请的交叉引用
本申请要求在2022年06月15日提交中国专利局、申请号为202210679114.8、申请名称为“一种数据识别方法及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及图像识别技术领域,特别涉及一种数据识别方法及移动终端。
背景技术
在使用智能移动终端扫描另一显示终端,并利用OCR(光学字符识别,Optical Character Recognition)识别显示终端上显示的字符的场景下,与扫描文件、墙壁、植物等情况不同,扫描显示设备会受到各类环境因素影响,包括操作用户手抖导致扫描的图片不清晰;摄像头分辨率与显示设备分辨率差异产生的摩尔纹,使扫描的图片噪点较多;显示终端存在反光、倒影等光污染;显示设备本身发光不稳定。
由于上述各类环境因素影响,导致利用OCR识别显示的字符时,识别率较低,用户体验较差。
发明内容
本公开提供一种数据识别方法及移动终端,用于在扫描显示设备显示的待识别数据时,通过校验码对扫描数据进行校验,从而提高识别结果的准确率。
第一方面,本公开实施例提供的一种数据识别方法,包括:
对显示的待识别数据进行至少一次扫描;
其中每次扫描执行如下步骤:利用本次扫描得到的扫描数据生成本次的 校验码,利用本次的校验码对本次的扫描数据中的第一数据进行校验;
当校验通过时停止扫描,确定所述待识别数据的识别结果为本次的扫描数据中的第一数据。
作为一种可选的实施方式,还包括:
当校验未通过时继续扫描,直至利用下一次的校验码对下一次的扫描数据中的第一数据进行校验并确定校验通过时,停止扫描;
确定所述待识别数据的识别结果为下一次的扫描数据中的第一数据。
作为一种可选的实施方式,通过如下方式利用每次扫描得到的扫描数据生成校验码:
基于预设校验算法,利用扫描数据中的第一数据生成校验码;
其中所述预设校验算法是根据生成所述扫描数据中的第一校验码的校验算法确定的。
作为一种可选的实施方式,所述基于预设校验算法,利用扫描数据中的第一数据生成校验码,包括:
对所述第一数据中的每个字符进行ASCII码转换后,进行预设进制的转换,得到转换数据;
利用所述转换数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,所述基于预设校验算法,利用扫描数据中的第一数据生成校验码,包括:
基于信息摘要算法或安全哈希算法,根据第一数据生成校验数据;
利用所述校验数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,通过如下方式利用每次的校验码对每次扫描数据中的第一数据进行校验:
比对所述校验码和所述扫描数据中的第一校验码,根据比对结果对所述扫描数据中的第一数据进行校验。
作为一种可选的实施方式,通过如下方式确定校验通过:
当所述校验码和所述扫描数据中的第一校验码一致时,确定对所述扫描 数据中的第一数据的校验通过。
作为一种可选的实施方式,通过如下方式确定每次扫描得到的扫描数据:
对每次扫描得到的扫描图像进行OCR识别,确定扫描数据。
作为一种可选的实施方式,所述对显示的待识别数据进行至少一次扫描,包括:
通过移动终端对显示设备显示的待识别数据进行至少一次扫描;其中所述待识别数据是所述显示设备根据出厂信息生成的,所述待识别数据用于表征所述显示设备的防伪信息。
第二方面,本公开实施例提供的一种移动终端,包括处理器和存储器,所述存储器用于存储所述处理器可执行的程序,所述处理器用于读取所述存储器中的程序并执行如下步骤:
对显示的待识别数据进行至少一次扫描;
其中每次扫描执行如下步骤:利用本次扫描得到的扫描数据生成本次的校验码,利用本次的校验码对本次的扫描数据中的第一数据进行校验;
当校验通过时停止扫描,确定所述待识别数据的识别结果为本次的扫描数据中的第一数据。
作为一种可选的实施方式,所述处理器具体还被配置为执行:
当校验未通过时继续扫描,直至利用下一次的校验码对下一次的扫描数据中的第一数据进行校验并确定校验通过时,停止扫描;
确定所述待识别数据的识别结果为下一次的扫描数据中的第一数据。
作为一种可选的实施方式,所述处理器具体被配置为通过如下方式利用每次扫描得到的扫描数据生成校验码:
基于预设校验算法,利用扫描数据中的第一数据生成校验码;
其中所述预设校验算法是根据生成所述扫描数据中的第一校验码的校验算法确定的。
作为一种可选的实施方式,所述处理器具体被配置为执行:
对所述第一数据中的每个字符进行ASCII码转换后,进行预设进制的转 换,得到转换数据;
利用所述转换数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,所述处理器具体被配置为执行:
基于信息摘要算法或安全哈希算法,根据第一数据生成校验数据;
利用所述校验数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,所述处理器具体被配置为通过如下方式利用每次的校验码对每次扫描数据中的第一数据进行校验:
比对所述校验码和所述扫描数据中的第一校验码,根据比对结果对所述扫描数据中的第一数据进行校验。
作为一种可选的实施方式,所述处理器具体被配置为通过如下方式确定校验通过:
当所述校验码和所述扫描数据中的第一校验码一致时,确定对所述扫描数据中的第一数据的校验通过。
作为一种可选的实施方式,所述处理器具体被配置为通过如下方式确定每次扫描得到的扫描数据:
对每次扫描得到的扫描图像进行OCR识别,确定扫描数据。
作为一种可选的实施方式,所述处理器具体被配置为执行:
通过移动终端对显示设备显示的待识别数据进行至少一次扫描;其中所述待识别数据是所述显示设备根据出厂信息生成的,所述待识别数据用于表征所述显示设备的防伪信息。
第三方面,本公开实施例还提供一种数据识别装置,包括:
扫描单元,用于对显示的待识别数据进行至少一次扫描;
校验单元,用于其中每次扫描执行如下步骤:利用本次扫描得到的扫描数据生成本次的校验码,利用本次的校验码对本次的扫描数据中的第一数据进行校验;
确定单元,用于当校验通过时停止扫描,确定所述待识别数据的识别结果为本次的扫描数据中的第一数据。
作为一种可选的实施方式,所述确定单元还用于:
当校验未通过时继续扫描,直至利用下一次的校验码对下一次的扫描数据中的第一数据进行校验并确定校验通过时,停止扫描;
确定所述待识别数据的识别结果为下一次的扫描数据中的第一数据。
作为一种可选的实施方式,所述校验单元具体用于通过如下方式利用每次扫描得到的扫描数据生成校验码:
基于预设校验算法,利用扫描数据中的第一数据生成校验码;
其中所述预设校验算法是根据生成所述扫描数据中的第一校验码的校验算法确定的。
作为一种可选的实施方式,所述校验单元具体用于:
对所述第一数据中的每个字符进行ASCII码转换后,进行预设进制的转换,得到转换数据;
利用所述转换数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,所述校验单元具体用于:
基于信息摘要算法或安全哈希算法,根据第一数据生成校验数据;
利用所述校验数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,所述校验单元具体用于通过如下方式利用每次的校验码对每次扫描数据中的第一数据进行校验:
比对所述校验码和所述扫描数据中的第一校验码,根据比对结果对所述扫描数据中的第一数据进行校验。
作为一种可选的实施方式,所述校验单元具体用于通过如下方式确定校验通过:
当所述校验码和所述扫描数据中的第一校验码一致时,确定对所述扫描数据中的第一数据的校验通过。
作为一种可选的实施方式,所述校验单元具体用于通过如下方式确定每次扫描得到的扫描数据:
对每次扫描得到的扫描图像进行OCR识别,确定扫描数据。
作为一种可选的实施方式,所述扫描单元具体用于:
通过移动终端对显示设备显示的待识别数据进行至少一次扫描;其中所述待识别数据是所述显示设备根据出厂信息生成的,所述待识别数据用于表征所述显示设备的防伪信息。
第四方面,本公开实施例还提供计算机存储介质,其上存储有计算机程序,该程序被处理器执行时用于实现上述第一方面所述方法的步骤。
本公开的这些方面或其他方面在以下的实施例的描述中会更加简明易懂。
附图说明
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的一种数据识别方法的实施流程图;
图2为本公开实施例提供的一种显示设备显示防伪标识的示意图;
图3为本公开实施例提供的一种移动终端扫描界面示意图;
图4为本公开实施例提供的一种OCR识别的方法实施流程图;
图5为本公开实施例提供的一种移动终端的示意图;
图6为本公开实施例提供的一种数据识别的装置示意图。
具体实施方式
为了使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开作进一步地详细描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本公开保护的范围。
本公开实施例中术语“和/或”,描述关联对象的关联关系,表示可以存在 三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
本公开实施例中术语“OCR(Optical Character Recognition,光学字符识别)”,是指电子设备(例如扫描仪或数码相机)检查纸上打印的字符,通过检测暗、亮的模式确定其形状,然后用字符识别方法将形状翻译成计算机文字的过程。
本公开实施例描述的应用场景是为了更加清楚的说明本公开实施例的技术方案,并不构成对于本公开实施例提供的技术方案的限定,本领域普通技术人员可知,随着新应用场景的出现,本公开实施例提供的技术方案对于类似的技术问题,同样适用。其中,在本公开的描述中,除非另有说明,“多个”的含义是两个或两个以上。
实施例1、在使用智能移动终端扫描另一显示终端,并利用OCR(光学字符识别,Optical Character Recognition)识别显示终端上显示的字符的场景下,与扫描文件、墙壁、植物等情况不同,扫描显示设备会受到各类环境因素影响,需要说明的是,OCR允许计算机自动分析打印或手写的文档,并将文本数据准备成可编辑的格式,以便计算机进行有效处理。计算机如果像人眼一样识别各种文字、图案或样式,通常需要图像采集、预处理、分割、特征提取、训练模型、后处理等几个步骤。在图像质量高的情况下,OCR识别准确率一般可以达到95%以上,但在扫描显示设备显示的内容,并识别特定字符的场景下,比如利用手机扫描电脑屏幕上的字符进行识别时,容易受到各类环境因素影响,OCR识别率会下降。其中,各类环境因素包括操作用户手抖导致扫描的图片不清晰;摄像头分辨率与显示设备分辨率差异产生的摩尔纹,使扫描的图片噪点较多;显示终端存在反光、倒影等光污染;显示设备本身发光不稳定。由于上述各类环境因素影响,导致利用OCR识别显示的字符时,识别率较低,用户体验较差。另外,使用智能移动终端扫描另一显示终端的场景可以应用于显示屏的防伪检验,针对市场存在冒用一些拼接屏品牌的显示屏,目前没有设备查询工具,无法核验真假和查验设备出厂信息, 所以可以应用于能生成并显示校验码的显示终端,利用智能移动终端对显示校验码的显示终端进行防伪校验,保护品牌合法权益。
为了解决智能移动设备扫描并识别显示设备显示的字符时识别率低的问题,本实施例提供一种数据识别方法,通过校验码进行校验的方式提高识别结果的准确率,提高用户的使用体验。
本实施例提供的一种数据识别方法的核心思想是引入校验码,通过对扫描到的扫描数据生成校验码的方式,利用校验码对扫描数据中的第一数据进行校验,从而保证输出扫描数据中的第一数据的准确率,另外,由于本实施例在扫描并验证的过程中并不需要用户进行人工干预,因此能够自动实现对扫描数据的校验并输出的过程,整个过程用户无感知,能够有效提高用户的使用体验。
如图1所示,本实施例提供的一种数据识别方法,可以应用于移动终端,具体实施流程如下所示:
步骤100、对显示的待识别数据进行至少一次扫描;
在一些实施例中,本实施例中的待识别数据包括但不限于字符、文字、图像、二维码中的一种或多种组合,其中字符包括数字、字母中的一种或两种组合,本实施例对此不作过多限定。
在一些实施例中,本实施例中的待识别数据包括两个部分,第一数据和第一校验码,其中移动终端和显示设备提前约定第一数据和第一校验码的位置或相对位置关系,从而能够从扫描数据中区分出扫描到的第一数据和第一校验码。其中,第一校验码的位数小于第一数据的位数。
在一些实施例中,本实施例可以对待识别的数据进行多次扫描,扫描的次数是根据对第一数据的校验是否通过确定的,如果第一次扫描时,计算得到的校验码对第一数据的校验通过,则停止扫描,否则会继续进行扫描直至校验通过或扫描时长超出设定时长时停止。
在一些实施例中,本实施例通过如下方式对显示的待识别数据进行至少一次扫描:
通过移动终端对显示设备显示的待识别数据进行至少一次扫描;
其中,所述待识别数据是所述显示设备根据出厂信息生成的,所述待识别数据用于表征所述显示设备的防伪信息。
可选的,本实施例中的移动终端是配置有摄像单元,具有扫描功能的终端。本实施例中的移动终端是指安装了Android、IOS智能操作系统的移动设备,比如手机,且配置摄像头,并具备利用摄像头扫描文档、图片、显示屏显示的内容等能力。本实施例中的显示设备是指配置显示屏,能进行显示的设备。
在一些实施例中,本实施例可以应用于对显示设备显示的防伪标识进行识别判断的场景,该场景下,显示设备会利用出厂信息(包括厂商信息、设备标识等信息)生成防伪码(即待识别数据),其中防伪码可以是数字和字母的组合,并将防伪码的最后两位作为校验位,将最后两位上的字符作为第一校验码,如图2所示,本实施例提供一种显示设备显示防伪标识的示意图,当移动终端扫描显示设备显示的防伪码后,会根据除第一校验码以外的第一数据生成校验码,如果校验码和第一校验码一致,则说明显示设备是正品,如果不一致则可以持续扫描,当预设时间内再次确定生成的校验码和第一校验码一致时,则说明显示设备是正品,如果超出预设时间仍未校验通过,则说明该显示设备是伪品。在实际应用中,可以在移动终端安装APP程序,如图3所示,本实施例还提供一种移动终端扫描界面,通过APP扫描显示设备并利用预设校验算法生成校验码对第一数据进行校验,将校验结果返回APP以用于后续处理。其中移动终端使用的预设校验算法和显示设备生成第一校验码时使用的算法是一致的。
步骤101、其中每次扫描执行如下步骤:利用本次扫描得到的扫描数据生成本次的校验码,利用本次的校验码对本次的扫描数据中的第一数据进行校验;
在一些实施例中,通过如下方式确定每次扫描得到的扫描数据:
对每次扫描得到的扫描图像进行OCR识别,确定扫描数据。
实施中,每次扫描时都会对扫描到的扫描图像进行OCR识别,得到扫描数据,从而利用扫描数据中的第一数据生成校验码,判断校验码和扫描数据中的第一校验码是否一致,并在一致时确定校验通过,将第一数据作为待识别数据的识别结果。
在一些实施例中,当进行多次扫描时,每次扫描都会根据本次扫描的扫描数据生成校验码,并对本次扫描数据中的第一数据进行校验。
需要说明的是,由于环境因素等的影响,待识别数据中的第一数据和第一校验码,和经过扫描后得到的扫描数据中的第一数据和第一校验码可能会不相同,但是由于第一校验码的位数较少,受到影响的程度远小于第一数据,因此,可以利用扫描到的第一数据计算校验码和扫描到的第一校验码进行比对,从而对第一数据进行校验。
在一些实施例中,通过如下方式利用每次扫描得到的扫描数据生成校验码:
基于预设校验算法,利用扫描数据中的第一数据生成校验码;
其中所述预设校验算法是根据生成所述扫描数据中的第一校验码的校验算法确定的。
在一些实施例中,本实施例提供至少两种生成校验码的方式:
方式1)对所述第一数据中的每个字符进行ASCII码转换后,进行预设进制的转换,得到转换数据;利用所述转换数据中的预设位上的字符,生成校验码。
可选的,本实施例中的预设进制包括但不限于高于十进制的高进制。
在一些实施例中,本实施例中的第一数据包括一个或多个字符;将每个字符都进行ASCII码转换后,能够将第一数据中的字符都转换为数字,得到一个全部都是数字的第一数据,然后将该第一数据视为十进制的数字,进行高进制转换。
可选的,本实施例中的高进制包括0-9的10个数字、A-Z的26大写英文字母共36个字符,去掉容易造成识别混淆的I和O,组成的34进制。十进制 数字转换为34进制数字后,可以取最后两位作为校验码。
方式2)基于信息摘要算法或安全哈希算法,根据第一数据生成校验数据;利用所述校验数据中的预设位上的字符,生成校验码。
可选的,利用MD5、SHA128、SHA256中的任一种签名算法,根据第一数据生成校验数据,将校验数据中的后两位上的字符作为校验码。
在一些实施例中,本实施例通过如下方式利用每次的校验码对每次扫描数据中的第一数据进行校验:
比对所述校验码和所述扫描数据中的第一校验码,根据比对结果对所述扫描数据中的第一数据进行校验。
实施中,在每次扫描时,都会比对本次扫描生成的校验码和扫描数据中的第一校验码,判断是否一致,从而当一致时确定校验通过,不一致时确定校验未通过。
在一些实施例中,当所述校验码和所述扫描数据中的第一校验码一致时,确定对所述扫描数据中的第一数据的校验通过;当所述校验码和所述扫描数据中的第一校验码不一致时,确定对所述扫描数据中的第一数据的校验未通过。
步骤102、当校验通过时停止扫描,确定所述待识别数据的识别结果为本次的扫描数据中的第一数据。
实施中,每次扫描都会比对生成的校验码和扫描数据中的第一校验码是否一致,当一致时确定校验通过并停止扫描,从而确定识别结果为第一数据,否者会继续扫描,通过多次扫描不断对扫描到的第一数据进行校验,最大程度地去除环境因素的影响,提高识别的准确率。
在一些实施例中,当校验未通过时继续扫描,直至利用下一次的校验码对下一次的扫描数据中的第一数据进行校验并确定校验通过时,停止扫描;确定所述待识别数据的识别结果为下一次的扫描数据中的第一数据。
在一些实施例中,当校验未通过时继续扫描,如果扫描时长超出阈值时校验仍未通过,则停止扫描,确定输出校验未通过的信息。
实施中,移动终端在扫描的过程中,自动执行OCR识别得到扫描结果,并根据扫描结果中的第一数据生成校验码,比对校验码和扫描结果中的第一校验码是否一致,若不一致,则会执行下一次扫描,直至扫描通过或扫描时长达到阈值时停止。通过多次发起OCR识别的方式,达到提升OCR识别准确率的效果,并且移动终端在整个过程处于扫描状态,用户感知不到,但实际上已经进行了多次识别,从而提升了用户的使用体验。
如图4所示,本实施例提供一种OCR识别的方法,该方法的实施流程如下所示:
步骤400、通过移动终端对显示设备显示的待识别数据进行扫描;
其中,本实施例中的待识别数据包括第一数据和第一校验码;
本实施例中的移动终端是配置有摄像单元,具有扫描功能的终端。
步骤401、对本次扫描得到的扫描图像进行OCR识别,确定本次的扫描数据;
其中扫描数据包括第一数据和第一校验码。
需要说明的是,实施中,本实施例中的扫描数据和待识别数据可能是不一致的,也可能是一致的。即扫描数据中的第一数据和待识别数据中的第一数据可能是一致的或不一致的。
步骤402、利用本次的扫描数据中的第一数据生成本次的校验码;
步骤403、判断本次的校验码和本次的扫描数据中的第一校验码是否一致,若是执行步骤404,否则执行步骤405;
步骤404、停止扫描,确定待识别数据的识别结果为本次的扫描数据中的第一数据;
步骤405、判断扫描时长是否达到阈值,若是执行步骤406,否则返回执行步骤400;
步骤406、确定校验未通过。
本实施例中的显示设备利用待识别数据中的第一数据和预设校验算法,计算出第一校验码,并同时显示第一数据和第一校验码。移动终端扫描显示 的待识别数据并进行OCR识别得到扫描数据,并利用扫描数据中的第一数据生成校验码,其中扫描数据包括第一数据和第一校验码,比对第一校验码和校验码,如果不一致可以再次扫描并发起OCR识别。通过本实施例中的方法可以提升OCR识别的准确率和用户的扫描识别体验。
实施例2、基于相同的发明构思,本公开实施例还提供了一种移动终端,由于该终端即是本公开实施例中的方法中的终端,并且该终端解决问题的原理与该方法相似,因此该终端的实施可以参见方法的实施,重复之处不再赘述。
如图5所示,该移动终端包括处理器500和存储器501,所述存储器501用于存储所述处理器500可执行的程序,所述处理器500用于读取所述存储器501中的程序并执行如下步骤:
对显示的待识别数据进行至少一次扫描;
其中每次扫描执行如下步骤:利用本次扫描得到的扫描数据生成本次的校验码,利用本次的校验码对本次的扫描数据中的第一数据进行校验;
当校验通过时停止扫描,确定所述待识别数据的识别结果为本次的扫描数据中的第一数据。
作为一种可选的实施方式,所述处理器500具体还被配置为执行:
当校验未通过时继续扫描,直至利用下一次的校验码对下一次的扫描数据中的第一数据进行校验并确定校验通过时,停止扫描;
确定所述待识别数据的识别结果为下一次的扫描数据中的第一数据。
作为一种可选的实施方式,所述处理器500具体被配置为通过如下方式利用每次扫描得到的扫描数据生成校验码:
基于预设校验算法,利用扫描数据中的第一数据生成校验码;
其中所述预设校验算法是根据生成所述扫描数据中的第一校验码的校验算法确定的。
作为一种可选的实施方式,所述处理器500具体被配置为执行:
对所述第一数据中的每个字符进行ASCII码转换后,进行预设进制的转换,得到转换数据;
利用所述转换数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,所述处理器500具体被配置为执行:
基于信息摘要算法或安全哈希算法,根据第一数据生成校验数据;
利用所述校验数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,所述处理器500具体被配置为通过如下方式利用每次的校验码对每次扫描数据中的第一数据进行校验:
比对所述校验码和所述扫描数据中的第一校验码,根据比对结果对所述扫描数据中的第一数据进行校验。
作为一种可选的实施方式,所述处理器500具体被配置为通过如下方式确定校验通过:
当所述校验码和所述扫描数据中的第一校验码一致时,确定对所述扫描数据中的第一数据的校验通过。
作为一种可选的实施方式,所述处理器500具体被配置为通过如下方式确定每次扫描得到的扫描数据:
对每次扫描得到的扫描图像进行OCR识别,确定扫描数据。
作为一种可选的实施方式,所述处理器500具体被配置为执行:
通过移动终端对显示设备显示的待识别数据进行至少一次扫描;其中所述待识别数据是所述显示设备根据出厂信息生成的,所述待识别数据用于表征所述显示设备的防伪信息。
实施例3、基于相同的发明构思,本公开实施例还提供了一种数据识别的装置,由于该装置即是本公开实施例中的方法中的装置,并且该装置解决问题的原理与该方法相似,因此该装置的实施可以参见方法的实施,重复之处不再赘述。
如图6所示,该装置包括:
扫描单元600,用于对显示的待识别数据进行至少一次扫描;
校验单元601,用于其中每次扫描执行如下步骤:利用本次扫描得到的扫描数据生成本次的校验码,利用本次的校验码对本次的扫描数据中的第一数据进行校验;
确定单元602,用于当校验通过时停止扫描,确定所述待识别数据的识别结果为本次的扫描数据中的第一数据。
作为一种可选的实施方式,所述确定单元602还用于:
当校验未通过时继续扫描,直至利用下一次的校验码对下一次的扫描数据中的第一数据进行校验并确定校验通过时,停止扫描;
确定所述待识别数据的识别结果为下一次的扫描数据中的第一数据。
作为一种可选的实施方式,所述校验单元601具体用于通过如下方式利用每次扫描得到的扫描数据生成校验码:
基于预设校验算法,利用扫描数据中的第一数据生成校验码;
其中所述预设校验算法是根据生成所述扫描数据中的第一校验码的校验算法确定的。
作为一种可选的实施方式,所述校验单元601具体用于:
对所述第一数据中的每个字符进行ASCII码转换后,进行预设进制的转换,得到转换数据;
利用所述转换数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,所述校验单元601具体用于:
基于信息摘要算法或安全哈希算法,根据第一数据生成校验数据;
利用所述校验数据中的预设位上的字符,生成校验码。
作为一种可选的实施方式,所述校验单元601具体用于通过如下方式利用每次的校验码对每次扫描数据中的第一数据进行校验:
比对所述校验码和所述扫描数据中的第一校验码,根据比对结果对所述扫描数据中的第一数据进行校验。
作为一种可选的实施方式,所述校验单元601具体用于通过如下方式确 定校验通过:
当所述校验码和所述扫描数据中的第一校验码一致时,确定对所述扫描数据中的第一数据的校验通过。
作为一种可选的实施方式,所述校验单元601具体用于通过如下方式确定每次扫描得到的扫描数据:
对每次扫描得到的扫描图像进行OCR识别,确定扫描数据。
作为一种可选的实施方式,所述扫描单元600具体用于:
通过移动终端对显示设备显示的待识别数据进行至少一次扫描;其中所述待识别数据是所述显示设备根据出厂信息生成的,所述待识别数据用于表征所述显示设备的防伪信息。
基于相同的发明构思,本公开实施例还提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现如下步骤:
对显示的待识别数据进行至少一次扫描;
其中每次扫描执行如下步骤:利用本次扫描得到的扫描数据生成本次的校验码,利用本次的校验码对本次的扫描数据中的第一数据进行校验;
当校验通过时停止扫描,确定所述待识别数据的识别结果为本次的扫描数据中的第一数据。
本领域内的技术人员应明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本公开是参照根据本公开实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程 和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的设备。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令设备的制造品,该指令设备实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本公开进行各种改动和变型而不脱离本公开的精神和范围。这样,倘若本公开的这些修改和变型属于本公开权利要求及其等同技术的范围之内,则本公开也意图包含这些改动和变型在内。

Claims (11)

  1. 一种数据识别方法,其中,该方法包括:
    对显示的待识别数据进行至少一次扫描;
    其中每次扫描执行如下步骤:利用本次扫描得到的扫描数据生成本次的校验码,利用本次的校验码对本次的扫描数据中的第一数据进行校验;
    当校验通过时停止扫描,确定所述待识别数据的识别结果为本次的扫描数据中的第一数据。
  2. 根据权利要求1所述的方法,其中,还包括:
    当校验未通过时继续扫描,直至利用下一次的校验码对下一次的扫描数据中的第一数据进行校验并确定校验通过时,停止扫描;
    确定所述待识别数据的识别结果为下一次的扫描数据中的第一数据。
  3. 根据权利要求1或2所述的方法,其中,通过如下方式利用每次扫描得到的扫描数据生成校验码:
    基于预设校验算法,利用扫描数据中的第一数据生成校验码;
    其中所述预设校验算法是根据生成所述扫描数据中的第一校验码的校验算法确定的。
  4. 根据权利要求3所述的方法,其中,所述基于预设校验算法,利用扫描数据中的第一数据生成校验码,包括:
    对所述第一数据中的每个字符进行ASCII码转换后,进行预设进制的转换,得到转换数据;
    利用所述转换数据中的预设位上的字符,生成校验码。
  5. 根据权利要求3所述的方法,其中,所述基于预设校验算法,利用扫描数据中的第一数据生成校验码,包括:
    基于信息摘要算法或安全哈希算法,根据第一数据生成校验数据;
    利用所述校验数据中的预设位上的字符,生成校验码。
  6. 根据权利要求1或2所述的方法,其中,通过如下方式利用每次的校 验码对每次扫描数据中的第一数据进行校验:
    比对所述校验码和所述扫描数据中的第一校验码,根据比对结果对所述扫描数据中的第一数据进行校验。
  7. 根据权利要求6所述的方法,其中,通过如下方式确定校验通过:
    当所述校验码和所述扫描数据中的第一校验码一致时,确定对所述扫描数据中的第一数据的校验通过。
  8. 根据权利要求1或2所述的方法,其中,通过如下方式确定每次扫描得到的扫描数据:
    对每次扫描得到的扫描图像进行OCR识别,确定扫描数据。
  9. 根据权利要求1所述的方法,其中,所述对显示的待识别数据进行至少一次扫描,包括:
    通过移动终端对显示设备显示的待识别数据进行至少一次扫描;其中所述待识别数据是所述显示设备根据出厂信息生成的,所述待识别数据用于表征所述显示设备的防伪信息。
  10. 一种移动终端,其中,该移动终端包括处理器和存储器,所述存储器用于存储所述处理器可执行的程序,所述处理器用于读取所述存储器中的程序并执行权利要求1~9任一所述方法的步骤。
  11. 一种计算机存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1~9任一所述方法的步骤。
PCT/CN2023/091360 2022-06-15 2023-04-27 一种数据识别方法及移动终端 WO2023241242A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210679114.8 2022-06-15
CN202210679114.8A CN115035523A (zh) 2022-06-15 2022-06-15 一种数据识别方法及移动终端

Publications (1)

Publication Number Publication Date
WO2023241242A1 true WO2023241242A1 (zh) 2023-12-21

Family

ID=83125737

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/091360 WO2023241242A1 (zh) 2022-06-15 2023-04-27 一种数据识别方法及移动终端

Country Status (2)

Country Link
CN (1) CN115035523A (zh)
WO (1) WO2023241242A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115035523A (zh) * 2022-06-15 2022-09-09 京东方科技集团股份有限公司 一种数据识别方法及移动终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563245A (zh) * 2017-08-24 2018-01-09 广东欧珀移动通信有限公司 图形码的生成与校验方法、装置及终端、可读存储介质
US20180060878A1 (en) * 2015-04-20 2018-03-01 Sigmatrix Technology Co., Ltd. Data authenticity identification method and device for safety check of two-dimensional code
CN113312937A (zh) * 2021-06-25 2021-08-27 展讯通信(上海)有限公司 条形码识别方法及装置、存储介质、计算机设备
CN115035523A (zh) * 2022-06-15 2022-09-09 京东方科技集团股份有限公司 一种数据识别方法及移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180060878A1 (en) * 2015-04-20 2018-03-01 Sigmatrix Technology Co., Ltd. Data authenticity identification method and device for safety check of two-dimensional code
CN107563245A (zh) * 2017-08-24 2018-01-09 广东欧珀移动通信有限公司 图形码的生成与校验方法、装置及终端、可读存储介质
CN113312937A (zh) * 2021-06-25 2021-08-27 展讯通信(上海)有限公司 条形码识别方法及装置、存储介质、计算机设备
CN115035523A (zh) * 2022-06-15 2022-09-09 京东方科技集团股份有限公司 一种数据识别方法及移动终端

Also Published As

Publication number Publication date
CN115035523A (zh) 2022-09-09

Similar Documents

Publication Publication Date Title
US20200293772A1 (en) Storing anonymized identifiers instead of personally identifiable information
US11349666B2 (en) Electronically signing and distributing identification data as a service that provides proof of identity, integrity, validity and origin of data for non-repudiation and ID validation methods
CN106778996B (zh) 嵌入有视觉图像的二维码的生成系统和方法以及读取系统
JP5559619B2 (ja) 画像比較解析を用いた印刷文書における変更の検出方法
US10403076B2 (en) Method for securing and verifying a document
CN110263775B (zh) 图像识别方法、装置、设备和认证方法、装置、设备
JP2009545242A (ja) 高速マスク化正規相互相関と共にテンプレートマッチングを用いた文書認証
WO2023241242A1 (zh) 一种数据识别方法及移动终端
US11134167B2 (en) Method of embedding and extracting watermark data using a correction image comparison with a noise-based image in the frequency domain
KR101587501B1 (ko) 식별 코드 이미지를 이용한 객체 진위 여부 확인 방법 및 이를 실행하는 장치
US11341739B2 (en) Image processing device, image processing method, and program recording medium
US9575935B2 (en) Document file generating device and document file generation method
CA2975030A1 (en) System and apparatus for detecting forgery features on identification documents
CN115660933B (zh) 一种水印信息的识别方法、装置及设备
CN114092108A (zh) 一种鉴别普洱茶真伪的方法
CN113988242A (zh) 基于多区域的防伪码生成与校验方法、系统、设备及介质
CN110533704B (zh) 油墨标签的识别验伪方法、装置、设备及介质
JP2017021603A (ja) 正当性確認装置、方法、媒体発行装置、方法、及びプログラム
CN111766244B (zh) 防伪元件验证方法及系统
KR102515358B1 (ko) 진위 판별 정보가 삽입된 식별 코드 이미지 생성 시스템 및 이를 통해 생성된 식별 코드 이미지를 이용한 객체 진위 여부 판별 방법
US20150193900A1 (en) Composite device and application process and apparatus thereof
CN110110615B (zh) 图像信息处理方法和图像信息处理系统
WO2020199393A1 (zh) 一种防伪系统及防伪方法
CN112597810A (zh) 身份证明文件认证方法和系统
Berchtold et al. Smartphone-supported integrity verification of printed documents

Legal Events

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

Ref document number: 23822813

Country of ref document: EP

Kind code of ref document: A1