TWI775077B - Feedstock identification method and device - Google Patents
Feedstock identification method and device Download PDFInfo
- Publication number
- TWI775077B TWI775077B TW109115326A TW109115326A TWI775077B TW I775077 B TWI775077 B TW I775077B TW 109115326 A TW109115326 A TW 109115326A TW 109115326 A TW109115326 A TW 109115326A TW I775077 B TWI775077 B TW I775077B
- Authority
- TW
- Taiwan
- Prior art keywords
- identity
- coding sequence
- identified
- information
- biometric
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M7/70—Type of the data to be coded, other than image and sound
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Collating Specific Patterns (AREA)
- Making Paper Articles (AREA)
- Electrical Discharge Machining, Electrochemical Machining, And Combined Machining (AREA)
Abstract
本說明書實施例提供豢養物身份識別方法以及裝置,其中所述豢養物身份識別方法包括:獲取待識別豢養物的第一生物特徵圖像以及第二生物特徵圖像,將第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像進行相似度計算,將計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像並在資料庫中讀取包含生物特徵編碼段的身份編碼序列,其中,所述生物特徵編碼段與目標圖像對應;提取第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對;根據比對結果以及所述相似度計算結果查詢目標身份編碼序列以確定待識別豢養物的身份識別碼。The embodiments of the present specification provide a method and device for identification of livestock animals, wherein the method for identification of livestock animals includes: acquiring a first biometric image and a second biometric image of the livestock to be identified, and converting the first biometric image Perform similarity calculation with the benchmark biometric images of multiple animals in the database, take the benchmark biometric image that meets the preset conditions in the calculation result as the target image, and read the biometric code segment in the database. The identity coding sequence, wherein the biometric coding segment corresponds to the target image; extract the biometric information to be identified of the second biometric image, and map the biometric information to be identified with the category coding segment in the identity coding sequence. The reference biometric information is compared; according to the comparison result and the similarity calculation result, the target identity coding sequence is queried to determine the identity code of the animal to be identified.
Description
本說明書實施例涉及身份識別技術領域,特別涉及一種豢養物身份識別方法。本說明書一個或者多個實施例同時涉及一種豢養物身份識別裝置,一種計算設備,以及一種計算機可讀儲存媒體。 The embodiments of this specification relate to the technical field of identification, and in particular, to a method for identification of livestock animals. One or more embodiments of the present specification simultaneously relate to a feedstock identification device, a computing device, and a computer-readable storage medium.
隨著社會發展節奏的加快,作為社會發展參與者的每個人面臨的工作壓力、生活壓力也越來越大,為充實自己的生活又不會給自己的生活帶來太大的負擔,越來越多的人喜歡養寵物,在飼養寵物的同時讓自己變得充實,也對自己的身心健康起到了很大的幫助,尤其是對於一些子女在外地的奮鬥的獨居老人,有寵物的陪伴會讓老人的生活更加開心,並且對於一些訓練有素的寵物,在老人發生一些意外,例如生病的時候,寵物還會起到報警的作用,寵物對於主人來說相當於家庭的一份子,是非常重要的存在,因此產生了很多面向寵物的服務。 With the acceleration of the pace of social development, the work pressure and life pressure faced by everyone as a participant in social development are also increasing. More and more people like to keep pets. Keeping pets will enrich themselves and help their physical and mental health a lot, especially for some elderly people who live alone with their children who are struggling in other places, and have pets to accompany them. It will make the life of the elderly happier, and for some well-trained pets, when the elderly have some accidents, such as sickness, the pet will also play a role in the alarm. The pet is equivalent to a family member for the owner. A very important presence, so a lot of pet-oriented services have arisen.
有鑑於此,本說明書施例提供了一種豢養物身份識別 方法。本說明書一個或者多個實施例同時涉及一種豢養物身份識別裝置,一種計算設備,以及一種計算機可讀儲存媒體,以解決現有技術中存在的技術缺陷。 In view of this, the embodiments of the present specification provide a kind of animal identification method. One or more embodiments of the present specification simultaneously relate to a feeder identification device, a computing device, and a computer-readable storage medium, so as to solve the technical defects existing in the prior art.
根據本說明書實施例的第一態樣,提供了一種豢養物身份識別方法,包括:獲取待識別豢養物的第一生物特徵圖像以及第二生物特徵圖像,並計算所述第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像的相似度;將相似度計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列;提取所述第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對;根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼。 According to a first aspect of the embodiments of the present specification, there is provided a method for identifying livestock animals, comprising: acquiring a first biometric image and a second biometric image of the livestock to be identified, and calculating the first biometric characteristics The similarity between the image and the benchmark biometric images of multiple animals in the database; the benchmark biometric image that satisfies the preset conditions in the similarity calculation result is used as the target image, and the reading contains the same as the target image. The identity coding sequence of the corresponding biometric coding segment; extract the biometric information to be identified of the second biometric image, and map the biometric information to be identified with the reference biometric feature of the category coding segment in the identity coding sequence The information is compared; according to the number of identically aligned coding segments contained in the identity coding sequence and the similarity calculation result, the target identity coding sequence is queried, and the target identity coding sequence is used as the identity coding sequence of the animal to be identified. identification code.
可選地,所述待識別生物特徵資訊包括待識別種類資訊,所述類別編碼段包括種類編碼段;相應的,所述將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對,包括:在資料庫中讀取預先根據各個基準生物特徵資訊與類 別編碼段的映射關係構建的映射關係表;在所述映射關係表中查詢所述種類編碼段映射的基準種類資訊;將所述待識別種類資訊與所述種類編碼段映射的基準種類資訊進行比對。 Optionally, the biometric information to be identified includes category information to be identified, and the category encoding segment includes a category encoding segment; correspondingly, the biometric information to be identified and the category encoding segment in the identity encoding sequence The mapped reference biometric information is compared, including: reading in the database in advance according to each reference biometric information and class The mapping relationship table constructed by the mapping relationship of different coding segments; query the reference type information mapped by the type coding segment in the mapping relationship table; compare the type information to be identified with the reference type information mapped by the type coding segment Comparison.
可選地,所述待識別生物特徵資訊還包括待識別品種資訊,所述類別編碼段還包括品種編碼段;相應的,所述將所述待識別種類資訊與所述種類編碼段映射的基準種類資訊進行比對子步驟執行之後,還包括:根據比對結果篩選包含比對一致的種類編碼段的身份編碼序列作為第一身份編碼序列集合;在所述映射關係表中查詢所述第一身份編碼序列集合中包含的各個身份編碼序列中品種編碼段映射的基準品種資訊;將所述待識別品種資訊與所述品種編碼段映射的基準品種資訊進行比對。 Optionally, the biometric information to be identified further includes category information to be identified, and the category encoding segment further includes a category encoding section; correspondingly, the reference for mapping the category information to be identified and the category encoding section After the sub-step of aligning the category information is executed, it also includes: screening the identity coding sequences including the category coding segments that are consistent with the alignment as a first identity coding sequence set according to the comparison result; querying the first identity coding sequence in the mapping relationship table The reference variety information mapped by the variety coding segment in each identity coding sequence included in the identity coding sequence set; and the to-be-identified variety information is compared with the reference variety information mapped by the variety coding segment.
可選地,所述待識別生物特徵資訊還包括待識別性別資訊,所述類別編碼段還包括性別編碼段;相應的,所述將所述待識別品種資訊與所述品種編碼段映射的基準品種資訊進行比對步驟執行之後,還包括:根據比對結果在所述第一身份編碼序列集合中篩選包含比對一致的品種編碼段的身份編碼序列作為第二身份編碼序列集合; 在所述映射關係表中查詢所述第二身份編碼序列集合中包含的各個身份編碼序列中性別編碼段映射的基準性別資訊;將所述待識別性別資訊與所述性別編碼段映射的基準性別資訊進行比對。 Optionally, the biometric information to be identified further includes gender information to be identified, and the category coding segment further includes a gender coding segment; correspondingly, the reference for mapping the species information to be identified and the species coding segment After the step of aligning the variety information is performed, it also includes: screening, according to the comparison result, the identity coding sequences comprising the aligned variety coding segments in the first set of identity coding sequences as the second set of identity coding sequences; Query the reference gender information of the gender coding segment mapped in each identity coding sequence included in the second identity coding sequence set in the mapping relationship table; map the gender information to be identified with the reference gender of the gender coding segment information to compare.
可選地,所述根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼,包括:根據所述第二身份編碼序列集合中各個身份編碼序列包含的比對一致的編碼段數以及所述相似度計算結果,在所述第二身份編碼序列集合中查詢所述目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼。 Optionally, the target identity coding sequence is queried according to the number of identically aligned coding segments contained in the identity coding sequence and the similarity calculation result, and the target identity coding sequence is used as the animal to be identified. The identification code includes: according to the number of aligned coding segments contained in each identity encoding sequence in the second identity encoding sequence set and the similarity calculation result, query the second identity encoding sequence set in the second identity encoding sequence set. The target identity coding sequence is used as the identity code of the animal to be identified.
可選地,所述根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,包括:將所述身份編碼序列中類別編碼段映射的與所述待識別生物特徵資訊比對一致的生物特徵資訊的數目確定為所述身份編碼序列中包含的比對一致的編碼段數;篩選包含比對一致的編碼段數最多的身份編碼序列並基於篩選結果構建第三身份編碼序列集合;判斷所述第三身份編碼序列集合中身份編碼序列個數是否等於1; 若是,則將所述第三身份編碼序列集合中的身份編碼序列確定為所述目標身份編碼序列;若否,則將所述第三身份編碼序列集合中包含與所述第一生物特徵圖像的相似度最高的目標圖像對應的生物特徵編碼段的身份編碼序列確定為所述目標身份編碼序列。 Optionally, the querying the target identity coding sequence according to the number of aligned coding segments contained in the identity coding sequence and the similarity calculation result includes: mapping the category coding segment in the identity coding sequence with the The number of biometric information whose biometric information to be identified is aligned is determined as the number of aligned coding segments contained in the identity coding sequence; the identity coding sequence containing the most aligned coding segments is screened and based on The screening results construct a third identity coding sequence set; determine whether the number of identity coding sequences in the third identity coding sequence set is equal to 1; If so, determine the identity coding sequence in the third identity coding sequence set as the target identity coding sequence; The identity coding sequence of the biometric coding segment corresponding to the target image with the highest similarity is determined as the target identity coding sequence.
可選地,所述獲取待識別豢養物的第一生物特徵圖像以及第二生物特徵圖像,並計算所述第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像的相似度步驟執行之後,所述將相似度計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列步驟執行之前,還包括:判斷所述相似度計算結果中是否存在任意一個豢養物的基準生物特徵圖像與所述第一生物特徵圖像的相似度滿足預設相似度閾值;若否,則執行所述將相似度計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列的步驟。 Optionally, obtaining the first biometric image and the second biometric image of the animal to be identified, and calculating the first biometric image and the benchmark biometric images of the multiple animals in the database. After the similarity step is performed, the reference biometric image that meets the preset conditions in the similarity calculation result is used as the target image, and the identity coding sequence step that contains the biometric coding segment corresponding to the target image is read. Before executing, it also includes: judging whether the similarity between the reference biometric image of any animal and the first biometric image meets the preset similarity threshold in the similarity calculation result; if not, executing The step of taking the reference biometric image that satisfies the preset condition in the similarity calculation result as the target image, and reading the identity code sequence including the biometric code segment corresponding to the target image.
可選地,所述身份編碼序列還包括屬性編碼段;相應的,所述提取所述第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對步驟執行之後,所述根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序 列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼步驟執行之前,還包括:根據比對結果篩選包含比對一致的類別編碼段的身份編碼序列作為第四身份編碼序列集合;提取所述第一生物特徵圖像或所述第二生物特徵圖像的待識別屬性資訊,將所述待識別屬性資訊與所述第四身份編碼序列集合中各個身份編碼序列包含的屬性編碼段映射的基準屬性資訊進行比對。 Optionally, the identity coding sequence further includes an attribute coding segment; correspondingly, extracting the biometric information to be identified from the second biometric image, and combining the biometric information to be identified with the identity coding sequence. After the step of comparing the benchmark biometric information mapped by the middle class coding segment is performed, the target identity coding sequence is queried according to the number of aligned coding segments contained in the identity coding sequence and the similarity calculation result. before performing the step of using the target identity coding sequence as the identity code of the animal to be identified, further comprising: according to the comparison result, screening the identity coding sequence comprising the consistent category coding segment as the fourth identity code sequence set; extract the attribute information to be identified of the first biometric image or the second biometric image, and compare the attribute information to be identified with the information contained in each identity coding sequence in the fourth identity coding sequence set. The benchmark attribute information of the attribute code segment mapping is compared.
可選地,所述待識別屬性資訊包括待識別年齡資訊,所述屬性編碼段包括年齡編碼段;相應的,所述提取所述第一生物特徵圖像或所述第二生物特徵圖像的待識別屬性資訊,將所述待識別屬性資訊與所述第四身份編碼序列集合中各個身份編碼序列包含的屬性編碼段映射的基準屬性資訊進行比對,包括:將所述第一生物特徵圖像或所述第二生物特徵圖像輸入預先訓練的年齡識別模型,獲取輸出的年齡識別結果作為所述待識別年齡資訊;判斷所述年齡編碼段映射的基準年齡資訊是否屬於所述待識別年齡資訊中包含的年齡區間;若是,則確定將所述待識別年齡資訊與所述年齡編碼段映射的基準年齡資訊進行比對的比對結果為比對一致。 Optionally, the attribute information to be identified includes age information to be identified, and the attribute encoding segment includes an age encoding segment; correspondingly, the extraction of the first biometric image or the second biometric image is performed. To-be-identified attribute information, comparing the to-be-identified attribute information with the reference attribute information mapped by the attribute coding segments included in each identity coding sequence in the fourth set of identity coding sequences, including: comparing the first biometric map Input the pre-trained age recognition model as or the second biometric image, and obtain the output age recognition result as the age information to be recognized; determine whether the reference age information mapped by the age coding segment belongs to the age to be recognized The age range included in the information; if yes, it is determined that the comparison result of comparing the age information to be identified with the reference age information mapped by the age coding segment is consistent.
可選地,所述待識別屬性資訊還包括待識別位置屬性資訊,所述屬性編碼段包括位置編碼段;相應的,所述確定將所述待識別年齡資訊與所述年齡 編碼段映射的基準年齡資訊進行比對的比對結果為比對一致步驟執行之後,還包括:根據比對結果篩選包含比對一致的年齡編碼段的身份編碼序列作為第五身份編碼序列集合;檢測所述第一生物特徵圖像或所述第二生物特徵圖像中是否攜帶位置屬性資訊;若是,則提取所述位置屬性資訊作為所述待識別位置屬性資訊,將所述待識別位置屬性資訊與所述第五身份編碼序列集合中各個身份編碼序列包含的位置編碼段映射的基準位置屬性資訊進行比對。 Optionally, the to-be-identified attribute information further includes to-be-identified location attribute information, and the attribute encoding segment includes a location encoding segment; correspondingly, the determining combines the to-be-identified age information with the age. The comparison result of the comparison of the reference age information of the coding segment mapping is that after the step of comparison is consistent, it also includes: screening the identity coding sequence including the age coding segment that is consistent with the comparison as the fifth identity coding sequence set according to the comparison result; Detect whether the first biometric image or the second biometric image carries location attribute information; if so, extract the location attribute information as the to-be-identified location attribute information, and use the to-be-identified location attribute information The information is compared with the reference position attribute information of the position coding segment mapping included in each identity coding sequence in the fifth set of identity coding sequences.
可選地,所述根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼,包括:根據所述第五身份編碼序列集合中各個身份編碼序列包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼。 Optionally, the target identity coding sequence is queried according to the number of identically aligned coding segments contained in the identity coding sequence and the similarity calculation result, and the target identity coding sequence is used as the animal to be identified. The identification code, including: according to the number of identically aligned coding segments contained in each identity coding sequence in the fifth set of identity coding sequences and the similarity calculation result, query the target identity coding sequence, and encode the target identity The sequence is used as the identification code of the animal to be identified.
根據本說明書實施例的第二態樣,提供了一種豢養物身份識別裝置,包括:相似度計算模組,被配置為獲取待識別豢養物的第一生物特徵圖像以及第二生物特徵圖像,並計算所述第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像的相似度; 讀取模組,被配置為將相似度計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列;比對模組,被配置為提取所述第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對;查詢模組,被配置為根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼。 According to a second aspect of the embodiments of the present specification, there is provided an identification device for livestock animals, including: a similarity calculation module configured to acquire a first biometric image and a second biometric image of the livestock to be identified , and calculate the similarity between the first biometric image and the reference biometric images of a plurality of animal species in the database; The reading module is configured to use the reference biometric image that satisfies the preset condition in the similarity calculation result as the target image, and read the identity coding sequence including the biometric coding segment corresponding to the target image; compare The module is configured to extract the to-be-identified biometric information of the second biometric image, and compare the to-be-identified biometric information with the reference biometric information mapped by the category coding segment in the identity coding sequence Query module, configured to query the target identity coding sequence according to the number of identically aligned coding segments contained in the identity coding sequence and the similarity calculation result, and use the target identity coding sequence as the to-be-identified sequence The identification code of the animal.
可選地,所述查詢模組,包括:確定子模組,被配置為將所述身份編碼序列中類別編碼段映射的與所述待識別生物特徵資訊比對一致的生物特徵資訊的數目確定為所述身份編碼序列中包含的比對一致的編碼段數;篩選子模組,被配置為篩選包含比對一致的編碼段數最多的身份編碼序列作為第三身份編碼序列集合;判斷子模組,被配置為判斷所述第三身份編碼序列集合中身份編碼序列個數是否等於1;若所述判斷子模組的執行結果為是,則運行第一目標身份編碼序列確定子模組;所述第一目標身份編碼序列確定子模組,被配置為將所述第三身份編碼序列集合中的身份編碼序列確定為所述 目標身份編碼序列;若所述判斷子模組的執行結果為否,則運行第二目標身份編碼序列確定子模組;所述第二目標身份編碼序列確定子模組,被配置為將所述第三身份編碼序列集合中包含與所述第一生物特徵圖像的相似度最高的目標圖像對應的生物特徵編碼段的身份編碼序列確定為所述目標身份編碼序列。 Optionally, the query module includes: a determination sub-module, configured to determine the number of biometric information that is consistent with the biometric information to be identified that is mapped by the category coding segment in the identity coding sequence. is the number of identically aligned coding segments contained in the identity coding sequence; the screening submodule is configured to screen the identity coding sequence with the largest number of identically aligned coding segments as the third set of identity coding sequences; the judging submodule group, configured to judge whether the number of identity coding sequences in the third set of identity coding sequences is equal to 1; if the execution result of the judgment submodule is yes, then run the first target identity coding sequence to determine the submodule; The first target identity coding sequence determination sub-module is configured to determine the identity coding sequence in the third set of identity coding sequences as the target identity coding sequence; if the execution result of the judgment submodule is no, then run the second target identity coding sequence to determine the submodule; the second target identity coding sequence to determine the submodule is configured to The identity coding sequence that includes the biometric coding segment corresponding to the target image with the highest similarity to the first biometric image in the third identity coding sequence set is determined as the target identity coding sequence.
根據本說明書實施例的第三態樣,提供了一種計算設備,包括:記憶體和處理器;所述記憶體用於儲存計算機可執行指令,所述處理器用於執行所述計算機可執行指令:獲取待識別豢養物的第一生物特徵圖像以及第二生物特徵圖像,並計算所述第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像的相似度;將相似度計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列;提取所述第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對;根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別 碼。 According to a third aspect of the embodiments of the present specification, a computing device is provided, including: a memory and a processor; the memory is used for storing computer-executable instructions, and the processor is used for executing the computer-executable instructions: Obtain the first biometric image and the second biometric image of the animal to be identified, and calculate the similarity between the first biometric image and the reference biometric images of the multiple animals in the database; The reference biometric image that satisfies the preset condition in the degree calculation result is taken as the target image, and the identity coding sequence including the biometric coding segment corresponding to the target image is read; Identifying biometric information, comparing the biometric information to be identified with the reference biometric information mapped by the category coding segment in the identity coding sequence; according to the number of aligned coding segments contained in the identity coding sequence and The similarity calculation result is used to query the target identity coding sequence, and the target identity coding sequence is used as the identity of the animal to be identified. code.
根據本說明書實施例的第四態樣,提供了一種計算機可讀儲存媒體,其儲存有計算機可執行指令,該指令被處理器執行時實現任意一項所述豢養物身份識別方法的步驟。 According to a fourth aspect of the embodiments of the present specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, implements any one of the steps of the method for identifying livestock.
本說明書一個實施例透過獲取待識別豢養物的第一生物特徵圖像以及第二生物特徵圖像,將第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像進行相似度計算,將計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像並在資料庫中讀取包含生物特徵編碼段的身份編碼序列,其中,所述生物特徵編碼段與目標圖像對應;提取第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對;根據比對結果以及所述相似度計算結果查詢目標身份編碼序列以確定待識別豢養物的身份識別碼。 In an embodiment of the present specification, the similarity between the first biometric image and the reference biometric images of multiple livestock in the database is calculated by acquiring the first biometric image and the second biometric image of the animal to be identified. Calculate, take the reference biometric image that meets the preset condition in the calculation result as the target image and read the identity coding sequence containing the biometric coding segment in the database, wherein the biometric coding segment corresponds to the target image ; Extract the biometric information to be identified of the second biometric image, and compare the biometric information to be identified with the reference biometric information mapped by the category coding segment in the identity coding sequence; according to the comparison result and the similarity The calculation results query the target identification code sequence to determine the identification code of the animal to be identified.
本說明書實施例實現了採用圖像識別的方式,對圖像中待識別豢養物的待識別生物特徵資訊進行採集,並將所述待識別生物特徵資訊與資料庫中預先儲存的豢養物的身份編碼序列中不同編碼段映射的基準生物特徵資訊進行比對以對待識別豢養物進行身份識別,提高了豢養物身份識別方法的可行性,並且透過拍攝圖像並透過圖像識別的方式識別豢養物的身份,不僅保障了豢養物的安全,還可以隨時隨地對豢養物的身份進行識別,提高了便利性。 The embodiments of this specification implement the method of image recognition to collect the biometric information of the animal to be identified in the image, and combine the biometric information to be identified with the identity of the animal pre-stored in the database The benchmark biometric information mapped by different coding segments in the coding sequence is compared to identify the animals to be identified, which improves the feasibility of the method for identification of the animals, and the animals are identified by taking images and identifying them through image recognition. The identity of the animal not only ensures the safety of the animal, but also can identify the identity of the animal anytime and anywhere, which improves the convenience.
302:相似度計算模組 302: Similarity calculation module
304:讀取模組 304: read module
306:比對模組 306: Comparison Module
308:查詢模組 308: Query Module
400:計算設備 400: Computing Equipment
410:記憶體 410: Memory
420:處理器 420: Processor
430:匯流排 430: Busbar
440:接入設備 440: Access device
450:資料庫 450:Database
460:網路 460: Internet
[圖1]是本說明書一個實施例提供的一種豢養物身份識別方法的處理流程圖;[圖2]是本說明書一個實施例提供的一種豢養物身份識別方法應用於保險項目的處理流程圖;[圖3]是本說明書一個實施例提供的一種豢養物身份識別裝置的示意圖;[圖4]是本說明書一個實施例提供的一種計算設備的結構框圖。 [Fig. 1] is a process flow chart of a method for identification of livestock animals provided by an embodiment of this specification; [Fig. 2] is a process flow diagram of a method for identification of livestock animals provided by an embodiment of this specification applied to insurance items; [ Fig. 3 ] is a schematic diagram of a feeder identification device provided by an embodiment of the present specification; [ Fig. 4 ] is a structural block diagram of a computing device provided by an embodiment of the present specification.
在下面的描述中闡述了很多具體細節以便於充分理解本說明書。但是本說明書能夠以很多不同於在此描述的其它方式來實施,本領域技術人員可以在不違背本說明書內涵的情況下做類似推廣,因此本說明書不受下面公開的具體實施的限制。 In the following description, numerous specific details are set forth in order to provide a thorough understanding of this specification. However, this specification can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotions without departing from the connotation of this specification. Therefore, this specification is not limited by the specific implementation disclosed below.
在本說明書一個或多個實施例中使用的術語是僅僅出於描述特定實施例的目的,而非旨在限制本說明書一個或多個實施例。在本說明書一個或多個實施例和所附申請專利範圍中所使用的單數形式的“一種”、“所述”和“該”也旨在包括多數形式,除非上下文清楚地表示其他含義。還應當理解,本說明書一個或多個實施例中使用的術語“及/或”是指並包含一個或多個相關聯的列出項目的任何或所 有可能組合。 The terminology used in one or more embodiments of this specification is for the purpose of describing a particular embodiment only and is not intended to limit the one or more embodiments of this specification. As used in this specification and in one or more embodiments and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used in one or more embodiments of this specification refers to and includes any or all of one or more of the associated listed items. Combinations are possible.
應當理解,儘管在本說明書一個或多個實施例中可能採用術語第一、第二等來描述各種資訊,但這些資訊不應限於這些術語。這些術語僅用來將同一類型的資訊彼此區分開。例如,在不脫離本說明書一個或多個實施例範圍的情況下,第一也可以被稱為第二,類似地,第二也可以被稱為第一。取決於語境,如在此所使用的詞語“如果”可以被解釋成為“在……時”或“當……時”或“反應於確定”。 It will be understood that although the terms first, second, etc. may be used in this specification to describe various information in one or more embodiments of this specification, these information should not be limited by these terms. These terms are only used to distinguish information of the same type from one another. For example, a first could be termed a second, and similarly, a second could be termed a first, without departing from the scope of one or more embodiments of this specification. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "at the time of" or "in response to determining."
在本說明書中,提供了一種豢養物身份識別方法,本說明書同時涉及一種豢養物身份識別裝置,一種計算設備,以及一種計算機可讀儲存媒體,在下面的實施例中逐一進行詳細說明。 In this specification, a method for identification of livestock animals is provided. This specification also relates to a device for identification of livestock animals, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.
圖1示出了根據本說明書一個實施例提供的一種豢養物身份識別方法的流程圖,包括步驟102至步驟108。
FIG. 1 shows a flow chart of a method for identifying livestock animals according to an embodiment of the present specification, including
步驟102,獲取待識別豢養物的第一生物特徵圖像以及第二生物特徵圖像,並計算所述第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像的相似度。 Step 102: Obtain a first biometric image and a second biometric image of the animal to be identified, and calculate the similarity between the first biometric image and the reference biometric images of multiple animals in the database .
本說明書實施例中,豢養即餵養、馴養或養育;豢養物包括用戶所餵養或養育的動植物,包括動物寵物(寵物狗、寵物貓、寵物豬等)、植物寵物、茶寵寵物(金蟾、貔貅等)以及另類寵物(土撥鼠、兔、倉鼠、刺蝟、蝙蝠等)等,除上述豢養寵物外,豢養物還包括家禽類,如雞、鴨等。 In the embodiments of this specification, domestication refers to feeding, domestication or raising; domestication includes animals and plants fed or raised by users, including animal pets (pet dogs, pet cats, pet pigs, etc.), plant pets, tea pet pets (Golden toad, Pixiu, etc.) and alternative pets (marmots, rabbits, hamsters, hedgehogs, bats, etc.), etc., in addition to the above-mentioned domesticated pets, domesticated animals also include poultry, such as chickens, ducks, etc.
本說明書實施例以所述待識別豢養物為豢養寵物為例 進行說明,由於越來越多的用戶選擇豢養寵物,因此越來越多的豢養物服務機構隨之應運而生,在豢養物服務機構接收用戶針對豢養物發送的服務請求時,具體對豢養物進行投保或醫療診斷等過程中,若資料庫中儲存有預先建立的所述豢養物的檔案資訊,則在豢養物服務機構均需對豢養物進行身份識別,以查詢其歷史投保記錄或歷史醫療診斷記錄等相關資訊,以根據相關資料為用戶推薦保險種類或進行準確診斷就治。 The embodiments of this specification take the animal to be identified as a domestic pet as an example To explain, as more and more users choose to keep pets, more and more animal husbandry service agencies emerge as the times require. During the process of applying for insurance or medical diagnosis, if the pre-established file information of the animal is stored in the database, the animal should be identified at the animal care service agency to check its historical insurance record or historical medical treatment. Diagnosis records and other related information, in order to recommend insurance types for users or conduct accurate diagnosis and treatment based on relevant information.
本說明書實施例提供的豢養物身份識別方法,在資料庫中預先儲存有所述待識別豢養物的檔案資訊的情況下,豢養物服務機構可透過獲取所述待識別豢養物的生物特徵圖像並透過獲取的生物特徵圖像對所述待識別豢養物進行身份識別。 In the method for identification of livestock animals provided by the embodiments of this specification, in the case that the file information of the livestock to be identified is pre-stored in the database, the livestock service agency can obtain the biometric image of the livestock to be identified by obtaining the biometric image of the livestock to be identified. and identify the animal to be identified through the acquired biometric image.
本說明書實施例所述的待識別豢養物即為需要對其進行身份識別的豢養物,所述第一生物特徵圖像以及第二生物特徵圖像為所述待識別豢養物的生物特徵圖像,在接收到豢養物身份識別請求時進行採集或由發送豢養物身份識別請求的用戶上傳;所述基準生物特徵圖像為建立豢養物檔案時所採集的豢養物的生物特徵圖像。 The animal to be identified in the embodiments of this specification is the animal that needs to be identified, and the first biometric image and the second biometric image are the biometric images of the animal to be identified , collected when the animal identification request is received or uploaded by the user who sent the animal identification request; the reference biometric image is the biological feature image of the animal collected when the animal file is established.
具體的,所述生物特徵圖像包括第一生物特徵圖像和第二生物特徵圖像,其中,所述第一生物特徵圖像包括所述待識別豢養物的豢養物的鼻紋特徵圖像,所述第二生物特徵圖像包括所述待識別豢養物的全身圖像或面部圖像;在接收到用戶針對待識別豢養物發送的身份識別請求並獲 取所述待識別豢養物的第一生物特徵圖像後,將所述第一生物特徵圖像與資料庫中預先儲存的多個豢養物的基準生物特徵圖像進行相似度計算;具體實施時,本說明書實施例所述的待識別豢養物是指豢養寵物,所述第一生物特徵圖像包括待識別豢養物的鼻紋、掌紋圖像等;獲取待識別豢養物的第一生物特徵圖像後,將第一生物特徵圖像與資料庫中的多個豢養物的基準生物特徵圖像進行相似度計算,並根據相似度計算結果對待識別豢養物進行身份識別。 Specifically, the biometric image includes a first biometric image and a second biometric image, wherein the first biometric image includes a nose print feature image of the animal to be identified. , the second biometric image includes a full-body image or a facial image of the animal to be identified; after receiving the identification request sent by the user for the animal to be identified and obtained After taking the first biometric image of the animal to be identified, the similarity calculation is performed between the first biometric image and the reference biometric images of a plurality of pre-stored animals in the database; , the animal to be identified in the embodiments of this specification refers to a domesticated pet, and the first biometric image includes a nose print, palm print image, etc. of the animal to be identified; obtain the first biometric map of the animal to be identified After the imaging, the similarity calculation is performed between the first biometric image and the reference biometric images of the multiple animals in the database, and the identification of the animals to be identified is performed according to the similarity calculation result.
本說明書提供的一個實施例中,獲得第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像的相似度計算結果之後,還需判斷所述相似度計算結果中是否存在任意一個豢養物的基準生物特徵圖像與所述第一生物特徵圖像的相似度滿足預設相似度閾值;若否,則將相似度計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列。 In an embodiment provided in this specification, after obtaining the similarity calculation result between the first biometric image and the reference biometric images of the multiple animals in the database, it is also necessary to determine whether there is any arbitrary similarity in the similarity calculation result. The similarity between the reference biometric image of a domesticated animal and the first biometric image satisfies a preset similarity threshold; if not, the reference biometric image that satisfies the preset condition in the similarity calculation result is used as the target image, and read the identity coding sequence including the biometric coding segment corresponding to the target image.
具體的,若根據判斷結果確定存在任意一個基準生物特徵圖像與所述第一生物特徵圖像的相似度大於預設相似度閾值,則可確定所述待識別豢養物與所述基準生物特徵圖像中基準生物特徵所屬的豢養物一致,則可將基準生物特徵圖像對應的豢養物的身份編碼序列作為所述待識別豢養物的身份識別碼;若任意一個基準生物特徵圖像與所述第一生物特徵圖 像的相似度均小於等於預設相似度閾值,則需根據相似度計算結果選取滿足預設條件的n個相似度較大的基準生物特徵圖像作為目標圖像,其中n為正整數,且n根據實際情況確定,在此不作限定,確定目標圖像後,透過將第二生物特徵圖像中待識別生物特徵資訊與目標圖像對應的身份特徵編碼段映射的基準生物特徵資訊進行比對。 Specifically, if it is determined according to the judgment result that the similarity between any reference biometric image and the first biometric image is greater than a preset similarity threshold, it can be determined that the animal to be identified and the reference biometric feature In the image, the animal to which the reference biometric feature belongs is consistent, then the identity code sequence of the animal corresponding to the reference biometric image can be used as the identification code of the animal to be identified; the first biometric map If the similarity of the images is less than or equal to the preset similarity threshold, it is necessary to select n reference biometric images with high similarity that meet the preset conditions as the target image according to the similarity calculation result, where n is a positive integer, and n Determined according to the actual situation, which is not limited here. After the target image is determined, the biometric information to be identified in the second biometric image is compared with the reference biometric information mapped by the identity feature coding segment corresponding to the target image. .
以用戶為待識別豢養物(寵物pet1)投保的場景為例,該場景中的第一生物特徵圖像為鼻紋特徵圖像,保險服務機構獲取寵物pet1的鼻紋特徵圖像後,將鼻紋特徵圖像與資料庫中的多個寵物的基準生物特徵圖像進行相似度計算,若資料庫中寵物pet2的基準生物特徵圖像與寵物pet1的鼻紋特徵圖像的相似度為97%,大於預設相似度閾值95%,則將寵物pet2的身份編碼序列確定為寵物pet1的身份識別碼;若資料庫中任意一個寵物的基準生物特徵圖像與寵物pet1的鼻紋特徵圖像的相似度均小於等於預設相似度閾值95%,則將相似度計算結果按照由大到小的順序進行排序,並選取排序結果中滿足預設條件的前n位基準生物特徵圖像作為目標圖像,並利用所述目標圖像對寵物pet1進行身份識別。 Take the scenario where the user insures the animal to be identified (pet pet1) as an example, the first biometric image in this scene is the nose print feature image, after the insurance service agency obtains the nose print feature image of the pet pet1, the nose print feature image is Calculate the similarity between the pattern feature image and the benchmark biometric images of multiple pets in the database. If the similarity between the benchmark biometric image of pet2 in the database and the nose print feature image of pet pet1 is 97% , greater than the preset similarity threshold of 95%, then the identity code sequence of pet pet2 is determined as the identity code of pet pet1; If the similarity is less than or equal to the preset similarity threshold of 95%, the similarity calculation results are sorted in descending order, and the top n benchmark biometric images that meet the preset conditions in the sorting result are selected as the target image. image, and use the target image to identify pet pet1.
透過計算第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像間的相似度,並根據計算結果篩選部分目標圖像作為後續處理的比對對象,縮小了比對範圍,有利於提高身份識別效率以及準確性。 By calculating the similarity between the first biometric image and the reference biometric images of a plurality of animal species in the database, and selecting some target images as the comparison objects for subsequent processing according to the calculation results, the comparison scope is narrowed. It is beneficial to improve the efficiency and accuracy of identification.
步驟104,將相似度計算結果中滿足預設條件的基準
生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列。
本說明書實施例所述的身份編碼序列為目標圖像中基準生物特徵資訊所屬豢養物的身份標識碼,生物特徵編碼段為目標圖像中基準生物特徵資訊映射的編碼段,所述身份編碼序列與生物特徵編碼序列為包含關係,身份編碼序列中除包含生物特徵編碼序列外,還可以包含其他編碼段,如類別編碼段。 The identity code sequence described in the embodiments of this specification is the identity code of the animal to which the reference biometric information in the target image belongs, and the biometric code segment is the code segment mapped to the reference biometric information in the target image, and the identity code sequence In addition to the biometric coding sequence, the identity coding sequence may also contain other coding segments, such as category coding segments.
具體的,在獲取第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像的相似度計算結果的基礎上,若根據相似度計算結果確定任意一個基準生物特徵圖像與所述第一生物特徵圖像的相似度均小於等於預設相似度閾值,則將相似度計算結果按照由大到小的順序進行排序,並選取排序結果中滿足預設條件的前n位基準生物特徵圖像作為目標圖像,並讀取包含與目標圖像對應的生物特徵編碼段的身份編碼序列。 Specifically, on the basis of obtaining the similarity calculation result between the first biometric image and the reference biometric images of the multiple animals in the database, if any one of the reference biometric images is determined according to the similarity calculation result with all the reference biometric images If the similarities of the first biometric images are all less than or equal to the preset similarity threshold, the similarity calculation results are sorted in descending order, and the top n benchmark creatures that meet the preset conditions in the sorting results are selected. The feature image is used as the target image, and the identity coding sequence containing the biometric coding segment corresponding to the target image is read.
仍以用戶為待識別豢養物(寵物pet1)投保的場景為例,該場景中的第一生物特徵圖像為鼻紋特徵圖像,若根據相似度計算結果確定資料庫中任意一個寵物的基準生物特徵圖像與寵物pet1的鼻紋特徵圖像的相似度均小於等於預設相似度閾值95%,則將相似度計算結果按照由大到小的順序進行排序,並選取排序結果中滿足預設條件的前n位基準生物特徵圖像作為目標圖像,並讀取n個分別包含與目標圖像對應的生物特徵編碼段的身份編碼序列; 在讀取n個身份編碼序列後,透過將第二生物特徵圖像中待識別生物特徵資訊與身份特徵編碼序列中類別編碼段映射的基準生物特徵資訊進行比對以確定待識別豢養物的身份識別碼。 Still take the scene where the user insures the animal to be identified (pet pet1) as an example, the first biometric image in this scene is the nose print feature image, if the benchmark of any pet in the database is determined according to the similarity calculation result The similarity between the biometric image and the pet pet1's nose print feature image is less than or equal to the preset similarity threshold of 95%, then the similarity calculation results are sorted in descending order, and the sorting results meet the predetermined similarity. Set the top n reference biometric images of the condition as the target image, and read n identity coding sequences that respectively contain the biometric coding segments corresponding to the target image; After reading the n identity coding sequences, the identity of the animal to be identified is determined by comparing the biometric information to be identified in the second biometric image with the reference biometric information mapped to the category coding segment in the identity feature coding sequence Identifier.
步驟106,提取所述第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對。
本說明書實施例所述的第二生物特徵圖像包括豢養物的全身圖像,待識別生物特徵資訊即為待識別豢養物的第二生物特徵圖像中包含的與待識別豢養物的類別相關的生物特徵資訊;所述目標圖像中包含的生物特徵資訊即為基準生物特徵資訊,基準生物特徵資訊與類別編碼段存在映射關係。 The second biometric image described in the embodiments of the present specification includes a whole body image of the animal, and the biometric information to be identified is the information related to the category of the animal to be identified contained in the second biometric image of the animal to be identified. The biological feature information contained in the target image is the reference biological feature information, and the reference biological feature information has a mapping relationship with the category coding segment.
確定目標圖像並讀取包含與目標圖像對應的生物特徵編碼段的身份編碼序列後,透過將第二生物特徵圖像中待識別生物特徵資訊與所述身份特徵編碼序列中類別編碼段映射的基準生物特徵資訊進行比對以確定待識別豢養物的身份識別碼。 After determining the target image and reading the identity coding sequence including the biometric coding segment corresponding to the target image, by mapping the biometric information to be identified in the second biometric image with the category coding segment in the identity coding sequence The benchmark biometric information is compared to determine the identification code of the animal to be identified.
本說明書提供的一個實施例中,所述待識別生物特徵資訊包括所述待識別豢養物的待識別種類資訊,所述類別編碼段包括種類編碼段;將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對,比對完成後,可根據比對結果以及相似度計算結果查詢豢養物的身份識別碼,具體的比對過程可透過如下 方式實現:在資料庫中讀取預先根據各個基準生物特徵資訊與類別編碼段的映射關係構建的映射關係表;在所述映射關係表中查詢所述種類編碼段映射的基準種類資訊;將所述待識別種類資訊與所述種類編碼段映射的基準種類資訊進行比對。 In an embodiment provided in this specification, the biometric information to be identified includes species information to be identified of the animal to be identified, and the category coding segment includes a species coding segment; the biometric information to be identified is combined with the The reference biometric information mapped to the category coding segment in the identity coding sequence is compared. After the comparison is completed, the identity code of the animal can be queried according to the comparison result and the similarity calculation result. The specific comparison process can be done as follows The method is realized by: reading the mapping relationship table constructed in advance according to the mapping relationship between each reference biometric information and the category coding segment in the database; querying the reference category information mapped by the category coding segment in the mapping relationship table; The category information to be identified is compared with the reference category information mapped by the category code segment.
具體的,所述映射關係表由服務端預先建立並儲存於資料庫中,並且所述映射關係表中包含各個基準生物特徵資訊與類別編碼段的映射關係,所述種類編碼段為豢養物所屬種類映射的編碼段,由兩個字元組成,所述字元包括字母、數字或特殊字元,本說明實施例中,豢養物所屬種類包括爬行類、哺乳類、魚類、兩棲類以及昆蟲類等。 Specifically, the mapping relationship table is pre-established by the server and stored in the database, and the mapping relationship table includes the mapping relationship between each reference biometric information and the category code segment, and the type code segment belongs to the animal. The coding segment of the species map is composed of two characters, and the characters include letters, numbers or special characters. In the embodiment of this description, the species to which the livestock belongs include reptiles, mammals, fish, amphibians, insects, etc. .
提取第二生物特徵圖像中待識別豢養物的待識別種類資訊後,在映射關係表中查詢n個身份編碼序列中種類編碼段映射的基準種類資訊,並透過比對所述待識別種類資訊與基準種類資訊是否一致以確定所述待識別豢養物的身份識別碼。 After extracting the species information to be identified of the animal to be identified in the second biometric image, query the reference species information mapped by species coding segments in the n identity coding sequences in the mapping relationship table, and compare the species information to be identified Whether it is consistent with the reference species information to determine the identification code of the animal to be identified.
以所述待識別豢養物為寵物狗pet D1為例,讀取10個身份編碼序列A1、A2、......、A10,提取第二生物特徵圖像的待識別種類資訊,可確定寵物狗pet D1的種類為哺乳類,確定寵物狗pet D1的種類後,需將寵物狗pet D1的待識別種類資訊(哺乳類)與10個身份編碼序列中種類編碼段映射的基準種類資訊進行比對,本說明書實施例以獲取的 10個身份編碼序列中的身份編碼序列A1為例進行說明,身份編碼序列A1中包含的種類編碼段為O2,在映射關係表中查詢O2映射的基準種類資訊為哺乳類,則將待識別種類資訊(哺乳類)與基準種類資訊(哺乳類)進行比對獲得的結果為比對一致。 Taking the pet dog pet D1 as the animal to be identified as an example, read 10 identity coding sequences A1, A2, . The species of pet dog pet D1 is mammals. After determining the species of pet dog pet D1, it is necessary to compare the species information to be identified (mammal species) of pet dog pet D1 with the reference species information mapped to the species coding segment in the 10 identity coding sequences , the examples of this specification are obtained by The identity coding sequence A1 in the 10 identity coding sequences is used as an example to illustrate. The species coding segment contained in the identity coding sequence A1 is O2. If the reference species information mapped by O2 is queried in the mapping relationship table as mammals, the species information to be identified will be The results obtained by comparing (mammals) with the reference species information (mammals) are consistent.
待識別種類資訊與除身份編碼序列A1外的其他身份編碼序列包含的種類編碼段映射的基準種類資訊間的比較的具體實現類似,參照與身份編碼序列A1中基準種類資訊的比較的具體實現即可,在此不再贅述。 The specific implementation of the comparison between the category information to be identified and the reference category information mapped to the category encoding segment included in the identification encoding sequence other than the identification encoding sequence A1 is similar, and the specific implementation of the comparison with the benchmark category information in the identification encoding sequence A1 is Yes, it will not be repeated here.
進一步的,在比對豢養物的種類資訊的基礎上,還可透過比對品種資訊以提高所述待識別豢養物的身份識別結果的準確性。 Further, on the basis of comparing the species information of the livestock, the accuracy of the identification result of the to-be-identified livestock can also be improved by comparing the variety information.
具體的,所述待識別生物特徵資訊還包括待識別品種資訊,所述類別編碼段還包括品種編碼段;將所述待識別種類資訊與所述種類編碼段映射的基準種類資訊進行比對並獲得比對結果之後,將包含比對一致的基準種類資訊映射的種類編碼段的身份編碼序列作為一個新的集合,並將所述待識別品種資訊與新的身份編碼序列集合中各個身份編碼序列包含的品種編碼段映射的基準品種資訊進行比對,具體可透過以下步驟實現:根據比對結果篩選包含比對一致的種類編碼段的身份編碼序列作為第一身份編碼序列集合;在所述映射關係表中查詢所述第一身份編碼序列集合中包含的各個身份編碼序列中品種編碼段映射的基準品種 資訊;將所述待識別品種資訊與所述品種編碼段映射的基準品種資訊進行比對。 Specifically, the biometric information to be identified further includes category information to be identified, and the category encoding segment further includes a category encoding section; the category information to be identified is compared with the reference category information mapped by the category encoding section, and After the comparison result is obtained, the identity coding sequence of the species coding segment mapped by the aligned reference species information is taken as a new set, and the species information to be identified is compared with each identity coding sequence in the new identity coding sequence set. Comparing the reference variety information contained in the variety coding segment mapping can be achieved through the following steps: screening the identity coding sequences including the aligned species coding segments according to the comparison result as the first identity coding sequence set; in the mapping In the relation table, query the reference varieties of the variety coding segment mapping in each identity coding sequence contained in the first set of identity coding sequences information; compare the to-be-identified variety information with the reference variety information mapped by the variety coding segment.
具體的,在將待識別種類資訊與基準種類資訊進行比對之後,根據比對結果篩選包含比對一致的基準種類資訊映射的種類編碼段的身份編碼序列作為第一身份編碼序列集合,利用所述第一身份編碼序列集合中身份編碼序列包含的品種編碼段映射的基準品種資訊與待識別品種資訊進行比對,以縮小比對範圍,並且,本說明書實施例所述的品種編碼段為豢養物所屬品種映射的編碼段,由三個字元組成,所述字元包括字母、數字或特殊字元。 Specifically, after the category information to be identified is compared with the reference category information, the identity encoding sequence containing the category encoding segment mapped by the benchmark category information that is consistent with the comparison is selected as the first identity encoding sequence set according to the comparison result, and the The reference variety information mapped by the variety coding segment included in the identity coding sequence in the first identity coding sequence set is compared with the variety information to be identified to narrow the range of comparison, and the variety coding segment described in the embodiments of this specification is a breeding The coding segment of the type mapping to which the object belongs, which consists of three characters, and the characters include letters, numbers or special characters.
提取第二生物特徵圖像中待識別豢養物的待識別品種資訊後,在映射關係表中查詢第一身份編碼序列集合中各個身份編碼序列包含的品種編碼段映射的基準品種資訊,並透過比對所述待識別品種資訊與基準品種資訊是否一致以確定所述待識別豢養物的身份識別碼。 After extracting the to-be-identified species information of the animal to be identified in the second biometric image, query the mapping relationship table for the reference species information mapped by the species-encoding segments included in each identity-encoding sequence in the first identity-encoding sequence set, and compare Determine whether the information of the species to be identified is consistent with the information of the reference species to determine the identification code of the animal to be identified.
沿用上例,所述待識別豢養物為寵物狗pet D1,則寵物狗的品種包括秋田犬、柴犬以及杜賓犬等,根據比對結果篩選包含比對一致的種類編碼段的身份編碼序列組成的第一身份編碼序列集合S1={A1,A2,A5,A8,A10};提取第二生物特徵圖像的待識別種類資訊,可確定所述豢養物(寵物狗pet D1)的品種為秋田犬,確定寵物狗pet D1的品種後,需將寵物狗pet D1的待識別品種資訊(秋田犬)與第一身份編碼序列集合中5個身份編碼序列包含的品 種編碼段映射的基準品種資訊進行比對,本說明書實施例以第一身份編碼序列集合中的身份編碼序列A2為例進行說明,身份編碼序列A2包含的品種編碼段為334,在映射關係表中查詢334映射的基準品種資訊為杜賓犬,則將待識別品種資訊(秋田犬)與基準品種資訊(杜賓犬)進行比對獲得的結果為比對不一致。 Following the above example, the animal to be identified is the pet dog pet D1, then the breed of the pet dog includes Akita Inu, Shiba Inu and Doberman Pinscher, etc., according to the comparison result, the identity coding sequence composition of the type coding segment that is consistent with the comparison is screened. The first identity code sequence set S1={A1, A2, A5, A8, A10}; extracting the type information to be identified of the second biometric image, it can be determined that the breed of the domesticated animal (pet dog pet D1) is Akita For dogs, after determining the breed of pet dog pet D1, it is necessary to compare the breed information (Akita Inu) of pet dog pet D1 to be identified with the breeds contained in the 5 identity coding sequences in the first set of identity coding sequences. The reference variety information mapped by the coding segment is compared, and the embodiment of this specification takes the identity coding sequence A2 in the first identity coding sequence set as an example to illustrate, the variety coding segment included in the identity coding sequence A2 is 334, which is shown in the mapping relationship table. If the benchmark breed information mapped by query 334 is Doberman, then the result obtained by comparing the to-be-identified breed information (Akita) with the benchmark breed information (Doberman) is that the comparison is inconsistent.
待識別生物特徵資訊與第一身份編碼序列集合中其他身份編碼序列包含的品種編碼段映射的基準品種資訊間的比較的具體實現類似,參照與身份編碼序列A2中基準品種資訊的比較的具體實現即可,在此不再贅述。 The specific implementation of the comparison between the biometric information to be identified and the reference variety information mapped by the variety coding segment included in the other identity coding sequences in the first identity coding sequence set is similar to the specific implementation of the comparison with the reference variety information in the identity coding sequence A2. That is, it will not be repeated here.
更進一步的,在比對待識別豢養物的種類資訊以及品種資訊的基礎上,還可透過比對性別資訊以提高所述待識別豢養物的身份識別結果的準確性。 Furthermore, on the basis of comparing the species information and variety information of the animal to be identified, the accuracy of the identification result of the animal to be identified can also be improved by comparing the gender information.
具體的,所述待識別生物特徵資訊包括待識別性別資訊,所述類別編碼段包括性別編碼段;將所述待識別品種資訊與所述品種編碼段映射的基準品種資訊進行比對並獲得比對結果之後,將包含比對一致的基準品種資訊映射的品種編碼段的身份編碼序列作為一個新的集合,並將所述待識別性別資訊與新的身份編碼序列集合中各個身份編碼序列包含的性別編碼段映射的基準性別資訊進行比對,具體可透過以下步驟實現:根據比對結果在所述第一身份編碼序列集合中篩選包含比對一致的品種編碼段的身份編碼序列作為第二身份編碼序列集合; 在所述映射關係表中查詢所述第二身份編碼序列集合中包含的各個身份編碼序列中性別編碼段映射的基準性別資訊;將所述待識別性別資訊與所述性別編碼段映射的基準性別資訊進行比對。 Specifically, the biometric information to be identified includes gender information to be identified, and the category coding segment includes a gender coding segment; the species information to be identified is compared with the reference species information mapped by the species coding segment, and a comparison is obtained. After the results are compared, the identity coding sequence of the variety coding segment mapped with the consistent reference variety information is used as a new set, and the gender information to be identified and the identity coding sequence contained in each identity coding sequence in the new set of identity coding sequences are used as a new set. The comparison of the reference gender information of the gender coding segment mapping can be achieved through the following steps: according to the comparison result, the identity coding sequence containing the aligned variety coding segment is selected from the first identity coding sequence set as the second identity. A collection of coding sequences; Query the reference gender information of the gender coding segment mapped in each identity coding sequence included in the second identity coding sequence set in the mapping relationship table; map the gender information to be identified with the reference gender of the gender coding segment information to compare.
具體的,在將待識別品種資訊與基準品種資訊進行比對之後,根據比對結果篩選包含比對一致的基準品種資訊映射的品種編碼段的身份編碼序列作為第二身份編碼序列集合,利用所述第二身份編碼序列集合中身份編碼序列包含的性別編碼段映射的基準性別資訊與待識別性別資訊進行比對,以縮小比對範圍,並且,本說明書實施例所述的性別編碼段為豢養物所屬性別映射的編碼段,由一個字元組成,字元X表示豢養物的性別為母、字元Y表示豢養物的性別為公、字元Z表示其他。 Specifically, after the to-be-identified variety information is compared with the reference variety information, the identity coding sequence containing the variety coding segment mapped by the benchmark variety information that is consistent in the comparison is screened according to the comparison result as the second identity coding sequence set, and the The reference gender information mapped by the gender coding segment included in the identity coding sequence in the second set of identity coding sequences is compared with the gender information to be identified to narrow the comparison range, and the gender coding segment described in the embodiments of this specification is a The coding segment of the gender mapping to which the animal belongs is composed of one character. The character X indicates that the gender of the animal is female, the character Y indicates that the gender of the animal is male, and the character Z indicates other.
提取第二生物特徵圖像中待識別豢養物的待識別性別資訊後,在映射關係表中查詢第二身份編碼序列集合中各個身份編碼序列包含的性別編碼段映射的基準性別資訊,並透過比對所述待識別性別資訊與基準性別資訊是否一致以確定所述待識別豢養物的身份識別碼。 After extracting the to-be-identified gender information of the animal to be identified in the second biometric image, query the mapping relationship table for the reference gender information mapped by the gender-encoding segments included in each identity-encoding sequence in the second identity-encoding sequence set, and compare Determine whether the gender information to be identified is consistent with the reference gender information to determine the identification code of the animal to be identified.
沿用上例,所述待識別豢養物為寵物狗pet D1,則其性別包括公、母,根據比對結果篩選包含比對一致的品種編碼段的身份編碼序列組成的第二身份編碼序列集合S1={A1,A5,A8,A10};提取第二生物特徵圖像的待識別種類資訊,可確定寵 物狗pet D1的性別為公,確定寵物狗pet D1的品種後,需將寵物狗pet D1的待識別性別資訊(公)與第二身份編碼序列集合中4個身份編碼序列包含的性別編碼段映射的基準性別資訊進行比對,具體的比對過程與前述待識別種類資訊與基準種類資訊的比對過程類似,在此不再贅述。 Following the above example, the animal to be identified is the pet dog pet D1, then its gender includes male and female, and the second identity coding sequence set S1 comprising the identity coding sequence of the consistent breed coding segment is screened according to the comparison result. ={A1, A5, A8, A10}; Extract the type information to be identified of the second biometric image, and determine the pet The gender of the pet dog pet D1 is male. After determining the breed of the pet dog pet D1, it is necessary to compare the gender information (male) of the pet dog pet D1 to be identified and the gender coding segments contained in the 4 identity coding sequences in the second identity coding sequence set The mapped reference gender information is compared, and the specific comparison process is similar to the above-mentioned comparison process between the category information to be identified and the reference category information, and will not be repeated here.
根據範圍由大到小依次將種類資訊、品種資訊以及性別資訊與基準資訊進行比對,並且每次比對完成後,根據比對結果生成一個新的身份編碼序列集合,有利於縮小下一次的比對範圍,進一步提升豢養物的身份識別效率。 According to the range from large to small, the species information, variety information and gender information are compared with the reference information in turn, and after each comparison is completed, a new set of identity coding sequences is generated according to the comparison results, which is conducive to narrowing the next time. The comparison range further improves the identification efficiency of livestock.
除透過比對待識別豢養物的類別資訊(種類資訊、品種資訊以及性別資訊)外,還可透過比對屬性資訊以提高所述待識別豢養物的身份識別結果的準確性。 In addition to comparing the category information (category information, breed information and gender information) of the animal to be identified, the accuracy of the identification result of the animal to be identified can also be improved by comparing the attribute information.
本說明書提供的一個實施例中,身份特徵編碼序列除包含生物特徵編碼段和類別編碼段外,還包括屬性編碼段;將所述待識別生物特徵資訊與所述類別編碼段映射的基準生物特徵資訊進行比對並獲得比對結果之後,將包含比對一致的基準生物特徵資訊映射的類別編碼段的身份編碼序列作為一個新的集合,並將所述待識別屬性資訊與新的身份編碼序列集合中各個身份編碼序列包含的屬性編碼段映射的基準屬性資訊進行比對,具體可透過以下步驟實現:根據比對結果篩選包含比對一致的類別編碼段的身份編碼序列作為第四身份編碼序列集合;提取所述第一生物特徵圖像或所述第二生物特徵圖像 的待識別屬性資訊,將所述待識別屬性資訊與所述第四身份編碼序列集合中各個身份編碼序列包含的屬性編碼段映射的基準屬性資訊進行比對。 In an embodiment provided in this specification, the identity feature encoding sequence includes an attribute encoding segment in addition to a biometric encoding segment and a category encoding segment; a reference biometric feature that maps the biometric information to be identified and the category encoding segment After the information is compared and the comparison result is obtained, the identity coding sequence containing the category coding segment mapped by the consistent reference biometric information is used as a new set, and the attribute information to be identified is compared with the new identity coding sequence. Comparing the reference attribute information of the attribute coding segment mappings contained in each identity coding sequence in the set can be realized by the following steps: according to the comparison result, the identity coding sequence containing the class coding segment that is consistent in the alignment is selected as the fourth identity coding sequence collection; extracting the first biometric image or the second biometric image The to-be-identified attribute information is compared with the reference attribute information mapped to the attribute-encoding segment included in each identity-encoding sequence in the fourth identity-encoding sequence set.
具體的,提取第一生物特徵圖像或第二生物特徵圖像中待識別豢養物的待識別屬性資訊後,在映射關係表中查詢第四身份編碼序列集合中各個身份編碼序列包含的屬性編碼段映射的基準屬性資訊,並透過比對所述待識別屬性資訊與基準屬性資訊是否一致以確定所述待識別豢養物的身份識別碼。 Specifically, after extracting the to-be-identified attribute information of the animal to be identified in the first biometric image or the second biometric image, query the mapping relationship table for the attribute codes contained in each identity code sequence in the fourth set of identity code sequences The reference attribute information of the segment mapping is compared, and the identification code of the animal to be identified is determined by comparing whether the attribute information to be identified is consistent with the reference attribute information.
本說明書提供的一個實施例中,所述待識別屬性資訊包括待識別年齡資訊,所述屬性編碼段包括年齡編碼段;將所述待識別屬性資訊與所述身份編碼序列中屬性編碼段映射的基準屬性資訊進行比對,具體可透過以下步驟實現:將所述第一生物特徵圖像或所述第二生物特徵圖像輸入預先訓練的年齡識別模型,獲取輸出的年齡識別結果作為所述待識別年齡資訊;判斷所述年齡編碼段映射的基準年齡資訊是否屬於所述待識別年齡資訊中包含的年齡區間;若是,則確定將所述待識別年齡資訊與所述年齡編碼段映射的基準年齡資訊進行比對的比對結果為比對一致。 In an embodiment provided in this specification, the to-be-identified attribute information includes to-be-identified age information, and the attribute encoding segment includes an age encoding segment; the attribute information to be identified and the attribute encoding segment in the identity encoding sequence are mapped The benchmark attribute information is compared, which can be achieved through the following steps: inputting the first biometric image or the second biometric image into a pre-trained age recognition model, and obtaining the output age recognition result as the pending age recognition result. Identify age information; determine whether the reference age information mapped by the age coding segment belongs to the age range included in the age information to be identified; if so, determine the reference age for mapping the age information to be identified and the age coding segment The result of the comparison of the information is the same as the comparison.
具體的,將第一生物特徵圖像或第二生物特徵圖像輸入預先訓練的年齡識別模型,獲取模型輸出的所述待識別豢養物的年齡區間,判斷第四身份編碼序列集合中各個身 份編碼序列包含的年齡編碼段映射的基準年齡資訊是否屬於所述年齡區間,若是,則比對一致;並且,本說明書實施例所述的年齡編碼段由8位數字組成,即由豢養物的出生年(前4位)月(第5至6位)日(第7至8位)組成。 Specifically, the first biometric image or the second biometric image is input into the pre-trained age recognition model, the age range of the animal to be recognized outputted by the model is obtained, and each individual in the fourth identity code sequence set is determined. Whether the reference age information mapped by the age-encoding segment included in the share-encoding sequence belongs to the age interval, and if so, the comparison is consistent; Birth year (first 4 digits) month (5th to 6th) day (7th to 8th).
沿用上例,所述待識別豢養物為寵物狗pet D1,年齡預測模型輸出的寵物狗pet D1的年齡區間為3至4歲,第四身份編碼序列中身份編碼序列A10包含的年齡編碼段映射的基準年齡資訊為4歲,則待識別年齡資訊與身份編碼序列A10包含的年齡編碼段映射的基準年齡資訊進行比對的結果為比對一致;待識別年齡資訊與第四身份編碼序列集合中其他身份編碼序列包含的年齡編碼段映射的基準年齡資訊間的比較的具體實現類似,參照與身份編碼序列A10中基準年齡資訊的比較的具體實現即可,在此不再贅述。 Following the above example, the animal to be identified is pet dog pet D1, the age interval of pet dog pet D1 output by the age prediction model is 3 to 4 years old, and the age coding segment mapping included in the identity coding sequence A10 in the fourth identity coding sequence The reference age information is 4 years old, the result of comparing the age information to be identified with the reference age information mapped to the age coding segment included in the identity coding sequence A10 is consistent; the age information to be identified is consistent with the fourth set of identity coding sequences The specific implementation of the comparison between the reference age information mapped to the age coding segments included in the other identity coding sequences is similar, and the specific implementation of the comparison with the reference age information in the identity coding sequence A10 may be referred to, which will not be repeated here.
除透過比對待識別豢養物的類別資訊(種類資訊、品種資訊以及性別資訊)以及年齡資訊外,還可比對位置屬性資訊以提高所述待識別豢養物的身份識別結果的準確性。 In addition to comparing the category information (type information, breed information and gender information) and age information of the animal to be identified, the location attribute information can also be compared to improve the accuracy of the identification result of the animal to be identified.
本說明書提供的一個實施例中,所述待識別屬性資訊還包括待識別位置屬性資訊,所述屬性編碼段包括位置編碼段;將所述待識別年齡資訊與所述年齡編碼段映射的基準年齡資訊進行比對並獲得比對結果之後,將包含比對一致的基準年齡資訊映射的年齡編碼段的身份編碼序列作為一個新的集合,並將所述待識別位置資訊與新的集合中各 個身份編碼序列包含的位置編碼段映射的基準位置資訊進行比對,具體可透過以下步驟實現:根據比對結果篩選包含比對一致的年齡編碼段的身份編碼序列作為第五身份編碼序列集合;檢測所述第一生物特徵圖像或所述第二生物特徵圖像中是否攜帶位置屬性資訊;若是,則提取所述位置屬性資訊作為所述待識別位置屬性資訊,將所述待識別位置屬性資訊與所述第五身份編碼序列集合中各個身份編碼序列包含的位置編碼段映射的基準位置屬性資訊進行比對。 In an embodiment provided in this specification, the to-be-identified attribute information further includes to-be-identified location attribute information, and the attribute encoding segment includes a location encoding segment; a reference age that maps the to-be-identified age information to the age encoding segment After the information is compared and the comparison result is obtained, the identity coding sequence containing the age coding segment mapped with the consistent reference age information is taken as a new set, and the position information to be identified is compared with each of the new set. Comparing the reference location information of the location coding segment mappings included in the identity coding sequences can be achieved through the following steps: screening the identity coding sequences including the age coding segments that are consistent with the alignment as the fifth identity coding sequence set according to the comparison result; Detect whether the first biometric image or the second biometric image carries location attribute information; if so, extract the location attribute information as the to-be-identified location attribute information, and use the to-be-identified location attribute information The information is compared with the reference position attribute information of the position coding segment mapping included in each identity coding sequence in the fifth set of identity coding sequences.
具體的,在將待識別年齡資訊與基準年齡資訊進行比對之後,根據比對結果篩選包含比對一致的基準年齡資訊映射的年齡編碼段的身份編碼序列作為第五身份編碼序列集合,利用所述第五身份編碼序列集合中身份編碼序列包含的位置編碼段映射的基準位置資訊與待識別位置資訊進行比對,以縮小比對範圍。並且,本說明書實施例所述的位置編碼段由6位數字組成,前兩位為豢養物所在省(市)、中間兩位為豢養物所在市(區)、最後兩位為豢養物所在縣。 Specifically, after the age information to be identified is compared with the reference age information, the identity coding sequence containing the age coding segment mapped by the reference age information that is consistent in the comparison is selected as the fifth identity coding sequence set according to the comparison result. The reference location information mapped by the location encoding segment included in the identity encoding sequence in the fifth identity encoding sequence set is compared with the location information to be identified, so as to narrow the comparison range. And, the position coding segment described in the embodiment of this specification is made up of 6 digits, and the first two are the province (city) where the animal is located, the middle two are the city (district) where the animal is located, and the last two are the county where the animal is located. .
本說明書實施例中,位置屬性資訊可透過查詢第一生物特徵圖像或第二生物特徵圖像的圖像屬性資訊獲取;並且圖像屬性資訊中攜帶的位置資訊多為位置坐標,在比對過程中需將位置坐標轉化為具體的位置資訊;在檢測到第一生物特徵圖像或第二生物特徵圖像中攜帶位置資訊後, 提取位置資訊,將位置資訊作為待識別位置資訊與第五身份編碼序列集合中各個身份編碼序列包含的位置編碼段映射的基準位置資訊進行比對,具體的比對過程與前述比對過程類似,在此不再贅述。 In the embodiment of this specification, the location attribute information can be obtained by querying the image attribute information of the first biometric image or the second biometric image; and the location information carried in the image attribute information is mostly location coordinates. During the process, the location coordinates need to be converted into specific location information; after detecting the location information carried in the first biometric image or the second biometric image, Extract the position information, and compare the position information as the position information to be identified with the reference position information of the position coding segment mapping contained in each identity coding sequence in the fifth identity coding sequence set, and the specific comparison process is similar to the aforementioned comparison process, It is not repeated here.
步驟108,根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼。
具體的,身份編碼序列中的編碼段分別映射一種基準生物特徵資訊,比對完成後,將包含比對一致的基準生物特徵資訊映射的編碼段數最多的身份編碼序列確定為目標身份編碼序列,若存在兩個或兩個以上身份編碼序列中包含的比對一致的基準生物特徵資訊映射的編碼段數最多且相等,則將包含相似度較大的目標圖像對應的生物特徵編碼段的身份編碼序列確定為目標身份編碼序列。 Specifically, the coding segments in the identity coding sequence are respectively mapped to one kind of reference biometric information, and after the comparison is completed, the identity coding sequence with the largest number of coding segments mapped by the aligned reference biometric information is determined as the target identity coding sequence, If there are two or more identically aligned reference biometric information mappings in two or more identity coding sequences with the largest and equal number of coding segments, the identity of the biometric coding segment corresponding to the target image with greater similarity will be included. The coding sequence is determined to be the target identity coding sequence.
本說明書提供的一個實施例中,所述根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,具體可透過以下步驟實現:將所述身份編碼序列中類別編碼段映射的與所述待識別生物特徵資訊比對一致的生物特徵資訊的數目確定為所述身份編碼序列中包含的比對一致的編碼段數;篩選包含比對一致的編碼段數最多的身份編碼序列並基於篩選結果構建第三身份編碼序列集合;判斷所述第三身份編碼序列集合中身份編碼序列個數 是否等於1;若是,則將所述第三身份編碼序列集合中的身份編碼序列確定為所述目標身份編碼序列;若否,則將所述第三身份編碼序列集合中包含與所述第一生物特徵圖像的相似度最高的目標圖像對應的生物特徵編碼段的身份編碼序列確定為所述目標身份編碼序列。 In an embodiment provided in this specification, the querying of the target identity coding sequence according to the number of identically aligned coding segments contained in the identity coding sequence and the similarity calculation result can be specifically implemented by the following steps: The number of biometric information mapped by the category coding segment in the identity coding sequence that is consistent with the biometric information to be identified is determined as the number of aligned coding segments contained in the identity coding sequence; The identity coding sequence with the largest number of coding segments is constructed and a third identity coding sequence set is constructed based on the screening result; the number of identity coding sequences in the third identity coding sequence set is judged Whether it is equal to 1; if so, determine the identity coding sequence in the third identity coding sequence set as the target identity coding sequence; The identity coding sequence of the biometric coding segment corresponding to the target image with the highest similarity of the biometric image is determined as the target identity coding sequence.
具體的,在上述將待識別性別資訊與性別編碼段映射的基準性別資訊進行比對並獲得比對結果的基礎上,所述根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼,即根據所述第二身份編碼序列集合中各個身份編碼序列包含的比對一致的編碼段數以及所述相似度計算結果,在所述第二身份編碼序列集合中查詢所述目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼;在將待識別位置屬性資訊與第五身份編碼序列集合中各個身份編碼序列包含的位置編碼段映射的基準位置屬性資訊進行比對並獲得比對結果後,所述根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼,即根據所述第五身份編碼序列集合中各個身份編碼序列包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並 將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼;以最終確定的所述待識別豢養物的身份識別碼為340827,20141019,02,334,X,100008為例,其中,前6位為豢養物主人身份證前6位,可用於表示豢養物所屬位置;第7至14位為豢養物的出生日期,可用於表示豢養物的年齡;並且1至14位為屬性資訊編碼段;第15至16位表示豢養物所屬種類;第17至19位表示豢養物所屬品種;第20位表示豢養物的性別;並且第15至20位為類別編碼段;第21至26位為豢養物的生物特徵編碼段;確定待識別豢養物的身份識別碼後,保險服務機構可透過所述身份識別碼查詢待識別豢養物的歷史投保記錄以及歷史醫療診斷資訊以為待識別豢養物推薦合適的險種。 Specifically, on the basis of comparing the gender information to be identified with the reference gender information mapped by the gender coding segment and obtaining the comparison result, the number of coding segments that are consistent according to the alignment contained in the identity coding sequence and The similarity calculation result queries the target identity coding sequence, and uses the target identity coding sequence as the identity code of the animal to be identified, that is, according to the ratio of each identity coding sequence contained in the second set of identity coding sequences. To the consistent number of coding segments and the similarity calculation result, query the target identity coding sequence in the second set of identity coding sequences, and use the target identity coding sequence as the identification of the animal to be identified code; after comparing the position attribute information to be identified with the reference position attribute information of the position coding segment mapping contained in each identity coding sequence in the fifth set of identity coding sequences and obtaining a comparison result, the said identity coding sequence The number of consistent coding segments included in the comparison and the similarity calculation result query the target identity coding sequence, and the target identity coding sequence is used as the identity code of the animal to be identified, that is, according to the fifth identity The number of aligned coding segments contained in each identity coding sequence in the set of coding sequences and the result of the similarity calculation query the target identity coding sequence, and The target identity coding sequence is used as the identification code of the animal to be identified; the final identified identification code of the animal to be identified is 340827, 20141019, 02, 334, X, 100008 as an example, wherein, The first 6 digits are the first 6 digits of the owner's ID card, which can be used to indicate the location of the animal; the 7th to 14th digits are the date of birth of the animal, which can be used to indicate the age of the animal; and the 1st to 14th digits are attribute information codes. The 15th to 16th digits indicate the species of the livestock; the 17th to 19th digits represent the species of the livestock; the 20th position represents the sex of the livestock; Biometric coding segment of the animal; after determining the identity code of the animal to be identified, the insurance service agency can use the identification code to query the historical insurance record and historical medical diagnosis information of the animal to be identified to recommend the appropriate animal to be identified. 's risk.
本說明書實施例採用圖像識別的方式,對圖像中豢養物的生物特徵資訊進行識別,並將所述生物特徵資訊與資料庫中預先儲存的豢養物的電子身份證的字段進行比對以對待識別豢養物進行身份識別,提高了豢養物身份識別方法的可行性,並且透過拍攝的方式識別豢養物的身份,不僅保障了豢養物的安全,還可以提升對豢養物的身份進行識別的便利性。 The embodiment of this specification adopts the method of image recognition to identify the biometric information of the animal in the image, and compares the biometric information with the fields of the electronic ID card of the animal pre-stored in the database to obtain The identification of the animals to be identified improves the feasibility of the method of identification of the animals, and the identification of the animals by means of photography not only ensures the safety of the animals, but also improves the convenience of identifying the animals' identities. sex.
下述結合附圖2,以本說明書提供的豢養物身份識別方法在保險項目的應用為例,對所述豢養物身份識別方法進行進一步說明。其中,圖2示出了本說明書一個實施例提供的一種豢養物身份識別方法應用於保險項目的處理流
程圖,具體步驟包括步驟202至步驟218。
The following is a further description of the method for the identification of domesticated animals by taking the application of the method for identification of domesticated animals provided in this specification in an insurance project as an example with reference to FIG. 2 . Wherein, FIG. 2 shows a processing flow of applying a method for identification of livestock animals provided by an embodiment of the present specification to an insurance item
The specific steps include
步驟202,獲取寵物狗pet D1的第一生物特徵圖像以及第二生物特徵圖像,計算所述第一生物特徵圖像與資料庫中多個寵物狗的基準生物特徵圖像的相似度。 Step 202: Obtain the first biometric image and the second biometric image of the pet dog pet D1, and calculate the similarity between the first biometric image and the reference biometric images of multiple pet dogs in the database.
具體的,在接收到用戶針對寵物狗pet D1發送的投保請求時,需透過獲取寵物狗pet D1的生物特徵圖像以對其進行身份識別,以確定寵物狗pet D1的歷史投保記錄以及歷史就診資料,並根據所述歷史投保記錄和歷史就診資料為寵物狗pet D1確定合適的投保險種。 Specifically, when receiving the insurance request sent by the user for the pet dog pet D1, it is necessary to obtain the biometric image of the pet dog pet D1 to identify it, so as to determine the historical insurance application record and the historical medical treatment of the pet dog pet D1. According to the historical insurance record and historical medical treatment information, the appropriate insurance type is determined for the pet dog pet D1.
步驟204,判斷相似度計算結果是否滿足預設相似度閾值。 Step 204: Determine whether the similarity calculation result satisfies a preset similarity threshold.
具體的,判斷所述相似度計算結果中是否存在寵物狗的基準生物特徵圖像與所述第一生物特徵圖像的相似度滿足預設相似度閾值;若是,則執行步驟206;若否,則執行步驟208。 Specifically, it is determined whether the similarity between the reference biometric image of the pet dog and the first biometric image meets the preset similarity threshold in the similarity calculation result; if so, go to step 206; if not, go to step 206 Then step 208 is executed.
步驟206,將包含所述基準生物圖像對應的生物特徵編碼段的身份編碼序列作為目標身份編碼序列。
步驟208,將相似度計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列。 Step 208 , taking the reference biometric image that satisfies the preset condition in the similarity calculation result as the target image, and read the identity coding sequence including the biometric coding segment corresponding to the target image.
具體的,若任意一個基準生物特徵圖像與所述第一生物特徵圖像的相似度均小於等於預設相似度閾值,則需根據相似度計算結果選取滿足預設條件的n個相似度較大的基準生物特徵圖像作為目標圖像,其中n為正整數。 Specifically, if the similarity between any reference biometric image and the first biometric image is less than or equal to a preset similarity threshold, it is necessary to select n similarity comparisons that satisfy the preset conditions according to the similarity calculation result. A large baseline biometric image is used as the target image, where n is a positive integer.
步驟210,提取所述第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對。
具體的,所述待識別生物特徵資訊包括待識別種類資訊、待識別品種資訊以及待識別性別資訊;所述類別編碼段包括種類編碼段、品種編碼段以及性別編碼段。 Specifically, the biometric information to be identified includes category information to be identified, type information to be identified, and gender information to be identified; the category encoding segment includes a category encoding segment, a variety encoding segment, and a gender encoding segment.
步驟212,根據比對結果篩選包含比對一致的類別編碼段的身份編碼序列作為身份編碼序列集合。
步驟214,提取所述第一生物特徵圖像或所述第二生物特徵圖像的待識別屬性資訊,將所述待識別屬性資訊與所述身份編碼序列集合中各個身份編碼序列包含的屬性編碼段映射的基準屬性資訊進行比對。 Step 214: Extract the attribute information to be identified of the first biometric image or the second biometric image, and encode the attribute information to be identified with the attributes contained in each identity coding sequence in the set of identity coding sequences. The benchmark attribute information of the segment map is compared.
具體的,所述待識別屬性資訊包括待識別年齡資訊以及待識別位置資訊;所述屬性編碼段包括年齡編碼段以及位置編碼段。 Specifically, the to-be-identified attribute information includes to-be-identified age information and to-be-identified location information; the attribute encoding segment includes an age encoding segment and a location encoding segment.
步驟216,根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述寵物狗pet D1的身份識別碼。
具體的,身份編碼序列中的編碼段分別映射一種基準生物特徵資訊,比對完成後,將包含比對一致的基準生物特徵資訊映射的編碼段數最多的身份編碼序列確定為目標身份編碼序列,若存在兩個或兩個以上身份編碼序列中包含的比對一致的基準生物特徵資訊映射的編碼段數最多且 相等,則將包含相似度較大的目標圖像對應的生物特徵編碼段的身份編碼序列確定為目標身份編碼序列,並將所述目標身份編碼序列作為寵物狗的身份識別碼。 Specifically, the coding segments in the identity coding sequence are respectively mapped to one kind of reference biometric information, and after the comparison is completed, the identity coding sequence with the largest number of coding segments mapped by the aligned reference biometric information is determined as the target identity coding sequence, If there are two or more identity-coding sequences that contain consistent alignments, the number of coding segments mapped to the reference biometric information is the largest and If they are equal, the identity coding sequence including the biometric coding segment corresponding to the target image with a greater degree of similarity is determined as the target identity coding sequence, and the target identity coding sequence is used as the dog's ID code.
步驟218,利用所述身份識別碼查詢寵物狗pet D1的歷史投保記錄以及歷史就診記錄,根據所述歷史投保記錄以及歷史就診記錄為寵物狗pet D1確定險種類型。
本說明書實施例採用圖像識別的方式,對圖像中寵物狗的生物特徵資訊進行識別,並將所述生物特徵資訊與資料庫中預先儲存的寵物狗的電子身份證的不同編碼段映射的基準生物特徵資訊進行比對以對寵物狗進行身份識別,提高了寵物狗身份識別方法的可行性,並且透過拍攝的方式識別寵物狗的身份,不僅保障了豢養物的安全,還可以提升對寵物狗的身份進行識別的便利性。 The embodiment of this specification adopts the method of image recognition to identify the biometric information of the pet dog in the image, and maps the biometric information to different coding segments of the electronic ID card of the pet dog pre-stored in the database. The benchmark biometric information is compared to identify the pet dog, which improves the feasibility of the pet dog identification method, and the identification of the pet dog through the method of photography not only ensures the safety of the domestic animals, but also improves the pet dog's identity. The ease of identification of the dog's identity.
與上述方法實施例相對應,本說明書還提供了豢養物身份識別裝置實施例,圖3示出了本說明書一個實施例提供的一種豢養物身份識別裝置的結構示意圖。如圖3所示,該裝置包括:相似度計算模組302,被配置為獲取待識別豢養物的第一生物特徵圖像以及第二生物特徵圖像,並計算所述第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像的相似度;讀取模組304,被配置為將相似度計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列; 比對模組306,被配置為提取所述第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對;查詢模組308,被配置為根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼。 Corresponding to the above method embodiments, the present specification also provides an embodiment of a feeder identification device, and FIG. 3 shows a schematic structural diagram of a feeder identification device provided by an embodiment of the present specification. As shown in FIG. 3 , the device includes: a similarity calculation module 302, configured to acquire a first biometric image and a second biometric image of the animal to be identified, and calculate the first biometric image Similarity with the reference biometric images of multiple animals in the database; the reading module 304 is configured to use the reference biometric image that meets the preset condition in the similarity calculation result as the target image, and read an identity coding sequence comprising the biometric coding segment corresponding to the target image; The comparison module 306 is configured to extract the to-be-recognized biometric information of the second biometric image, and compare the to-be-identified biometric information with the reference biometric information mapped to the category coding segment in the identity coding sequence. Alignment; the query module 308 is configured to query the target identity coding sequence according to the number of identically aligned coding segments contained in the identity coding sequence and the similarity calculation result, and use the target identity coding sequence as the target identity coding sequence. Describe the identification code of the animal to be identified.
可選地,所述待識別生物特徵資訊包括待識別種類資訊,所述類別編碼段包括種類編碼段;相應的,所述比對模組306,包括:映射關係表讀取子模組,被配置為在資料庫中讀取預先根據各個基準生物特徵資訊與類別編碼段的映射關係構建的映射關係表;基準種類資訊查詢子模組,被配置為在所述映射關係表中查詢所述種類編碼段映射的基準種類資訊;種類資訊比對子模組,被配置為將所述待識別種類資訊與所述種類編碼段映射的基準種類資訊進行比對。 Optionally, the biometric information to be identified includes category information to be identified, and the category code segment includes a category code segment; correspondingly, the comparison module 306 includes: a mapping relationship table reading sub-module, which is It is configured to read the mapping relationship table constructed in advance according to the mapping relationship between each reference biometric information and the category coding segment in the database; the reference category information query sub-module is configured to query the category in the mapping relationship table The reference category information of the coding segment mapping; the category information comparison sub-module is configured to compare the to-be-identified category information with the reference category information of the category coding segment mapping.
可選地,所述待識別生物特徵資訊還包括待識別品種資訊,所述類別編碼段還包括品種編碼段;相應的,所述比對模組306,還包括:第一身份編碼序列篩選子模組,被配置為根據比對結果篩選包含比對一致的種類編碼段的身份編碼序列作為第一身份編碼序列集合; 基準品種資訊查詢子模組,被配置為在所述映射關係表中查詢所述第一身份編碼序列集合中包含的各個身份編碼序列中品種編碼段映射的基準品種資訊;品種資訊比對子模組,被配置為將所述待識別品種資訊與所述品種編碼段映射的基準品種資訊進行比對。 Optionally, the biometric information to be identified further includes species information to be identified, and the category encoding segment further includes a species encoding segment; correspondingly, the comparison module 306 further includes: a first identity encoding sequence screener a module, configured to screen the identity coding sequences comprising the identically aligned species coding segments as the first set of identity coding sequences according to the comparison result; A reference variety information query sub-module, configured to query the mapping relationship table for the reference variety information mapped by the variety coding segment in each identity coding sequence included in the first identity coding sequence set; the variety information comparison submodule The group is configured to compare the to-be-identified variety information with the reference variety information mapped by the variety code segment.
可選地,所述待識別生物特徵資訊還包括待識別性別資訊,所述類別編碼段還包括性別編碼段;相應的,所述比對模組306,還包括:第二身份編碼序列篩選子模組,被配置為根據比對結果在所述第一身份編碼序列集合中篩選包含比對一致的品種編碼段的身份編碼序列作為第二身份編碼序列集合;基準性別資訊查詢子模組,被配置為在所述映射關係表中查詢所述第二身份編碼序列集合中包含的各個身份編碼序列中性別編碼段映射的基準性別資訊;性別資訊比對子模組,被配置為將所述待識別性別資訊與所述性別編碼段映射的基準性別資訊進行比對。 Optionally, the biometric information to be identified further includes gender information to be identified, and the category encoding segment further includes a gender encoding segment; correspondingly, the comparison module 306 further includes: a second identity encoding sequence screener The module is configured to screen, according to the comparison result, the identity coding sequences containing the identically aligned variety coding segments in the first set of identity coding sequences as the second set of identity coding sequences; the reference gender information query sub-module is selected by is configured to query the mapping relationship table for the reference gender information mapped by the gender coding segments in each identity coding sequence included in the second set of identity coding sequences; the gender information comparison sub-module is configured to The identification gender information is compared with the reference gender information mapped by the gender coding segment.
可選地,所述查詢模組308,包括:第一查詢子模組,被配置為根據所述第二身份編碼序列集合中各個身份編碼序列包含的比對一致的編碼段數以及所述相似度計算結果,在所述第二身份編碼序列集合中查詢所述目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼。 Optionally, the query module 308 includes: a first query sub-module, which is configured according to the number of aligned coding segments contained in each identity coding sequence in the second set of identity coding sequences and the similarity According to the result of the degree calculation, the target identity coding sequence is queried in the second set of identity coding sequences, and the target identity coding sequence is used as the identity code of the animal to be identified.
可選地,所述查詢模組308,包括:確定子模組,被配置為將所述身份編碼序列中類別編 碼段映射的與所述待識別生物特徵資訊比對一致的生物特徵資訊的數目確定為所述身份編碼序列中包含的比對一致的編碼段數;篩選子模組,被配置為篩選包含比對一致的編碼段數最多的身份編碼序列作為第三身份編碼序列集合;判斷子模組,被配置為判斷所述第三身份編碼序列集合中身份編碼序列個數是否等於1;若所述判斷子模組的執行結果為是,則運行第一目標身份編碼序列確定子模組;所述第一目標身份編碼序列確定子模組,被配置為將所述第三身份編碼序列集合中的身份編碼序列確定為所述目標身份編碼序列;若所述判斷子模組的執行結果為否,則運行第二目標身份編碼序列確定子模組;所述第二目標身份編碼序列確定子模組,被配置為將所述第三身份編碼序列集合中包含與所述第一生物特徵圖像的相似度最高的目標圖像對應的生物特徵編碼段的身份編碼序列確定為所述目標身份編碼序列。 Optionally, the query module 308 includes: a determination sub-module configured to encode the category in the identity coding sequence The number of the biometric information mapped by the code segment that is consistent with the biometric information to be identified is determined as the number of aligned coding segments contained in the identity coding sequence; The identity coding sequence with the largest number of consistent coding segments is used as the third identity coding sequence set; the judgment submodule is configured to judge whether the number of identity coding sequences in the third identity coding sequence set is equal to 1; if the judgment is The execution result of the submodule is yes, then run the first target identity coding sequence to determine the submodule; the first target identity coding sequence to determine the submodule is configured to The coding sequence is determined to be the target identity coding sequence; if the execution result of the judgment submodule is no, then run the second target identity coding sequence to determine the submodule; the second target identity coding sequence determines the submodule, It is configured to determine an identity coding sequence that includes a biometric coding segment corresponding to a target image with the highest similarity to the first biometric image in the third set of identity coding sequences as the target identity coding sequence.
可選地,所述豢養物身份識別裝置,還包括:判斷模組,被配置為判斷所述相似度計算結果中是否存在任意一個豢養物的基準生物特徵圖像與所述第一生物特徵圖像的相似度滿足預設相似度閾值;若所述判斷模組的執行結果為否,則運行所述讀取模組。 Optionally, the animal identification device further includes: a judging module configured to determine whether there is any reference biometric image of the animal and the first biometric map in the similarity calculation result. The similarity of the images satisfies the preset similarity threshold; if the execution result of the judgment module is no, the read module is run.
可選地,所述身份編碼序列還包括屬性編碼段;相應的,所述豢養物身份識別裝置,還包括:身份編碼序列篩選模組,被配置為根據比對結果篩選包含比對一致的類別編碼段的身份編碼序列作為第四身份編碼序列集合;屬性資訊比對模組,被配置為提取所述第一生物特徵圖像或所述第二生物特徵圖像的待識別屬性資訊,將所述待識別屬性資訊與所述第四身份編碼序列集合中各個身份編碼序列包含的屬性編碼段映射的基準屬性資訊進行比對。 Optionally, the identity coding sequence further includes an attribute coding segment; correspondingly, the animal identification device further includes: an identity coding sequence screening module, configured to screen the categories that contain the same alignment according to the comparison result The identity coding sequence of the coding segment is used as the fourth identity coding sequence set; the attribute information comparison module is configured to extract the to-be-identified attribute information of the first biometric image or the second biometric image, The to-be-identified attribute information is compared with the reference attribute information mapped to the attribute code segment included in each identity code sequence in the fourth set of identity code sequences.
可選地,所述待識別屬性資訊包括待識別年齡資訊,所述屬性編碼段包括年齡編碼段;相應的,所述屬性資訊比對模組,包括:待識別年齡資訊確定子模組,被配置為將所述第一生物特徵圖像或所述第二生物特徵圖像輸入預先訓練的年齡識別模型,獲取輸出的年齡識別結果作為所述待識別年齡資訊;年齡資訊判斷子模組,被配置為判斷所述年齡編碼段映射的基準年齡資訊是否屬於所述待識別年齡資訊中包含的年齡區間;若所述年齡資訊判斷子模組的執行結果為是,則運行比對結果確定子模組;所述比對結果確定子模組,被配置為確定將所述待識別年齡資訊與所述年齡編碼段映射的基準年齡資訊進行比 對的比對結果為比對一致。 Optionally, the attribute information to be identified includes age information to be identified, and the attribute coding section includes an age coding section; correspondingly, the attribute information comparison module includes: a submodule for determining age information to be identified, which is It is configured to input the first biometric image or the second biometric image into a pre-trained age recognition model, and obtain the output age recognition result as the age information to be recognized; the age information judgment submodule is It is configured to judge whether the reference age information mapped by the age coding segment belongs to the age range included in the age information to be identified; if the execution result of the age information judgment submodule is yes, run the comparison result to determine the submodule group; the comparison result determination submodule is configured to determine to compare the age information to be identified with the reference age information mapped to the age coding segment The alignment results of the alignment are consistent.
可選地,所述待識別屬性資訊還包括待識別位置屬性資訊,所述屬性編碼段包括位置編碼段;相應的,所述屬性資訊比對模組,還包括:身份編碼序列集合確定子模組,被配置為根據比對結果篩選包含比對一致的年齡編碼段的身份編碼序列作為第五身份編碼序列集合;位置屬性資訊檢測子模組,被配置為檢測所述第一生物特徵圖像或所述第二生物特徵圖像中是否攜帶位置屬性資訊;若所述位置屬性資訊檢測子模組的執行結果為是,則運行位置屬性資訊比對子模組;所述位置屬性資訊比對子模組,被配置為提取所述位置屬性資訊作為所述待識別位置屬性資訊,將所述待識別位置屬性資訊與所述第五身份編碼序列集合中各個身份編碼序列包含的位置編碼段映射的基準位置屬性資訊進行比對。 Optionally, the to-be-identified attribute information further includes to-be-identified location attribute information, and the attribute encoding segment includes a location encoding segment; correspondingly, the attribute information comparison module further includes: an identity encoding sequence set determination submodule The group is configured to screen the identity coding sequences containing the age coding segments that are consistent in the comparison as the fifth identity coding sequence set according to the comparison result; the location attribute information detection sub-module is configured to detect the first biometric image. Or whether the position attribute information is carried in the second biometric image; if the execution result of the position attribute information detection sub-module is yes, then run the position attribute information comparison sub-module; the position attribute information comparison A sub-module, configured to extract the location attribute information as the to-be-identified location attribute information, and map the to-be-identified location attribute information to the location code segments included in each identity code sequence in the fifth set of identity code sequences The reference location attribute information of .
可選地,所述查詢模組308,包括:第二目標身份編碼序列查詢子模組,被配置為根據所述第五身份編碼序列集合中各個身份編碼序列包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼。 Optionally, the query module 308 includes: a second target identity coding sequence query sub-module, configured to be based on the number of aligned coding segments contained in each identity coding sequence in the fifth set of identity coding sequences And the similarity calculation result is used to query the target identity coding sequence, and the target identity coding sequence is used as the identity code of the animal to be identified.
上述為本實施例的一種豢養物身份識別裝置的示意性 方案。需要說明的是,該豢養物身份識別裝置的技術方案與上述的豢養物身份識別方法的技術方案屬於同一構思,豢養物身份識別裝置的技術方案未詳細描述的細節內容,均可以參見上述豢養物身份識別方法的技術方案的描述。 The above is a schematic diagram of a feeder identification device of the present embodiment Program. It should be noted that the technical solution of the livestock identification device and the technical solution of the above-mentioned livestock identification method belong to the same concept, and the details that are not described in detail in the technical solution of the livestock identification device can be referred to above. A description of the technical solution of the identification method.
圖4示出了根據本說明書一個實施例提供的一種計算設備400的結構框圖。該計算設備400的部件包括但不限於記憶體410和處理器420。處理器420與記憶體410透過匯流排430相連接,資料庫450用於保存資料。 FIG. 4 shows a structural block diagram of a computing device 400 provided according to an embodiment of the present specification. Components of the computing device 400 include, but are not limited to, the memory 410 and the processor 420 . The processor 420 and the memory 410 are connected through the bus bar 430, and the database 450 is used for storing data.
計算設備400還包括接入設備440,接入設備440使得計算設備400能夠經由一個或多個網路460通信。這些網路的示例包括公用交換電話網(PSTN)、區域網(LAN)、廣域網(WAN)、個域網(PAN)或諸如網際網路的通信網路的組合。接入設備440可以包括有線或無線的任何類型的網路介面(例如,網路介面卡(NIC))中的一個或多個,諸如IEEE802.11無線區域網(WLAN)無線介面、全球微波互聯接入(Wi-MAX)介面、以太網介面、通用串行匯流排(USB)介面、蜂巢式網路介面、藍牙介面、近場通信(NFC)介面,等等。 Computing device 400 also includes access device 440 that enables computing device 400 to communicate via one or more networks 460 . Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. Access device 440 may include one or more of any type of network interface (eg, network interface card (NIC)), wired or wireless, such as IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, World Interoperability for Microwave Access (Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, etc.
在本說明書的一個實施例中,計算設備400的上述部件以及圖4中未示出的其他部件也可以彼此相連接,例如透過匯流排。應當理解,圖4所示的計算設備結構框圖僅僅是出於示例的目的,而不是對本說明書範圍的限制。本領域技術人員可以根據需要,增添或替換其他部件。 In one embodiment of the present specification, the above-described components of computing device 400 and other components not shown in FIG. 4 may also be connected to each other, such as through bus bars. It should be understood that the structural block diagram of the computing device shown in FIG. 4 is only for the purpose of example, rather than limiting the scope of this specification. Those skilled in the art can add or replace other components as required.
計算設備400可以是任何類型的靜止或行動計算設 備,包括行動計算機或行動計算設備(例如,平板計算機、個人數位助理、膝上型計算機、筆記型計算機、小筆電等)、行動電話(例如,智慧手機)、可佩戴的計算設備(例如,智慧手錶、智慧眼鏡等)或其他類型的行動設備,或者諸如臺式計算機或PC的靜止計算設備。計算設備400還可以是移動式或靜止式的伺服器。 Computing device 400 may be any type of stationary or mobile computing device. devices, including mobile computers or mobile computing devices (eg, tablet computers, personal digital assistants, laptops, notebook computers, small notebooks, etc.), mobile phones (eg, smartphones), wearable computing devices (eg, , smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. Computing device 400 may also be a mobile or stationary server.
其中,所述記憶體410用於儲存計算機可執行指令,處理器420用於執行如下計算機可執行指令:獲取待識別豢養物的第一生物特徵圖像以及第二生物特徵圖像,並計算所述第一生物特徵圖像與資料庫中多個豢養物的基準生物特徵圖像的相似度;將相似度計算結果中滿足預設條件的基準生物特徵圖像作為目標圖像,讀取包含與所述目標圖像對應的生物特徵編碼段的身份編碼序列;提取所述第二生物特徵圖像的待識別生物特徵資訊,將所述待識別生物特徵資訊與所述身份編碼序列中類別編碼段映射的基準生物特徵資訊進行比對;根據所述身份編碼序列中包含的比對一致的編碼段數以及所述相似度計算結果查詢目標身份編碼序列,並將所述目標身份編碼序列作為所述待識別豢養物的身份識別碼。 The memory 410 is used for storing computer-executable instructions, and the processor 420 is used for executing the following computer-executable instructions: acquiring the first biometric image and the second biometric image of the animal to be identified, and calculating all the Describe the similarity between the first biometric image and the benchmark biometric images of multiple animals in the database; take the benchmark biometric image that satisfies the preset conditions in the similarity calculation result as the target image, and read the image containing the The identity coding sequence of the biometric coding segment corresponding to the target image; extracting the biometric information to be identified of the second biometric image, and combining the biometric information to be identified with the category coding segment in the identity coding sequence The mapped reference biometric information is compared; according to the number of identically aligned coding segments contained in the identity coding sequence and the similarity calculation result, the target identity coding sequence is queried, and the target identity coding sequence is used as the The identification code of the animal to be identified.
上述為本實施例的一種計算設備的示意性方案。需要說明的是,該計算設備的技術方案與上述的豢養物身份識別方法的技術方案屬於同一構思,計算設備的技術方案未 詳細描述的細節內容,均可以參見上述豢養物身份識別方法的技術方案的描述。 The above is a schematic solution of a computing device according to this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned method for identification of livestock animals belong to the same concept, and the technical solution of the computing device is not identical. For the details of the detailed description, reference can be made to the description of the technical solution of the above-mentioned method for identification of livestock.
本說明書一實施例還提供一種計算機可讀儲存媒體,其儲存有計算機指令,該指令被處理器執行時以用於實現所述豢養物身份識別方法的步驟。 An embodiment of the present specification further provides a computer-readable storage medium, which stores computer instructions, and when the instructions are executed by a processor, is used to implement the steps of the method for identifying livestock.
上述為本實施例的一種計算機可讀儲存媒體的示意性方案。需要說明的是,該儲存媒體的技術方案與上述的豢養物身份識別方法的技術方案屬於同一構思,儲存媒體的技術方案未詳細描述的細節內容,均可以參見上述豢養物身份識別方法的技術方案的描述。 The above is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned method for identification of livestock animals belong to the same concept, and the details that are not described in detail in the technical scheme of the storage medium can be referred to the technical scheme of the above-mentioned method for identification of pigeons. description of.
上述對本說明書特定實施例進行了描述。其它實施例在所附申請專利範圍的範圍內。在一些情況下,在申請專利範圍中記載的動作或步驟可以按照不同於實施例中的順序來執行並且仍然可以實現期望的結果。另外,在附圖中描繪的過程不一定要求示出的特定順序或者連續順序才能實現期望的結果。在某些實施方式中,多任務處理和並行處理也是可以的或者可能是有利的。 The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
所述計算機指令包括計算機程式代碼,所述計算機程式代碼可以為源代碼形式、對象代碼形式、可執行文件或某些中間形式等。所述計算機可讀媒體可以包括:能夠攜帶所述計算機程式代碼的任何實體或裝置、記錄媒體、隨身碟、行動硬碟、磁碟、光碟、計算機記憶體、唯讀記憶體(ROM,Read-Only Memory)、隨機存取記憶體(RAM,Random Access Memory)、電載波信號、電信信號以及軟 體分發媒體等。需要說明的是,所述計算機可讀媒體包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,計算機可讀媒體不包括電載波信號和電信信號。 The computer instructions include computer program code, which may be in source code form, object code form, an executable file, some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, pen drive, portable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software body distribution media, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.
需要說明的是,對於前述的各方法實施例,為了簡便描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本說明書實施例並不受所描述的動作順序的限制,因為依據本說明書實施例,某些步驟可以採用其它順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於優選實施例,所涉及的動作和模組並不一定都是本說明書實施例所必須的。 It should be noted that, for the convenience of description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of this specification are not limited by the described action sequences. Limitation, because certain steps may be performed in other orders or simultaneously according to embodiments of the present specification. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily all necessary for the embodiments of the specification.
在上述實施例中,對各個實施例的描述都各有側重,某個實施例中沒有詳述的部分,可以參見其它實施例的相關描述。 In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
以上公開的本說明書優選實施例只是用於幫助闡述本說明書。可選實施例並沒有詳盡敘述所有的細節,也不限制該發明僅為所述的具體實施方式。顯然,根據本說明書實施例的內容,可作很多的修改和變化。本說明書選取並具體描述這些實施例,是為了更好地解釋本說明書實施例的原理和實際應用,從而使所屬技術領域技術人員能很好地理解和利用本說明書。本說明書僅受申請專利範圍及其全部範圍和等效物的限制。 The preferred embodiments of the present specification disclosed above are provided only to aid in the elaboration of the present specification. Alternative embodiments are not intended to exhaust all details, nor do they limit the invention to only the described embodiments. Obviously, many modifications and changes can be made in accordance with the contents of the embodiments of the present specification. These embodiments are selected and described in this specification to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can well understand and utilize this specification. This specification is limited only by the scope of the patent application and its full scope and equivalents.
Claims (15)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911168378.1 | 2019-11-25 | ||
CN201911168378.1A CN110929650B (en) | 2019-11-25 | 2019-11-25 | Method and device for identifying livestock and feed identity, computing equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202121234A TW202121234A (en) | 2021-06-01 |
TWI775077B true TWI775077B (en) | 2022-08-21 |
Family
ID=69851011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109115326A TWI775077B (en) | 2019-11-25 | 2020-05-08 | Feedstock identification method and device |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN110929650B (en) |
TW (1) | TWI775077B (en) |
WO (1) | WO2021103707A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110929650B (en) * | 2019-11-25 | 2022-04-12 | 蚂蚁胜信(上海)信息技术有限公司 | Method and device for identifying livestock and feed identity, computing equipment and readable storage medium |
CN111831843A (en) * | 2020-06-11 | 2020-10-27 | 广东工业大学 | Block chain-based animal identity management method and system |
CN112329573A (en) * | 2020-10-27 | 2021-02-05 | 苏州中科先进技术研究院有限公司 | Cat nasal print recognition method and device based on cat nasal print feature extraction model |
CN112231672A (en) * | 2020-10-30 | 2021-01-15 | 支付宝(杭州)信息技术有限公司 | Identity recognition method and device |
CN112214748A (en) * | 2020-10-30 | 2021-01-12 | 支付宝(杭州)信息技术有限公司 | Identity recognition system, method and device |
CN112488109B (en) * | 2020-12-10 | 2024-03-29 | 深圳市云辉牧联科技有限公司 | Method and device for identifying livestock and poultry identification codes and computer readable storage medium |
CN117932579A (en) * | 2021-06-02 | 2024-04-26 | 蚂蚁胜信(上海)信息技术有限公司 | Biological relation authentication processing method and device |
CN114997444A (en) * | 2022-04-28 | 2022-09-02 | 新瑞鹏宠物医疗集团有限公司 | Pet nasal print-based fostering appointment processing method and related device |
CN115587896B (en) * | 2022-10-13 | 2023-08-11 | 星宠王国(北京)科技有限公司 | Method, device and equipment for processing canine medical insurance data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201539357A (en) * | 2014-04-10 | 2015-10-16 | Animal Biotech Llc | Livestock identification system and method |
CN108230262A (en) * | 2016-12-09 | 2018-06-29 | 佳能株式会社 | Image processing method, image processing apparatus and storage medium |
CN108460428A (en) * | 2018-04-11 | 2018-08-28 | 波奇(上海)信息科技有限公司 | A kind of method and apparatus of pet image recognition |
CN110334593A (en) * | 2019-05-28 | 2019-10-15 | 浙江泽曦科技有限公司 | Pet recognition algorithms and system |
CN110929650A (en) * | 2019-11-25 | 2020-03-27 | 支付宝(杭州)信息技术有限公司 | Method and device for identifying livestock and poultry |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020116390A1 (en) * | 2000-12-22 | 2002-08-22 | Meadows Louis B. | Pet identification system and method |
JP2010134910A (en) * | 2008-11-07 | 2010-06-17 | Fujifilm Corp | Pet image detection system and method of controlling operation of the same |
CN102592158A (en) * | 2011-01-11 | 2012-07-18 | 郝明学 | Identity card coding method for global pets and other artificial fed animals |
KR101527801B1 (en) * | 2013-05-22 | 2015-06-11 | 주식회사 아이싸이랩 | Apparatus and Method of an Animal Recognition System using nose patterns |
CN107992903A (en) * | 2017-09-20 | 2018-05-04 | 翔创科技(北京)有限公司 | Livestock personal identification method, device, storage medium and electronic equipment |
CN108681611A (en) * | 2018-06-04 | 2018-10-19 | 北京竞时互动科技有限公司 | Pet management method and system |
CN109255297B (en) * | 2018-08-06 | 2022-12-13 | 百度在线网络技术(北京)有限公司 | Animal state monitoring method, terminal device, storage medium and electronic device |
CN109493873A (en) * | 2018-11-13 | 2019-03-19 | 平安科技(深圳)有限公司 | Livestock method for recognizing sound-groove, device, terminal device and computer storage medium |
CN109543663B (en) * | 2018-12-28 | 2021-04-27 | 北京旷视科技有限公司 | Method, device and system for identifying identity of dog and storage medium |
CN109829381A (en) * | 2018-12-28 | 2019-05-31 | 北京旷视科技有限公司 | A kind of dog only identifies management method, device, system and storage medium |
CN109948458A (en) * | 2019-02-25 | 2019-06-28 | 广东智媒云图科技股份有限公司 | Pet personal identification method, device, equipment and storage medium based on noseprint |
-
2019
- 2019-11-25 CN CN201911168378.1A patent/CN110929650B/en active Active
-
2020
- 2020-05-08 TW TW109115326A patent/TWI775077B/en active
- 2020-08-27 WO PCT/CN2020/111843 patent/WO2021103707A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201539357A (en) * | 2014-04-10 | 2015-10-16 | Animal Biotech Llc | Livestock identification system and method |
CN108230262A (en) * | 2016-12-09 | 2018-06-29 | 佳能株式会社 | Image processing method, image processing apparatus and storage medium |
CN108460428A (en) * | 2018-04-11 | 2018-08-28 | 波奇(上海)信息科技有限公司 | A kind of method and apparatus of pet image recognition |
CN110334593A (en) * | 2019-05-28 | 2019-10-15 | 浙江泽曦科技有限公司 | Pet recognition algorithms and system |
CN110929650A (en) * | 2019-11-25 | 2020-03-27 | 支付宝(杭州)信息技术有限公司 | Method and device for identifying livestock and poultry |
Also Published As
Publication number | Publication date |
---|---|
TW202121234A (en) | 2021-06-01 |
CN110929650A (en) | 2020-03-27 |
CN110929650B (en) | 2022-04-12 |
WO2021103707A1 (en) | 2021-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI775077B (en) | Feedstock identification method and device | |
US20240161286A1 (en) | Animal health assessment | |
Li et al. | Individual beef cattle identification using muzzle images and deep learning techniques | |
Neethirajan | Happy cow or thinking pig? Wur wolf—facial coding platform for measuring emotions in farm animals | |
CN107992903A (en) | Livestock personal identification method, device, storage medium and electronic equipment | |
Yu et al. | Mortality resulting from undesirable behaviours in dogs aged three years and under attending primary-care veterinary practices in Australia | |
Majewski et al. | Multipurpose monitoring system for edible insect breeding based on machine learning | |
CN113420709A (en) | Cattle face feature extraction model training method and system and cattle insurance method and system | |
Ağyar et al. | Use of multivariate adaptive regression splines algorithm to predict body weight from body measurements of anatolian buffaloes in türkiye | |
Gong et al. | Fish-TViT: A novel fish species classification method in multi water areas based on transfer learning and vision transformer | |
Gao et al. | CNN-Bi-LSTM: A complex environment-oriented cattle behavior classification network based on the fusion of CNN and Bi-LSTM | |
Yu et al. | Research on Automatic Recognition of Dairy Cow Daily Behaviors Based on Deep Learning | |
Li et al. | Dynamic Serpentine Convolution with Attention Mechanism Enhancement for Beef Cattle Behavior Recognition | |
Ran et al. | Detection of surfacing white shrimp under hypoxia based on improved lightweight YOLOv5 model | |
Maśko et al. | Characteristics of the donkey’s dorsal profile in relation to its functional body condition assessment | |
Garvin et al. | Forensic tools for species identification of skeletal remains: Metrics, statistics, and OsteoID | |
Yang et al. | Automated recognition and classification of cat pain through deep learning | |
Qi et al. | Giant panda age recognition based on a facial image deep learning system | |
Zhao et al. | Pose Estimation and Behavior Classification of Jinling White Duck Based on Improved HRNet | |
Feng et al. | Cattle target segmentation method in multi-scenes using improved DeepLabV3+ method | |
Kim et al. | Analysis of Various Facial Expressions of Horses as a Welfare Indicator Using Deep Learning | |
Behzadi Pour et al. | Measuring and Evaluating the Speed and the Physical Characteristics of Fishes Based on Video Processing | |
KR102488264B1 (en) | System for providing artificial intelligence based feeding management service using status information of pet | |
Rivera et al. | Optimizing community science contributions in ecology: A case study on Zooniverse's ‘Chicago wildlife watch’ | |
Bandara et al. | Machine Learning and Image Processing Based Approach for Improving Milk Production and Cattle Livestock Management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent |