CN110348554A - Digital information decoding method, device, electronic equipment and storage medium - Google Patents

Digital information decoding method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110348554A
CN110348554A CN201910646580.4A CN201910646580A CN110348554A CN 110348554 A CN110348554 A CN 110348554A CN 201910646580 A CN201910646580 A CN 201910646580A CN 110348554 A CN110348554 A CN 110348554A
Authority
CN
China
Prior art keywords
digital information
numeral system
coded markings
coding
decoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910646580.4A
Other languages
Chinese (zh)
Other versions
CN110348554B (en
Inventor
梁琛
刘玺炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Maigewei Technology Co Ltd
Original Assignee
Beijing Maigewei Technology Co Ltd
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 Beijing Maigewei Technology Co Ltd filed Critical Beijing Maigewei Technology Co Ltd
Priority to CN201910646580.4A priority Critical patent/CN110348554B/en
Publication of CN110348554A publication Critical patent/CN110348554A/en
Application granted granted Critical
Publication of CN110348554B publication Critical patent/CN110348554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details

Abstract

This application provides a kind of digital information decoding method, device, electronic equipment and storage mediums, are related to technical field of information processing.The coding method includes: to obtain the digital information of the first numeral system to be encoded, and the digital information of the first numeral system is carried out number system transition processing, obtains the first digital information of the second numeral system and the second digital information of the second numeral system;Determine third digital information;Conversion regime is marked according to scheduled encoding and decoding, the second coding digital information is converted into corresponding first coded markings, and third coding digital information is converted into corresponding second coded markings;According to the first coded markings and the second coded markings, the coded markings of the digital information of the first numeral system are determined.The application carries out encoding and decoding to digital information according to scheduled encoding and decoding label conversion regime, avoids and carries out the inaccurate problem of the identification as caused by blocking in the wasting of resources caused by coding digital information and decoding process using two dimensional code in the prior art.

Description

Digital information decoding method, device, electronic equipment and storage medium
Technical field
This application involves technical field of information processing, specifically, this application involves a kind of digital information decoding method, Device, electronic equipment and storage medium.
Background technique
With the rapid development of computer technology and network technology, technology of Internet of things is widely applied.Internet of Things is Refer to and any object be connected with network by the agreement of agreement by information sensing device, object pass through information media into Row information exchange and communication, to realize the functions such as Weigh sensor, positioning, tracking, supervision.The realization of Internet of Things is needed to each The unique mark of object distribution or address, for example, stickup or spraying identification code on object, pass through terminal device scans identification code Mode obtain information regarding objects, to realize object identification.
In the prior art, the more extensive identification code of application is two dimensional code, and two dimensional code storage information content is larger, be can satisfy Corresponding demand.But for certain specific application environments, the type of coding needed is relatively simple, data volume is also smaller, and It does not need to store so big information content, will cause the wasting of resources using two dimensional code storage information;Moreover, being carried out by two dimensional code Coding, if shielded area is larger when barcode scanning or anchor point is blocked, can not identify corresponding information, so as to cause sweeping Multi-pass operation is needed when code, reduces service efficiency.
Summary of the invention
This application provides a kind of digital information decoding method, device, electronic equipment and storage mediums, existing for solving There is the problem of technology.
In a first aspect, a kind of coding digital information method is provided, this method comprises:
The digital information of first numeral system is carried out number system transition processing by the digital information for obtaining the first numeral system to be encoded, Obtain the first digital information of the second numeral system and the second digital information of the second numeral system;
According to the radix of the first digital information of the second numeral system and the second numeral system, third digital information is determined;
Conversion regime is marked according to scheduled encoding and decoding, the second coding digital information is converted into corresponding first coding and is marked Note, and third coding digital information is converted into corresponding second coded markings;
According to the first coded markings and the second coded markings, the coded markings of the digital information of the first numeral system are determined.
In one possible implementation, the digital information for obtaining the first numeral system to be encoded, by the number of the first numeral system Word information carries out number system transition processing, obtains the first digital information of the second numeral system and the second digital information of the second numeral system, wraps It includes:
The first digital information and the second number is calculated according to the radix of the digital information of the first numeral system and the second numeral system Information.
In one possible implementation, according to the radix of the first digital information of the second numeral system and the second numeral system, really Determine third digital information, comprising:
First digital information of the second numeral system is added with the radix of the second numeral system, obtains third digital information.
In one possible implementation, according to the first coded markings and the second coded markings, the first numeral system is determined The coded markings of digital information, comprising:
Second coded markings of the first coded markings of predetermined quantity and predetermined quantity are subjected to permutation and combination, obtain first The corresponding coded markings of the digital information of numeral system.
Second aspect provides a kind of digital information coding/decoding method, this method comprises:
Obtain the coded markings of the digital information of the first numeral system, coded markings include at least one first coded markings and extremely Few second coded markings;
Conversion regime is marked according to scheduled encoding and decoding, conversion is decoded respectively at least one first coded markings, Determine the 4th digital information of corresponding second numeral system of at least one first coded markings, and at least one the second coding Label is decoded conversion respectively, determines the 5th number letter of corresponding second numeral system of at least one second coded markings Breath;
According to each 4th digital information and each 5th digital information, the digital information of the first numeral system is determined.
In one possible implementation, at least one first coded markings are decoded with conversion respectively and to extremely Few second coded markings are decoded after conversion respectively, further includes:
The digital information reconciliation of corresponding second numeral system of at least one first coded markings after determining decoding conversion The digital information of corresponding second numeral system of at least one second coded markings after code conversion;
The digital information of each second numeral system is converted into the digital information of third numeral system;
Determine the 4th digital information and the 5th digital information, comprising:
According to the digital information on the predeterminated position of the digital information of third numeral system, each 4th digital information and each is determined A 5th digital information.
In one possible implementation, according to each 4th digital information and each 5th digital information, is determined The digital information of one numeral system, comprising:
Exclusive or check is carried out to each 4th digital information and each 5th digital information, obtains including one the 4th number The check results of information and the 5th digital information;
According to the radix of one the 4th digital information and one the 5th digital information and the second numeral system in check results, meter Calculation obtains the digital information of the first numeral system.
The third aspect, this application provides a kind of coding digital information device, which includes:
Module is obtained, for obtaining the digital information of the first numeral system to be encoded, the digital information of the first numeral system is carried out Number system transition processing, obtains the first digital information of the second numeral system and the second digital information of the second numeral system;
First determining module, for determining third according to the first digital information of the second numeral system and the radix of the second numeral system Digital information;
Conversion module is converted to the second coding digital information pair for marking conversion regime according to scheduled encoding and decoding The first coded markings answered, and third coding digital information is converted into corresponding second coded markings;
Second determining module, for determining the number letter of the first numeral system according to the first coded markings and the second coded markings The coded markings of breath.
Fourth aspect, this application provides a kind of digital information decoding apparatus, which includes:
Obtain module, the coded markings of the digital information for obtaining the first numeral system, coded markings include at least one the One coded markings and at least one second coded markings;
First determining module, for marking conversion regime according to scheduled encoding and decoding, at least one the first coded markings It is decoded conversion respectively, determines the 4th digital information of corresponding second numeral system of at least one first coded markings, and Conversion is decoded at least one second coded markings respectively, determines at least one second coded markings corresponding second 5th digital information of numeral system;
Second determining module, for determining the first numeral system according to each 4th digital information and each 5th digital information Digital information.
5th aspect, this application provides a kind of electronic equipment, which includes:
One or more processors;
Memory;
One or more application program, wherein one or more application programs be stored in memory and be configured as by One or more processors execute, and one or more programs are configured to: executing the number as shown in the first aspect of the application The corresponding operation of digital information coding/decoding method shown in the corresponding operation of information coding method or second aspect.
6th aspect, this application provides a kind of computer readable storage medium, computer readable storage medium is for depositing Storage computer instruction executes computer as shown in the first aspect of the application when run on a computer Digital information coding/decoding method shown in digital information coding/decoding method or second aspect.
Technical solution provided by the present application has the benefit that
Coding digital information method, apparatus, electronic equipment and storage medium provided by the present application, obtain to be encoded first The digital information of first numeral system is carried out number system transition processing by the digital information of numeral system, obtains the first number letter of the second numeral system Second digital information of breath and the second numeral system;According to the radix of the first digital information of the second numeral system and the second numeral system, is determined Three digital informations;Conversion regime is marked according to scheduled encoding and decoding, the second coding digital information is converted to corresponding first and is compiled Code labeling, and third coding digital information is converted into corresponding second coded markings;It is compiled according to the first coded markings and second Code labeling determines the coded markings of the digital information of the first numeral system.After the application converts digital information to be encoded, foundation Digital information after conversion is converted into lesser first coded markings of amount of coded data by scheduled encoding and decoding label conversion regime With the second coded markings, digital information is encoded using the first coded markings and the second coded markings, avoids existing skill The wasting of resources caused by coding digital information is carried out using two dimensional code in art.
Digital information coding/decoding method, device, electronic equipment and storage medium provided by the present application obtain the number of the first numeral system The coded markings of word information, coded markings include at least one first coded markings and at least one second coded markings;Foundation Scheduled encoding and decoding mark conversion regime, are decoded conversion respectively at least one first coded markings, determine at least one 4th digital information of corresponding second numeral system of the first coded markings, and at least one second coded markings is carried out respectively Decoding conversion, determines the 5th digital information of corresponding second numeral system of at least one second coded markings;According to each Four digital informations and each 5th digital information, determine the digital information of the first numeral system.The application is when being decoded, it is only necessary to Complete first coded markings and complete second coded markings are scanned, do not need to identify specific anchor point, and And when coding to be identified includes two and more than two first coded markings and two and more than two second coded markings, It can realize and accurately identify in the biggish situation of shielded area.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, institute in being described below to the embodiment of the present application Attached drawing to be used is needed to be briefly described.
Fig. 1 is the flow diagram of coding digital information method provided by the embodiments of the present application;
Fig. 2 is the schematic diagram of ArUco provided by the embodiments of the present application label;
Fig. 3 is the combination diagram of ArUco provided by the embodiments of the present application label;
Fig. 4 is the flow diagram of digital information coding/decoding method provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of coding digital information device provided by the embodiments of the present application;
Fig. 6 is the schematic diagram of digital information decoding apparatus provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the application, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in the description of the present application Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
How the technical solution of the application and the technical solution of the application are solved with specifically embodiment below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, embodiments herein is described.
Fig. 1 is a kind of flow diagram of coding digital information method provided by the embodiments of the present application, as shown in Figure 1, should Method may include:
Step S101 obtains the digital information of the first numeral system to be encoded, and the digital information of the first numeral system is carried out numeral system Conversion process obtains the first digital information of the second numeral system and the second digital information of the second numeral system;
Step S102 determines third digital information according to the radix of the first digital information of the second numeral system and the second numeral system;
Step S103 marks conversion regime according to scheduled encoding and decoding, the second coding digital information is converted to corresponding First coded markings, and third coding digital information is converted into corresponding second coded markings;
Step S104 determines the coding of the digital information of the first numeral system according to the first coded markings and the second coded markings Label.
Coding digital information method provided by the present application obtains the digital information of the first numeral system to be encoded, by the first number The digital information of system carries out number system transition processing, obtains the first digital information of the second numeral system and the second number letter of the second numeral system Breath;According to the radix of the first digital information of the second numeral system and the second numeral system, third digital information is determined;It is solved according to scheduled volume Second coding digital information is converted to corresponding first coded markings, and third digital information is compiled by code labeling conversion regime Code is converted to corresponding second coded markings;According to the first coded markings and the second coded markings, the number of the first numeral system is determined The coded markings of information.After the application converts digital information to be encoded, according to scheduled coded markings conversion regime pair Digital information is encoded, and is avoided and is carried out the wasting of resources caused by coding digital information using two dimensional code in the prior art.
Specific expansion explanation is carried out to the above scheme of the embodiment of the present application below.
Step S101 obtains the digital information of the first numeral system to be encoded, and the digital information of the first numeral system is carried out numeral system Conversion process obtains the first digital information of the second numeral system and the second digital information of the second numeral system;
Wherein, the digital information of the first numeral system specifically can be ten's digit, and digital information to be encoded specifically can be with The digital information within the scope of default value, the numberical range of the number to be encoded of the embodiment of the present application by taking 1-250000 as an example, Number to be encoded is more than or equal to 1, is less than or equal to 250000.The digital information of first numeral system is obtained after number system transition is handled First digital information of the second numeral system and the second digital information of the second numeral system.
In one possible implementation, the digital information for obtaining the first numeral system to be encoded, by the number of the first numeral system Word information carries out number system transition processing, obtains the first digital information of the second numeral system and the second digital information of the second numeral system, wraps It includes: the first digital information and the second digital information is calculated according to the radix of the digital information of the first numeral system and the second numeral system.
Wherein, the radix of the second numeral system is the corresponding radix of the second numeral system, for example, the corresponding radix of binary digit is 2, The corresponding radix of octal digit is 8, and the corresponding radix of decimal number is 10.
In one example, the quotient digital information of the first numeral system to be encoded obtained divided by the radix of the second numeral system as First digital information, mould is as the second digital information.
Step S102 determines third digital information according to the radix of the first digital information of the second numeral system and the second numeral system;
Convenient for distinguishing the first digital information and the second digital information when in order to decode, need by the first digital information processing at Greater than the third digital information of the radix of the second numeral system.
In one possible implementation, according to the radix of the first digital information of the second numeral system and the second numeral system, really Determine third digital information, comprising: the first digital information of the second numeral system is added with the radix of the second numeral system, obtains third number Information.
Wherein, it is added the first digital information of the second numeral system to obtain third digital information with the radix of the second numeral system, by In third digital information be greater than the second numeral system radix, the second digital information less than the second numeral system radix, when being decoded, It can judge the second digital information and third digital information.
Step S103 marks conversion regime according to scheduled encoding and decoding, the second coding digital information is converted to corresponding First coded markings, and third coding digital information is converted into corresponding second coded markings;
Wherein, scheduled encoding and decoding label conversion regime, which specifically can be, is converted into corresponding ArUco label for number, ArUco is the reality enhancing library an of open source.ArUco label be binary system square label, each ArUco labeled as 5cm × The square area of 5cm is made of black border and internal binary matrix, as shown in Fig. 2, internal binary matrix is determined The number of ArUco label is determined, the boundary of black is conducive to be quickly detected image.
Step S104 determines the coding of the digital information of the first numeral system according to the first coded markings and the second coded markings Label.
In one possible implementation, according to the first coded markings and the second coded markings, the first numeral system is determined The coded markings of digital information, comprising: carry out the second coded markings of the first coded markings of predetermined quantity and predetermined quantity Permutation and combination obtains the corresponding coded markings of digital information of the first numeral system.
Specifically, in order to guarantee decoded accuracy, as the in such a way that multiple coded markings carry out permutation and combination The corresponding coded markings of the digital information of one numeral system.As shown in figure 3, by 8 first the second coded markings of coded markings 1 and 82 Permutation and combination is carried out, the coded markings of the digital information of the first numeral system of 4 × 4 modes are obtained.All 1 phases of the first coded markings Together, the number of coding is also identical, and the second all coded markings 2 are identical, and the number of coding is also identical.
In one example, for a ten's digit: 1015, be converted to 512 systems, 1015 divided by 512 quotient be 1, mould It is 503, then the first digital information is 1, and the second digital information is 503, will, the first digital information is added with radix 512, obtains the 513 and 503 are respectively converted into ArUco label, obtain 1015 corresponding coded markings after permutation and combination by three digital informations 513.
Fig. 4 is a kind of flow diagram of digital information coding/decoding method provided by the embodiments of the present application, as shown in figure 4, should Method may include:
Step S201, obtains the coded markings of the digital information of the first numeral system, and coded markings include at least one first volume Code labeling and at least one second coded markings;
Step S202 marks conversion regime according to scheduled encoding and decoding, carries out respectively at least one first coded markings Decoding conversion, determines the 4th digital information of corresponding second numeral system of at least one first coded markings, and at least one A second coded markings are decoded conversion respectively, determine the of corresponding second numeral system of at least one second coded markings Five digital informations;
Step S203 determines the number letter of the first numeral system according to each 4th digital information and each 5th digital information Breath.
Digital information coding/decoding method provided by the present application obtains the coded markings of the digital information of the first numeral system, coding mark Note includes at least one first coded markings and at least one second coded markings;Conversion side is marked according to scheduled encoding and decoding Formula is decoded conversion at least one first coded markings respectively, determines that at least one first coded markings is corresponding 4th digital information of the second numeral system, and conversion is decoded respectively at least one second coded markings, determine at least one 5th digital information of corresponding second numeral system of the second coded markings;According to each 4th digital information and each 5th number Word information determines the digital information of the first numeral system.The application does not need to identify specific anchor point when being decoded, can It realizes and accurately identifies in the biggish situation of shielded area.
Specific expansion explanation is carried out to the above scheme of the embodiment of the present application below.
Step S201, obtains the coded markings of the digital information of the first numeral system, and coded markings include at least one first volume Code labeling and at least one second coded markings;
Wherein, the first coded markings, the second coded markings specifically can be ArUco label.The digital information of first numeral system Coded markings be made of two groups of coded markings, one group of coded markings are at least one first coded markings, another group of coding mark It is denoted as at least one second coded markings, the encoded information of each first coded markings is identical, the volume of each second coded markings Code information is identical.
Step S202 marks conversion regime according to scheduled encoding and decoding, carries out respectively at least one first coded markings Decoding conversion, determines the 4th digital information of corresponding second numeral system of at least one first coded markings, and at least one A second coded markings are decoded conversion respectively, determine the of corresponding second numeral system of at least one second coded markings Five digital informations;
Specifically, marking conversion regime according to ArUco, two group digital informations are obtained, each number in each group is identical. Need to determine this two group digital information the 4th digital information and the 5th digital information, it could further progress decoding.
In one possible implementation, at least one first coded markings are decoded with conversion respectively and to extremely Few second coded markings are decoded after conversion respectively, further includes: at least one first volume after determining decoding conversion The digital information of corresponding second numeral system of code labeling and at least one second coded markings after decoding conversion respectively correspond The second numeral system digital information;The digital information of each second numeral system is converted into the digital information of third numeral system;Determine Four digital informations and the 5th digital information, comprising: according to the digital information on the predeterminated position of the digital information of third numeral system, really Fixed each 4th digital information and each 5th digital information.
The number 513 and 503 obtained according to scheduled encoding and decoding label conversion regime is converted into binary digit respectively, Whether by judging the tenth of binary number, to be zero determine the 4th digital information and the 5th digital information, due to 513 conversions It is 1000000001,503 to be converted into the tenth that binary number is 0111110111,1000000001 and be not at binary number Zero, it is determined that 513 be the 4th digital information, and 503 be the 5th digital information.
In one example, a. is for each numerical value x, if x& (1 < < 9) (pressing bitwise shift left nine) is not 0, for a high position Numerical value (high), corresponding 4th digital information.
B. for each numerical value x, if x& (1 < < 9) (pressing bitwise shift left nine) is 0, it is low level numerical value (low), it is right Answer the 5th digital information.
Step S203 determines the number letter of the first numeral system according to each 4th digital information and each 5th digital information Breath.
After the 4th digital information and the 5th digital information has been determined, the number of the first numeral system is calculated according to formula (1) Word information.
Id-num=(high-512) * 512+low (1)
Wherein, high indicates high-order digit information, and low indicates low order digit information, and id-num indicates the number of the first numeral system Word information.
In one possible implementation, according to each 4th digital information and each 5th digital information, is determined The digital information of one numeral system, comprising: exclusive or check is carried out to each 4th digital information and each 5th digital information, is wrapped Include the check results of one the 4th digital information and the 5th digital information;According to one the 4th number letter in check results The radix of breath and one the 5th digital information and the second numeral system, is calculated the digital information of the first numeral system.
Specifically, the accuracy in order to guarantee data, needs to carry out exclusive or check to two obtained group digital informations, utilize The digital information of the first numeral system is calculated by the 4th digital information of verification and the 5th digital information.
The ArUco label coding of the digital information for the first numeral system that the coding method of technical scheme obtains, into Row decoding when, can shielded area compared with two dimensional code in the prior art, be far longer than two dimensional code coding, maximum can shielded area It is calculated according to formula (2):
Wherein, m indicates line number, and n indicates columns.As m >=2, n >=2, coding to be identified can shielded area be greater than it is existing Have the two dimensional code in technology can shielded area (two dimensional code coding can shielded area be 30%).
In one example, the ArUco label to be identified that arranged by 4 rows 4 that encodes forms, as shown in figure 3, when being decoded, Coding to be identified is obtained in the way of terminal device barcode scanning.Since coding to be identified includes 8 the first coded markings 1 and 8 The encoded information of second coded markings 2, identical first coded markings 1 is identical, the encoded information of identical second coded markings 2 It is identical, therefore it may only be necessary to obtain complete first coded markings 1 and complete second coded markings 2, do not need to obtain The encoded information for taking all the first coded markings 1 and the second coded markings 2, can be achieved with decoding, therefore, according to formula (2) It is calculated can shielded area be the gross area 87.5%.The corresponding number a of the first coded markings 1 is obtained after decoding, second compiles The corresponding number b of code labeling 2, a, b are converted to after binary system and judge whether the tenth be zero, determines that a is according to judging result High-order digit information, b are low order digit information, calculate encoded digital information according to formula (1).
Based on principle identical with method shown in Fig. 1, embodiment of the disclosure additionally provides a kind of coding digital information Device 30, as shown in figure 5, device 30 may include: to obtain module 31, the first determining module 32, conversion module 33 and second really Cover half block 34;
Obtain module 31, for obtaining the digital information of the first numeral system to be encoded, by the digital information of the first numeral system into Line number conversion process obtains the first digital information of the second numeral system and the second digital information of the second numeral system;
First determining module 32, for determining according to the first digital information of the second numeral system and the radix of the second numeral system Three digital informations;
Conversion module 33 is converted to the second coding digital information for marking conversion regime according to scheduled encoding and decoding Corresponding first coded markings, and third coding digital information is converted into corresponding second coded markings;
Second determining module 34, for determining the number of the first numeral system according to the first coded markings and the second coded markings The coded markings of information.
In one possible implementation, module 31 is obtained to be specifically used for:
The first digital information and the second number is calculated according to the radix of the digital information of the first numeral system and the second numeral system Information.
In one possible implementation, the first determining module 32 is specifically used for:
First digital information of the second numeral system is added with the radix of the second numeral system, obtains third digital information.
In one possible implementation, the second determining module 34 is specifically used for:
Second coded markings of the first coded markings of predetermined quantity and predetermined quantity are subjected to permutation and combination, obtain first The corresponding coded markings of the digital information of numeral system.
A kind of number provided by embodiment of the disclosure can be performed in the code device of the digital information of the embodiment of the present disclosure The coding method of information, realization principle is similar, each mould in the code device of the digital information in each embodiment of the disclosure Movement performed by block be it is corresponding with the step in the coding method of the digital information in each embodiment of the disclosure, for number Each module of the code device of word information detailed functions description specifically may refer to hereinbefore shown in corresponding digital information Coding method in description, details are not described herein again.
Coding digital information device provided by the present application obtains the digital information of the first numeral system to be encoded, by the first number The digital information of system carries out number system transition processing, obtains the first digital information of the second numeral system and the second number letter of the second numeral system Breath;According to the radix of the first digital information of the second numeral system and the second numeral system, third digital information is determined;It is solved according to scheduled volume Second coding digital information is converted to corresponding first coded markings, and third digital information is compiled by code labeling conversion regime Code is converted to corresponding second coded markings;According to the first coded markings and the second coded markings, the number of the first numeral system is determined The coded markings of information.After the application converts digital information to be encoded, according to scheduled coded markings conversion regime pair Digital information is encoded, and is avoided and is carried out the wasting of resources caused by coding digital information using two dimensional code in the prior art.
Based on principle identical with method shown in Fig. 4, embodiment of the disclosure additionally provides a kind of digital information decoding Device 40, as shown in fig. 6, device 40 may include: to obtain module 41, the first determining module 42 and the second determining module 43;
Module 41 is obtained, the coded markings of the digital information for obtaining the first numeral system, coded markings include at least one First coded markings and at least one second coded markings;
First determining module 42 marks at least one first coding for marking conversion regime according to scheduled encoding and decoding It scores and is not decoded conversion, determine the 4th digital information of corresponding second numeral system of at least one first coded markings, And conversion is decoded respectively at least one second coded markings, determine at least one second coded markings corresponding 5th digital information of two numeral systems;
Second determining module 43, for determining the first number according to each 4th digital information and each 5th digital information The digital information of system.
In one possible implementation, the first determining module 42 is specifically used for:
The digital information reconciliation of corresponding second numeral system of at least one first coded markings after determining decoding conversion The digital information of corresponding second numeral system of at least one second coded markings after code conversion;By the number of each second numeral system Word information is converted into the digital information of third numeral system;According to the digital information on the predeterminated position of the digital information of third numeral system, Determine each 4th digital information and each 5th digital information.
In one possible implementation, the second determining module 43 is specifically used for:
Exclusive or check is carried out to each 4th digital information and each 5th digital information, obtains including one the 4th number The check results of information and the 5th digital information;According to the 4th digital information and one the 5th number in check results The digital information of the first numeral system is calculated in the radix of word information and the second numeral system.
A kind of number provided by embodiment of the disclosure can be performed in the decoding apparatus of the digital information of the embodiment of the present disclosure The coding/decoding method of information, realization principle is similar, each mould in the decoding apparatus of the digital information in each embodiment of the disclosure Movement performed by block be it is corresponding with the step in the coding/decoding method of the digital information in each embodiment of the disclosure, for number Each module of the decoding apparatus of word information detailed functions description specifically may refer to hereinbefore shown in corresponding digital information Coding/decoding method in description, details are not described herein again.
Digital information decoding apparatus provided by the present application obtains the coded markings of the digital information of the first numeral system, coding mark Note includes at least one first coded markings and at least one second coded markings;Conversion side is marked according to scheduled encoding and decoding Formula is decoded conversion at least one first coded markings respectively, determines that at least one first coded markings is corresponding 4th digital information of the second numeral system, and conversion is decoded respectively at least one second coded markings, determine at least one 5th digital information of corresponding second numeral system of the second coded markings;According to each 4th digital information and each 5th number Word information determines the digital information of the first numeral system.The application does not need to identify specific anchor point when being decoded, can It realizes and accurately identifies in the biggish situation of shielded area.
Above-described embodiment describes the encoding apparatus and decoding apparatus of digital information from the angle of virtual module, following from reality The angle of module introduces a kind of electronic equipment, specific as follows shown:
The embodiment of the present application provides a kind of electronic equipment, as shown in fig. 7, electronic equipment shown in Fig. 7 5000 includes: place Manage device 5001 and memory 5003.Wherein, processor 5001 is connected with memory 5003, is such as connected by bus 5002.It is optional Ground, electronic equipment 5000 can also include transceiver 5004.It should be noted that transceiver 5004 is not limited to one in practical application A, the structure of the electronic equipment 5000 does not constitute the restriction to the embodiment of the present application.
Processor 5001 can be CPU, general processor, DSP, ASIC, FPGA or other programmable logic device, crystalline substance Body pipe logical device, hardware component or any combination thereof.It, which may be implemented or executes, combines described by present disclosure Various illustrative logic blocks, module and circuit.Processor 5001 is also possible to realize the combination of computing function, such as wraps It is combined containing one or more microprocessors, DSP and the combination of microprocessor etc..
Bus 5002 may include an access, and information is transmitted between said modules.Bus 5002 can be pci bus or Eisa bus etc..Bus 5002 can be divided into address bus, data/address bus, control bus etc..Only to be used in Fig. 7 convenient for indicating One thick line indicates, it is not intended that an only bus or a type of bus.
Memory 5003 can be ROM or can store the other kinds of static storage device of static information and instruction, RAM Or the other kinds of dynamic memory of information and instruction can be stored, it is also possible to EEPROM, CD-ROM or other CDs Storage, optical disc storage (including compression optical disc, laser disc, optical disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium Or other magnetic storage apparatus or can be used in carry or store have instruction or data structure form desired program generation Code and can by any other medium of computer access, but not limited to this.
Memory 5003 is used to store the application code for executing application scheme, and is held by processor 5001 to control Row.Processor 5001 is for executing the application code stored in memory 5003, to realize aforementioned either method embodiment Shown in content.
The embodiment of the present application provides a kind of electronic equipment, the electronic equipment in the embodiment of the present application include: memory and Processor;At least one program is stored in the memory, when for being executed by the processor, compared with prior art: Electronic equipment provided by the embodiments of the present application carries out encoding and decoding to digital information according to scheduled encoding and decoding label conversion regime, It avoids and is carried out in the wasting of resources caused by coding digital information and decoding process using two dimensional code due to hiding in the prior art The inaccurate problem of identification caused by gear.
The embodiment of the present application provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program allows computer to execute corresponding contents in preceding method embodiment when run on a computer.With The prior art is compared, and the application carries out encoding and decoding to digital information according to scheduled encoding and decoding label conversion regime, is avoided existing Have in technology and is carried out in the wasting of resources caused by coding digital information and decoding process as caused by blocking using two dimensional code Identify inaccurate problem.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (11)

1. a kind of coding digital information method, which is characterized in that the described method includes:
The digital information of first numeral system is carried out number system transition processing by the digital information for obtaining the first numeral system to be encoded, Obtain the first digital information of the second numeral system and the second digital information of the second numeral system;
According to the radix of the first digital information of second numeral system and second numeral system, third digital information is determined;
Conversion regime is marked according to scheduled encoding and decoding, second coding digital information is converted into corresponding first coding and is marked Note, and the third coding digital information is converted into corresponding second coded markings;
According to first coded markings and second coded markings, the coding mark of the digital information of first numeral system is determined Note.
2. coding digital information method according to claim 1, which is characterized in that obtain the number of the first numeral system to be encoded The digital information of first numeral system is carried out number system transition processing by word information, obtain the second numeral system the first digital information and Second digital information of the second numeral system, comprising:
The first digital information and the second number is calculated according to the radix of the digital information of first numeral system and the second numeral system Information.
3. coding digital information method according to claim 1 or 2, which is characterized in that according to the of second numeral system The radix of one digital information and second numeral system, determines third digital information, comprising:
First digital information of second numeral system is added with the radix of second numeral system, obtains third digital information.
4. coding digital information method according to claim 1 or 2, which is characterized in that according to first coded markings With second coded markings, the coded markings of the digital information of first numeral system are determined, comprising:
Second coded markings of first coded markings of predetermined quantity and the predetermined quantity are subjected to permutation and combination, are obtained The corresponding coded markings of digital information of first numeral system.
5. a kind of digital information coding/decoding method, which is characterized in that the described method includes:
Obtain the coded markings of the digital information of the first numeral system, the coded markings include at least one first coded markings and extremely Few second coded markings;
Conversion regime is marked according to scheduled encoding and decoding, conversion is decoded respectively at least one described first coded markings, Determine the 4th digital information of corresponding second numeral system of at least one first coded markings, and to it is described at least one Second coded markings are decoded conversion respectively, determine corresponding second numeral system of at least one described second coded markings 5th digital information;
According to each 4th digital information and each 5th digital information, the digital information of first numeral system is determined.
6. digital information coding/decoding method according to claim 5, which is characterized in that marked at least one described first coding It scores not to be decoded and converts and at least one described second coded markings are decoded after conversion respectively, further includes:
The digital information reconciliation of corresponding second numeral system of at least one described first coded markings after determining decoding conversion The digital information of corresponding second numeral system of at least one described second coded markings after code conversion;
The digital information of each second numeral system is converted into the digital information of third numeral system;
Determine the 4th digital information and the 5th digital information, comprising:
According to the digital information on the predeterminated position of the digital information of the third numeral system, each 4th digital information and each is determined A 5th digital information.
7. digital information coding/decoding method according to claim 5 or 6, which is characterized in that according to each 4th digital information With each 5th digital information, the digital information of first numeral system is determined, comprising:
Exclusive or check is carried out to each 4th digital information and each 5th digital information, obtains including the 4th digital information With the check results of the 5th digital information;
According to the radix of one the 4th digital information and the 5th digital information and second numeral system in check results, meter Calculation obtains the digital information of first numeral system.
8. a kind of coding digital information device, which is characterized in that described device includes:
Module is obtained, for obtaining the digital information of the first numeral system to be encoded, the digital information of first numeral system is carried out Number system transition processing, obtains the first digital information of the second numeral system and the second digital information of the second numeral system;
First determining module, for determining according to the first digital information of second numeral system and the radix of second numeral system Third digital information;
Conversion module is converted to second coding digital information pair for marking conversion regime according to scheduled encoding and decoding The first coded markings answered, and the third coding digital information is converted into corresponding second coded markings;
Second determining module, for determining first numeral system according to first coded markings and second coded markings Digital information coded markings.
9. a kind of digital information decoding apparatus, which is characterized in that described device includes:
Obtain module, the coded markings of the digital information for obtaining the first numeral system, the coded markings include at least one the One coded markings and at least one second coded markings;
First determining module, for marking conversion regime according to scheduled encoding and decoding, at least one described first coded markings It is decoded conversion respectively, determines the 4th number letter of corresponding second numeral system of at least one described first coded markings Breath, and conversion is decoded respectively at least one described second coded markings, determine at least one described second coded markings 5th digital information of corresponding second numeral system;
Second determining module, for determining first numeral system according to each 4th digital information and each 5th digital information Digital information.
10. a kind of electronic equipment characterized by comprising
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by one or more of processors, one or more of programs are configured to: perform claim requirement 1~4 is any Coding digital information method or the described in any item digital information coding/decoding methods of claim 5~7 described in.
11. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing computer Instruction, when run on a computer, so that computer can require 1~4 described in any item digital informations with perform claim Coding method or the described in any item digital information coding/decoding methods of claim 5~7.
CN201910646580.4A 2019-07-17 2019-07-17 Digital information encoding and decoding method and device, electronic equipment and storage medium Active CN110348554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910646580.4A CN110348554B (en) 2019-07-17 2019-07-17 Digital information encoding and decoding method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910646580.4A CN110348554B (en) 2019-07-17 2019-07-17 Digital information encoding and decoding method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110348554A true CN110348554A (en) 2019-10-18
CN110348554B CN110348554B (en) 2023-10-27

Family

ID=68175653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910646580.4A Active CN110348554B (en) 2019-07-17 2019-07-17 Digital information encoding and decoding method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110348554B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866578A (en) * 2019-10-29 2020-03-06 上海交通大学 Two-dimensional texture code and encoding and decoding methods thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11149551A (en) * 1997-11-18 1999-06-02 Seiko Epson Corp Device for encoding multi-color picture and method therefor and device for decoding multi-color picture and method therefor
WO2000060589A1 (en) * 1999-04-06 2000-10-12 Kwan Software Engineering, Inc. System and method for digitally marking a file with a removable mark
JP2002334297A (en) * 2001-05-08 2002-11-22 Ricoh Co Ltd Device and method for generating image, computer readable recording medium on which program for performing the method with computer is recorded, the program and code
JP2003178277A (en) * 2001-12-11 2003-06-27 Ricoh Co Ltd Two-dimensional code, two-dimensional code making method, two-dimensional code decoding method, device for executing these methods, program for executing these methods by computer and computer readable recording medium for recording its program
CN1856774A (en) * 2003-07-23 2006-11-01 熊秉纲 Digital media cartridge system and method
CN103310255A (en) * 2013-05-31 2013-09-18 曾芝渝 Color character encoding method and decoding method
CN106204671A (en) * 2016-07-18 2016-12-07 浪潮集团有限公司 A kind of encryption method based on coding groups Yu replacement
CN106372702A (en) * 2016-09-06 2017-02-01 深圳市欢创科技有限公司 Positioning identification and positioning method thereof
CN108229596A (en) * 2016-12-09 2018-06-29 北京大码技术有限公司 Combined two-dimension code, digital certificates carrier, generation, reading device and method
CN109791622A (en) * 2016-09-28 2019-05-21 3M创新有限公司 Retroreflective multiple dimensioned code

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11149551A (en) * 1997-11-18 1999-06-02 Seiko Epson Corp Device for encoding multi-color picture and method therefor and device for decoding multi-color picture and method therefor
WO2000060589A1 (en) * 1999-04-06 2000-10-12 Kwan Software Engineering, Inc. System and method for digitally marking a file with a removable mark
JP2002334297A (en) * 2001-05-08 2002-11-22 Ricoh Co Ltd Device and method for generating image, computer readable recording medium on which program for performing the method with computer is recorded, the program and code
JP2003178277A (en) * 2001-12-11 2003-06-27 Ricoh Co Ltd Two-dimensional code, two-dimensional code making method, two-dimensional code decoding method, device for executing these methods, program for executing these methods by computer and computer readable recording medium for recording its program
CN1856774A (en) * 2003-07-23 2006-11-01 熊秉纲 Digital media cartridge system and method
CN103310255A (en) * 2013-05-31 2013-09-18 曾芝渝 Color character encoding method and decoding method
CN106204671A (en) * 2016-07-18 2016-12-07 浪潮集团有限公司 A kind of encryption method based on coding groups Yu replacement
CN106372702A (en) * 2016-09-06 2017-02-01 深圳市欢创科技有限公司 Positioning identification and positioning method thereof
CN109791622A (en) * 2016-09-28 2019-05-21 3M创新有限公司 Retroreflective multiple dimensioned code
CN108229596A (en) * 2016-12-09 2018-06-29 北京大码技术有限公司 Combined two-dimension code, digital certificates carrier, generation, reading device and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866578A (en) * 2019-10-29 2020-03-06 上海交通大学 Two-dimensional texture code and encoding and decoding methods thereof
CN110866578B (en) * 2019-10-29 2021-07-06 上海交通大学 Two-dimensional texture code and encoding and decoding methods thereof

Also Published As

Publication number Publication date
CN110348554B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN101908125B (en) QR (Quick Response) bar code decoding chip and decoding method thereof
KR102057510B1 (en) Coding and Recognition Method of Dot Matrix QR Codes
CN102243712B (en) Generation method and system thereof for colored bar code, and analytic method and system thereof for colored bar code
CN101882210B (en) Matrix two-dimensional barcode decoding chip and decoding method thereof
CN108985066B (en) Intelligent contract security vulnerability detection method, device, terminal and storage medium
CN100481117C (en) A two dimensional bar code coding-decoding method
CN102129585B (en) Method and system for transmitting information, device for displaying bar code and device for reading bar code
CN105787897A (en) Processing method and device of fuzzy two-dimensional code image
CN107121072A (en) Two-dimentional absolute displacement encoder
CN109344268A (en) Method, electronic equipment and the computer readable storage medium of graphic data base write-in
CN110348554A (en) Digital information decoding method, device, electronic equipment and storage medium
CN100416603C (en) Method and device for decoding a position-coding pattern
CN101908128A (en) Aztec Code bar code decoding chip and decoding method thereof
CN110991589A (en) Two-dimensional code and encryption method thereof
CN102201882A (en) Blind identification method for coding parameters of linear block codes
CN109858588A (en) A kind of two dimensional code parallel generation method based on chaotic maps
CN101303742B (en) Microminiature Hanxin code and method for generating symbol thereof
CN115660540B (en) Cargo tracking method, cargo tracking device, computer equipment and storage medium
CN101001089B (en) Money search method and device in error correction decode
CN210110352U (en) ECC device for correcting multi-bit errors in NAND Flash
CN101833645B (en) Bar code decoding method based on code word combination
CN201927035U (en) Bar code decoding device and binaryzation device thereof
CN101908133A (en) Method and device for decoding bar code
CN109190091B (en) Encoding and decoding method and device
CN201927040U (en) Bar code decoding device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant