Summary of the invention
The embodiment of the present invention provides method and the three-dimension sensor of definite object, contributes to reduce the cost that the object in particular space is identified.
The embodiment of the present invention provides a kind of method of definite object, comprising:
Three-dimension sensor obtains the first information, and the described first information is the image of at least one object in the first space and the degree of depth of each pixel in described image;
Described three-dimension sensor determines that according to the described first information first of described at least one object is a convex closure, and described first is a described first object middle distance ground part farthest;
Described three-dimension sensor determines that according to the described first information value of the first distance is the value in first threshold, and described the first distance is the distance on described first and described ground;
Described three-dimension sensor determines that according to the described first information variation has occurred in the position of described at least one object; With
Described in described three-dimension sensor is definite, at least one is to liking at least one people, and described at least one object and described at least one individual are corresponding one by one.
Alternatively, in technique scheme, described method also comprises:
Described three-dimension sensor determines that the quantity of people in described the first space is N, and N equals the quantity of described at least one object.
Alternatively, in technique scheme, described three-dimension sensor obtains the first information and comprises:
Described three-dimension sensor obtains a plurality of sub-information in very first time interval, the described first information comprises described a plurality of sub-information, described a plurality of sub-information is corresponding one by one with a plurality of moment, described a plurality of moment is the moment in described very first time interval, in described a plurality of sub-information, every sub-packets of information is drawn together the degree of depth of each pixel in the subimage of described at least one object and described subimage, described a plurality of sub-information comprises the first sub-information and the second sub-information, described first moment corresponding to sub-information was first moment, described first is constantly moment the earliest in described a plurality of moment, described second moment corresponding to sub-information was second moment, described second is constantly moment the latest in described a plurality of moment,
Described method also comprises:
Described three-dimension sensor is determined second distance according to the described first information, and described second distance is described at least one object in the described first position and the distance of described at least one object in the position in described second moment constantly; With
Described three-dimension sensor determines that the speed of described at least one object equals First Speed, and described First Speed equals described second distance divided by described very first time interval.
Alternatively, in technique scheme,
Described three-dimension sensor obtains the first information and comprises: described three-dimension sensor obtains a plurality of sub-information in very first time interval, the described first information comprises described a plurality of sub-information, described a plurality of sub-information is corresponding one by one with a plurality of moment, described a plurality of moment is the moment in described very first time interval, in described a plurality of sub-information, every sub-packets of information is drawn together the degree of depth of each pixel in the subimage of described at least one object and described subimage, described a plurality of sub-information comprises the first sub-information and the second sub-information, described first moment corresponding to sub-information was first moment, described first is constantly moment the earliest in described a plurality of moment, described second moment corresponding to sub-information was second moment, described second is constantly moment the latest in described a plurality of moment,
Described method also comprises:
Described three-dimension sensor is determined second distance according to the described first information, described second distance be N-1 distance and, the distance of at least one object position in any two adjacent moment in described a plurality of moment described in described N-1 distance comprises; With
Described three-dimension sensor determines that the speed of described at least one object equals First Speed, and described First Speed equals described second distance divided by described very first time interval.
Alternatively, in technique scheme,
Described first is described at least one individual's head or described at least one individual's head and shoulder.
The embodiment of the present invention provides a kind of three-dimension sensor, comprising:
The first acquiring unit, for obtaining the first information, the described first information is the image of at least one object in the first space and the degree of depth of each pixel in described image;
The first determining unit, for determining that according to the described first information first of described at least one object is a convex closure, described first is a described first object middle distance ground part farthest;
The second determining unit, for determining that according to the described first information value of the first distance is the value of first threshold, described the first distance is the distance on described first and described ground;
The 3rd determining unit, for determining that according to the described first information variation has occurred in the position of described at least one object; With
The 4th determining unit, for determine described at least one to as if at least one people, described at least one object and described at least one individual are corresponding one by one.
Alternatively, in technique scheme, also comprise:
The 5th determining unit, for determining that described the first space people's quantity is N, N equals the quantity of described at least one object.
Alternatively, in technique scheme, described the first acquiring unit specifically for:
In very first time interval, obtain a plurality of sub-information, the described first information comprises described a plurality of sub-information, described a plurality of sub-information is corresponding one by one with a plurality of moment, described a plurality of moment is the moment in described very first time interval, in described a plurality of sub-information, every sub-packets of information is drawn together the degree of depth of each pixel in the subimage of described at least one object and described subimage, described a plurality of sub-information comprises the first sub-information and the second sub-information, described first moment corresponding to sub-information was first moment, described first is constantly moment the earliest in described a plurality of moment, described second moment corresponding to sub-information was second moment, described second is constantly moment the latest in described a plurality of moment,
Described three-dimension sensor also comprises:
The 6th determining unit, for determining second distance according to the described first information, described second distance is described at least one object in the described first position and the distance of described at least one object in the position in described second moment constantly; With
The 7th determining unit, for determining that the speed of described at least one object equals First Speed, described First Speed equals described second distance divided by described very first time interval.
Alternatively, in technique scheme, described the first acquiring unit specifically for:
In very first time interval, obtain a plurality of sub-information, the described first information comprises described a plurality of sub-information, described a plurality of sub-information is corresponding one by one with a plurality of moment, described a plurality of moment is the moment in described very first time interval, in described a plurality of sub-information, every sub-packets of information is drawn together the degree of depth of each pixel in the subimage of described at least one object and described subimage, described a plurality of sub-information comprises the first sub-information and the second sub-information, described first moment corresponding to sub-information was first moment, described first is constantly moment the earliest in described a plurality of moment, described second moment corresponding to sub-information was second moment, described second is constantly moment the latest in described a plurality of moment,
Described three-dimension sensor also comprises:
The 6th determining unit, for determining second distance according to the described first information, described second distance be N-1 distance and, the distance of at least one object position in any two adjacent moment in described a plurality of moment described in described N-1 distance comprises; With
The 7th determining unit, for determining that the speed of described at least one object equals First Speed, described First Speed equals described second distance divided by described very first time interval.
Alternatively, in technique scheme,
Described first is described at least one individual's head or described at least one individual's head and shoulder.
In technique scheme, described three-dimension sensor determines that the first of described at least one object is a convex closure.People for standing on ground, sees from the top down, and described three-dimension sensor can perceive this people's head and shoulder.And, the corresponding convex closure of this people's head and shoulder.Therefore, described at least one object is consistent with the situation that stand on the people on ground.In addition, described three-dimension sensor determines that according to the described first information variation has occurred in the position of described at least one object.For the people who stand on ground, conventionally can be moved.Therefore, described at least one object is consistent with the situation that stand on the people on ground.Therefore, technique scheme contributes to reduce the cost that the object in specific space is identified.In addition, contribute to improve the accuracy of identification.
embodiment
The schematic flow sheet of the method for a kind of definite object that Fig. 1 provides for the embodiment of the present invention.Referring to Fig. 1, described method comprises:
S101, three-dimension sensor obtain the first information, and the described first information is the image of at least one object in the first space and the degree of depth of each pixel in described image.
For instance, described three-dimension sensor can comprise imageing sensor and depth transducer.Described imageing sensor can be video camera (video camera).Described depth transducer can be depth perception video camera (depth-sensing camera).
S102, described three-dimension sensor determine that according to the described first information first of described at least one object is a convex closure, and described first is a described first object middle distance ground part farthest.
For instance, described ground is the border in described the first space.
For instance, described three-dimension sensor can comprise predefined object (predefined object).Described predefined object can be stored in library of object (object library).Described predefined object can comprise convex closure.Described convex closure with see from the top down, three-dimension sensor can perceive people's head and shape corresponding to shoulder is consistent.Described three-dimension sensor can compare with the described predefined object in described library of object by the information of at least one object that described three-dimension sensor is detected, thereby described in identification, at least one object is consistent with described convex closure.
S103, described three-dimension sensor determine that according to the described first information value of the first distance is the value in first threshold, and described the first distance is the distance on described first and described ground.
For instance, described the first distance can comprise:
Described three-dimension sensor obtains the distance of described three-dimension sensor and described first.
Described three-dimension sensor obtains the distance on described three-dimension sensor and described ground.
Described three-dimension sensor obtains described the first distance, and described the first distance is the absolute value of the difference of the distance of described three-dimension sensor and described first and the distance on described three-dimension sensor and described ground.
For instance, the distance that described three-dimension sensor obtains described three-dimension sensor and described first can realize by following processing:
Described three-dimension sensor can send infrared ray and receive the surperficial backscattered light (backscattered light) from described first to described first.Described three-dimension sensor can be sent the ultrared moment and be received time interval (time interval) between moment of backscattered light by measurement determines the surperficial physical distance of described three-dimension sensor and described first.
For instance, the distance that described three-dimension sensor obtains described three-dimension sensor and described ground can realize by following processing:
Described three-dimension sensor can send infrared ray and receive the backscattered light from described ground to described ground.Described three-dimension sensor can be sent the ultrared moment and be received time interval between moment of backscattered light by measurement determines the physical distance on described three-dimension sensor and described ground.
For instance, described first threshold can be 1.3 meters to 2.2 meters.Described first threshold can be 1.5 meters to 2.0 meters.
S104, described three-dimension sensor determine that according to the described first information variation has occurred in the position of described at least one object.
For instance, described depth transducer can determine that the degree of depth of described at least one object changes, thereby determines that variation has occurred in the position of described at least one object.For example, described at least one object is not equal to the degree of depth of described at least one object in second moment in the degree of depth in first moment.Specifically, described depth transducer can determine that the degree of depth of certain pixel of the image of described at least one object changes, thereby determines that variation has occurred in the position of described at least one object.
S105, described three-dimension sensor determine described at least one to as if at least one people, described at least one object and described at least one individual are corresponding one by one.
For instance, described at least one individual can be one-man, can be also a plurality of people.
In technique scheme, described three-dimension sensor determines that the first of described at least one object is a convex closure.People for standing on ground, sees from the top down, and described three-dimension sensor can perceive this people's head and shoulder.And, the corresponding convex closure of this people's head and shoulder.Therefore, described at least one object is consistent with the situation that stand on the people on ground.In addition, described three-dimension sensor determines that according to the described first information variation has occurred in the position of described at least one object.For the people who stand on ground, conventionally can be moved.Therefore, described at least one object is consistent with the situation that stand on the people on ground.Therefore, technique scheme contributes to reduce the cost that the object in specific space is identified.In addition, contribute to improve the accuracy of identification.
Alternatively, in the method shown in Fig. 1, described method also comprises:
Described three-dimension sensor determines that the quantity of people in described the first space is N, and N equals the quantity of described at least one object.
Technique scheme contributes to realize the several quantitative statistics to the people in described the first space.
Alternatively, in technique scheme, described three-dimension sensor obtains the first information and comprises:
Described three-dimension sensor obtains a plurality of sub-information in very first time interval, the described first information comprises described a plurality of sub-information, described a plurality of sub-information is corresponding one by one with a plurality of moment, described a plurality of moment is the moment in described very first time interval, in described a plurality of sub-information, every sub-packets of information is drawn together the degree of depth of each pixel in the subimage of described at least one object and described subimage, described a plurality of sub-information comprises the first sub-information and the second sub-information, described first moment corresponding to sub-information was first moment, described first is constantly moment the earliest in described a plurality of moment, described second moment corresponding to sub-information was second moment, described second is constantly moment the latest in described a plurality of moment,
Described method also comprises:
Described three-dimension sensor is determined second distance according to the described first information, and described second distance is described at least one object in the described first position and the distance of described at least one object in the position in described second moment constantly; With
Described three-dimension sensor determines that the speed of described at least one object equals First Speed, and described First Speed equals described second distance divided by described very first time interval.
When described at least one object passes described the first space, the track of described at least one object in described the first space may be straight line.Technique scheme contributes to realize to be measured the speed of described at least one object.
Alternatively, in technique scheme,
Described three-dimension sensor obtains the first information and comprises: described three-dimension sensor obtains a plurality of sub-information in very first time interval, the described first information comprises described a plurality of sub-information, described a plurality of sub-information is corresponding one by one with a plurality of moment, described a plurality of moment is the moment in described very first time interval, in described a plurality of sub-information, every sub-packets of information is drawn together the degree of depth of each pixel in the subimage of described at least one object and described subimage, described a plurality of sub-information comprises the first sub-information and the second sub-information, described first moment corresponding to sub-information was first moment, described first is constantly moment the earliest in described a plurality of moment, described second moment corresponding to sub-information was second moment, described second is constantly moment the latest in described a plurality of moment,
Described method also comprises:
Described three-dimension sensor is determined second distance according to the described first information, described second distance be N-1 distance and, the distance of at least one object position in any two adjacent moment in described a plurality of moment described in described N-1 distance comprises; With
Described three-dimension sensor determines that the speed of described at least one object equals First Speed, and described First Speed equals described second distance divided by described very first time interval.
When described at least one object passes described the first space, the track of described at least one object in described the first space may not be straight line.For example described track may be curve or broken line.Technique scheme contributes to realize to be measured the speed of described at least one object.
Alternatively, in technique scheme,
Described first is described at least one individual's head or described at least one individual's head and shoulder.
Fig. 2 is the structural representation that the embodiment of the present invention provides a kind of three-dimension sensor.Described three-dimension sensor can be for the method shown in execution graph 1.Referring to Fig. 2, described three-dimension sensor comprises:
The first acquiring unit 201, for obtaining the first information, the described first information is the image of at least one object in the first space and the degree of depth of each pixel in described image.
For instance, described three-dimension sensor can comprise imageing sensor and depth transducer.Described imageing sensor can be video camera.Described depth transducer can be depth perception video camera.
For instance, described the first acquiring unit 201 can be described imageing sensor and described depth transducer.
The first determining unit 202, for determining that according to the described first information first of described at least one object is a convex closure, described first is a described first object middle distance ground part farthest.
For instance, described ground is the border in described the first space.
For instance, described three-dimension sensor can comprise predefined object.Described predefined object can be stored in library of object.Described predefined object can comprise convex closure.Described convex closure with see from the top down, three-dimension sensor can perceive people's head and shape corresponding to shoulder is consistent.Described three-dimension sensor can compare with the described predefined object in described library of object by the information of at least one object that described three-dimension sensor is detected, thereby described in identification, at least one object is consistent with described convex closure.
For instance, described the first determining unit 202 can be processor.Described processor can be CPU or ASIC.
The second determining unit 203, for determining that according to the described first information value of the first distance is the value of first threshold, described the first distance is the distance on described first and described ground.
For instance, described the first distance can comprise:
Described three-dimension sensor obtains the distance of described three-dimension sensor and described first.
Described three-dimension sensor obtains the distance on described three-dimension sensor and described ground.
Described three-dimension sensor obtains described the first distance, and described the first distance is the absolute value of the difference of the distance of described three-dimension sensor and described first and the distance on described three-dimension sensor and described ground.
For instance, the distance that described three-dimension sensor obtains described three-dimension sensor and described first can realize by following processing:
Described three-dimension sensor can send infrared ray and receive the surperficial backscattered light from described first to described first.Described three-dimension sensor can be sent the ultrared moment and be received time interval between moment of backscattered light by measurement determines the surperficial physical distance of described three-dimension sensor and described first.
For instance, the distance that described three-dimension sensor obtains described three-dimension sensor and described ground can realize by following processing:
Described three-dimension sensor can send infrared ray and receive the backscattered light from described ground to described ground.Described three-dimension sensor can be sent the ultrared moment and be received time interval between moment of backscattered light by measurement determines the physical distance on described three-dimension sensor and described ground.
For instance, described first threshold can be 1.3 meters to 2.2 meters.Described first threshold can be 1.5 meters to 2.0 meters.
For instance, described the second determining unit 203 can be described processor.
The 3rd determining unit 204, for determining that according to the described first information variation has occurred in the position of described at least one object.
For instance, described depth transducer can determine that the degree of depth of described at least one object changes, thereby determines that variation has occurred in the position of described at least one object.For example, described at least one object is not equal to the degree of depth of described at least one object in second moment in the degree of depth in first moment.Specifically, described depth transducer can determine that the degree of depth of certain pixel of the image of described at least one object changes, thereby determines that variation has occurred in the position of described at least one object.
For instance, described the 3rd determining unit 204 can be described processor.
The 4th determining unit 205, for determine described at least one to as if at least one people, described at least one object and described at least one individual are corresponding one by one.
For instance, described at least one individual can be one-man, can be also a plurality of people.
For instance, described the 4th determining unit 205 can be described processor.
In technique scheme, described three-dimension sensor determines that the first of described at least one object is a convex closure.People for standing on ground, sees from the top down, and described three-dimension sensor can perceive this people's head and shoulder.And, the corresponding convex closure of this people's head and shoulder.Therefore, described at least one object is consistent with the situation that stand on the people on ground.In addition, described three-dimension sensor determines that according to the described first information variation has occurred in the position of described at least one object.For the people who stand on ground, conventionally can be moved.Therefore, described at least one object is consistent with the situation that stand on the people on ground.Therefore, technique scheme contributes to reduce the cost that the object in specific space is identified.In addition, contribute to improve the accuracy of identification.
Alternatively, the 3D processing device shown in Fig. 2 also comprises:
The 5th determining unit, for determining that described the first space people's quantity is N, N equals the quantity of described at least one object.
Alternatively, in technique scheme, described the first acquiring unit specifically for:
In very first time interval, obtain a plurality of sub-information, the described first information comprises described a plurality of sub-information, described a plurality of sub-information is corresponding one by one with a plurality of moment, described a plurality of moment is the moment in described very first time interval, in described a plurality of sub-information, every sub-packets of information is drawn together the degree of depth of each pixel in the subimage of described at least one object and described subimage, described a plurality of sub-information comprises the first sub-information and the second sub-information, described first moment corresponding to sub-information was first moment, described first is constantly moment the earliest in described a plurality of moment, described second moment corresponding to sub-information was second moment, described second is constantly moment the latest in described a plurality of moment,
Described three-dimension sensor also comprises:
The 6th determining unit, for determining second distance according to the described first information, described second distance is described at least one object in the described first position and the distance of described at least one object in the position in described second moment constantly; With
The 7th determining unit, for determining that the speed of described at least one object equals First Speed, described First Speed equals described second distance divided by described very first time interval.
Alternatively, in technique scheme, described the first acquiring unit specifically for:
In very first time interval, obtain a plurality of sub-information, the described first information comprises described a plurality of sub-information, described a plurality of sub-information is corresponding one by one with a plurality of moment, described a plurality of moment is the moment in described very first time interval, in described a plurality of sub-information, every sub-packets of information is drawn together the degree of depth of each pixel in the subimage of described at least one object and described subimage, described a plurality of sub-information comprises the first sub-information and the second sub-information, described first moment corresponding to sub-information was first moment, described first is constantly moment the earliest in described a plurality of moment, described second moment corresponding to sub-information was second moment, described second is constantly moment the latest in described a plurality of moment,
Described three-dimension sensor also comprises:
The 6th determining unit, for determining second distance according to the described first information, described second distance be N-1 distance and, the distance of at least one object position in any two adjacent moment in described a plurality of moment described in described N-1 distance comprises; With
The 7th determining unit, for determining that the speed of described at least one object equals First Speed, described First Speed equals described second distance divided by described very first time interval.
Alternatively, in technique scheme,
Described first is described at least one individual's head or described at least one individual's head and shoulder.
The technical scheme that the embodiment of the present invention provides and/or a part for technical scheme can realize by the combination of hardware or computer program and hardware.Described hardware can be processor.Described computer program can be stored in non-written in water storage medium (non-transitory storage medium).Described processor can be stored in the described computer program in described non-written in water storage medium by access, the technical scheme that the execution embodiment of the present invention provides and/or a part for technical scheme.Described non-written in water storage medium can be DVD, CD, hard disk or Flash.Described processor can be CPU, ASIC or FPGA.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.