CN107705332A - The method and device of number of devices in a kind of statistical regions - Google Patents

The method and device of number of devices in a kind of statistical regions Download PDF

Info

Publication number
CN107705332A
CN107705332A CN201710938083.2A CN201710938083A CN107705332A CN 107705332 A CN107705332 A CN 107705332A CN 201710938083 A CN201710938083 A CN 201710938083A CN 107705332 A CN107705332 A CN 107705332A
Authority
CN
China
Prior art keywords
region
counted
border
point
coordinate points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710938083.2A
Other languages
Chinese (zh)
Inventor
李伟
袁志永
李彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Austrian (china) Gas Investment Co Ltd
Original Assignee
New Austrian (china) Gas Investment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New Austrian (china) Gas Investment Co Ltd filed Critical New Austrian (china) Gas Investment Co Ltd
Priority to CN201710938083.2A priority Critical patent/CN107705332A/en
Publication of CN107705332A publication Critical patent/CN107705332A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/77Determining position or orientation of objects or cameras using statistical methods

Abstract

The invention provides a kind of method and device of number of devices in statistical regions, including:Prestore the coordinate points of each point device and at least one coordinate points of each tube apparatus;Obtain the coordinate points of each point device for not determining corresponding region prestored;Obtain at least one coordinate points on each tube apparatus for not determining corresponding region prestored;Determine the regional location in region to be counted;For each coordinate points, regional location, determine changing coordinates point whether in the region to be counted;According to equipment corresponding to each intrinsic coordinates point in the region to be counted, it is determined that the first quantity of the point device in the region to be counted, and the second quantity of the tube apparatus in the region to be counted, wherein, the equipment includes the point device and the tube apparatus.This programme can improve the efficiency of statistics gas-fired equipment.

Description

The method and device of number of devices in a kind of statistical regions
Technical field
The present invention relates to statistical management technical field, the method and dress of number of devices in more particularly to a kind of statistical regions Put.
Background technology
Gas-fired equipment and pipe network are the critical facilitys for ensureing city reliable air supply, and what it was conveyed is combustible medium, Er Qiefen Cloth is multi-point and wide-ranging, and be related to huge numbers of families uses gas.Gas-fired equipment and pipeline distribution broad covered area, have in each position in city High pressure station and pipeline in countryside, also there are the region voltage regulating station being arranged on by town road and the building that residential area is set Pressure regulating box.
At present, with urban renewal, the quantity of the gas-fired equipment in provinces and cities region can increase or decrease, and be saved in statistics , it is necessary to which staff periodically arrives scene counts one by one during gas-fired equipment quantity in city region.But due to the number of gas-fired equipment Measure more, staff can take a substantial amount of time when counting gas-fired equipment quantity, cause the efficiency for counting gas-fired equipment low.
The content of the invention
The embodiments of the invention provide a kind of method and device of number of devices in statistical regions, it is possible to increase statistics combustion gas The efficiency of equipment.
In a first aspect, the embodiments of the invention provide a kind of method of number of devices in statistical regions, including:
Prestore the coordinate points of each point device and at least one coordinate points of each tube apparatus;
Including:
Obtain the coordinate points of each point device for not determining corresponding region prestored;
Obtain at least one coordinate points on each tube apparatus for not determining corresponding region prestored;
Determine the regional location in region to be counted;
For each coordinate points, according to the regional location, determine changing coordinates point whether in the area to be counted In domain;
According to equipment corresponding to each intrinsic coordinates point in the region to be counted, it is determined that in the region to be counted First quantity of the interior point device, and the second quantity of the tube apparatus in the region to be counted, wherein, institute Stating equipment includes the point device and the tube apparatus.
Preferably, the regional location for determining region to be counted, including:
It is determined that the border that each head and the tail in the composition region to be counted are sequentially connected with, wherein, the border is line segment;
It is described to be directed to each coordinate points, according to the regional location, determine whether changing coordinates point is waited to unite described Count in region, including:
S0:The changing coordinates point is judged whether on any one of border, if it is, performing S1, is otherwise performed S2;
S1:The changing coordinates point is determined in the region to be counted, and terminates current process;
S2:It is determined that using the changing coordinates point as the ray of end points;
S3:Judge that the ray whether there is intersection point with each border, if it is, S4 is performed, otherwise, it determines institute Changing coordinates point is stated outside the region to be counted;
S4:Determine at least one intersection point of the ray and each border;
S5:According at least one intersection point, determine the changing coordinates point whether in the region to be counted.
Preferably, the S5, including:
A1:Judge with the presence or absence of the end points on any border at least one intersection point, if it is, A2 is performed, Otherwise, A3 is performed;
A2:For each end points, judge that whether two Borders are in the ray corresponding to the current endpoint Both sides, if it is, the first quantity is odd number, perform A4, otherwise, it determines first quantity be even number, execution A4;
A3:It is even number to determine first quantity, performs A4;
A4:The second quantity of the ray and the intersection point on the border beyond the Border is determined, performs A5;
A A5:Judge whether first quantity and the second quantity sum are odd number, if it is, determining described work as Preceding coordinate points are in the region to be counted, otherwise, it determines changing coordinates point is outside the region to be counted.
C1:Determine the intrinsic coordinates point carry corresponding to the identification information described 4, according to claim 2 Method, it is characterised in that
It is described to judge the changing coordinates point whether on any one of border, including:
For each border, judge the changing coordinates point whether and meanwhile meet following formula, if it is, determining The changing coordinates point is on current border, otherwise, it determines changing coordinates point is not on the current border;
Y=ax+b, c≤x≤d, e≤y≤f
Wherein, y characterizes the ordinate of the changing coordinates point, and a characterizes the slope of the current border, and x characterizes described work as The abscissa of preceding coordinate points, b characterize the intercept of the current border, and c and d characterize the horizontal seat of two end points of the current border Mark, e and f characterize the ordinate of two end points of the current border.
Preferably, obtain the coordinate points of each point device for not determining corresponding region that prestore and it is each not Before determining at least one coordinate points on the tube apparatus of corresponding region, further comprise:
The identification information of each tube apparatus for not determining corresponding region is obtained, wherein, each tube apparatus is corresponding A kind of identification information;
At least one coordinate points obtained on each tube apparatus for not determining corresponding region prestored, bag Include:
Obtain described corresponding at least one carrying on each tube apparatus for not determining corresponding region prestored The coordinate points of identification information;
The each equipment corresponding to the intrinsic coordinates point in the region to be counted of the basis, it is determined that described to be counted First quantity of the point device in region, and the second quantity of the tube apparatus in the region to be counted, its In, the equipment includes the point device and the tube apparatus, including:
Statistics does not carry the first quantity of the intrinsic coordinates point of the corresponding identification information;
Second quantity of the species of identification information described in the intrinsic coordinates point of the identification information corresponding to statistics carrying.
Second aspect, the embodiments of the invention provide a kind of device of number of devices in statistical regions, including:
Memory cell, for prestoring the coordinate points of each point device and at least one coordinate points of each tube apparatus;
Acquiring unit, each point device for not determining corresponding region prestored for obtaining the memory cell Coordinate points and each tube apparatus for not determining corresponding region at least one coordinate points;
Determining unit, for determining the regional location in region to be counted;
Processing unit, it is true according to the determining unit for each coordinate points obtained for the acquiring unit The fixed regional location, determine changing coordinates point whether in the region to be counted;Determined according to the judging unit Each equipment corresponding to the intrinsic coordinates point in the region to be counted, it is determined that the point in the region to be counted is set The first standby quantity, and the second quantity of the tube apparatus in the region to be counted, wherein, the equipment includes institute State point device and the tube apparatus.
Preferably, the determining unit, the side that each head and the tail for determining the composition region to be counted are sequentially connected with Boundary, wherein, the border is line segment;
Processing unit, for performing:
S0:The changing coordinates point is judged whether on any one of border, if it is, performing S1, is otherwise performed S2;
S1:Determine the changing coordinates point in the region to be counted;
S2:It is determined that using the changing coordinates point as the ray of end points;
S3:Judge that the ray whether there is intersection point with each border, if it is, S4 is performed, otherwise, it determines institute Changing coordinates point is stated outside the region to be counted;
S4:Determine at least one intersection point of the ray and each border;
S5:According at least one intersection point, determine the changing coordinates point whether in the region to be counted.
Preferably, the processing unit, for performing:
A1:Judge with the presence or absence of the end points on any border at least one intersection point, if it is, A2 is performed, Otherwise, A3 is performed;
A2:For each end points, judge that whether two Borders are in the ray corresponding to the current endpoint Both sides, if it is, the first quantity is odd number, perform A4, otherwise, it determines first quantity be even number, execution A4;
A3:It is even number to determine first quantity, performs A4;
A4:The second quantity of the ray and the intersection point on the border beyond the Border is determined, performs A5;
A5:Judge whether first quantity and the second quantity sum are odd number, if it is, determining described current Coordinate points are in the region to be counted, otherwise, it determines changing coordinates point is outside the region to be counted.
Preferably, the processing unit, for for each border, judge the changing coordinates point whether and meanwhile it is full It is enough lower formula, if it is, the changing coordinates point is determined on current border, otherwise, it determines changing coordinates point is not On the current border;
Y=ax+b, c≤x≤d, e≤y≤f
Wherein, y characterizes the ordinate of the changing coordinates point, and a characterizes the slope of the current border, and x characterizes described work as The abscissa of preceding coordinate points, b characterize the intercept of the current border, and c and d characterize the horizontal seat of two end points of the current border Mark, e and f characterize the ordinate of two end points of the current border.
Preferably, the acquiring unit, it is further used for obtaining the mark of each tube apparatus for not determining corresponding region Know information, wherein, each tube apparatus corresponds to a kind of identification information;And obtain prestore each and do not determine pair Answer the coordinate points of the identification information corresponding at least one carrying on the tube apparatus in region;
The processing unit, for counting the first quantity of the intrinsic coordinates point for not carrying the corresponding identification information; Second quantity of the species of identification information described in the intrinsic coordinates point of the identification information corresponding to statistics carrying.
In embodiments of the present invention, coordinate points and region to be counted according to corresponding to each equipment for not determining corresponding region Regional location, it may be determined that whether each coordinate points in region to be counted, further according in internal coordinate point in region to be counted Quantity, you can determine the quantity of the equipment in region to be counted, the quantity without staff to field statistics gas-fired equipment, Time of the staff when counting gas-fired equipment is saved, so as to improve the efficiency of statistics gas-fired equipment.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is the flow chart of the method for number of devices in a kind of statistical regions of one embodiment of the invention offer;
Fig. 2 is the flow chart of the method for number of devices in another statistical regions of one embodiment of the invention offer;
Fig. 3 is the structural representation of the device of number of devices in a kind of statistical regions of one embodiment of the invention offer.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of method of number of devices in statistical regions, including:
Step 101:Prestore the coordinate points of each point device and at least one coordinate points of each tube apparatus;
Step 102:Obtain the coordinate points of each point device for not determining corresponding region prestored;
Step 103:Obtain at least one coordinate on each tube apparatus for not determining corresponding region prestored Point;
Step 104:Determine the regional location in region to be counted;
Step 105:For each coordinate points, according to the regional location, determine changing coordinates point whether described In region to be counted;
Step 106:According to equipment corresponding to each intrinsic coordinates point in the region to be counted, it is determined that being treated described First quantity of the point device in statistical regions, and the second number of the tube apparatus in the region to be counted Amount, wherein, the equipment includes the point device and the tube apparatus.
In embodiments of the present invention, coordinate points and region to be counted according to corresponding to each equipment for not determining corresponding region Regional location, it may be determined that whether each coordinate points in region to be counted, further according in internal coordinate point in region to be counted Quantity, you can determine the quantity of the equipment in region to be counted, the quantity without staff to field statistics gas-fired equipment, Time of the staff when counting gas-fired equipment is saved, so as to improve the efficiency of statistics gas-fired equipment.
In an embodiment of the present invention, the regional location for determining region to be counted, including:
It is determined that the border that each head and the tail in the composition region to be counted are sequentially connected with, wherein, the border is line segment;
It is described to be directed to each coordinate points, according to the regional location, determine whether changing coordinates point is waited to unite described Count in region, including:
S0:The changing coordinates point is judged whether on any one of border, if it is, performing S1, is otherwise performed S2;
S1:Determine the changing coordinates point in the region to be counted;
S2:It is determined that using the changing coordinates point as the ray of end points;
S3:Judge that the ray whether there is intersection point with each border, if it is, S4 is performed, otherwise, it determines institute Changing coordinates point is stated outside the region to be counted;
S4:Determine at least one intersection point of the ray and each border;
S5:According at least one intersection point, determine the changing coordinates point whether in the region to be counted.
In embodiments of the present invention, coordinate points and the position on each border in region to be counted according to corresponding to each equipment Relation, it may be determined that whether each coordinate points are in region to be counted, so that it is determined that the coordinate points in region to be counted are corresponding Equipment in region to be counted, without the artificial quantity for arriving field statistics gas-fired equipment, saved staff and determined to wait to unite The time of gas-fired equipment in region is counted, so as to improve the efficiency of statistics gas-fired equipment.
In an embodiment of the present invention, the S5, including:
A1:Judge with the presence or absence of the end points on any border at least one intersection point, if it is, A2 is performed, Otherwise, A3 is performed;
A2:For each end points, judge that whether two Borders are in the ray corresponding to the current endpoint Both sides, if it is, the first quantity is odd number, perform A4, otherwise, it determines first quantity be even number, execution A4;
A3:It is even number to determine first quantity, performs A4;
A4:The second quantity of the ray and the intersection point on the border beyond the Border is determined, performs A5;
A5:Judge whether first quantity and the second quantity sum are odd number, if it is, determining described current Coordinate points are in the region to be counted, otherwise, it determines changing coordinates point is outside the region to be counted.
In embodiments of the present invention, it is odd number or even number according to the number of each coordinate points and the intersection point on each border, The coordinate points can be determined whether in region to be counted, so that it is determined that whether equipment corresponding to the coordinate points is in region to be counted It is interior, without manually reach the spot one by one in statistical regions gas-fired equipment quantity, saved combustion gas in staff's statistical regions The time of number of devices, so as to improve the efficiency of statistics gas-fired equipment.
In an embodiment of the present invention, it is described to judge the changing coordinates point whether on any one of border, bag Include:
For each border, judge the changing coordinates point whether and meanwhile meet following formula, if it is, determining The changing coordinates point is on current border, otherwise, it determines changing coordinates point is not on the current border;
Y=ax+b, c≤x≤d, e≤y≤f
Wherein, y characterizes the ordinate of the changing coordinates point, and a characterizes the slope of the current border, and x characterizes described work as The abscissa of preceding coordinate points, b characterize the intercept of the current border, and c and d characterize the horizontal seat of two end points of the current border Mark, e and f characterize the ordinate of two end points of the current border.
In embodiments of the present invention, for each border, it is determined that the public affairs formed by two end points of any current border Formula, because each border is a line segment, it is possible to it is determined that the span of the x values of the formula formed and y values, root Be may determine whether according to coordinate points corresponding to each equipment on border, may thereby determine that equipment corresponding to coordinate points whether On border, due to the position on each border of the coordinate points with forming region to be counted according to corresponding to each equipment, then it can determine that Each equipment whether in region to be counted, saved staff need to scene one by one in statistical regions gas-fired equipment when Between, so as to improve the efficiency of gas-fired equipment in statistical regions.
In an embodiment of the present invention, the seat of each point device for not determining corresponding region prestored is being obtained Before at least one coordinate points on punctuate and each tube apparatus for not determining corresponding region, further comprise:
The identification information of each tube apparatus for not determining corresponding region is obtained, wherein, each tube apparatus is corresponding A kind of identification information;
At least one coordinate points obtained on each tube apparatus for not determining corresponding region prestored, bag Include:
Obtain described corresponding at least one carrying on each tube apparatus for not determining corresponding region prestored The coordinate points of identification information;
The each equipment corresponding to the intrinsic coordinates point in the region to be counted of the basis, it is determined that described to be counted First quantity of the point device in region, and the second quantity of the tube apparatus in the region to be counted, its In, the equipment includes the point device and the tube apparatus, including:
Statistics does not carry the first quantity of the intrinsic coordinates point of the corresponding identification information;
Second quantity of the species of identification information described in the intrinsic coordinates point of the identification information corresponding to statistics carrying.
In embodiments of the present invention, because each tube apparatus (for example, pipeline) carries different identification informations, and line Equipment (for example, valve or voltage adjusting device) does not carry identification information, so not carrying the coordinate points of identification information by statistics The first quantity can determine the quantity of point device, then count carry identification information coordinate points in corresponding identification information kind Second quantity of class, you can determine the quantity of tube apparatus, saved staff scene gas-fired equipment in statistical regions one by one Time, so as to improve the efficiency of gas-fired equipment in statistical regions.
In order to more clearly illustrate technical scheme and advantage, below to a kind of Statistical Area provided by the invention The method of device within the domain quantity is described in detail, as shown in Fig. 2 specifically may comprise steps of:
Step 201:The coordinate points of each point device and at least one coordinate points of each tube apparatus are prestored, wherein Each tube apparatus and each point device carry different types of identification information.
Specifically, each point device or tube apparatus have its corresponding coordinate points when being placed into working region, and pipe is set The standby coordinate points that can have corresponding two end points, and when tube apparatus often increases a flex point, tube apparatus can increase by one and turn Point coordinates point, and tube apparatus and point device carry different types of identification information, and coordinate points corresponding to each equipment Coordinates logo information corresponding to carrying, it needs to be determined that area's device within the domain to be counted quantity when, can be according to each coordinate points The type of coordinates logo information determine the quantity of area's device within the domain to be counted.
For example, prestore and sat corresponding to coordinate points s corresponding to point device S, coordinates logo information ss, point device D Punctuate d, coordinates logo information dd, coordinate points g1, coordinates logo information gg, coordinate points g2 and coordinates logo corresponding to tube apparatus G Information gg.
Step 202:Obtain the coordinate points of each point device for not determining corresponding region that prestore and each do not determine At least one coordinate points on the tube apparatus of corresponding region.
Specifically, when obtaining the coordinate points and identification information of each point device and each tube apparatus, it is necessary to first really Whether fixed each equipment has determined corresponding region, and and if only if at the equipment not region corresponding to determination, can obtain Coordinate points corresponding to the equipment and coordinates logo information.
For example, in point device S, point device D and tube apparatus G, point device S has determined that corresponding region is H, so What acquisition prestored does not determine that coordinate points d corresponding to the point device D of corresponding region, coordinates logo information dd, tube apparatus G are corresponding Coordinate points g1, coordinates logo information gg, coordinate points g2 and coordinates logo information gg.
Step 203:It is determined that the border that each head and the tail for forming region to be counted are sequentially connected with.
Specifically, it is described corresponding according to the region because each region by least three is that line section boundary forms Each border two end points coordinate, it may be determined that the position in region to be counted.
For distance, region Y to be counted border b1, border b2 and border b3 are determined.
Step 204:For each coordinate points, changing coordinates point is judged whether on any one border, if it is, holding Row step 213, otherwise perform step 205.
Specifically, when judging that each coordinate points are whether in region to be counted, it is necessary to first by the coordinate points with it is to be counted Each border contrast in region, it is determined whether on border, if, it may be determined that the coordinate points are in region to be counted, such as Fruit does not exist, and ray is done by end points of the coordinate points, judges whether with the number of the intersection point on the border in region to be counted be odd number, such as Fruit is that odd number can determine that the coordinate points in region to be counted, otherwise, it determines the coordinate points are outside region to be counted.
For example, judge coordinate points d, coordinate points g1 and coordinate points g2 whether on border b1, border b2 and border respectively On b3, if coordinate points d on the b1 of border, can determine coordinate points d in region Y to be counted.Coordinate points g1 is in border b2 On, then it can determine coordinate points g1 in region Y to be counted.Coordinate points g2 is not on either boundary, using coordinate points g2 as end points It is the ray g2 parallel to X-axis.
Step 205:It is determined that using changing coordinates point as the ray of end points.
Specifically, in changing coordinates point not when on the either boundary in region to be counted, then using changing coordinates point as end points Ray is done, the ray can be parallel to X-axis, any one ray parallel to Y-axis or known angle.
Step 206:Judge that ray whether there is intersection point with each border, if it is, performing step 207, otherwise perform step Rapid 215.
Specifically, because ray is without line length, it is possible to whether intersection point with each border is had to judge according to ray, when Whether preceding coordinate points are in region to be counted.
For example, judge that ray g2 whether there is intersection point with border b1, b2 and b3 respectively;
If there is no intersection point in ray g2 with any one border, it may be determined that coordinate points g2 is outside region Y to be counted;
If any one or more in ray g2 and border b1, b2 and b3 have intersection point, need according to each friendship Whether point judges coordinate points g2 in region Y to be counted.
Step 207:Judge with the presence or absence of the end points of either boundary in each intersection point, if it is, performing step 208, otherwise Perform step 210.
Specifically, when ray and each border have intersection point, it is necessary to judge whether each intersection point has the end of Arbitrary Boundaries Point, if so, then needing to judge the position of two Borders and ray corresponding to the end points, so that it is determined that ray and each side First quantity of boundary's intersection point is odd number or even number, if not provided, can with it needs to be determined that ray and each boundary intersection the Two quantity.
For example, when ray g2 and border b1 have intersection point J, judge whether intersection point J is border b1, b2 and b3 respectively End points;
When intersection point J is border b1 and border b2 end points, judge border b1 and border b2 whether in the same of ray g2 Side, if it is, the number of recording ray g2 and the intersection point on border is 0 or 2 any one even number, otherwise, recording ray g2 Any one odd number that number with the intersection point on border is 1 or 3.
When intersection point J is not the end points in border b1, border b2 and border b3, record intersection point J the first quantity.
Step 208:For each end points, whether two Borders are judged corresponding to current endpoint in the both sides of ray, If performing step 209, step 210 is otherwise performed.
Specifically, when intersection point is the end points on some border, it is thus necessary to determine that two Borders are with penetrating corresponding to the end points The position relationship of line, so that it is determined that the first quantity of ray and the intersection point on each border is odd number or even number.
Step 209:It is odd number to determine the first quantity, performs step 211.
Specifically, because the first quantity is default parameter, when two Borders of end points are in the both sides of ray, record First quantity is odd number (such as 1 or 3).
Step 210:It is even number to determine the first quantity.
Specifically, when two Borders of end points are in the side of ray, the first quantity of record is even number (such as 2 or 0).
Step 211:Determine the second quantity of ray and the intersection point on the border beyond Border.
Specifically, because the second quantity is similarly default parameter, so appointing when ray and the intersection point on each border are present Anticipate after the end points on border, continue to judge the of the border in addition to two articles of Borders corresponding to the end points and the intersection point of the ray Two quantity.
For example, when intersection point J is border b1 and border b2 end points, determine whether ray g2 and border b3's has friendship Point, if so, then the second quantity be 1, if without if the second quantity be 0.
Step 212:Judge whether the first quantity and the second quantity sum are odd number, if it is, performing step 213, otherwise Perform step 215.
Specifically, it is odd number or even number according to the first quantity and the second quantity sum, it may be determined that changing coordinates point is It is no in region to be counted.
For example, if the first quantity is 1, the second quantity is 0, then is odd number for 1 after addition, then changing coordinates point exists In region to be counted;
If the first quantity is 1, the second quantity is 1, then is odd number for 1 after addition, then changing coordinates point is in area to be counted It is overseas.
Step 213:Determine changing coordinates point in region to be counted.
Specifically, on any one border of changing coordinates point in region to be counted and when the first quantity and the second quantity When extremely and being odd number, it may be determined that the coordinate points are in region to be counted.
Step 214:According to the quantity of the type of the coordinates logo information carried on internal coordinate point in region to be counted, it is determined that The quantity of area's device within the domain to be counted.
Specifically, it is determined that area's device within the domain to be counted quantity when, only need to determine the coordinate points in region to be counted The quantity of the coordinates logo information category of upper carrying, you can the quantity of tube apparatus is determined, by the quantity of point device and tube apparatus Quantity is added, you can draws the total quantity of all devices in region to be counted.
For example, there are coordinate points d, corresponding coordinates logo information dd and coordinate points g1, correspondingly in region Y to be counted Coordinates logo information gg, it may be determined that the total quantity of the equipment in region Y to be counted be 2.
Step 215:Determine changing coordinates point outside region to be counted.
Specifically, in ray corresponding to changing coordinates point and each border without any intersection point and in the first quantity and the second number When amount sum is even number, it may be determined that changing coordinates point is outside region to be counted.
As shown in figure 3, the embodiments of the invention provide a kind of device of number of devices in statistical regions, including:
Memory cell 301, for prestoring the coordinate points of each point device and at least one coordinate of each tube apparatus Point;
Acquiring unit 302, each do not determined described in corresponding region for obtain that the memory cell 301 prestores At least one coordinate points in the coordinate points of point device and each tube apparatus for not determining corresponding region;
Determining unit 303, for determining the regional location in region to be counted;
Processing unit 304, for each coordinate points obtained for the acquiring unit 302, according to the determination Whether the regional location that unit 303 determines, determine changing coordinates point in the region to be counted;Judge list according to described Equipment corresponding to each intrinsic coordinates point in the region to be counted that member determines, it is determined that in the region to be counted First quantity of the point device, and the second quantity of the tube apparatus in the region to be counted, wherein, it is described to set It is standby to include the point device and the tube apparatus.
In embodiments of the present invention, obtained according to acquiring unit from what memory cell obtained and do not determine each of corresponding region The regional location in the region to be counted that coordinate points corresponding to equipment and determining unit determine, can be determined each by processing unit Whether individual coordinate points are determined in region to be counted in region to be counted, and according to the quantity in internal coordinate point in region to be counted Equipment quantity.As fully visible, it is determined that area's device within the domain to be counted quantity when, without staff to field statistics fire The quantity of gas equipment, time of the staff when counting gas-fired equipment is saved, so as to improve the efficiency of statistics gas-fired equipment.
In an embodiment of the present invention, the determining unit, for determining each head and the tail in the composition region to be counted The border being sequentially connected with, wherein, the border is line segment;
Processing unit, for performing:
S0:The changing coordinates point is judged whether on any one of border, if it is, performing S1, is otherwise performed S2;
S1:Determine the changing coordinates point in the region to be counted;
S2:It is determined that using the changing coordinates point as the ray of end points;
S3:Judge that the ray whether there is intersection point with each border, if it is, S4 is performed, otherwise, it determines institute Changing coordinates point is stated outside the region to be counted;
S4:Determine at least one intersection point of the ray and each border;
S5:According at least one intersection point, determine the changing coordinates point whether in the region to be counted.
In an embodiment of the present invention, the processing unit, for performing:
A1:Judge with the presence or absence of the end points on any border at least one intersection point, if it is, A2 is performed, Otherwise, A3 is performed;
A2:For each end points, judge that whether two Borders are in the ray corresponding to the current endpoint Both sides, if it is, the first quantity is odd number, perform A4, otherwise, it determines first quantity be even number, execution A4;
A3:It is even number to determine first quantity, performs A4;
A4:The second quantity of the ray and the intersection point on the border beyond the Border is determined, performs A5;
A5:Judge whether first quantity and the second quantity sum are odd number, if it is, determining described current Coordinate points are in the region to be counted, otherwise, it determines changing coordinates point is outside the region to be counted.
In an embodiment of the present invention, the processing unit, for for each border, judging the changing coordinates Whether point meets following formula simultaneously, if it is, the changing coordinates point is determined on current border, otherwise, it determines described Changing coordinates point is not on the current border;
Y=ax+b, c≤x≤d, e≤y≤f
Wherein, y characterizes the ordinate of the changing coordinates point, and a characterizes the slope of the current border, and x characterizes described work as The abscissa of preceding coordinate points, b characterize the intercept of the current border, and c and d characterize the horizontal seat of two end points of the current border Mark, e and f characterize the ordinate of two end points of the current border.
In an embodiment of the present invention, the acquiring unit, it is further used for obtaining each institute for not determining corresponding region The identification information of tube apparatus is stated, wherein, each tube apparatus corresponds to a kind of identification information;And obtain what is prestored The coordinate points of the identification information corresponding at least one carrying on each tube apparatus for not determining corresponding region;
The processing unit, for counting the first quantity of the intrinsic coordinates point for not carrying the corresponding identification information; Second quantity of the species of identification information described in the intrinsic coordinates point of the identification information corresponding to statistics carrying.
The each embodiment of the present invention at least has the advantages that:
1st, in an embodiment of the present invention, the coordinate points and to be counted according to corresponding to each equipment for not determining corresponding region The regional location in region, it may be determined that whether each coordinate points sits in region to be counted further according in region to be counted The quantity of punctuate, you can the quantity of the equipment in region to be counted is determined, without staff to field statistics gas-fired equipment Quantity, time of the staff when counting gas-fired equipment is saved, so as to improve the efficiency of statistics gas-fired equipment.
2nd, in an embodiment of the present invention, coordinate points and each border in region to be counted according to corresponding to each equipment Position relationship, it may be determined that whether each coordinate points are in region to be counted, so that it is determined that the coordinate points in region to be counted Corresponding equipment, without the artificial quantity for arriving field statistics gas-fired equipment, has saved staff's determination in region to be counted The time of gas-fired equipment in region to be counted, so as to improve the efficiency of statistics gas-fired equipment.
3rd, in an embodiment of the present invention, it is odd number or idol according to the number of each coordinate points and the intersection point on each border Number, it may be determined that whether the coordinate points are in region to be counted, so that it is determined that whether equipment is to be counted corresponding to the coordinate points In region, without manually reach the spot one by one in statistical regions gas-fired equipment quantity, saved in staff's statistical regions The time of gas-fired equipment quantity, so as to improve the efficiency of statistics gas-fired equipment.
4th, in an embodiment of the present invention, for each border, it is determined that being formed by two end points of any current border Formula, because each border is a line segment, it is possible to it is determined that the value model of the x values of the formula formed and y values Enclose, be may determine whether according to coordinate points corresponding to each equipment on border, may thereby determine that equipment corresponding to coordinate points Whether on border, due to the position on each border of the coordinate points with forming region to be counted according to corresponding to each equipment, then Each equipment be can determine that whether in region to be counted, having saved staff's needs, combustion gas is set in statistical regions one by one to scene The standby time, so as to improve the efficiency of gas-fired equipment in statistical regions.
5th, in an embodiment of the present invention, because each tube apparatus (for example, pipeline) carries different identification informations, And line equipment (for example, valve or voltage adjusting device) does not carry identification information, so not carrying the seat of identification information by statistics First quantity of punctuate can determine the quantity of point device, then count corresponding identification information in the coordinate points for carrying identification information Species the second quantity, you can determine the quantity of tube apparatus, having saved staff scene, combustion gas is set in statistical regions one by one The standby time, so as to improve the efficiency of gas-fired equipment in statistical regions.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply and exist between these entities or operation Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those key elements, But also the other element including being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including Other identical factor in the process of the key element, method, article or equipment also be present.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, is merely to illustrate the skill of the present invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention, Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of method of number of devices in statistical regions, it is characterised in that
Prestore the coordinate points of each point device and at least one coordinate points of each tube apparatus;
Including:
Obtain the coordinate points of each point device for not determining corresponding region prestored;
Obtain at least one coordinate points on each tube apparatus for not determining corresponding region prestored;
Determine the regional location in region to be counted;
For each coordinate points, according to the regional location, determine changing coordinates point whether in the region to be counted;
According to equipment corresponding to each intrinsic coordinates point in the region to be counted, it is determined that in the region to be counted First quantity of the point device, and the second quantity of the tube apparatus in the region to be counted, wherein, it is described to set It is standby to include the point device and the tube apparatus.
2. according to the method for claim 1, it is characterised in that
The regional location for determining region to be counted, including:
It is determined that the border that each head and the tail in the composition region to be counted are sequentially connected with, wherein, the border is line segment;
It is described to be directed to each coordinate points, according to the regional location, determine changing coordinates point whether in the area to be counted In domain, including:
S0:The changing coordinates point is judged whether on any one of border, if it is, performing S1, otherwise performs S2;
S1:The changing coordinates point is determined in the region to be counted, and terminates current process;
S2:It is determined that using the changing coordinates point as the ray of end points;
S3:Judge that the ray whether there is intersection point with each border, if it is, S4 is performed, otherwise, it determines described work as Preceding coordinate points are outside the region to be counted;
S4:Determine at least one intersection point of the ray and each border;
S5:According at least one intersection point, determine the changing coordinates point whether in the region to be counted.
3. according to the method for claim 2, it is characterised in that
The S5, including:
A1:Judge with the presence or absence of the end points on any border at least one intersection point, if it is, A2 is performed, otherwise, Perform A3;
A2:For each end points, judge that whether two Borders are the two of the ray corresponding to the current endpoint Side, if it is, the first quantity is odd number, A4 is performed, otherwise, it determines first quantity is even number, perform A4;
A3:It is even number to determine first quantity, performs A4;
A4:The second quantity of the ray and the intersection point on the border beyond the Border is determined, performs A5;
A5:Judge whether first quantity and the second quantity sum are odd number, if it is, determining the changing coordinates Point is in the region to be counted, otherwise, it determines changing coordinates point is outside the region to be counted.
4. according to the method for claim 2, it is characterised in that
It is described to judge the changing coordinates point whether on any one of border, including:
For each border, judge the changing coordinates point whether and meanwhile meet following formula, if it is, described in determining Changing coordinates point is on current border, otherwise, it determines changing coordinates point is not on the current border;
Y=ax+b, c≤x≤d, e≤y≤f
Wherein, y characterizes the ordinate of the changing coordinates point, and a characterizes the slope of the current border, and x characterizes the current seat The abscissa of punctuate, b characterize the intercept of the current border, and c and d characterize the abscissa of two end points of the current border, e The ordinate of two end points of the current border is characterized with f.
5. according to any described method in claim 1-4, it is characterised in that
Obtain the coordinate points of each point device for not determining corresponding region that prestore and each do not determine corresponding area Before at least one coordinate points on the tube apparatus in domain, further comprise:
The identification information of each tube apparatus for not determining corresponding region is obtained, wherein, each tube apparatus is corresponding a kind of The identification information;
At least one coordinate points obtained on each tube apparatus for not determining corresponding region prestored, including:
Obtain the mark corresponding at least one carrying on each tube apparatus for not determining corresponding region prestored The coordinate points of information;
The each equipment corresponding to the intrinsic coordinates point in the region to be counted of the basis, it is determined that in the region to be counted First quantity of the interior point device, and the second quantity of the tube apparatus in the region to be counted, wherein, institute Stating equipment includes the point device and the tube apparatus, including:
Statistics does not carry the first quantity of the intrinsic coordinates point of the corresponding identification information;
Second quantity of the species of identification information described in the intrinsic coordinates point of the identification information corresponding to statistics carrying.
A kind of 6. device of number of devices in statistical regions, it is characterised in that including:
Memory cell, for prestoring the coordinate points of each point device and at least one coordinate points of each tube apparatus;
Acquiring unit, the seat of each point device for not determining corresponding region prestored for obtaining the memory cell At least one coordinate points on punctuate and each tube apparatus for not determining corresponding region;
Determining unit, for determining the regional location in region to be counted;
Processing unit, for each coordinate points obtained for the acquiring unit, determined according to the determining unit The regional location, determine changing coordinates point whether in the region to be counted;Determined according to the judging unit each Equipment corresponding to intrinsic coordinates point in the region to be counted, it is determined that the point device in the region to be counted First quantity, and the second quantity of the tube apparatus in the region to be counted, wherein, the equipment includes the point Equipment and the tube apparatus.
7. device according to claim 6, it is characterised in that
The determining unit, the border that each head and the tail for determining the composition region to be counted are sequentially connected with, wherein, it is described Border is line segment;
Processing unit, for performing:
S0:The changing coordinates point is judged whether on any one of border, if it is, performing S1, otherwise performs S2;
S1:Determine the changing coordinates point in the region to be counted;
S2:It is determined that using the changing coordinates point as the ray of end points;
S3:Judge that the ray whether there is intersection point with each border, if it is, S4 is performed, otherwise, it determines described work as Preceding coordinate points are outside the region to be counted;
S4:Determine at least one intersection point of the ray and each border;
S5:According at least one intersection point, determine the changing coordinates point whether in the region to be counted.
8. device according to claim 7, it is characterised in that
The processing unit, for performing:
A1:Judge with the presence or absence of the end points on any border at least one intersection point, if it is, A2 is performed, otherwise, Perform A3;
A2:For each end points, judge that whether two Borders are the two of the ray corresponding to the current endpoint Side, if it is, the first quantity is odd number, A4 is performed, otherwise, it determines first quantity is even number, perform A4;
A3:It is even number to determine first quantity, performs A4;
A4:The second quantity of the ray and the intersection point on the border beyond the Border is determined, performs A5;
A5:Judge whether first quantity and the second quantity sum are odd number, if it is, determining the changing coordinates Point is in the region to be counted, otherwise, it determines changing coordinates point is outside the region to be counted.
9. device according to claim 7, it is characterised in that
The processing unit, for for each border, judge the changing coordinates point whether and meanwhile meet following formula, If it is, the changing coordinates point is determined on current border, otherwise, it determines changing coordinates point does not work as front described In boundary;
Y=ax+b, c≤x≤d, e≤y≤f
Wherein, y characterizes the ordinate of the changing coordinates point, and a characterizes the slope of the current border, and x characterizes the current seat The abscissa of punctuate, b characterize the intercept of the current border, and c and d characterize the abscissa of two end points of the current border, e The ordinate of two end points of the current border is characterized with f.
10. according to any described device in claim 6-9, it is characterised in that
The acquiring unit, it is further used for obtaining the identification information of each tube apparatus for not determining corresponding region, wherein, Each tube apparatus corresponds to a kind of identification information;And obtain prestore each do not determine the described of corresponding region The coordinate points of the identification information corresponding at least one carrying on tube apparatus;
The processing unit, for counting the first quantity of the intrinsic coordinates point for not carrying the corresponding identification information;Statistics Second quantity of the species of identification information described in the intrinsic coordinates point of the identification information corresponding to carrying.
CN201710938083.2A 2017-09-30 2017-09-30 The method and device of number of devices in a kind of statistical regions Pending CN107705332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710938083.2A CN107705332A (en) 2017-09-30 2017-09-30 The method and device of number of devices in a kind of statistical regions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710938083.2A CN107705332A (en) 2017-09-30 2017-09-30 The method and device of number of devices in a kind of statistical regions

Publications (1)

Publication Number Publication Date
CN107705332A true CN107705332A (en) 2018-02-16

Family

ID=61184045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710938083.2A Pending CN107705332A (en) 2017-09-30 2017-09-30 The method and device of number of devices in a kind of statistical regions

Country Status (1)

Country Link
CN (1) CN107705332A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209358A (en) * 2019-12-24 2020-05-29 武汉蜜蜂云科技有限公司 Method and device for counting equipment number in scenic spot area
CN111220943A (en) * 2019-12-04 2020-06-02 湖南三一智能控制设备有限公司 Positioning method, positioning system, computer-readable storage medium and vehicle

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883266A (en) * 2012-09-25 2013-01-16 方春 Area-based information release system
CN102932826A (en) * 2012-11-30 2013-02-13 北京邮电大学 Cell interruption detection positioning method in self-organizing network of cell mobile communication system
US20130184008A1 (en) * 2011-02-10 2013-07-18 Ntt Docomo Inc. Terminal number estimation device and terminal number estimation method
CN103262594A (en) * 2011-02-10 2013-08-21 株式会社Ntt都科摩 Area range estimation device and area range estimation method
CN105160191A (en) * 2015-09-16 2015-12-16 广州市城市规划勘测设计研究院 Plane coordinate conversion method and apparatus
CN105300373A (en) * 2015-09-16 2016-02-03 广州市城市规划勘测设计研究院 Three-dimensional coordinate conversion method and device
CN105376710A (en) * 2015-10-10 2016-03-02 北京中创信测信息技术有限公司 System and method for counting tourist number of scenic spot in real time
CN105376709A (en) * 2015-10-10 2016-03-02 北京中创信测信息技术有限公司 Regional population statistical method and system based on mobile communication technology
CN105868826A (en) * 2015-01-23 2016-08-17 中兴通讯股份有限公司 Method and device for determination of position relation

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130184008A1 (en) * 2011-02-10 2013-07-18 Ntt Docomo Inc. Terminal number estimation device and terminal number estimation method
CN103262594A (en) * 2011-02-10 2013-08-21 株式会社Ntt都科摩 Area range estimation device and area range estimation method
CN102883266A (en) * 2012-09-25 2013-01-16 方春 Area-based information release system
CN102932826A (en) * 2012-11-30 2013-02-13 北京邮电大学 Cell interruption detection positioning method in self-organizing network of cell mobile communication system
CN105868826A (en) * 2015-01-23 2016-08-17 中兴通讯股份有限公司 Method and device for determination of position relation
CN105160191A (en) * 2015-09-16 2015-12-16 广州市城市规划勘测设计研究院 Plane coordinate conversion method and apparatus
CN105300373A (en) * 2015-09-16 2016-02-03 广州市城市规划勘测设计研究院 Three-dimensional coordinate conversion method and device
CN105376710A (en) * 2015-10-10 2016-03-02 北京中创信测信息技术有限公司 System and method for counting tourist number of scenic spot in real time
CN105376709A (en) * 2015-10-10 2016-03-02 北京中创信测信息技术有限公司 Regional population statistical method and system based on mobile communication technology

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111220943A (en) * 2019-12-04 2020-06-02 湖南三一智能控制设备有限公司 Positioning method, positioning system, computer-readable storage medium and vehicle
CN111209358A (en) * 2019-12-24 2020-05-29 武汉蜜蜂云科技有限公司 Method and device for counting equipment number in scenic spot area

Similar Documents

Publication Publication Date Title
CN104092481B (en) A kind of by voltage characteristic differentiation Tai Qu and phase method for distinguishing
CN102025563B (en) Network flow identification method based on Hash collision compensation
CN107705332A (en) The method and device of number of devices in a kind of statistical regions
CN103702360B (en) A kind of method and device of the data rate for determining service access port
CN103576562B (en) A kind of electric power system stability control strategy in-circuit emulation method of calibration
CN104142156A (en) Path navigation method
CN106448167B (en) A kind of congestion point judging method based on real-time road
CN103198494A (en) Building elevation extraction method based on building outer contour lines and laser-point cloud
CN110113264A (en) A kind of caching and route implementation method for naming data network
CN106488467A (en) Network capacity transfinites determination methods, device and network capacity management method, system
CN107796413A (en) A kind of multi-destination route recommendation method and system
CN107317890B (en) A kind of data transmission realizing method of intelligent vehicle support grid
CN106096839A (en) A kind of integrated energy system multiple-energy-source joint supply method for evaluating quality
CN112199788A (en) Design method of buried gas pipeline
CN107015993A (en) A kind of user type recognition methods and device
CN108519096B (en) Tile-based multi-route road screening and planning method and system
CN108564638A (en) A kind of method and apparatus that stream of people hot-zone is determined based on geographic pattern
CN115345416A (en) Housing vacancy rate estimation based on gas data for natural gas
CN103117887B (en) The method for visualizing of network traffics change and equipment
CN103606111A (en) Integrated voltage qualified rate evaluation method
CN105976087A (en) New method of analyzing enterprise information system fault influence range based on graphic modeling
CN109726475A (en) A kind of method and device for outer packing modeling
CN104754626B (en) A kind of transmission network physical node Analysis of Networking method and apparatus
CN108537151A (en) A kind of non-maxima suppression arithmetic unit and system
CN104461577B (en) A kind of flow chart display methods based on HTML5 graphics drawing programs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180216