TWI833352B - Terminal device, system and method for image measurement of biological characteristics of livestock - Google Patents
Terminal device, system and method for image measurement of biological characteristics of livestock Download PDFInfo
- Publication number
- TWI833352B TWI833352B TW111134633A TW111134633A TWI833352B TW I833352 B TWI833352 B TW I833352B TW 111134633 A TW111134633 A TW 111134633A TW 111134633 A TW111134633 A TW 111134633A TW I833352 B TWI833352 B TW I833352B
- Authority
- TW
- Taiwan
- Prior art keywords
- livestock
- image
- biological characteristics
- image frame
- pen
- Prior art date
Links
- 244000144972 livestock Species 0.000 title claims abstract description 229
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000005259 measurement Methods 0.000 title claims description 33
- 238000013473 artificial intelligence Methods 0.000 claims abstract description 37
- 241001465754 Metazoa Species 0.000 claims abstract description 28
- 238000004364 calculation method Methods 0.000 claims abstract description 12
- 238000009434 installation Methods 0.000 claims abstract description 8
- 238000003062 neural network model Methods 0.000 claims description 19
- 241000894007 species Species 0.000 claims description 15
- 230000008569 process Effects 0.000 claims description 10
- 238000003491 array Methods 0.000 claims description 6
- 238000012549 training Methods 0.000 claims description 2
- 230000001537 neural effect Effects 0.000 claims 2
- 230000004075 alteration Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 9
- 230000037396 body weight Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000003384 imaging method Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 210000003141 lower extremity Anatomy 0.000 description 3
- 238000000691 measurement method Methods 0.000 description 3
- 210000001364 upper extremity Anatomy 0.000 description 3
- 241000283690 Bos taurus Species 0.000 description 2
- 241000283086 Equidae Species 0.000 description 2
- 241001494479 Pecora Species 0.000 description 2
- 241000282887 Suidae Species 0.000 description 2
- 238000009395 breeding Methods 0.000 description 2
- 230000001488 breeding effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000001568 sexual effect Effects 0.000 description 2
- 241000282412 Homo Species 0.000 description 1
- 241000700195 Hydrochoerus hydrochaeris Species 0.000 description 1
- 241000124008 Mammalia Species 0.000 description 1
- 241000699670 Mus sp. Species 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003307 slaughter Methods 0.000 description 1
- 210000000278 spinal cord Anatomy 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
一種用於影像量測家畜生物特徵的方法,包含:自攝影裝置獲得影像的影像獲得步驟,其中該攝影裝置用於自上方拍攝圈養家畜的欄舍;對該影像進行人工智慧影像辨識的辨識步驟,以得到對應到一隻家畜背部的單一個影像框;根據該攝影裝置所安裝的高度與其視角,計算該影像框的家畜背部對應的體長與體寬的計算步驟;以及根據該影像框的家畜背部的體長與體寬,在生物特徵對照表中找到該影像框對應的體重的對照步驟。A method for measuring biological characteristics of livestock through images, including: an image acquisition step of obtaining an image from a photography device, wherein the photography device is used to photograph a pen housing livestock from above; and a recognition step of artificial intelligence image recognition on the image. to obtain a single image frame corresponding to the back of a domestic animal; the calculation steps of calculating the body length and width corresponding to the animal's back of the image frame based on the height and viewing angle of the installation of the photography device; and based on the calculation steps of the image frame The body length and width of the back of the domestic animal, find the comparison steps for the weight corresponding to the image frame in the biometric comparison table.
Description
本申請係關於影像處理,特別係關於利用影像來量測家畜的生物特徵。This application relates to image processing, and specifically to the use of images to measure biometric characteristics of livestock.
人類飼養豬羊馬牛之類的家畜由來已久,科學化集中飼養是畜牧業發展的趨勢。為了瞭解家畜的生長情況,通常需要耗費大量人力以手工方式量測家畜的生物特徵,例如體重,體長,體寬,體高等。然後,人員再加以判斷是否符合販售或屠宰標準。Humans have been raising livestock such as pigs, sheep, horses, and cattle for a long time. Scientific and centralized breeding is the trend in the development of animal husbandry. In order to understand the growth of livestock, it usually takes a lot of manpower to manually measure the biological characteristics of livestock, such as weight, body length, body width, body height, etc. Then, personnel will judge whether it meets the standards for sale or slaughter.
由於在大型畜牧場當中,畜養的家畜的數量可能成千上萬,上述的量測過程不僅費力,而且還耗費大量時間。因此,亟需一種能夠自動量測家畜的生物特徵的系統與方法,來幫畜牧場解決上述的問題。Since the number of livestock raised in large-scale livestock farms may be tens of thousands, the above-mentioned measurement process is not only laborious, but also consumes a lot of time. Therefore, there is an urgent need for a system and method that can automatically measure the biological characteristics of livestock to help livestock farms solve the above problems.
根據本申請的一實施例,提供一種用於影像量測家畜生物特徵的終端裝置,攝影裝置,用於自上方拍攝圈養家畜的欄舍;以及連接到該攝影裝置的主機,用於執行非揮發性記憶體內儲存的多個指令,以實現以下:令該攝影裝置獲得影像的影像獲得步驟;對該影像進行人工智慧影像辨識的辨識步驟,以得到對應到一隻家畜背部的單一個影像框;根據該攝影裝置所安裝的高度與其視角,計算該影像框的家畜背部對應的體長與體寬的計算步驟;以及根據該影像框的家畜背部的體長與體寬,在生物特徵對照表中找到該影像框對應的體重的對照步驟。According to an embodiment of the present application, a terminal device for image measurement of biological characteristics of livestock is provided, a photography device for photographing a barn housing livestock from above; and a host connected to the photography device for executing non-volatile Multiple instructions stored in the sexual memory to achieve the following: the image acquisition step of causing the photography device to obtain an image; the recognition step of artificial intelligence image recognition on the image to obtain a single image frame corresponding to the back of a domestic animal; Calculate the body length and width corresponding to the back of the livestock in the image frame based on the installation height and viewing angle of the photography device; and calculate the body length and width of the livestock back in the image frame in the biometric comparison table Find the comparison steps for the weight corresponding to the image frame.
較佳地,為了得到該欄舍的多隻家畜的平均生物特徵,該主機更用於重複實現前述的影像獲得步驟、辨識步驟、計算步驟與對照步驟,以獲得Z個該影像框與其相應的生物特徵,計算下列該欄舍的平均生物特徵的其中之一或其任意組合:家畜背部的平均體長;家畜背部的平均體寬;以及家畜的平均體重,其中Z為大於或等於2的正整數。Preferably, in order to obtain the average biological characteristics of multiple livestock in the pen, the host is further used to repeatedly implement the aforementioned image acquisition steps, identification steps, calculation steps and comparison steps to obtain Z image frames and their corresponding Biological characteristics, calculate one of the following average biological characteristics of the pen or any combination thereof: the average body length of the livestock's back; the average body width of the livestock's back; and the average weight of the livestock, where Z is a positive number greater than or equal to 2 integer.
較佳地,為了更精確地透過影像來計算生物特徵,其中該影像框的家畜背部對應的該體長與該體寬係相關於下列其中之一或其任意組合:該攝影裝置距離該欄舍地面的高度;以及該攝影裝置的視角。Preferably, in order to more accurately calculate biometric characteristics through images, the body length and body width corresponding to the back of the livestock in the image frame are related to one of the following or any combination thereof: the distance between the photography device and the pen The height of the ground; and the viewing angle of the photographic device.
較佳地,為了避免量測時的較大誤差,其中該主機在對該影像進行人工智慧影像辨識時,更得到一條脊柱線段,當該條脊柱線段與該影像的第一軸的夾角大於一門檻值時,重新實現前述的影像獲得步驟,其中該影像由平行於該第一軸的多個像素陣列所組成。Preferably, in order to avoid large errors in measurement, the host computer further obtains a spine line segment when performing artificial intelligence image recognition on the image. When the angle between the spine line segment and the first axis of the image is greater than one When the threshold value is reached, the aforementioned image acquisition step is re-implemented, wherein the image is composed of a plurality of pixel arrays parallel to the first axis.
較佳地,為了避免對像差較大的部分進行量測,其中該主機在自該攝影裝置獲得該影像之後,更用於對該影像的一部分進行人工智慧影像辨識。Preferably, in order to avoid measuring parts with large aberrations, the host is further used to perform artificial intelligence image recognition on a part of the image after obtaining the image from the photography device.
較佳地,為了得到較佳的辨識效果,其中人工智慧影像辨識係利用類神經網路模型進行影像辨識,該類神經網路模型係利用該欄舍中飼養的同品種家畜的背部影像進行訓練完成。Preferably, in order to obtain better recognition results, the artificial intelligence image recognition system uses a neural network model for image recognition. The neural network model is trained using back images of domestic animals of the same species raised in the pen. Finish.
較佳地,為了報告量測到的家畜生物特徵,該終端裝置更包含連接到網路系統的網路連接裝置,其中該主機更用於令該網路連接裝置透過該網路系統將下列其中之一或其任意組合回報給管理裝置:該影像框的家畜背部對應的體長;該影像框的家畜背部對應的體寬;以及該影像框對應的體重。Preferably, in order to report the measured biological characteristics of the livestock, the terminal device further includes a network connection device connected to the network system, wherein the host is further used to cause the network connection device to transmit the following to the network system through the network system. One or any combination thereof is reported to the management device: the body length corresponding to the back of the livestock in the image frame; the body width corresponding to the back of the livestock in the image frame; and the weight corresponding to the image frame.
較佳地,為了報告量測到的欄舍平均的家畜生物特徵,該終端裝置更包含連接到網路系統的網路連接裝置,其中該主機更用於令該網路連接裝置透過該網路系統將下列其中之一或其任意組合回報給管理裝置:家畜背部的平均體長;家畜背部的平均體寬;以及家畜的平均體重。Preferably, in order to report the measured average livestock biometric characteristics of the stall, the terminal device further includes a network connection device connected to the network system, wherein the host is further used to enable the network connection device to pass through the network The system reports one of the following or any combination thereof to the management device: the average body length of the livestock's back; the average body width of the livestock's back; and the average weight of the livestock.
較佳地,為了精準地利用體長與體寬來對應到同一品種家畜的體重,其中該欄舍的該家畜與該生物特徵對照表內所對應的資料係屬於同一品種。Preferably, in order to accurately use body length and body width to correspond to the weight of livestock of the same species, the livestock in the pen and the corresponding data in the biometric comparison table belong to the same species.
較佳地,為了讓管理裝置可以遠端地對終端裝置進行設定,終端裝置,更包含連接到網路系統的網路連接裝置,其中該主機更用於令該網路連接裝置透過該網路系統自管理裝置接收下列其中之一或其任意組合:該生物特徵對照表;以及人工智慧影像辨識所使用的類神經網路模型。Preferably, in order to allow the management device to remotely configure the terminal device, the terminal device further includes a network connection device connected to the network system, wherein the host is further used to enable the network connection device to pass through the network The system self-management device receives one of the following or any combination thereof: the biometric comparison table; and the neural network model used in artificial intelligence image recognition.
根據本申請的一實施例,提供一種用於影像量測家畜生物特徵的方法,包含:自攝影裝置獲得影像的影像獲得步驟,其中該攝影裝置用於自上方拍攝圈養家畜的欄舍;對該影像進行人工智慧影像辨識的辨識步驟,以得到對應到一隻家畜背部的單一個影像框;根據該攝影裝置所安裝的高度與其視角,計算該影像框的家畜背部對應的體長與體寬的計算步驟;以及根據該影像框的家畜背部的體長與體寬,在生物特徵對照表中找到該影像框對應的體重的對照步驟。According to an embodiment of the present application, a method for measuring biological characteristics of livestock through images is provided, which includes: an image acquisition step of obtaining an image from a photography device, wherein the photography device is used to capture a barn housing livestock from above; The image is subjected to the recognition steps of artificial intelligence image recognition to obtain a single image frame corresponding to the back of a domestic animal; based on the height and viewing angle of the installation of the photography device, the corresponding body length and width of the livestock back of the image frame are calculated. The calculation step; and the comparison step of finding the weight corresponding to the image frame in the biometric comparison table based on the body length and body width of the livestock back of the image frame.
較佳地,為了得到該欄舍的多隻家畜的平均生物特徵,該用於影像量測家畜生物特徵的方法更包含重複實現前述的影像獲得步驟、辨識步驟、計算步驟與對照步驟,以獲得Z個該影像框與其相應的生物特徵,計算下列該欄舍的平均生物特徵的其中之一或其任意組合:家畜背部的平均體長;家畜背部的平均體寬;以及家畜的平均體重,其中Z為大於或等於2的正整數。Preferably, in order to obtain the average biological characteristics of multiple livestock in the pen, the method for image measurement of biological characteristics of livestock further includes repeatedly implementing the aforementioned image acquisition steps, identification steps, calculation steps and comparison steps to obtain For Z image frames and their corresponding biological characteristics, calculate one of the following average biological characteristics of the pen or any combination thereof: the average body length of the livestock's back; the average body width of the livestock's back; and the average weight of the livestock, where Z is a positive integer greater than or equal to 2.
較佳地,為了更精確地透過影像來計算生物特徵,用於影像量測家畜生物特徵的方法,其中該影像框的家畜背部對應的該體長與該體寬係相關於下列其中之一或其任意組合:該攝影裝置距離該欄舍地面的高度;以及該攝影裝置的視角。Preferably, in order to more accurately calculate biological characteristics through images, a method for measuring biological characteristics of livestock through images is used, wherein the body length and the body width corresponding to the back of the livestock in the image frame are related to one of the following or Any combination of: the height of the photography device from the ground of the pen; and the viewing angle of the photography device.
較佳地,為了避免量測時的較大誤差,其中在對該影像進行人工智慧影像辨識時,更得到一條脊柱線段,當該條脊柱線段與該影像的第一軸的夾角大於一門檻值時,重新實現前述的影像獲得步驟,其中該影像由平行於該第一軸的多個像素陣列所組成。Preferably, in order to avoid large errors in measurement, when performing artificial intelligence image recognition on the image, a spine line segment is obtained. When the angle between the spine line segment and the first axis of the image is greater than a threshold value When, the aforementioned image acquisition step is re-implemented, wherein the image is composed of a plurality of pixel arrays parallel to the first axis.
較佳地,為了避免對像差較大的部分進行量測,該用於影像量測家畜生物特徵的方法更包含在自該攝影裝置獲得該影像之後,對該影像的一部分進行人工智慧影像辨識。Preferably, in order to avoid measuring parts with large aberrations, the method for measuring biological characteristics of livestock using images further includes performing artificial intelligence image recognition on a part of the image after obtaining the image from the photography device. .
較佳地,為了得到較佳的辨識效果,其中人工智慧影像辨識係利用類神經網路模型進行影像辨識,該類神經網路模型係利用該欄舍中飼養的同品種家畜的背部影像進行訓練完成。Preferably, in order to obtain better recognition results, the artificial intelligence image recognition system uses a neural network model for image recognition. The neural network model is trained using back images of domestic animals of the same species raised in the pen. Finish.
較佳地,為了報告量測到的家畜生物特徵,該用於影像量測家畜生物特徵的方法更包含令網路連接裝置透過網路系統將下列其中之一或其任意組合回報給管理裝置:該影像框的家畜背部對應的體長;該影像框的家畜背部對應的體寬;以及該影像框對應的體重。Preferably, in order to report the measured biometric characteristics of livestock, the method for image measuring biometric characteristics of livestock further includes causing the network connection device to report one of the following or any combination thereof to the management device through the network system: The body length corresponding to the back of the livestock in the image frame; the body width corresponding to the back of the livestock in the image frame; and the weight corresponding to the image frame.
較佳地,為了量測到的欄舍平均的家畜生物特徵,該用於影像量測家畜生物特徵的方法更包含令網路連接裝置透過網路系統將下列其中之一或其任意組合回報給管理裝置:家畜背部的平均體長;家畜背部的平均體寬;以及家畜的平均體重。Preferably, in order to measure the average livestock biometric characteristics of the stall, the method for image measuring livestock biometric characteristics further includes causing the network connection device to report one of the following or any combination thereof to the network system through the network system. Management device: the average body length of the livestock's back; the average body width of the livestock's back; and the average body weight of the livestock.
較佳地,為了精準地利用體長與體寬來對應到同一品種家畜的體重,其中該欄舍的該家畜與該生物特徵對照表內所對應的資料係屬於同一品種。Preferably, in order to accurately use body length and body width to correspond to the weight of livestock of the same species, the livestock in the pen and the corresponding data in the biometric comparison table belong to the same species.
較佳地,為了讓管理裝置可以遠端地對終端裝置進行設定,該用於影像量測家畜生物特徵的方法更包含令網路連接裝置透過網路系統自管理裝置接收下列其中之一或其任意組合:該生物特徵對照表;以及人工智慧影像辨識所使用的類神經網路模型。Preferably, in order to allow the management device to remotely configure the terminal device, the method for image measurement of livestock biometrics further includes causing the network connection device to receive one or more of the following from the management device through the network system. Any combination: the biometric comparison table; and the neural network model used in artificial intelligence image recognition.
一種用於影像量測家畜生物特徵的系統,包含如前所述的終端裝置與管理裝置。A system for image measurement of biological characteristics of livestock includes a terminal device and a management device as described above.
總上所述,本發明提供了能夠自動量測家畜的生物特徵的系統與方法,來幫畜牧場節省量測家畜的生物特徵所費的人力成本與時間,避免了人為操作時的錯誤,也避免了量測時對家畜造成的緊迫,減少家畜在量測時受傷的可能性。當大型畜牧場同時在多個欄舍中分別畜養不同年齡、不同品種的家畜時,自動化的量測與管理系統能夠將多個終端裝置所得到資料集中到管理裝置,以方便管理與統計。In summary, the present invention provides a system and method that can automatically measure the biological characteristics of livestock to help livestock farms save labor costs and time in measuring the biological characteristics of livestock, avoid human operation errors, and also This avoids stress to livestock during measurement and reduces the possibility of livestock being injured during measurement. When large-scale livestock farms raise livestock of different ages and varieties in multiple stalls at the same time, the automated measurement and management system can centralize the data obtained from multiple terminal devices into the management device to facilitate management and statistics.
為使本申請的目的、技術方案和優點更加清楚,下面將對本申請的技術方案進行詳細的描述。顯然,所描述的實施例僅僅係本申請一部分實施例,而不係全面之實施例。基於本申請中的實施例,本領域普通技術人員在沒有做出創造性勞動的前提下所得到的所有其它實施方式,都屬於本申請所保護的範圍。In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present application and are not comprehensive embodiments. Based on the embodiments in this application, all other implementations obtained by those of ordinary skill in the art without any creative work fall within the scope of protection of this application.
本申請之說明書和申請專利範圍以及圖式中的術語「第一」「第二」「第三」等(如果存在)係用於區別類似之物件,而不必用於描述特定的順序或先後次序。應當理解,該等描述之物件在適當情況下可以互換。在本申請之描述中,「複數個」之含義是兩個或兩個以上,除非另有明確具體地限定。此外,術語「包括」和「具有」以及它們的任何變形,意圖在於覆蓋不排它的包含。圖式中所示的一些方框圖是功能實體,不一定必須與物理或邏輯上獨立的實體相對應。可以採用軟體形式來實現該等功能實體,或在一個或複數個硬體電路或積體電路中實現該等功能實體,或在不同網路和/或處理器裝置和/或微控制器裝置中實現該等功能實體。The terms "first", "second", "third", etc. (if present) in the description, patent scope and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. . It is to be understood that the items described are interchangeable under appropriate circumstances. In the description of this application, "plural" means two or more than two, unless otherwise expressly and specifically limited. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. Some of the block diagrams shown in the Figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software form, or implemented in one or more hardware circuits or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices. Implement these functional entities.
在本申請之描述中,需要說明的是,除非另有明確的規定和限定,術語「安裝」、「相連」、「連接」應做廣義理解,例如,可以是固定連接,亦可以係可拆卸連接,或一體地連接;可以係機械連接,亦可以係電連接或可以相互通訊;可以係直接相連,亦可以藉由中間媒介間接相連,可以係兩個元件內部之連通或兩個元件之相互作用關係。對於本領域之普通技術人員而言,可以根據具體情況理解前述術語在本申請中之具體含義。In the description of this application, it should be noted that, unless otherwise clearly stated and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense. For example, it can be a fixed connection or a detachable connection. Connection, or integral connection; it can be mechanical connection, electrical connection or mutual communication; it can be direct connection, or indirect connection through an intermediary, it can be internal connection of two components or mutual communication between two components functional relationship. For those of ordinary skill in the art, the specific meanings of the foregoing terms in this application can be understood according to specific circumstances.
為使本申請之目的、特徵和優點能夠更加明顯易懂,下面結合圖式和具體實施方式對本申請作進一步詳細之說明。In order to make the purpose, features and advantages of the present application more obvious and easy to understand, the present application will be described in further detail below in conjunction with the drawings and specific implementation modes.
請參考圖1所示,其為根據本申請的一實施例的一種影像量測家畜生物特徵的系統100的方框示意圖。該系統100可以包含網路系統120、管理裝置110與至少一個終端裝置130。該網路系統120可以是有線或無線的網路,例如符合IEEE 802.3、IEEE 802.11系列標準的區域網路,也可以是符合第三代(3G)之後無線通信網路標準的無線電信網路系統。本領域普通技術人員可以理解到,只要是能夠在管理裝置110與終端裝置130之間傳遞資訊的網路系統,就可以作為本實施例當中的網路系統120。Please refer to FIG. 1 , which is a schematic block diagram of a system 100 for imaging biological characteristics of livestock according to an embodiment of the present application. The system 100 may include a network system 120, a management device 110 and at least one terminal device 130. The network system 120 may be a wired or wireless network, such as a local area network that complies with the IEEE 802.3 and IEEE 802.11 series standards, or it may be a wireless telecommunications network system that complies with the third generation (3G) and later wireless communication network standards. . Those of ordinary skill in the art can understand that any network system that can transmit information between the management device 110 and the terminal device 130 can be used as the network system 120 in this embodiment.
利用影像量測家畜生物特徵的終端裝置130可以放置於養殖場所當中,例如安裝在圈養欄舍的上方。每一個圈養欄舍可以配置一或多個終端裝置130。由於畜牧業慣常在同一個欄舍內圈養同一時期出生的單一品種家畜,因此,每一個終端裝置130可以對應到某一個品種的家畜。在一範例當中,同一個欄舍內圈養的家畜還屬於同一性別。The terminal device 130 that uses images to measure biological characteristics of livestock can be placed in a breeding place, for example, installed above a pen. Each pen can be equipped with one or more terminal devices 130 . Since the animal husbandry industry usually raises livestock of a single breed born at the same time in the same pen, each terminal device 130 can correspond to a certain breed of livestock. In one example, livestock housed in the same pen are of the same sex.
在本申請當中所提到的家畜可以包含豬、羊、馬、牛等哺乳類動物,但本申請並不限定家畜的種類為上述的動物,例如本申請可以適用於水豚。在一實施例當中,不同的終端裝置130可以分別對應到不同品種的家畜。The livestock mentioned in this application may include pigs, sheep, horses, cows and other mammals, but this application does not limit the types of livestock to the above-mentioned animals. For example, this application may be applicable to capybaras. In one embodiment, different terminal devices 130 may respectively correspond to different types of livestock.
管理裝置110藉由網絡系統120連接上述的終端裝置130。在一實施例當中,該管理裝置110可以是一部以上的計算機,可能具有較多的計算資源(計算能力與儲存空間),安裝在畜牧場的辦公室內。在另一實施例當中,該管理裝置110可以是一部移動裝置,例如是膝上型電腦、平板電腦、智慧型手機、個人數位助理等。The management device 110 is connected to the above-mentioned terminal device 130 through the network system 120. In one embodiment, the management device 110 can be more than one computer, which may have more computing resources (computing power and storage space), and is installed in the office of the livestock farm. In another embodiment, the management device 110 may be a mobile device, such as a laptop, a tablet, a smart phone, a personal digital assistant, etc.
畜牧場人員可以透過該管理裝置110觀看由該終端裝置130所拍攝的影像、影片、即時影像與/或量測的家畜生物特徵資訊。該管理裝置110可以儲存與重播上述的影像影片、即時影像與量測的家畜生物特徵資訊的其中之一或其任意組合,並且對量測的家畜生物特徵資訊進行統計與比對,做成分析報表。Livestock farm personnel can view images, videos, real-time images and/or measured livestock biometric information captured by the terminal device 130 through the management device 110 . The management device 110 can store and replay one or any combination of the above video videos, real-time images and measured livestock biometric information, and perform statistics and comparison on the measured livestock biometric information to make analysis. Report.
如前所述,當更換某一欄舍所圈養的家畜時,管理人員可以透過該管理裝置110設定該欄舍所圈養的家畜的品種,使得該欄舍所安裝的終端裝置130能夠正確地利用影像量測家畜的生物特徵。As mentioned above, when changing the livestock housed in a certain pen, the manager can set the type of livestock housed in the pen through the management device 110, so that the terminal device 130 installed in the pen can be used correctly. Imaging measures biometric characteristics of livestock.
在一實施例當中,該系統100還可以包含連接到網路系統120的一或多個移動管理裝置140。顧名思義,該移動管理裝置140可以是一部移動裝置,例如是膝上型電腦、平板電腦、智慧型手機、個人數位助理等。該移動管理裝置140的功能可以和前述的管理裝置110相同,或是縮減為管理裝置110的一部分。該移動管理裝置140可以直接觀看由該終端裝置130所拍攝的影像、影片、即時影像與/或量測的家畜生物特徵資訊,也可以重播由管理裝置110儲存的影像、影片、即時影像與量測的家畜生物特徵資訊的其中之一或其任意組合,以及管理裝置110所製作的統計、比對與分析報表。In one embodiment, the system 100 may also include one or more mobility management devices 140 connected to the network system 120 . As the name suggests, the mobile management device 140 can be a mobile device, such as a laptop computer, a tablet computer, a smart phone, a personal digital assistant, etc. The functions of the mobility management device 140 may be the same as the aforementioned management device 110 , or may be reduced to a part of the management device 110 . The mobile management device 140 can directly view the images, videos, real-time images and/or measured livestock biometric information captured by the terminal device 130, and can also replay the images, videos, real-time images and measurements stored by the management device 110. One or any combination of the measured livestock biometric information, as well as statistics, comparison and analysis reports produced by the management device 110.
請參考圖2所示,其為根據本申請一實施例的管理裝置110的方框示意圖。該管理裝置110可以包含主機210、可選的輸出裝置220、可選的輸入裝置230、網路連接裝置240與儲存裝置250。該主機210可以包含一或多個中央處理器(CPU,Central Processing Unit)、計算所需的記憶體階層(memory hierarchy)、以及與周邊裝置連接的介面。該中央處理器可以包含一或多個計算核心(core),用於執行邏輯與算術運算。一般來說,該主機210可以執行作業系統(OS,Operating System),用於控制該管理裝置110。舉例來說,該中央處理器可以執行x86、x64、ARM、RISC-V系列指令集。該作業系統可以包含視窗系統、安卓系統、iOS系統、MacOS系統、Linux系列等作業系統。與周邊裝置連接的介面可以包含下列SCSI、PCI、PCI-Express、AHB、AXI、USB等介面其中之一或其任意組合,本申請並不限定主機210、作業系統與介面的形式。Please refer to FIG. 2 , which is a block diagram of a management device 110 according to an embodiment of the present application. The management device 110 may include a host 210, an optional output device 220, an optional input device 230, a network connection device 240 and a storage device 250. The host 210 may include one or more central processing units (CPUs), a memory hierarchy required for computing, and interfaces for connecting to peripheral devices. The central processing unit may include one or more computing cores for performing logical and arithmetic operations. Generally speaking, the host 210 can execute an operating system (OS, Operating System) for controlling the management device 110 . For example, the central processor can execute x86, x64, ARM, and RISC-V series instruction sets. The operating system can include Windows system, Android system, iOS system, MacOS system, Linux series and other operating systems. The interface connected to the peripheral device may include one of the following SCSI, PCI, PCI-Express, AHB, AXI, USB and other interfaces or any combination thereof. This application does not limit the form of the host 210, operating system and interface.
可選的輸出裝置220可以包含螢幕、觸控螢幕、揚聲器、印表機等。可選的輸入裝置230可以包含鍵盤、滑鼠、觸控螢幕、麥克風等。該儲存裝置250可以包含非揮發性記憶體組成的固態電子記憶體模組、硬碟、光碟、磁帶等儲存媒體與讀取裝置,用於儲存上述的作業系統、在該作業系統環境下運作的應用程式、影像、影片、即時影像與量測的家畜生物特徵資訊的其中之一或其任意組合,以及管理裝置110所製作的統計、比對與分析報表。該網路連接裝置240用於連接上述的網路系統120,其可以包含有線或無線的網路介面。Optional output devices 220 may include screens, touch screens, speakers, printers, etc. Optional input devices 230 may include keyboards, mice, touch screens, microphones, etc. The storage device 250 may include a solid-state electronic memory module composed of non-volatile memory, a storage medium such as a hard disk, an optical disk, and a magnetic tape, and a reading device, and is used to store the above-mentioned operating system and the software operating in the operating system environment. One or any combination of applications, images, videos, real-time images and measured livestock biometric information, as well as statistics, comparison and analysis reports produced by the management device 110 . The network connection device 240 is used to connect to the above-mentioned network system 120, and may include a wired or wireless network interface.
圖2所示的管理裝置110的實施例也可以適用於前述的移動管理裝置140。只要加上電池,以便在移動時用於供應上述各個裝置的電力。The embodiment of the management device 110 shown in FIG. 2 may also be applied to the aforementioned mobility management device 140. Simply add a battery to power each of the above devices while on the move.
請參考圖3所示,其為根據本申請一實施例的終端裝置130的方框示意圖。該終端裝置130可以包含主機310、攝影裝置320、儲存裝置330與網路連接裝置340。關於該主機310的描述,可以適用於前述主機210的描述。該儲存裝置330可以包含非揮發性記憶體組成的固態電子記憶體模組、硬碟、光碟、磁帶等儲存媒體與讀取裝置,用於儲存上述的作業系統、在該作業系統環境下運作的應用程式、影像、影片、即時影像與量測的家畜生物特徵資訊的其中之一或其任意組合。在某些實施例當中,該儲存裝置330還可以包含可插拔的記憶卡、記憶晶片等。該網路連接裝置340用於連接上述的網路系統120,其可以包含有線或無線的網路介面。Please refer to FIG. 3 , which is a block diagram of a terminal device 130 according to an embodiment of the present application. The terminal device 130 may include a host 310, a photography device 320, a storage device 330 and a network connection device 340. The description of the host 310 may be applicable to the description of the aforementioned host 210 . The storage device 330 may include a solid-state electronic memory module composed of non-volatile memory, a storage medium such as a hard disk, an optical disk, and a magnetic tape, and a reading device, and is used to store the above-mentioned operating system and the software operating in the operating system environment. One or any combination of applications, images, videos, live images and measured livestock biometric information. In some embodiments, the storage device 330 may also include a removable memory card, memory chip, etc. The network connection device 340 is used to connect to the above-mentioned network system 120, and may include a wired or wireless network interface.
上述的攝影裝置320可以包含鏡頭組、影像感測模組與介面模組。在某些範例當中,還可以包含照明模組。在某些實施例當中,該鏡頭組可以具有固定的視角(FOV,Field of View)。在另一些實施例當中,該鏡頭組的視角是可以調整的,調整後可以適用於各式的欄舍高度。The above-mentioned photography device 320 may include a lens assembly, an image sensing module, and an interface module. In some examples, lighting modules can also be included. In some embodiments, the lens group may have a fixed field of view (FOV, Field of View). In other embodiments, the angle of view of the lens group can be adjusted, and can be adapted to various stall heights after adjustment.
該影像感測模組可以感測紅外線、可見光與/或紫外線波段的其中之一或其任意組合。波長越短,解析度越高。可以根據各式欄舍的環境,採用不同波段的影像感測模組。例如夜間攝影時,可以使用紅外線波段的感測模組或濾光鏡頭。The image sensing module can sense one of infrared, visible light and/or ultraviolet bands or any combination thereof. The shorter the wavelength, the higher the resolution. Image sensing modules of different bands can be used according to the environment of various pens. For example, when taking night photography, you can use infrared band sensing modules or filter lenses.
該介面模組係用於連接到上述的主機310,可以包含下列SCSI、PCI、PCI-Express、AHB、AXI、USB、I2C等介面其中之一或其任意組合。該照明模組可以包含一或多個光源,用來適時地照明該鏡頭組所欲攝取影像的區域。該影像感測模組可以根據所感測的影像,控制該照明模組以便取得適當的照度。The interface module is used to connect to the above-mentioned host 310, and may include one of the following SCSI, PCI, PCI-Express, AHB, AXI, USB, I2C and other interfaces or any combination thereof. The lighting module may include one or more light sources for timely illuminating the area where the lens group intends to capture images. The image sensing module can control the lighting module to obtain appropriate illumination according to the sensed image.
請參考圖4所示,其為根據本發明一實施例的欄舍的側面示意圖。在該欄舍的上方具有至少一個攝影裝置320,該鏡頭組係朝著欄舍的地面向下照。家畜440站在欄舍的地面,可以被該攝影裝置320拍攝到。如圖所示意,家畜440的頭部朝左,尾部朝右,前肢較細,後肢較粗。Please refer to FIG. 4 , which is a schematic side view of a pen according to an embodiment of the present invention. There is at least one photography device 320 above the pen, and the lens group illuminates downward toward the ground of the pen. The livestock 440 is standing on the ground of the stall and can be photographed by the photographing device 320 . As shown in the figure, the head of the domestic animal 440 faces to the left, the tail faces to the right, the forelimbs are thinner, and the hindlimbs are thicker.
該攝影裝置320架設在欄舍的高度430之處。當鏡頭組的視角是固定時,高度430決定了拍攝到的欄舍的面積大小。如圖所示,拍攝到的範圍在第一軸的長度為410。本領域普通技術人員可以理解到,鏡頭組具有像差,亦即在影像邊緣的物件會有變形的情況。較低成本的鏡頭組所具有的像差較為明顯。為了節省成本的緣故,在一實施例當中,可以將變形太多的影像邊緣截去,只留下中間的部分。例如,在上述第一軸的長度420的影像部分,才是量測家畜生物特徵的影像。The photography device 320 is installed at a height 430 of the pen. When the angle of view of the lens group is fixed, the height 430 determines the area of the captured pen. As shown in the figure, the length of the captured range on the first axis is 410. Those of ordinary skill in the art can understand that the lens assembly has aberration, that is, objects at the edge of the image will be deformed. Lower cost lens sets have more pronounced aberrations. In order to save costs, in one embodiment, the edges of the image that are too deformed can be cut off, leaving only the middle part. For example, the image portion with the length 420 of the first axis is the image for measuring the biological characteristics of livestock.
請參考圖5所示,其為根據本發明一實施例的欄舍的俯視示意圖。上述的攝影裝置320位於欄舍的上方,其拍攝的範圍涵蓋較大的部分。由於像差的緣故,可以將周圍的影像邊緣截去,留下中間的部分。然而,本領域普通技術人員可以理解到,當使用的鏡頭組的像差不影響到量測時,可以不需要截去邊緣的部分,直接利用所獲得的影像進行處理。Please refer to FIG. 5 , which is a top view of a pen according to an embodiment of the present invention. The above-mentioned photographing device 320 is located above the pen, and its shooting range covers a larger part. Due to aberration, the surrounding image edges can be cut off, leaving the middle part. However, those of ordinary skill in the art can understand that when the aberration of the lens group used does not affect the measurement, there is no need to cut off the edge part and the obtained image can be directly used for processing.
從上方向下俯視家畜440時,可以利用人工智慧影像辨識的技術,從影像中獲取家畜背部的影像框510。上述的人工智慧影像辨識的技術,已經大量地在日常生活中採用。最明顯的例子是人臉辨識功能,已經應用到個人電腦、手機上,用於辨識使用者的身分。在一張照片當中,可以匡列與辨識多個人臉。在另一個例子當中,可以對進出停車場的車輛進行車牌辨識。When looking down at the livestock 440 from above, artificial intelligence image recognition technology can be used to obtain the image frame 510 of the livestock's back from the image. The above-mentioned artificial intelligence image recognition technology has been widely used in daily life. The most obvious example is the facial recognition function, which has been applied to personal computers and mobile phones to identify users. In one photo, multiple faces can be listed and recognized. In another example, license plate recognition can be performed on vehicles entering and exiting a parking lot.
本領域的普通技術人員可以理解到,在某些實施例當中,上述的人工智慧影像辨識家畜背部的技術,可以準備已經標示好家畜背部影像框的多張照片,輸入類神經網路模型進行訓練。當該類神經網路模型的辨識成功度達到一定水準之後,即可以將該類神經網路模型用於辨識家畜背部。上述的多張照片,可以是在欄舍地面高度430的地方拍攝。其視角均同於圖4或圖5所示的視角。Those of ordinary skill in the art can understand that in some embodiments, the above-mentioned artificial intelligence image recognition technology of livestock backs can prepare multiple photos with marked livestock back image frames and input them into a neural network model for training. . When the recognition success of this type of neural network model reaches a certain level, this type of neural network model can be used to identify the backs of domestic animals. The above-mentioned photos can be taken at a height of 430 degrees from the ground of the pen. The viewing angles are the same as those shown in Figure 4 or Figure 5.
在本申請當中所提到的家畜背部,可以指的是家畜從前肢至後肢之間的背部。如圖5所示,可以從俯視的影像中辨識出家畜的前肢與後肢,其影像框510即圈出家畜的背部。該影像框510可以是一個矩形,該矩形的兩個鄰邊分別平行於該影像的第一軸550與第二軸560。第一軸550垂直於第二軸560。The back of the livestock mentioned in this application may refer to the back of the livestock from the forelimbs to the hind limbs. As shown in FIG. 5 , the forelimbs and hindlimbs of the livestock can be identified from the top-view image, and the image frame 510 circles the back of the livestock. The image frame 510 may be a rectangle, and two adjacent sides of the rectangle are respectively parallel to the first axis 550 and the second axis 560 of the image. The first axis 550 is perpendicular to the second axis 560 .
本領域的普通技術人員可以理解到,在某些實施例當中,上述的人工智慧影像辨識的技術還可以用於辨識家畜背部脊椎骨的線段。當量測家畜的生物特徵時,如果家畜面對的方向可以平行於影像的第一軸或第二軸,就可以提高量測的精度。在圖5所示的實施例當中,可以辨識出家畜440的脊椎線段520。Those of ordinary skill in the art can understand that in some embodiments, the above-mentioned artificial intelligence image recognition technology can also be used to identify line segments of the back vertebrae of livestock. When measuring the biological characteristics of livestock, if the direction the livestock faces can be parallel to the first axis or the second axis of the image, the measurement accuracy can be improved. In the embodiment shown in Figure 5, the spinal cord segment 520 of the domestic animal 440 can be identified.
當找出家畜背部對應的影像框510之後,可以找出第一軸長度530,亦即家畜背部的體長,還可以找到第二軸長度540,亦即家畜背部的體寬。在某些實施例當中,由於家畜背部的體長會長於體寬,因此第一軸長度530與第二軸長度540的較大者會被當成是體長,較小者會被當成是體寬。After finding the image frame 510 corresponding to the livestock's back, the first axis length 530, which is the body length of the livestock's back, can be found, and the second axis length 540, which is the body width of the livestock's back, can also be found. In some embodiments, since the body length of the back of the domestic animal will be longer than the body width, the larger of the first axis length 530 and the second axis length 540 will be regarded as the body length, and the smaller one will be regarded as the body width. .
另外,由於體長應當相應於脊椎線段520的方向,因此在某些實施例當中,可以檢驗這兩者是否相應。請參考圖6所示,其為根據本申請一實施例的脊椎線段與兩軸夾角的示意圖。當第一軸長度530較第二軸長度540長時,本申請即可以計算該脊椎線段520與第一軸550的夾角610。當夾角610超過某一門檻值時,則表示家畜的朝向並非平行於第一軸。也就是說,第一軸長度530並不能精確地表示家畜背部的體長,第二軸長度540並不能精確地表示家畜背部的體寬。In addition, since the body length should correspond to the direction of the spine line segment 520, in some embodiments, it can be checked whether the two correspond. Please refer to FIG. 6 , which is a schematic diagram of the angle between a spine line segment and two axes according to an embodiment of the present application. When the first axis length 530 is longer than the second axis length 540, the present application can calculate the angle 610 between the spine line segment 520 and the first axis 550. When the angle 610 exceeds a certain threshold, it means that the orientation of the livestock is not parallel to the first axis. That is to say, the first axis length 530 cannot accurately represent the body length of the livestock's back, and the second axis length 540 cannot accurately represent the body width of the livestock's back.
在一實施例當中,當第一軸長度530較第二軸長度540短時,本申請即可以計算該脊椎線段520與第二軸560的夾角。當夾角超過某一門檻值時,則表示家畜的朝向並非平行於第二軸。也就是說,第二軸長度540並不能精確地表示家畜背部的體長,第一軸長度530並不能精確地表示家畜背部的體寬。In one embodiment, when the first axis length 530 is shorter than the second axis length 540, the present application can calculate the angle between the spine line segment 520 and the second axis 560. When the angle exceeds a certain threshold, it means that the orientation of the livestock is not parallel to the second axis. That is to say, the second axis length 540 cannot accurately represent the body length of the livestock's back, and the first axis length 530 cannot accurately represent the body width of the livestock's back.
在精確地量測到體長與體寬之後,可以根據該品種與/或性別的家畜的生物特徵對照表,找出對應的體重。舉例來說,該生物特徵對照表可以包含三個欄位,分別是體長、體寬與體重。利用體長與體寬,可以查表找到對應的體重,而體重通常是畜牧業判斷家畜生長情況的重要指標。After accurately measuring the body length and width, the corresponding weight can be found based on the biological characteristics comparison table of the livestock of that breed and/or gender. For example, the biometric comparison table may include three fields, namely body length, body width and weight. Using body length and body width, you can look up the table to find the corresponding weight, and weight is usually an important indicator in the animal husbandry industry to judge the growth of livestock.
該生物特徵對照表可以是事先在該畜牧場自行量測統計得出。由於不同品種與/或不同性別的家畜可以具有不同的生物生長曲線,因此該儲存裝置330可以儲存該終端裝置130所對應的家畜的生物特徵對照表。當不同的終端裝置130拍攝不同欄舍中的不同家畜時,這些終端裝置130所儲存的生物特徵對照表是不同的。The biometric comparison table can be obtained by self-measurement and statistics in the livestock farm in advance. Since domestic animals of different breeds and/or different genders may have different biological growth curves, the storage device 330 may store a biological characteristic comparison table of the livestock corresponding to the terminal device 130 . When different terminal devices 130 photograph different livestock in different stalls, the biometric comparison tables stored in these terminal devices 130 are different.
請參考圖7所示,其為根據本申請一實施例的影像量測家畜生物特徵方法700的一流程示意圖。該影像量測家畜生物特徵方法700可以由上述的終端裝置130所實施。在某一實施例當中,該主機310可以執行儲存於非揮發性記憶體內的多個指令所組成的程式,來實現該影像量測家畜生物特徵方法700。該影像量測家畜生物特徵方法700可以自步驟710開始。Please refer to FIG. 7 , which is a schematic flowchart of a method 700 for image measuring livestock biometrics according to an embodiment of the present application. The image measurement method 700 for livestock biometrics can be implemented by the above-mentioned terminal device 130 . In one embodiment, the host 310 can execute a program composed of a plurality of instructions stored in a non-volatile memory to implement the image measurement method 700 for livestock biometrics. The image measurement method 700 for livestock biometrics may start from step 710 .
步驟710:獲得影像。該主機310可以令該攝影裝置320提供一幀影像。接著,流程可以走向步驟715或720。Step 710: Obtain the image. The host 310 can cause the photography device 320 to provide a frame of images. Next, the flow may proceed to step 715 or 720.
可選的步驟715:截取中央影像。由於位於中央的影像具有較小的像差,因此可以去掉原影像的邊緣部分,截取中央部分的影像。流程可以走向步驟720。Optional step 715: Capture the central image. Since the central image has smaller aberrations, the edges of the original image can be removed and the central image can be captured. Flow may proceed to step 720.
步驟720:利用先前所訓練的人工智慧模型,對所獲得的影像或中央影像進行人工智慧影像辨識,以嘗試得到一個家畜背部影像框。為了能夠在估計體重時的誤差達到最小,所以必須嚴格限制該家畜背部影像框的要求,以便精確地得到單一個家畜背部影像框的長度與寬度。在一實施例當中,本步驟還可以得到對應至上述家畜背部影像框的一條脊椎線段。流程可以走向步驟730。Step 720: Use the previously trained artificial intelligence model to perform artificial intelligence image recognition on the obtained image or central image to try to obtain an image frame of the back of the livestock. In order to minimize the error when estimating body weight, the requirements of the livestock back image frame must be strictly limited in order to accurately obtain the length and width of a single livestock back image frame. In one embodiment, this step can also obtain a spine line segment corresponding to the above-mentioned livestock back image frame. Flow may proceed to step 730.
步驟730:判斷是否已經得到單一個家畜背部影像框?如前所述,為了能夠在估計體重時的誤差達到最小,所以必須嚴格限制該家畜背部影像框的要求,以便精確地得到單一個家畜背部影像框的長度與寬度。當步驟720中的人工智慧影像辨識出單一個家畜背部影像框時,流程可以走向步驟740。否則,當步驟720的人工智慧影像無法辨識出單一個家畜背部影像框時,流程可以回到步驟710。Step 730: Determine whether a single livestock back image frame has been obtained? As mentioned above, in order to minimize the error in estimating body weight, the requirements of the livestock back image frame must be strictly limited in order to accurately obtain the length and width of a single livestock back image frame. When the artificial intelligence image in step 720 identifies a single livestock back image frame, the process may proceed to step 740. Otherwise, when the artificial intelligence image in step 720 cannot identify a single livestock back image frame, the process can return to step 710.
步驟740:根據步驟720所獲得的影像框,得到影像框對應的家畜背部體長與體寬資訊。由於攝影裝置320的高度與視角是已知的,因此可以根據影像框相鄰兩邊的長度,計算出對應的家畜背部體長與體寬。接著,流程可以走向步驟750或是步驟760。Step 740: According to the image frame obtained in step 720, obtain the body length and width information of the livestock back corresponding to the image frame. Since the height and angle of view of the photography device 320 are known, the corresponding body length and width of the back of the livestock can be calculated based on the lengths of two adjacent sides of the image frame. Then, the process can go to step 750 or step 760.
可選的步驟750:判斷步驟720所辨識的脊椎線段是否對齊影像的兩軸的其中之一。如前所述,當脊椎線段與某一軸的夾角小於某一門檻值時,可以視為該脊椎線段對齊了兩軸其中之一。此外,當脊椎線段與家畜背部體長所平行的一軸相應時,才可以視為該脊椎線段對齊了該軸。當所拍攝的家畜的脊椎線段對齊影像的兩軸的其中之一時,流程可以走向步驟760或可選的步驟770。否則,流程可以回到步驟710。Optional step 750: Determine whether the spine line segment identified in step 720 is aligned with one of the two axes of the image. As mentioned before, when the angle between the spine segment and a certain axis is less than a certain threshold, the spine segment can be considered to be aligned with one of the two axes. In addition, when the vertebral line segment corresponds to an axis parallel to the body length of the livestock's back, the vertebral line segment can be considered to be aligned with the axis. When the captured spinal line segment of the livestock is aligned with one of the two axes of the image, the process may proceed to step 760 or optional step 770 . Otherwise, the flow may return to step 710.
在一實施例當中,步驟740與步驟750的順序可以相反。也就是當步驟730結束之後,可以執行步驟750。當步驟750的判斷結果為是時,流程再進到步驟740。而當步驟740結束之後,即執行步驟760、步驟765或可選的步驟770。In one embodiment, the order of step 740 and step 750 may be reversed. That is, after step 730 is completed, step 750 can be executed. When the judgment result in step 750 is yes, the process proceeds to step 740. After step 740 is completed, step 760, step 765 or optional step 770 is executed.
步驟760:利用家畜背部體長與體寬資訊,在對應的生物特徵對照表當中找到家畜的體重資訊。接著,流程可以進到可選的步驟765、步驟770或步驟780。Step 760: Use the body length and width information on the back of the livestock to find the weight information of the livestock in the corresponding biometric comparison table. Next, the process may proceed to optional step 765, step 770, or step 780.
可選的步驟765:判斷是否獲得足量的資料?在一實施例當中,當取得Z個家畜的資料時,就可以讓流程進到步驟770,去計算生物特徵的平均值。否則,當尚未取得Z個家畜的資料時,可以讓流程回到步驟710,去取得新的影像。其中Z為大於或等於2的正整數。Optional step 765: Determine whether sufficient data has been obtained? In one embodiment, when the data of Z livestock animals is obtained, the process can proceed to step 770 to calculate the average value of the biometric characteristics. Otherwise, when the data of Z livestocks has not been obtained, the process can be returned to step 710 to obtain new images. Where Z is a positive integer greater than or equal to 2.
可選的步驟770:計算生物特徵的平均值。在本步驟當中,可以根據所拍攝到家畜背部影像框的數量,以及所量測到的體長與體寬資訊,還有所對應到的體重資訊,計算出本欄舍家畜的平均體長、平均體寬與平均體重的其中之一或任意組合。流程接著進到可選的步驟780。Optional step 770: Calculate the average of the biometric characteristics. In this step, the average body length and length of the livestock in this pen can be calculated based on the number of image frames captured on the back of the livestock, the measured body length and width information, and the corresponding weight information. One or any combination of average body width and average weight. Flow then proceeds to optional step 780.
可選的步驟780:回報到管理裝置110。主機330透過該網路連接裝置340,藉由網路系統120連接到管理裝置110,將前述所獲得資訊的全部或一部分,回報到管理裝置110。Optional step 780: report to the management device 110. The host 330 connects to the management device 110 through the network system 120 through the network connection device 340, and reports all or part of the aforementioned obtained information to the management device 110.
根據本申請的一實施例,提供一種用於影像量測家畜生物特徵的終端裝置,攝影裝置,用於自上方拍攝圈養家畜的欄舍;以及連接到該攝影裝置的主機,用於執行非揮發性記憶體內儲存的多個指令,以實現以下:令該攝影裝置獲得影像的影像獲得步驟;對該影像進行人工智慧影像辨識的辨識步驟,以得到對應到一隻家畜背部的單一個影像框;根據該攝影裝置所安裝的高度與其視角,計算該影像框的家畜背部對應的體長與體寬的計算步驟;以及根據該影像框的家畜背部的體長與體寬,在生物特徵對照表中找到該影像框對應的體重的對照步驟。According to an embodiment of the present application, there is provided a terminal device for image measurement of biological characteristics of livestock, a photography device for photographing a barn housing livestock from above; and a host connected to the photography device for performing non-volatile Multiple instructions stored in the sexual memory to achieve the following: the image acquisition step of causing the photography device to obtain an image; the recognition step of artificial intelligence image recognition on the image to obtain a single image frame corresponding to the back of a domestic animal; Calculate the body length and width corresponding to the back of the livestock in the image frame based on the installation height and viewing angle of the photography device; and calculate the body length and width of the livestock back in the image frame in the biometric comparison table Find the comparison steps for the weight corresponding to the image frame.
較佳地,為了得到該欄舍的多隻家畜的平均生物特徵,該主機更用於重複實現前述的影像獲得步驟、辨識步驟、計算步驟與對照步驟,以獲得Z個該影像框與其相應的生物特徵,計算下列該欄舍的平均生物特徵的其中之一或其任意組合:家畜背部的平均體長;家畜背部的平均體寬;以及家畜的平均體重,其中Z為大於或等於2的正整數。Preferably, in order to obtain the average biological characteristics of multiple livestock in the pen, the host is further used to repeatedly implement the aforementioned image acquisition steps, identification steps, calculation steps and comparison steps to obtain Z image frames and their corresponding Biological characteristics, calculate one of the following average biological characteristics of the pen or any combination thereof: the average body length of the livestock's back; the average body width of the livestock's back; and the average weight of the livestock, where Z is a positive number greater than or equal to 2 integer.
較佳地,為了更精確地透過影像來計算生物特徵,其中該影像框的家畜背部對應的該體長與該體寬係相關於下列其中之一或其任意組合:該攝影裝置距離該欄舍地面的高度;以及該攝影裝置的視角。Preferably, in order to more accurately calculate biometric characteristics through images, the body length and body width corresponding to the back of the livestock in the image frame are related to one of the following or any combination thereof: the distance between the photography device and the pen The height of the ground; and the viewing angle of the photographic device.
較佳地,為了避免量測時的較大誤差,其中該主機在對該影像進行人工智慧影像辨識時,更得到一條脊柱線段,當該條脊柱線段與該影像的第一軸的夾角大於一門檻值時,重新實現前述的影像獲得步驟,其中該影像由平行於該第一軸的多個像素陣列所組成。Preferably, in order to avoid large errors in measurement, the host computer further obtains a spine line segment when performing artificial intelligence image recognition on the image. When the angle between the spine line segment and the first axis of the image is greater than one When the threshold value is reached, the aforementioned image acquisition step is re-implemented, wherein the image is composed of a plurality of pixel arrays parallel to the first axis.
較佳地,為了避免對像差較大的部分進行量測,其中該主機在自該攝影裝置獲得該影像之後,更用於對該影像的一部分進行人工智慧影像辨識。Preferably, in order to avoid measuring parts with large aberrations, the host is further used to perform artificial intelligence image recognition on a part of the image after obtaining the image from the photography device.
較佳地,為了得到較佳的辨識效果,其中人工智慧影像辨識係利用類神經網路模型進行影像辨識,該類神經網路模型係利用該欄舍中飼養的同品種家畜的背部影像進行訓練完成。Preferably, in order to obtain better recognition results, the artificial intelligence image recognition system uses a neural network model for image recognition. The neural network model is trained using back images of domestic animals of the same species raised in the pen. Finish.
較佳地,為了報告量測到的家畜生物特徵,該終端裝置更包含連接到網路系統的網路連接裝置,其中該主機更用於令該網路連接裝置透過該網路系統將下列其中之一或其任意組合回報給管理裝置:該影像框的家畜背部對應的體長;該影像框的家畜背部對應的體寬;以及該影像框對應的體重。Preferably, in order to report the measured biological characteristics of the livestock, the terminal device further includes a network connection device connected to the network system, wherein the host is further used to cause the network connection device to transmit the following to the network system through the network system. One or any combination thereof is reported to the management device: the body length corresponding to the back of the livestock in the image frame; the body width corresponding to the back of the livestock in the image frame; and the weight corresponding to the image frame.
較佳地,為了報告量測到的欄舍平均的家畜生物特徵,該終端裝置更包含連接到網路系統的網路連接裝置,其中該主機更用於令該網路連接裝置透過該網路系統將下列其中之一或其任意組合回報給管理裝置:家畜背部的平均體長;家畜背部的平均體寬;以及家畜的平均體重。Preferably, in order to report the measured average livestock biometric characteristics of the stall, the terminal device further includes a network connection device connected to the network system, wherein the host is further used to enable the network connection device to pass through the network The system reports one of the following or any combination thereof to the management device: the average body length of the livestock's back; the average body width of the livestock's back; and the average weight of the livestock.
較佳地,為了精準地利用體長與體寬來對應到同一品種家畜的體重,其中該欄舍的該家畜與該生物特徵對照表內所對應的資料係屬於同一品種。Preferably, in order to accurately use body length and body width to correspond to the weight of livestock of the same species, the livestock in the pen and the corresponding data in the biometric comparison table belong to the same species.
較佳地,為了讓管理裝置可以遠端地對終端裝置進行設定,終端裝置,更包含連接到網路系統的網路連接裝置,其中該主機更用於令該網路連接裝置透過該網路系統自管理裝置接收下列其中之一或其任意組合:該生物特徵對照表;以及人工智慧影像辨識所使用的類神經網路模型。Preferably, in order to allow the management device to remotely configure the terminal device, the terminal device further includes a network connection device connected to the network system, wherein the host is further used to enable the network connection device to pass through the network The system self-management device receives one of the following or any combination thereof: the biometric comparison table; and the neural network model used in artificial intelligence image recognition.
根據本申請的一實施例,提供一種用於影像量測家畜生物特徵的方法,包含:自攝影裝置獲得影像的影像獲得步驟,其中該攝影裝置用於自上方拍攝圈養家畜的欄舍;對該影像進行人工智慧影像辨識的辨識步驟,以得到對應到一隻家畜背部的單一個影像框;根據該攝影裝置所安裝的高度與其視角,計算該影像框的家畜背部對應的體長與體寬的計算步驟;以及根據該影像框的家畜背部的體長與體寬,在生物特徵對照表中找到該影像框對應的體重的對照步驟。According to an embodiment of the present application, a method for measuring biological characteristics of livestock through images is provided, which includes: an image acquisition step of obtaining an image from a photography device, wherein the photography device is used to capture a barn housing livestock from above; The image is subjected to the recognition steps of artificial intelligence image recognition to obtain a single image frame corresponding to the back of a domestic animal; based on the height and viewing angle of the installation of the photography device, the corresponding body length and width of the livestock back of the image frame are calculated. The calculation step; and the comparison step of finding the weight corresponding to the image frame in the biometric comparison table based on the body length and body width of the livestock back of the image frame.
較佳地,為了得到該欄舍的多隻家畜的平均生物特徵,該用於影像量測家畜生物特徵的方法更包含重複實現前述的影像獲得步驟、辨識步驟、計算步驟與對照步驟,以獲得Z個該影像框與其相應的生物特徵,計算下列該欄舍的平均生物特徵的其中之一或其任意組合:家畜背部的平均體長;家畜背部的平均體寬;以及家畜的平均體重,其中Z為大於或等於2的正整數。Preferably, in order to obtain the average biological characteristics of multiple livestock in the pen, the method for image measurement of biological characteristics of livestock further includes repeatedly implementing the aforementioned image acquisition steps, identification steps, calculation steps and comparison steps to obtain For Z image frames and their corresponding biological characteristics, calculate one of the following average biological characteristics of the pen or any combination thereof: the average body length of the livestock's back; the average body width of the livestock's back; and the average weight of the livestock, where Z is a positive integer greater than or equal to 2.
較佳地,為了更精確地透過影像來計算生物特徵,用於影像量測家畜生物特徵的方法,其中該影像框的家畜背部對應的該體長與該體寬係相關於下列其中之一或其任意組合:該攝影裝置距離該欄舍地面的高度;以及該攝影裝置的視角。Preferably, in order to more accurately calculate biological characteristics through images, a method for measuring biological characteristics of livestock through images is used, wherein the body length and the body width corresponding to the back of the livestock in the image frame are related to one of the following or Any combination of: the height of the photography device from the ground of the pen; and the viewing angle of the photography device.
較佳地,為了避免量測時的較大誤差,其中在對該影像進行人工智慧影像辨識時,更得到一條脊柱線段,當該條脊柱線段與該影像的第一軸的夾角大於一門檻值時,重新實現前述的影像獲得步驟,其中該影像由平行於該第一軸的多個像素陣列所組成。Preferably, in order to avoid large errors in measurement, when performing artificial intelligence image recognition on the image, a spine line segment is obtained. When the angle between the spine line segment and the first axis of the image is greater than a threshold value When, the aforementioned image acquisition step is re-implemented, wherein the image is composed of a plurality of pixel arrays parallel to the first axis.
較佳地,為了避免對像差較大的部分進行量測,該用於影像量測家畜生物特徵的方法更包含在自該攝影裝置獲得該影像之後,對該影像的一部分進行人工智慧影像辨識。Preferably, in order to avoid measuring parts with large aberrations, the method for measuring biological characteristics of livestock using images further includes performing artificial intelligence image recognition on a part of the image after obtaining the image from the photography device. .
較佳地,為了得到較佳的辨識效果,其中人工智慧影像辨識係利用類神經網路模型進行影像辨識,該類神經網路模型係利用該欄舍中飼養的同品種家畜的背部影像進行訓練完成。Preferably, in order to obtain better recognition results, the artificial intelligence image recognition system uses a neural network model for image recognition. The neural network model is trained using back images of domestic animals of the same species raised in the pen. Finish.
較佳地,為了報告量測到的家畜生物特徵,該用於影像量測家畜生物特徵的方法更包含令網路連接裝置透過網路系統將下列其中之一或其任意組合回報給管理裝置:該影像框的家畜背部對應的體長;該影像框的家畜背部對應的體寬;以及該影像框對應的體重。Preferably, in order to report the measured biometric characteristics of livestock, the method for image measuring biometric characteristics of livestock further includes causing the network connection device to report one of the following or any combination thereof to the management device through the network system: The body length corresponding to the back of the livestock in the image frame; the body width corresponding to the back of the livestock in the image frame; and the weight corresponding to the image frame.
較佳地,為了量測到的欄舍平均的家畜生物特徵,該用於影像量測家畜生物特徵的方法更包含令網路連接裝置透過網路系統將下列其中之一或其任意組合回報給管理裝置:家畜背部的平均體長;家畜背部的平均體寬;以及家畜的平均體重。Preferably, in order to measure the average livestock biometric characteristics of the stall, the method for image measuring livestock biometric characteristics further includes causing the network connection device to report one of the following or any combination thereof to the network system through the network system. Management device: the average body length of the livestock's back; the average body width of the livestock's back; and the average body weight of the livestock.
較佳地,為了精準地利用體長與體寬來對應到同一品種家畜的體重,其中該欄舍的該家畜與該生物特徵對照表內所對應的資料係屬於同一品種。Preferably, in order to accurately use body length and body width to correspond to the weight of livestock of the same species, the livestock in the pen and the corresponding data in the biometric comparison table belong to the same species.
較佳地,為了讓管理裝置可以遠端地對終端裝置進行設定,該用於影像量測家畜生物特徵的方法更包含令網路連接裝置透過網路系統自管理裝置接收下列其中之一或其任意組合:該生物特徵對照表;以及人工智慧影像辨識所使用的類神經網路模型。Preferably, in order to allow the management device to remotely configure the terminal device, the method for image measuring livestock biometrics further includes causing the network connection device to receive one or more of the following from the management device through the network system. Any combination: the biometric comparison table; and the neural network model used in artificial intelligence image recognition.
根據本申請的一實施例,提供一種用於影像量測家畜生物特徵的系統,包含如前所述的終端裝置與管理裝置。According to an embodiment of the present application, a system for imaging biological characteristics of livestock is provided, including a terminal device and a management device as described above.
總上所述,本發明提供了能夠自動量測家畜的生物特徵的系統與方法,來幫畜牧場節省量測家畜的生物特徵所費的人力成本與時間,避免了人為操作時的錯誤,也避免了量測時對家畜造成的緊迫,減少家畜在量測時受傷的可能性。當大型畜牧場同時在多個欄舍中分別畜養不同年齡、不同品種的家畜時,自動化的量測與管理系統能夠將多個終端裝置所得到資料集中到管理裝置,以方便管理與統計。In summary, the present invention provides a system and method that can automatically measure the biological characteristics of livestock to help livestock farms save labor costs and time in measuring the biological characteristics of livestock, avoid human operation errors, and also This avoids stress to livestock during measurement and reduces the possibility of livestock being injured during measurement. When large-scale livestock farms raise livestock of different ages and varieties in multiple stalls at the same time, the automated measurement and management system can centralize the data obtained from multiple terminal devices into the management device to facilitate management and statistics.
本文中應用了具體個例對本申請之原理及實施方式進行了闡述,以上實施例之說明僅係用以幫助理解本申請之技術方案及其核心思想;本領域之普通技術人員應當理解:其依然可以對前述各實施例所記載之技術方案進行修改,或者對其中部分技術特徵進行等同替換;而該等修改或者替換,並不使相應技術方案之本質脫離本申請各實施例之技術方案之範圍。This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solutions and core ideas of the present application; those of ordinary skill in the art should understand that: they still The technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and such modifications or substitutions will not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present application. .
100:影像量測家畜生物特徵的系統 110:管理裝置 120:網路系統 130:終端裝置 140:移動管理裝置 210:主機 220:輸出裝置 230:輸入裝置 240:網路連接裝置 250:儲存裝置 310:主機 320:攝影裝置 330:儲存裝置 340:網路連接裝置 410:第一軸的長度 420:第一軸的長度 430:高度 440:家畜 510:家畜背部的影像框 520:脊椎線段 530:第一軸長度 540:第二軸長度 550:第一軸 560:第二軸 610:夾角 710~780:步驟 100: Image measurement system for livestock biometrics 110:Manage device 120:Network system 130:Terminal device 140:Mobile management device 210:Host 220:Output device 230:Input device 240:Network connection device 250:Storage device 310:Host 320:Photography installation 330:Storage device 340:Network connection device 410: length of first axis 420:The length of the first axis 430:Height 440:Livestock 510: Image frame on the back of livestock 520: Spine line segment 530: First axis length 540: Second axis length 550:First axis 560:Second axis 610:Angle 710~780: steps
圖1為根據本申請的一實施例的一種影像量測家畜生物特徵的系統100的方框示意圖。 圖2為根據本申請一實施例的管理裝置110的方框示意圖。 圖3為根據本申請一實施例的終端裝置130的方框示意圖。 圖4為根據本發明一實施例的欄舍的側面示意圖。 圖5為根據本發明一實施例的欄舍的俯視示意圖。 圖6根據本申請一實施例的脊椎線段與兩軸夾角的示意圖。 圖7為根據本申請一實施例的影像量測家畜生物特徵方法700的一流程示意圖。 FIG. 1 is a schematic block diagram of a system 100 for imaging biological characteristics of livestock according to an embodiment of the present application. Figure 2 is a block diagram of a management device 110 according to an embodiment of the present application. FIG. 3 is a block diagram of a terminal device 130 according to an embodiment of the present application. Figure 4 is a schematic side view of a pen according to an embodiment of the present invention. Figure 5 is a schematic top view of a pen according to an embodiment of the present invention. Figure 6 is a schematic diagram of the angle between a spine line segment and two axes according to an embodiment of the present application. FIG. 7 is a schematic flowchart of a method 700 for measuring livestock biometrics through images according to an embodiment of the present application.
710~780:步驟 710~780: steps
Claims (19)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW111134633A TWI833352B (en) | 2022-09-14 | 2022-09-14 | Terminal device, system and method for image measurement of biological characteristics of livestock |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW111134633A TWI833352B (en) | 2022-09-14 | 2022-09-14 | Terminal device, system and method for image measurement of biological characteristics of livestock |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI833352B true TWI833352B (en) | 2024-02-21 |
| TW202411947A TW202411947A (en) | 2024-03-16 |
Family
ID=90825030
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW111134633A TWI833352B (en) | 2022-09-14 | 2022-09-14 | Terminal device, system and method for image measurement of biological characteristics of livestock |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI833352B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6892671B1 (en) * | 1998-12-24 | 2005-05-17 | Surge Miyawaki Co., Ltd. | Animal registration management system capable of animal identification |
| TW201915910A (en) * | 2017-09-22 | 2019-04-16 | 日商松下知識產權經營股份有限公司 | Livestock information management system, livestock house, livestock information management program and livestock information management method |
| CN112862757A (en) * | 2021-01-14 | 2021-05-28 | 四川大学 | Weight evaluation system based on computer vision technology and implementation method |
| US11055633B2 (en) * | 2019-09-12 | 2021-07-06 | Performance Livestock Analytics, Inc. | Livestock and feedlot data collection and processing using UHF-band interrogation of radio frequency identification tags for feedlot arrival and risk assessment |
-
2022
- 2022-09-14 TW TW111134633A patent/TWI833352B/en active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6892671B1 (en) * | 1998-12-24 | 2005-05-17 | Surge Miyawaki Co., Ltd. | Animal registration management system capable of animal identification |
| TW201915910A (en) * | 2017-09-22 | 2019-04-16 | 日商松下知識產權經營股份有限公司 | Livestock information management system, livestock house, livestock information management program and livestock information management method |
| US11055633B2 (en) * | 2019-09-12 | 2021-07-06 | Performance Livestock Analytics, Inc. | Livestock and feedlot data collection and processing using UHF-band interrogation of radio frequency identification tags for feedlot arrival and risk assessment |
| CN112862757A (en) * | 2021-01-14 | 2021-05-28 | 四川大学 | Weight evaluation system based on computer vision technology and implementation method |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202411947A (en) | 2024-03-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11910784B2 (en) | Animal visual identification, tracking, monitoring and assessment systems and methods thereof | |
| CN113822185B (en) | Method for detecting daily behaviors of group-raised pigs | |
| WO2023201443A1 (en) | Method and system for automated evaluation of animals | |
| JP7108941B2 (en) | ANIMAL INFORMATION MANAGEMENT SYSTEM AND ANIMAL INFORMATION MANAGEMENT METHOD | |
| CN115100683B (en) | Method, device, equipment and storage medium for evaluating weight | |
| CN116206342B (en) | Pig body weight detection method, device, equipment and storage medium | |
| CN110866481A (en) | Sow oestrus detection method and device | |
| CN110897756A (en) | Method and system for predicting estrus state of target object | |
| Kuan et al. | An imaging system based on deep learning for monitoring the feeding behavior of dairy cows | |
| CN115294185B (en) | Pig weight estimation method and related equipment | |
| CN114550059A (en) | Method, device and equipment for identifying health condition of chicken and storage medium | |
| TWI833352B (en) | Terminal device, system and method for image measurement of biological characteristics of livestock | |
| Xiao et al. | A novel and convenient lying cow identification method based on YOLOX and CowbodyNet: a study with applications in a barn | |
| Wang et al. | PD-YOLO: A study of daily behavioural detection in housed sheep | |
| Xu et al. | Posture identification for stall-housed sows around estrus using a robotic imaging system | |
| CN117711012A (en) | Terminal device, system and method for image measurement of livestock biological characteristics | |
| KR20210004184A (en) | Domestic Animal Managing Method Based on Identifying Marking Information of And Computing Apparatus and Server of Thereof | |
| CN119131481A (en) | Corn ear quality detection method, device, system and medium | |
| CN113780052B (en) | Lactation identification method, related device, equipment and medium | |
| CN110739047A (en) | Patient image color restoration method, device, equipment and readable storage medium | |
| Li et al. | A portable RGB-D based device for unconstrained horse body size measurement for breeding | |
| CN114998575B (en) | Method and device for training and using target detection model | |
| TWM598479U (en) | Pet individual character recognition system | |
| US20240265567A1 (en) | Method and system for livestock monitoring and management | |
| CN120707587B (en) | Fish body positioning and tracking device and method |