CN112488109B - Method and device for identifying livestock and poultry identification codes and computer readable storage medium - Google Patents

Method and device for identifying livestock and poultry identification codes and computer readable storage medium Download PDF

Info

Publication number
CN112488109B
CN112488109B CN202011462301.8A CN202011462301A CN112488109B CN 112488109 B CN112488109 B CN 112488109B CN 202011462301 A CN202011462301 A CN 202011462301A CN 112488109 B CN112488109 B CN 112488109B
Authority
CN
China
Prior art keywords
livestock
identification code
poultry
code
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011462301.8A
Other languages
Chinese (zh)
Other versions
CN112488109A (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.)
Shenzhen Yoohoomis Technology Co ltd
Original Assignee
Shenzhen Yoohoomis 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 Shenzhen Yoohoomis Technology Co ltd filed Critical Shenzhen Yoohoomis Technology Co ltd
Priority to CN202011462301.8A priority Critical patent/CN112488109B/en
Publication of CN112488109A publication Critical patent/CN112488109A/en
Application granted granted Critical
Publication of CN112488109B publication Critical patent/CN112488109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/63Scene text, e.g. street names
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • 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
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Manufacturing & Machinery (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a method and a device for identifying livestock and poultry identification codes and a computer readable storage medium, wherein the method comprises the following steps: acquiring a first livestock and poultry identification code to be identified; determining a corresponding first check code according to the first livestock and poultry identification code; acquiring a second livestock and poultry identification code according to the first check code; comparing the second livestock and poultry identification code with the first livestock and poultry identification code in data, and determining a comparison result; and determining the authenticity of the first livestock and poultry identification code according to the comparison result, and judging that the first livestock and poultry identification code is true when the second livestock and poultry identification code is matched with the first livestock and poultry identification code. The method improves the identification efficiency of the livestock and poultry identification codes.

Description

Method and device for identifying livestock and poultry identification codes and computer readable storage medium
Technical Field
The invention relates to the technical field of identification of livestock and poultry identification codes, in particular to a method and a device for identifying livestock and poultry identification codes and a computer readable storage medium.
Background
Along with the continuous promotion of the national livestock epidemic prevention system, the identification of the livestock identification possibly involves the problem of authenticity, and the prior art calls all sample livestock identification to identify, thereby causing low identification efficiency of the livestock identification code.
Disclosure of Invention
The embodiment of the invention aims to solve the technical problem that the identification efficiency of livestock and poultry identification codes is low due to the fact that the prior art calls all sample livestock and poultry identifications to carry out identification by providing an identification method and device of the livestock and poultry identification codes and a computer readable storage medium.
The embodiment of the invention provides a method for identifying livestock and poultry identification codes, which comprises the following steps:
acquiring a first livestock and poultry identification code to be identified;
determining a corresponding first check code according to the first livestock and poultry identification code;
acquiring a second livestock and poultry identification code according to the first check code;
comparing the second livestock and poultry identification code with the first livestock and poultry identification code in data, and determining a comparison result;
and determining the authenticity of the first livestock and poultry identification code according to the comparison result, and judging that the first livestock and poultry identification code is true when the second livestock and poultry identification code is matched with the first livestock and poultry identification code.
In one embodiment, the step of determining the corresponding first check code according to the first livestock and poultry identification code includes:
analyzing the first livestock and poultry identification code to obtain corresponding characters and character positions;
and calculating the first check code according to the character and the character position.
In one embodiment, the step of obtaining the second livestock and poultry identification code according to the first check code includes:
comparing the first check code with a second check code in a preset database;
and acquiring the second livestock and poultry identification code associated with the second check code matched with the first check code.
In an embodiment, before the step of obtaining the first livestock identification code to be identified, the method further includes:
acquiring a second livestock and poultry identification code to be input;
identifying basic information of the second livestock and poultry identification code, wherein the basic information comprises livestock and poultry types, regional information and identification code sequences;
calculating a second check code of the second livestock and poultry identification code;
and storing the second check code, the basic information and the second livestock and poultry identification code in a correlation manner to the preset database.
In an embodiment, after the step of identifying the basic information of the second livestock identification code, the method further includes:
automatically filling the basic information into a text box of an input interface and outputting prompt information for prompting a person to input;
and when receiving a confirmation instruction, executing the step of storing the second check code, the basic information and the second livestock and poultry identification code in association with the preset database.
In an embodiment, after the step of determining the authenticity of the first livestock identification code according to the comparison result, the method further includes:
and outputting prompt information of the true and false determination result.
In an embodiment, after the step of outputting the prompt information that the first sample livestock and poultry identifier is true, the method further includes:
and outputting prompt information for carrying out watch wearing and immunization on the farm user when the true and false determination result is true.
In an embodiment, the step of obtaining the first livestock identification code to be identified includes:
and scanning the image information of the first livestock and poultry identification code to obtain the first livestock and poultry identification code.
The embodiment of the invention also provides a device for identifying the livestock and poultry identification code, which comprises the following components: the livestock and poultry identification code identification device comprises a memory, a processor and a livestock and poultry identification code identification program which is stored in the memory and can run on the processor, wherein the steps of the livestock and poultry identification code identification method are realized when the processor executes the livestock and poultry identification code identification program.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium is stored with an identification program of the livestock and poultry identification code, and the identification program of the livestock and poultry identification code realizes the steps of the identification method of the livestock and poultry identification code when being executed by a processor.
In the technical scheme of the embodiment, the identification device of the livestock and poultry identification code obtains a first livestock and poultry identification code to be identified; determining a corresponding first check code according to the first livestock and poultry identification code; acquiring a second livestock and poultry identification code according to the first check code; comparing the second livestock and poultry identification code with the first livestock and poultry identification code in data, and determining a comparison result; and determining the authenticity of the first livestock and poultry identification code according to the comparison result, and judging that the first livestock and poultry identification code is true when the second livestock and poultry identification code is matched with the first livestock and poultry identification code. Because the check code of the livestock and poultry identification to be identified is determined and then compared with the predetermined sample check code, the data volume of the sample livestock and poultry identification which needs to be compared in the identification process is reduced, and therefore, the identification efficiency of the livestock and poultry identification code is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a hardware architecture of an identification device for livestock and poultry identification codes according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of the identification method of the livestock and poultry identification code of the invention;
fig. 3 is a schematic diagram of a refinement flow of step S20 of the second embodiment of the identification method for livestock and poultry according to the present invention;
fig. 4 is a schematic diagram of a refinement flow of step S30 of the third embodiment of the identification method for livestock and poultry according to the present invention;
FIG. 5 is a schematic flow chart of a third embodiment of the identification method of the livestock and poultry identification code of the present invention;
fig. 6 is a schematic diagram of a refinement flow before step S10 in the fourth embodiment of the identification method for livestock and poultry according to the present invention;
fig. 7 is a schematic flow chart of a fifth embodiment of the identification method of the livestock and poultry identification code of the present invention;
fig. 8 is a flowchart of a sixth embodiment of the identification method of the present invention;
fig. 9 is a flowchart of a sixth embodiment of the identification method for livestock and poultry according to the present invention.
Detailed Description
In order that the above-described aspects may be better understood, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is as follows: the identification device of the livestock and poultry identification code obtains a first livestock and poultry identification code to be identified; determining a corresponding first check code according to the first livestock and poultry identification code; acquiring a second livestock and poultry identification code according to the first check code; comparing the second livestock and poultry identification code with the first livestock and poultry identification code in data, and determining a comparison result; and determining the authenticity of the first livestock and poultry identification code according to the comparison result, and judging that the first livestock and poultry identification code is true when the second livestock and poultry identification code is matched with the first livestock and poultry identification code.
Because the check code of the livestock and poultry identification to be identified is determined and then compared with the predetermined sample check code, the data volume of the sample livestock and poultry identification which needs to be compared in the identification process is reduced, and therefore, the identification efficiency of the livestock and poultry identification code is improved.
As an implementation manner, the identification device of the livestock and poultry identification code can be as shown in fig. 1.
The embodiment of the invention relates to a device for identifying livestock and poultry identification codes, which comprises: a processor 101, such as a CPU, a memory 102, and a communication bus 103. Wherein the communication bus 103 is used to enable connected communication among the components.
The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. As shown in fig. 1, a detection program may be included in a memory 103 as a computer storage medium; and the processor 101 may be configured to call the detection program stored in the memory 102 and perform the following operations:
acquiring a first livestock and poultry identification code to be identified;
determining a corresponding first check code according to the first livestock and poultry identification code;
acquiring a second livestock and poultry identification code according to the first check code;
comparing the second livestock and poultry identification code with the first livestock and poultry identification code in data, and determining a comparison result;
and determining the authenticity of the first livestock and poultry identification code according to the comparison result, and judging that the first livestock and poultry identification code is true when the second livestock and poultry identification code is matched with the first livestock and poultry identification code.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
analyzing the first livestock and poultry identification code to obtain corresponding characters and character positions;
and calculating the first check code according to the character and the character position.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
comparing the first check code with a second check code in a preset database;
and acquiring the second livestock and poultry identification code associated with the second check code matched with the first check code.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
acquiring a second livestock and poultry identification code to be input;
identifying basic information of the second livestock and poultry identification code, wherein the basic information comprises livestock and poultry types, regional information and identification code sequences;
calculating a second check code of the second livestock and poultry identification code;
and storing the second check code, the basic information and the second livestock and poultry identification code in a correlation manner to the preset database.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
automatically filling the basic information into a text box of an input interface and outputting prompt information for prompting a person to input;
and when receiving a confirmation instruction, executing the step of storing the second check code, the basic information and the second livestock and poultry identification code in association with the preset database.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and outputting prompt information of the true and false determination result.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and outputting prompt information for carrying out watch wearing and immunization on the farm user when the true and false determination result is true.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and scanning the image information of the first livestock and poultry identification code to obtain the first livestock and poultry identification code.
In the technical scheme of the embodiment, the verification code of the livestock and poultry identification to be identified is determined by the identification device of the livestock and poultry identification, and is compared with the predetermined sample verification code, so that the data volume of the sample livestock and poultry identification which needs to be compared in identification is reduced, and the identification efficiency of the livestock and poultry identification code is improved.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of the identification method of the livestock and poultry identification code of the present invention, the method comprises the following steps:
step S10, a first livestock and poultry identification code to be identified is obtained.
In this embodiment, the encoding format of the first livestock and poultry identification code is as follows: (seed code) - × × × × (county administrative district code) - × × × (identification sequence number).
Step S20, determining a corresponding first check code according to the first livestock and poultry identification code.
In this embodiment, the check code is calculated according to the first livestock identification code, and preferably, the generation formula of the check code is as follows:
in the above formula: a represents a character value at the i position; b represents the character value at the position to the left of a, i.e., the character value at the position of i+1; i represents a character position index value from the right; m represents a character number; c represents the two digits in front of the administrative division code of the management department corresponding to the province level, and the administrative division code is modulus. Further, since the modulus is composed of two digits, the remainder of dividing any number by the modulus is at most 2 digits, and if only 1 digit is obtained, the check bit is automatically added to zero before being generated, for example: and obtaining a remainder of 6 through the first livestock and poultry identification code and the formula, and automatically adding zero to obtain 06.
Step S30, obtaining a second livestock and poultry identification code according to the first check code.
In this embodiment, the second livestock identification code is stored in a preset livestock identification code database, the second livestock identification codes in the database are simultaneously associated and stored with check codes, the identification device of the livestock identification code can compare the first check code with the second check code in the livestock identification code database, and further according to the second livestock identification code corresponding to the obtained corresponding second check code, it is easy to understand that one check code may have a plurality of corresponding second livestock identification codes in the livestock identification code database because the check code has only two digits.
And S40, comparing the second livestock and poultry identification code with the first livestock and poultry identification code, and determining a comparison result.
In this embodiment, the second livestock identification code determined by the first check code is compared with the first livestock identification code to determine whether the comparison result is consistent.
And S50, determining the authenticity of the first livestock and poultry identification code according to the comparison result, and judging that the first livestock and poultry identification code is true when the second livestock and poultry identification code is matched with the first livestock and poultry identification code.
In this embodiment, the matching result may be code consistent as well as code inconsistent.
In the technical scheme of the embodiment, the verification code of the livestock and poultry identification to be identified is determined by the identification device of the livestock and poultry identification, and is compared with the predetermined sample verification code, so that the data volume of the sample livestock and poultry identification which needs to be compared in identification is reduced, and the identification efficiency of the livestock and poultry identification code is improved.
Referring to fig. 3, fig. 3 is a second embodiment of the identification method for livestock and poultry identification codes according to the present invention, based on the first embodiment, step S20 includes:
and S21, analyzing the first livestock and poultry identification code to obtain corresponding characters and character positions.
And S22, calculating the first check code according to the character and the character position.
In this embodiment, the identification device of the livestock and poultry identifier segments the first livestock and poultry identifier code to obtain the size and the corresponding position of each numerical value of the code, and the numerical value and the corresponding position are substituted into the formula to calculate, so as to obtain the first check code.
In this embodiment, the identification device for the livestock and poultry identification divides the first livestock and poultry identification code, determines the corresponding character and the character position, and inputs the division result into the above formula, so that the generation of the first check code can be realized.
Referring to fig. 4, fig. 4 is a third embodiment of the identification method for livestock and poultry identification codes according to the present invention, based on the first or second embodiment, step S30 includes:
step S31, comparing the first check code with a second check code in a preset database.
Step S32, obtaining the second livestock and poultry identification code associated with the second check code matched with the first check code.
In this embodiment, the preset database is a fowl identification code database, and the second fowl identification code is stored in the fowl identification code database, and specifically, for the obtaining manner of the second fowl identification code, the second check code may be queried according to the first check code, and the second fowl identification code associated in the database may be pulled according to the queried second check code.
In the technical scheme of the embodiment, the identification device of the livestock and poultry identification only needs to obtain the second livestock and poultry identification code through the first check code compared with the second check code with smaller data quantity, and compared with the process of traversing the second livestock and poultry identification code through the first livestock and poultry identification code directly, the efficiency is improved, and meanwhile the waste of calculation force is reduced.
Referring to fig. 5, fig. 5 is a fourth embodiment of the identification method for livestock and poultry identification codes according to the present invention, based on the third embodiment, before step S10, the method further includes:
step S60, obtaining a second livestock and poultry identification code to be input.
Step S70, identifying basic information of the second livestock and poultry identification code, wherein the basic information comprises livestock and poultry types, region information and identification code sequence.
Step S80, calculating a second check code of the second livestock and poultry identification code.
Step S90, associating and storing the second check code, the basic information, and the second livestock and poultry identification code to the preset database.
In this embodiment, when the identification device of the livestock and poultry identifier generates the preset database, the identification device of the livestock and poultry identifier code may automatically fill in the corresponding basic information and the check code through the acquired second livestock and poultry identifier code and store the basic information and the check code in association with each other, specifically, for example: when the identification device of the livestock and poultry identification codes is in an input mode, analyzing the livestock and poultry type, region information and identification code sequence corresponding to each section of the second livestock and poultry identification codes respectively, then calculating a second check code according to the formula, and then carrying out association storage on the obtained information and the second livestock and poultry identification codes to generate a preset database.
In the technical scheme of the embodiment, with the continuous promotion of the national livestock epidemic prevention system, government personnel enter data into rural farmers or large-scale farms, and relevant information of livestock owners of the farmers needs to be filled in each time of entering, and the implementation can automatically identify the basic information of the second livestock identification codes, so that the entering efficiency of the livestock identification codes is improved.
Referring to fig. 6, fig. 6 is a fifth embodiment of the identification method for livestock and poultry identification codes according to the present invention, after step S80, the method further includes:
and step S100, automatically filling the basic information into a text box of an input interface and outputting prompt information for prompting a person to input.
Step S110, when receiving the confirmation instruction, executing the step of associating and storing the second check code, the basic information, and the second livestock identification code to the preset database.
In this embodiment, after the basic information of the second livestock and poultry identification code to be input is obtained, a prompt message may be generated on the text box of the display interface, so that the user knows, and further, the user may be queried whether to modify or confirm.
In the technical scheme of the embodiment, after the identification device of the livestock and poultry identification obtains the relevant basic information, the corresponding prompt information is output, so that the user experience can be improved.
Referring to fig. 7, fig. 7 is a sixth embodiment of the identification method for livestock and poultry identification codes according to the present invention, after step S50, the method further includes:
step S120, outputting prompt information of the true and false determination result.
In the technical scheme of the embodiment, after the authenticity of the first livestock and poultry identification code is identified, prompt information is timely output, so that a user can timely know the current identification condition.
Referring to fig. 8, fig. 8 is a seventh embodiment of the identification method for livestock and poultry identification codes according to the present invention, after step S120, the method further includes:
and step S130, outputting prompt information for wearing a watch and immunizing the farm user when the true and false determination result is true.
In this embodiment, after the true or false result is obtained, the subsequent execution flow may be output.
In the technical scheme of the embodiment, after the authenticity of the first livestock and poultry identification code is identified, the flow guide information is timely output, so that the method is friendly to users, such as novice users, and the user experience is improved.
Referring to fig. 9, fig. 9 is an eighth embodiment of the identification method for livestock and poultry identification codes according to the present invention, and step S10 includes:
step S11, scanning the image information of the first livestock and poultry identification code to obtain the first livestock and poultry identification code.
In this embodiment, the acquiring manner of the first livestock and poultry identification code may be image identification, for example: and scanning the corresponding first livestock and poultry identification code image.
In the technical scheme of the embodiment, the identification device of the livestock and poultry identification obtains the first livestock and poultry identification code through scanning the image, and compared with manual input, the identification efficiency of the livestock and poultry identification code can be improved.
Alternatively, the technical problem addressed by the present application is how to generate and provide a livestock farming code that represents both a farm province and a code segment that includes province verification. The method is used for simplifying the operation flow of operators, and can safely acquire the identity information of the farmers, so that a generation algorithm of livestock breeding codes is researched.
In order to achieve the above object, an embodiment of the present invention further provides a device for identifying a livestock identification code, where the device for identifying a livestock identification code includes: the livestock and poultry identification code identification device comprises a memory, a processor and a livestock and poultry identification code identification program which is stored in the memory and can run on the processor, wherein the steps of the livestock and poultry identification code identification method are realized when the processor executes the livestock and poultry identification code identification program.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium having stored thereon an identification program of a livestock identification code, which when executed by a processor, implements the steps of the identification method of a livestock identification code as described above.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or identification program product for a livestock identification code. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of an identification product program of livestock identification code embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and program products for identifying livestock and poultry identification codes according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagram, and combinations of flows and/or blocks in the flowchart and/or block diagram, can be implemented by identifying program instructions of the livestock identification code. The identifying program instructions of these beasts and birds identification codes can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The identifying program instructions of these beasts and birds identification codes can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The identifying program instructions of the beasts and birds identification code may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. The identification method of the livestock and poultry identification code is characterized by comprising the following steps of:
acquiring a first livestock and poultry identification code to be identified;
determining a corresponding first check code according to the first livestock and poultry identification code, wherein the first livestock and poultry identification code is in a coding form of (category code) - ×× (county administrative area code) - ×× (identification sequence number), the first check code is obtained by calculating according to the first livestock and poultry identification code through a formula, and the first check code is a two-digit number;
comparing the first check code with a second check code in a preset database;
acquiring a second livestock and poultry identification code associated with the second check code matched with the first check code;
comparing the second livestock and poultry identification code with the first livestock and poultry identification code in data, and determining a comparison result;
and determining the authenticity of the first livestock and poultry identification code according to the comparison result, and judging that the first livestock and poultry identification code is true when the second livestock and poultry identification code is matched with the first livestock and poultry identification code.
2. The method of claim 1, wherein the step of determining the corresponding first check code from the first livestock identification code comprises:
analyzing the first livestock and poultry identification code to obtain corresponding characters and character positions;
and calculating the first check code according to the character and the character position.
3. The method of claim 1, wherein prior to the step of obtaining the first beasts and birds identification code to be identified, the method further comprises:
acquiring a second livestock and poultry identification code to be input;
identifying basic information of the second livestock and poultry identification code, wherein the basic information comprises livestock and poultry types, regional information and identification code sequences;
calculating a second check code of the second livestock and poultry identification code;
and storing the second check code, the basic information and the second livestock and poultry identification code in a correlation manner to the preset database.
4. The method of claim 3, wherein after the step of identifying the basic information of the second livestock identification code, further comprising:
automatically filling the basic information into a text box of an input interface and outputting prompt information for prompting to confirm input;
and when receiving a confirmation instruction, executing the step of storing the second check code, the basic information and the second livestock and poultry identification code in association with the preset database.
5. The method of claim 3, wherein after the step of determining the authenticity of the first livestock identification code according to the comparison result, further comprising:
and outputting prompt information of the true and false determination result.
6. The method of claim 5, wherein after the step of outputting the hint information that the first sample beasts and birds are identified as true, the method further comprises:
and outputting prompt information for carrying out watch wearing and immunization on the farm user when the true and false determination result is true.
7. The method according to any one of claims 1 to 6, wherein the step of obtaining a first livestock identification code to be identified comprises:
and scanning the image information of the first livestock and poultry identification code to obtain the first livestock and poultry identification code.
8. The utility model provides a beasts and birds identification code's recognition device which characterized in that, beasts and birds identification code's recognition device includes: the method for identifying the livestock and poultry identification codes comprises a memory, a processor and an identification program of the livestock and poultry identification codes, wherein the identification program is stored in the memory and can be run on the processor, and the processor realizes the steps of the method for identifying the livestock and poultry identification codes according to any one of claims 1 to 7 when executing the identification program of the livestock and poultry identification codes.
9. A computer-readable storage medium, wherein a program for identifying a livestock and poultry identification code is stored on the computer-readable storage medium, and the program for identifying a livestock and poultry identification code, when executed by a processor, implements the steps of the method for identifying a livestock and poultry identification code according to any one of claims 1 to 7.
CN202011462301.8A 2020-12-10 2020-12-10 Method and device for identifying livestock and poultry identification codes and computer readable storage medium Active CN112488109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011462301.8A CN112488109B (en) 2020-12-10 2020-12-10 Method and device for identifying livestock and poultry identification codes and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011462301.8A CN112488109B (en) 2020-12-10 2020-12-10 Method and device for identifying livestock and poultry identification codes and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112488109A CN112488109A (en) 2021-03-12
CN112488109B true CN112488109B (en) 2024-03-29

Family

ID=74916859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011462301.8A Active CN112488109B (en) 2020-12-10 2020-12-10 Method and device for identifying livestock and poultry identification codes and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112488109B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06327369A (en) * 1993-05-24 1994-11-29 Chikusanyou Denshi Gijutsu Kenkyu Kumiai Method for livestock management
CN102760263A (en) * 2011-04-27 2012-10-31 梁剑豪 Method and device for monitoring commodity identity and credit in commodity circulation based on Internet of things
CN106559214A (en) * 2015-09-25 2017-04-05 比亚迪股份有限公司 For changing terminal, server and the corresponding method of difference of vehicle part
CN106815734A (en) * 2015-11-27 2017-06-09 方正国际软件(北京)有限公司 A kind of information transferring method and device
CN108100874A (en) * 2017-12-19 2018-06-01 中交机电工程局有限公司 A kind of harbor automatic loading and unloading capacity
CN108596634A (en) * 2018-04-04 2018-09-28 沈阳东软医疗系统有限公司 A kind of detection method and system of genuine component
CN108763898A (en) * 2018-05-22 2018-11-06 李招兵 A kind of information processing method and system
CN109034837A (en) * 2018-06-29 2018-12-18 山东华夏维康农牧科技有限公司 Multi-code is traced to the source anti-fake method and system
CN109493087A (en) * 2018-10-30 2019-03-19 珠海市时杰信息科技有限公司 A kind of method, computer installation and computer readable storage medium based on two dimensional code examination Immovable Property Registration information
CN110176990A (en) * 2019-05-15 2019-08-27 百度在线网络技术(北京)有限公司 Vehicle assembly replaces recognition methods, device, computer equipment and storage medium
CN110413711A (en) * 2018-08-14 2019-11-05 腾讯大地通途(北京)科技有限公司 A kind of variance data acquisition methods and its storage medium
CN110929650A (en) * 2019-11-25 2020-03-27 支付宝(杭州)信息技术有限公司 Method and device for identifying livestock and poultry

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06327369A (en) * 1993-05-24 1994-11-29 Chikusanyou Denshi Gijutsu Kenkyu Kumiai Method for livestock management
CN102760263A (en) * 2011-04-27 2012-10-31 梁剑豪 Method and device for monitoring commodity identity and credit in commodity circulation based on Internet of things
CN106559214A (en) * 2015-09-25 2017-04-05 比亚迪股份有限公司 For changing terminal, server and the corresponding method of difference of vehicle part
CN106815734A (en) * 2015-11-27 2017-06-09 方正国际软件(北京)有限公司 A kind of information transferring method and device
CN108100874A (en) * 2017-12-19 2018-06-01 中交机电工程局有限公司 A kind of harbor automatic loading and unloading capacity
CN108596634A (en) * 2018-04-04 2018-09-28 沈阳东软医疗系统有限公司 A kind of detection method and system of genuine component
CN108763898A (en) * 2018-05-22 2018-11-06 李招兵 A kind of information processing method and system
CN109034837A (en) * 2018-06-29 2018-12-18 山东华夏维康农牧科技有限公司 Multi-code is traced to the source anti-fake method and system
CN110413711A (en) * 2018-08-14 2019-11-05 腾讯大地通途(北京)科技有限公司 A kind of variance data acquisition methods and its storage medium
CN109493087A (en) * 2018-10-30 2019-03-19 珠海市时杰信息科技有限公司 A kind of method, computer installation and computer readable storage medium based on two dimensional code examination Immovable Property Registration information
CN110176990A (en) * 2019-05-15 2019-08-27 百度在线网络技术(北京)有限公司 Vehicle assembly replaces recognition methods, device, computer equipment and storage medium
CN110929650A (en) * 2019-11-25 2020-03-27 支付宝(杭州)信息技术有限公司 Method and device for identifying livestock and poultry

Also Published As

Publication number Publication date
CN112488109A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
WO2018000998A1 (en) Interface generation method, apparatus and system
CN110705214B (en) Automatic coding method and device
CN109542997B (en) Motion trail display method and device
CN106293891B (en) Multidimensional investment index monitoring method
CN107291745B (en) Data index management method and device
CN116630465B (en) Model training and image generating method and device
CN103514284B (en) Data display system and data display method
CN110852076B (en) Method and device for automatic disease code conversion
CN109492703A (en) A kind of recognition methods of gait, system and terminal device
CN116049345A (en) Document-level event joint extraction method and system based on bidirectional event complete graph
CN112488109B (en) Method and device for identifying livestock and poultry identification codes and computer readable storage medium
CN110609618A (en) Man-machine conversation method and device, computer equipment and storage medium
CN117319699B (en) Live video generation method and device based on intelligent digital human model
CN110489131B (en) Gray level user selection method and device
CN116798053A (en) Icon generation method and device
CN109033078B (en) The recognition methods of sentence classification and device, storage medium, processor
CN110955712A (en) Development API processing method and device based on multiple data sources
CN116433934A (en) Multi-mode pre-training method for generating CT image representation and image report
CN108874994A (en) A kind of piecemeal reads the method, apparatus and computer storage medium of data
CN114493701A (en) User grouping method and device
CN113434680A (en) User intention analysis method and device based on seat data and electronic equipment
CN112433710A (en) Block chain intelligent contract generation method, equipment and storage medium
CN111414452A (en) Search word matching method and device, electronic equipment and readable storage medium
CN112766779A (en) Information processing method, computer device, and storage medium
CN110704696A (en) Data standardization method and device, electronic equipment and readable storage medium

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