Summary of the invention
In order to solve the above technical problems, the embodiment of the invention provides a kind of quantity statistics method of animal and system, depositing
Storage media.
According to an aspect of an embodiment of the present invention, the embodiment of the invention provides a kind of quantity statistics method of animal,
The described method includes:
Region to be measured is divided, n sections to be measured are obtained;
The remote sensing images of each section to be measured are obtained respectively every prefixed time interval;
By the remote sensing figure of the remote sensing images of k-th of the first moment section to be measured and k-th of section to be measured at the second moment
Picture compares, and obtains k-th of differential image, and so on, until obtaining m-th of differential image;
Each differential image is analyzed respectively, obtains the varied number of the animal in the region to be measured;
The destination number of animal is determined according to the varied number and the initial number got;
Wherein, at the time of first moment and second moment are adjacent, n is the integer greater than 1,0 < k≤m≤
n。
It provides through this embodiment: by region division to be measured at multiple sections to be measured, using prefixed time interval as unit,
The remote sensing images of each section to be measured are obtained, and the remote sensing images of previous moment section A to be measured are waited for current time
The remote sensing images for surveying section A compare, and obtain differential image, and so on, after obtaining multiple differential images, to each difference
Image is analyzed, and obtains the varied number of the animal in region to be measured, and determine number of targets according to varied number and initial number
The technical solution of amount, on the one hand, avoid labor intensive and material resources when being counted in the prior art by artificial mode
Technology drawback, realizes save the cost, the technical effect improved efficiency;On the other hand, it avoids and carries out quantity in the prior art
It when statistics, is easy to be influenced by human factor, leads to statistical result not accurately technology drawback, realize and unite to the quantity of animal
The accuracy of meter.
Further, described that region to be measured is divided, n sections to be measured are obtained, are specifically included:
Call preset historical data base;
Distributed intelligence according to animal in the historical data base in the region to be measured, to marking for region to be measured
Know, obtains multiple marks;
The region to be measured is divided according to the distributed intelligence and each mark, it is a described to be measured to obtain n
Section.
It provides through this embodiment: the section technical solution to be measured after being divided according to historical data, realize " because
The technical effect of ground suiting measures to different conditions ".
Further, described that the region to be measured is divided with each mark according to the distributed intelligence, have
Body includes:
It is respectively each mark distribution weight coefficient according to the distributed intelligence;
The region to be measured is divided according to each weight coefficient and preset each division factor;
Wherein, the corresponding division factor of a weight coefficient.
The technology that the combination distribution weight coefficient and division factor provided through this embodiment divides region to be measured
Scheme realizes the technical effect accurately divided to region to be measured sufficiently to combine historical data.
Further, k-th of the remote sensing images of k-th of section to be measured by the first moment and the second moment it is to be measured
The remote sensing images of section compare, and obtain k-th of differential image, specifically include:
The first orthogonal projection area and the second orthogonal projection area are obtained respectively;
The first orthogonal projection area and the second orthogonal projection area are compared, obtain described k-th it is poor
Different image;
Wherein, the first orthogonal projection area is the remote sensing images of described k-th section to be measured at first moment
In animal orthogonal projection area, the second orthogonal projection area be second moment described k-th section to be measured
Remote sensing images in animal orthogonal projection area.
The the first orthogonal projection area that will acquire provided through this embodiment and the second orthogonal projection area are compared
It is right, the technical aspect of differential image is obtained, the efficient and quick technical effect for obtaining differential image is realized, so that it is guaranteed that dynamic
The accuracy and high efficiency of the quantity statistics of object.
Further, the first orthogonal projection area S is obtained according to formula 1, formula 1:
Wherein, σ is preset correction factor, and l is in the remote sensing images of described k-th section to be measured at first moment
Animal length, w be first moment described k-th section to be measured remote sensing images in animal width, r is institute
State the brightness value of the animal in the remote sensing images of described k-th section to be measured at the first moment, riFor the institute at first moment
State the brightness value of the background of the remote sensing images of k-th of section to be measured.
Corrected parameter can be configured as the case may be.
What is provided through this embodiment determines the technical solution of the first orthogonal projection area according to formula 1, due to fully considering
It is influenced caused by when environmental factor is quantity statistics, it is achieved that the accuracy of the first orthogonal projection area, to realize
The accuracy of size of animal statistics.
Other side according to an embodiment of the present invention, the embodiment of the invention provides a kind of computer-readable storage mediums
Matter, including instruction, when run on a computer, so that computer executes method as described above.
Other side according to an embodiment of the present invention, the embodiment of the invention provides a kind of quantity statistics systems of animal
System, the system comprises: division module obtains module, contrast module, analysis module and determining module, wherein
The division module is used for: being divided to region to be measured, is obtained n sections to be measured;
The module that obtains is used for: being carried out respectively to the remote sensing images of each section to be measured every prefixed time interval
It obtains;
The contrast module is used for: by k-th of the remote sensing images of k-th of the first moment section to be measured and the second moment
The remote sensing images of section to be measured compare, and obtain k-th of differential image, and so on, until obtaining m-th of differential image;
The analysis module is used for: being analyzed respectively each differential image, is obtained the dynamic of the region to be measured
The varied number of object;
The determining module is used for: the number of targets of animal is determined according to the varied number and the initial number got
Amount;
Wherein, at the time of first moment and second moment are adjacent, n is the integer greater than 1,0 < k≤m≤
n。
The technical solution provided through this embodiment, on the one hand, avoid and carried out in the prior art by artificial mode
The technology drawback of labor intensive and material resources, realizes save the cost when statistics, the technical effect improved efficiency;On the other hand, it keeps away
It when having exempted to carry out quantity statistics in the prior art, is easy to be influenced by human factor, leads to statistical result not accurately technology disadvantage
End, realizes the accuracy to the quantity statistics of animal.
Further, the division module is specifically used for:
Call preset historical data base;
Distributed intelligence according to animal in the historical data base in the region to be measured, to marking for region to be measured
Know, obtains multiple marks;
The region to be measured is divided according to the distributed intelligence and each mark, it is a described to be measured to obtain n
Section.
It provides through this embodiment: the section technical solution to be measured after being divided according to historical data, realize " because
The technical effect of ground suiting measures to different conditions ".
Further, the division module is specifically used for:
It is respectively each mark distribution weight coefficient according to the distributed intelligence;
The region to be measured is divided according to each weight coefficient and preset each division factor;
Wherein, the corresponding division factor of a weight coefficient.
The technology that the combination distribution weight coefficient and division factor provided through this embodiment divides region to be measured
Scheme realizes the technical effect accurately divided to region to be measured sufficiently to combine historical data.
Further, the contrast module is specifically used for:
The first orthogonal projection area and the second orthogonal projection area are obtained respectively;
The first orthogonal projection area and the second orthogonal projection area are compared, obtain described k-th it is poor
Different image;
Wherein, the first orthogonal projection area is the remote sensing images of described k-th section to be measured at first moment
In animal orthogonal projection area, the second orthogonal projection area be second moment described k-th section to be measured
Remote sensing images in animal orthogonal projection area.
The the first orthogonal projection area that will acquire provided through this embodiment and the second orthogonal projection area are compared
It is right, the technical aspect of differential image is obtained, the efficient and quick technical effect for obtaining differential image is realized, so that it is guaranteed that dynamic
The accuracy and high efficiency of the quantity statistics of object.
Specific embodiment
In being described below, for illustration and not for limitation, propose such as specific system structure, interface, technology it
The detail of class, to understand thoroughly the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system and method
Detailed description, in order to avoid unnecessary details interfere description of the invention.
The embodiment of the invention provides a kind of quantity statistics methods of animal and system, storage medium.
According to an aspect of an embodiment of the present invention, the embodiment of the invention provides a kind of quantity statistics methods of animal.
First embodiment:
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of the quantity statistics method of animal provided in an embodiment of the present invention.
As shown in Figure 1, this method comprises:
S100: dividing region to be measured, obtains n sections to be measured.
The region of animal activity is known as region to be measured.It is understood that the animal in region to be measured has been unlikely to be
Sequence distribution, the varied number of the animal in some possible region can be relatively more, and the varied number of the animal in some region can compare
It is less, and with the variation of the factors such as temperature, humidity, the distribution of the animal of different zones can be significantly different.
So in the present embodiment, dividing to region to be measured, it is divided into multiple sections to be measured.Wherein, section to be measured
Quantity can be set as the case may be.When the area in region to be measured is larger, then the quantity of corresponding section to be measured can phase
The setting answered is more.
Certainly, when the area even in region to be measured is smaller, since the animal of some area stay is relatively more, and with
Toward working experience in, can the incomplete situation of original animal statistical magnitude.Accordingly it is also possible to by the region division to be measured at compared with
The section to be measured of multi-quantity.
To sum up, when being divided to region to be measured, can be made a concrete analysis of according to the actual situation, thus obtain it is multiple to
Survey section.
S200: the remote sensing images of each section to be measured are obtained respectively every prefixed time interval.
Since animal can walk about back and forth, at the A moment, animal B is in section C to be measured, and at a moment, animal B but to
Survey region c.So in the present embodiment, just being obtained to the remote sensing images of each section to be measured every prefixed time interval.
Specifically:
The remote sensing images of each section to be measured are obtained respectively every a hour.
S300: by the distant of the remote sensing images of k-th of the first moment section to be measured and k-th of section to be measured at the second moment
Sense image compares, and obtains k-th of differential image, and so on, until obtaining m-th of differential image.
Now it is explained in detail by taking section A to be measured as an example:
The remote sensing images b that section A to be measured is obtained at 12 after 1 with hour, i.e., at 13, is obtained to be measured again
The remote sensing images c of section A, remote sensing images b and remote sensing images c are compared, and obtain differential image d.
S400: respectively analyzing each differential image, obtains the varied number of the animal in region to be measured.
S500: the destination number of animal is determined according to varied number and the initial number got.
Wherein, at the time of the first moment and the second moment are adjacent, n is the integer greater than 1,0 < k≤m≤n.
It is understood that the quantity of animal can be obtained according to the varied number of animal by simply calculating.Specifically
Ground:
The quantity of original animal is A, and the varied number of animal is B, then A+B is the destination number of the animal counted.
It provides through this embodiment: by region division to be measured at multiple sections to be measured, using prefixed time interval as unit,
The remote sensing images of each section to be measured are obtained, and the remote sensing images of previous moment section A to be measured are waited for current time
The remote sensing images for surveying section A compare, and obtain differential image, and so on, after obtaining multiple differential images, to each difference
Image is analyzed, and obtains the varied number of the animal in region to be measured, and determine number of targets according to varied number and initial number
The technical solution of amount, on the one hand, avoid labor intensive and material resources when being counted in the prior art by artificial mode
Technology drawback, realizes save the cost, the technical effect improved efficiency;On the other hand, it avoids and carries out quantity in the prior art
It when statistics, is easy to be influenced by human factor, leads to statistical result not accurately technology drawback, realize and unite to the quantity of animal
The accuracy of meter.
Second embodiment:
The present embodiment is based on first embodiment.In the present embodiment, S100 is specifically included:
Call preset historical data base.
After the completion of the destination number every time to animal counts, by the data inputting of statistics to the historical data constructed in advance
In library.
Distributed intelligence according to animal in historical data base in region to be measured is identified region to be measured, obtains more
A mark.
Based on historical data base, region to be measured is identified.
Region to be measured is divided according to distributed intelligence and each mark, obtains n sections to be measured.
It provides through this embodiment: the section technical solution to be measured after being divided according to historical data, realize " because
The technical effect of ground suiting measures to different conditions ".
3rd embodiment:
The present embodiment is based on second embodiment.In the present embodiment, according to distributed intelligence and each mark to be measured
Region is divided, and is specifically included:
It is respectively each mark distribution weight coefficient according to distributed intelligence.
Specifically, it according to distributed intelligence it is found that the corresponding animal of mark A compares concentration, and identifies the corresponding animal of B and compares
It is sparse, so, the corresponding weight coefficient of mark A is greater than the corresponding weight coefficient of mark B.
Region to be measured is divided according to each weight coefficient and preset each division factor.
Wherein, the corresponding division factor of a weight coefficient.
The technology that the combination distribution weight coefficient and division factor provided through this embodiment divides region to be measured
Scheme realizes the technical effect accurately divided to region to be measured sufficiently to combine historical data.
Fourth embodiment:
The present embodiment is based on the first any embodiment into 3rd embodiment.In the present embodiment, S300 is specific
Include:
The first orthogonal projection area and the second orthogonal projection area are obtained respectively;
First orthogonal projection area and the second orthogonal projection area are compared, k-th of differential image is obtained;
Wherein, the first orthogonal projection area be the first moment k-th of section to be measured remote sensing images in animal just
Projected area is penetrated, the second orthogonal projection area is just penetrating for the animal in the remote sensing images of k-th of section to be measured at the second moment
Projected area.
The the first orthogonal projection area that will acquire provided through this embodiment and the second orthogonal projection area are compared
It is right, the technical aspect of differential image is obtained, the efficient and quick technical effect for obtaining differential image is realized, so that it is guaranteed that dynamic
The accuracy and high efficiency of the quantity statistics of object.
5th embodiment:
The present embodiment is based on fourth embodiment.In the present embodiment, the first orthogonal projection area S is obtained according to formula 1,
Formula 1:
Wherein, σ is preset correction factor, and l is the animal in the remote sensing images of k-th of section to be measured at the first moment
Length, w are the width of the animal in the remote sensing images of k-th of section to be measured at the first moment, r be k-th of the first moment to
Survey the brightness value of the animal in the remote sensing images of section, riFor the background of the remote sensing images of k-th of section to be measured at the first moment
Brightness value.
What is provided through this embodiment determines the technical solution of the first orthogonal projection area according to formula 1, due to fully considering
It is influenced caused by when environmental factor is quantity statistics, it is achieved that the accuracy of the first orthogonal projection area, to realize
The accuracy of size of animal statistics.
Other side according to an embodiment of the present invention, the embodiment of the invention provides a kind of computer-readable storage mediums
Matter, including instruction, when run on a computer, so that computer executes method described in any embodiment as above.
Other side according to an embodiment of the present invention, the embodiment of the invention provides the one kind corresponded to the above method
The quantity statistics system of animal.
Referring to Fig. 2, Fig. 2 is a kind of structural schematic diagram of the quantity statistics system of animal provided in an embodiment of the present invention.
As shown in Fig. 2, the system includes: division module, obtains module, contrast module, analysis module and determining module,
In,
Division module is used for: being divided to region to be measured, is obtained n sections to be measured;
It obtains module to be used for: the remote sensing images of each section to be measured being obtained respectively every prefixed time interval;
Contrast module is used for: to be measured by k-th of the remote sensing images of k-th of the first moment section to be measured and the second moment
The remote sensing images of section compare, and obtain k-th of differential image, and so on, until obtaining m-th of differential image;
Analysis module is used for: being analyzed respectively each differential image, is obtained the varied number of the animal in region to be measured;
Determining module is used for: the destination number of animal is determined according to varied number and the initial number got;
Wherein, at the time of the first moment and the second moment are adjacent, n is the integer greater than 1,0 < k≤m≤n.
The technical solution provided through this embodiment, on the one hand, avoid and carried out in the prior art by artificial mode
The technology drawback of labor intensive and material resources, realizes save the cost when statistics, the technical effect improved efficiency;On the other hand, it keeps away
It when having exempted to carry out quantity statistics in the prior art, is easy to be influenced by human factor, leads to statistical result not accurately technology disadvantage
End, realizes the accuracy to the quantity statistics of animal.
In a kind of technical solution in the cards, division module is specifically used for:
Call preset historical data base;
Distributed intelligence according to animal in historical data base in region to be measured is identified region to be measured, obtains more
A mark;
Region to be measured is divided according to distributed intelligence and each mark, obtains n sections to be measured.
It provides through this embodiment: the section technical solution to be measured after being divided according to historical data, realize " because
The technical effect of ground suiting measures to different conditions ".
In a kind of technical solution in the cards, division module is specifically used for:
It is respectively each mark distribution weight coefficient according to distributed intelligence;
Region to be measured is divided according to each weight coefficient and preset each division factor;
Wherein, the corresponding division factor of a weight coefficient.
The technology that the combination distribution weight coefficient and division factor provided through this embodiment divides region to be measured
Scheme realizes the technical effect accurately divided to region to be measured sufficiently to combine historical data.
In a kind of technical solution in the cards, contrast module is specifically used for:
The first orthogonal projection area and the second orthogonal projection area are obtained respectively;
First orthogonal projection area and the second orthogonal projection area are compared, k-th of differential image is obtained;
Wherein, the first orthogonal projection area be the first moment k-th of section to be measured remote sensing images in animal just
Projected area is penetrated, the second orthogonal projection area is just penetrating for the animal in the remote sensing images of k-th of section to be measured at the second moment
Projected area.
The the first orthogonal projection area that will acquire provided through this embodiment and the second orthogonal projection area are compared
It is right, the technical aspect of differential image is obtained, the efficient and quick technical effect for obtaining differential image is realized, so that it is guaranteed that dynamic
The accuracy and high efficiency of the quantity statistics of object.
Reader should be understood that in the description of this specification reference term " one embodiment ", " is shown " some embodiments "
The description of example ", " specific example " or " some examples " etc. means specific features described in conjunction with this embodiment or example, structure
Or feature is included at least one embodiment or example of the invention.In the present specification, to the schematic of above-mentioned term
Statement need not be directed to identical embodiment or example.Moreover, specific features, structure or the feature of description can be any
It can be combined in any suitable manner in a or multiple embodiment or examples.In addition, without conflicting with each other, the technology of this field
The feature of different embodiments or examples described in this specification and different embodiments or examples can be combined by personnel
And combination.
It is apparent to those skilled in the art that for convenience of description and succinctly, the dress of foregoing description
The specific work process with unit is set, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can select some or all of unit therein according to the actual needs to realize the mesh of the embodiment of the present invention
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product
To be stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) executes all or part of each embodiment method of the present invention
Step.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only memory (ROM, Read-Only Memory), random
Access various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk
Matter.
It should also be understood that magnitude of the sequence numbers of the above procedures are not meant to execute sequence in various embodiments of the present invention
It is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Journey constitutes any restriction.
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with
Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or substitutions,
These modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be wanted with right
Subject to the protection scope asked.