A method and device for determining the number of personnel
A technology for determining the number of personnel, applied in the field of computer vision, and can solve the problem of inaccurate number of personnel
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] figure 1 It is a schematic diagram of a process for determining the number of personnel provided by Embodiment 1 of the present invention, and the process includes the following steps:
[0047] S101: Determine a depth image according to each collected first image containing a person, and determine the height of each pixel in the depth image relative to the ground in an actual scene.
[0048] The method for determining the number of personnel provided by the embodiment of the present invention is applied to electronic equipment.
[0049] In this solution, the left and right cameras in the binocular camera are used to capture the first image respectively. Before using the binocular camera to capture each first image, the user can install the binocular camera directly above the scene to be captured , and installed as high as possible, so that the field of view of the binocular camera can cover more acquisition scenes.
[0050] When installing the binocular camera, the ba...
Embodiment 2
[0067] In the application scene, tall objects such as walls will interfere with the determination of the number of people. In order to further improve the accuracy of the number of people determined, on the basis of the above embodiments, in the implementation of the present invention, when determining the depth image Before each pixel point in the actual scene is relative to the height of the ground, the method also includes:
[0068] Determining the background image of the depth image by using the background image collected in advance for each first image; extracting the foreground image of the depth image according to the background image of the depth image, using the foreground image as the depth image, Proceed to next steps.
[0069] In the embodiment of the present invention, before determining the height of each pixel in the depth image relative to the ground in the actual scene, the electronic device pre-collects the background image of each first image, and the shooti...
Embodiment 3
[0079] On the basis of the above embodiments, in the embodiment of the present invention, the determination of the height of each pixel in the depth image relative to the ground in the actual scene includes:
[0080] For each pixel, according to the length of the baseline of the binocular camera, the gray value of the pixel, and the focal length of the first camera that determines the depth data in the depth image, determine the position of the pixel in the actual scene and The height difference of the first camera; according to the height difference and the height of the first camera relative to the ground, determine the height of the position of the pixel point in the actual scene relative to the ground.
[0081] The position of each pixel in the depth image is in one-to-one correspondence with the position of the pixel in any one of the first images when determining the gray value of the pixel, and the any one of the first images is the first camera captured image. Or the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


