Method, device and storage medium for removing interfering people from images

By synchronously triggering multiple cameras and neural network processing, calculating the vertical distance in space and eliminating interfering characters, it solves the problem of difficulty in removing interfering characters in multiple character scenes in computer vision, achieves effective posture analysis of the object to be processed, and improves the system's performance. Applicability and robustness.

CN113240690BActive Publication Date: 2024-09-06QINGDE INTELLECTUAL (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110635504.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-08
Publication Date
2024-09-06
Estimated Expiration
2041-06-08

AI Technical Summary

Technical Problem

In the field of computer vision, traditional methods are difficult to effectively remove interfering characters when there are multiple characters in the camera's field of view, resulting in a very narrow application field of posture analysis and cannot be applied to multiple character scenes.

Method used

Images are collected through multiple cameras that are triggered synchronously, and neural networks are used to process feature points in the images, calculate spatial vertical distances, eliminate interfering characters, and ensure that only the posture analysis of the object to be processed is performed. Specific steps include setting reference feature points, calculating the spatial vertical distance of the ray, determining whether the candidate intersection point is an interference or target intersection point, determining the three-dimensional coordinates, and ensuring that only one person is in the analysis area.

Benefits of technology

It realizes the automatic removal of interfering characters in multiple character scenes, improves the robustness and applicability of the computer vision system, avoids strict restrictions on shooting locations, and can perform effective human posture analysis without changing the scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113240690B
    Figure CN113240690B
Patent Text Reader

Abstract

The present disclosure relates to a method for removing interfering people from an image, comprising: step 1) processing multiple images collected in the same frame to obtain multiple feature points; step 2) setting reference feature points and obtaining rays from the optical center of each camera to the reference feature points; step 3) setting first and second reference cameras and calculating the first spatial vertical distance between the rays related to the first and second reference cameras; step 4) if a first spatial vertical distance is less than a threshold, the corresponding intersection is used as a candidate intersection; step 5) for a candidate intersection, calculating a second spatial vertical distance set; step 6) if all values ​​in the set are greater than the threshold, the candidate intersection is set as an interfering intersection, otherwise it is set as a target intersection; and step 7) for each remaining candidate intersection, executing steps 5) and 6); step 8) in response to the existence of a target intersection, the person corresponding to the target intersection is used as an object to be processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure generally relate to the field of computer vision, and more specifically, to a method, device, and computer-readable storage medium for removing interfering figures from an image captured by a camera. Background Art

[0002] Computer vision is usually based on images captured by multiple cameras. In the field of computer vision, there is a need to analyze the posture of a person. The analysis of these postures can be based on one camera, a binocular camera, or multiple cameras, which are triggered synchronously to capture the person to obtain a sequence of pictures. A camera usually gives a two-dimensional picture of the human body, and it is difficult to estimate the three-dimensional posture of the human body based on this two-dimensional information. Therefore, when accurate posture is required, multiple cameras are usually required. In traditional designs, it is usually required that only one specific person can exist in the field of view of the camera, so that the camera will not capture other people, but only analyze the posture of the specific person. This analysis can be based on various human posture models.

[0003] However, the application field of this traditional design is quite narrow, and it is not suitable for the situation where there are multiple people in the camera's field of view. Therefore, in human posture estimation based on computer vision, there is a need to remove interfering people so as to perform posture analysis on only one specific person. Summary of the invention

[0004] According to an exemplary embodiment of the present disclosure, a method for removing interfering people from an image is provided, wherein images are collected by using multiple cameras that are triggered synchronously, and there is only one person in an area surrounded by the multiple cameras, and the person is the object to be processed, and other people outside the area are interfering people. The method comprises: step 1): using a neural network to process multiple images collected in the same frame to obtain multiple feature points of each person in each image; step 2): setting a reference feature point, and obtaining a ray from the optical center of each camera to the reference feature point of each person in the image collected by it, wherein the reference feature point includes a first specific feature point among the multiple feature points of each person; step 3): setting any two cameras among the multiple cameras as a first reference camera and a second reference camera, and calculating multiple spatial vertical distances between a first ray associated with the first reference camera and a second ray associated with the second reference camera to obtain a first spatial vertical distance. from the set; step 4): if a first spatial vertical distance in the first spatial vertical distance set is less than or equal to a threshold, an intersection point of the ray corresponding to the first spatial vertical distance is taken as a candidate intersection point to obtain a candidate intersection point set; step 5): for a candidate intersection point in the candidate intersection point set, a second spatial vertical distance set is calculated, and a second spatial vertical distance represents the spatial vertical distance between the candidate intersection point and the ray passing through the optical center of one of the other cameras and the first specific feature point; step 6): if all values ​​in the second spatial vertical distance set are greater than the threshold, the candidate intersection point is set as an interference intersection point, and if there is a second spatial vertical distance less than or equal to the threshold, the candidate intersection point is set as a target intersection point; step 7): for each remaining candidate intersection point, execute steps 5) and 6); and step 8): in response to the existence of a target intersection point, the person corresponding to the target intersection point is taken as an object to be processed.

[0005] In some embodiments, the method for removing interfering characters from an image also includes step 9): in response to the existence of a target intersection, then for the current frame, calculating the three-dimensional coordinates of the target intersection in space to determine a target three-dimensional space point; and step 10): for the next frame, performing the following operations: step 10.1): obtaining a ray from the optical center of each camera to the first specific feature point of each character in the image it captures; step 10.2): calculating a set of third spatial vertical distances between the determined target three-dimensional space point and all rays obtained in step 10.1); and step 10.3): selecting a ray corresponding to a third spatial vertical distance less than or equal to a threshold from the third spatial vertical distance set as a target ray, and the reference feature point corresponding to the target ray as a target feature point, and a character corresponding to the target feature point as the object to be processed in the next frame.

[0006] In some embodiments, the method for removing interfering characters from an image also includes, in response to the absence of a target intersection, performing steps 1) to 7) for multiple images captured in the next frame; and in response to determining that a target intersection exists in a certain frame, using the frame as an initial frame for subsequent processing.

[0007] In some embodiments, the first specific feature point is selected from the following feature points: nose, left shoulder, right shoulder, the midpoint of the line connecting the left shoulder and the right shoulder, left elbow, right elbow, left wrist, right wrist, left hip, right hip, the midpoint of the line connecting the left hip and the right hip, left knee, right knee, left ankle and right ankle.

[0008] In some embodiments, the reference feature point only includes the first specific feature point; in step 3), calculating the spatial vertical distance between the first ray associated with the first reference camera and the second ray associated with the second reference camera to obtain a first spatial vertical distance set includes: calculating a spatial vertical distance between each ray in the first ray and each ray in the second ray to obtain a first spatial vertical distance set, the number of distances in the first spatial vertical distance set is equal to the product of the number of first rays and the number of second rays, the first ray is a set of rays passing through the optical center of the first reference camera and all the first specific feature points in the image captured by it, and the second ray is a set of rays passing through the optical center of the second reference camera and all the first specific feature points in the image captured by it; in step 5), for one candidate intersection point in the candidate intersection point set, calculating the second spatial vertical distance set includes: calculating all spatial vertical distances between the one candidate intersection point and all rays passing through the optical center of each camera in the other cameras and the first specific feature point.

[0009] In some embodiments, the reference feature point also includes a second specific feature point among the multiple feature points of each character, and the distance between the first specific feature point and the second specific feature point is greater than or equal to the distance between the nose and the midpoint of the line connecting the left shoulder and the right shoulder.

[0010] In step 3), calculating the spatial vertical distance between the first ray associated with the first reference camera and the second ray associated with the second reference camera to obtain a first spatial vertical distance set includes:

[0011] Step 3.1) calculating a first distance between a ray from the optical center of the first reference camera to a first specific feature point of a person captured by the first reference camera and a ray from the optical center of the second reference camera to the first specific feature point of a person captured by the second reference camera;

[0012] Step 3.2) calculating a second distance between a ray from the optical center of the first reference camera to the second specific feature point of the person captured by the first reference camera and a ray from the optical center of the second reference camera to the second specific feature point of the person captured by the second reference camera;

[0013] Step 3.3) Calculate the sum of the first distance and the second distance to obtain a first spatial vertical distance; and

[0014] Step 3.4) for other combinations of the persons captured by the first reference camera and the persons captured by the second reference camera, calculate the first spatial vertical distance to obtain a first spatial vertical distance set, wherein the number of distances in the first spatial vertical distance set is equal to the product of the number of persons captured by the first reference camera and the number of persons captured by the second reference camera;

[0015] In step 5), for a candidate intersection in the candidate intersection set, calculating the second spatial vertical distance set includes: calculating all spatial vertical distances between the candidate intersection and all rays passing through the optical center of each camera in other cameras and the first specific feature point; or calculating all spatial vertical distances between the candidate intersection and all rays passing through the optical center of each camera in other cameras and the first specific feature point, and for the intersection matching the candidate intersection and for the second specific feature point, calculating all spatial vertical distances between the intersection and all rays passing through the optical center of each camera in other cameras and the second specific feature point, and summing up the matched pairs of spatial vertical distances to obtain a second spatial vertical distance, thereby obtaining a second spatial vertical distance set.

[0016] In some embodiments, before executing step 5), it is determined whether each candidate intersection point in the set of candidate intersection points is within a region surrounded by multiple cameras.

[0017] In some embodiments, determining whether each candidate intersection in the set of candidate intersections is in an area surrounded by multiple cameras includes: projecting the candidate intersection and multiple cameras into a plane parallel to the ground, and comparing the plane coordinates of the candidate intersection and the multiple cameras to determine whether the candidate intersection is located in the area surrounded by the multiple cameras; or projecting the candidate intersection and the multiple cameras into a plane parallel to the ground, and determining whether the angle between two line segments formed by two adjacent cameras and the candidate intersection is greater than or equal to 180° along a clockwise or counterclockwise direction; if the angle is greater than or equal to 180°, determining that the candidate intersection is outside the area surrounded by the multiple cameras; in response to the candidate intersection not being located in the area surrounded by the multiple cameras, setting the candidate intersection as an interference intersection; and in response to the candidate intersection being located in the area surrounded by the multiple cameras, continuing to execute step 5).

[0018] In a second aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory coupled to the processor, the memory having instructions stored therein, which, when executed by the processor, cause the device to execute the method according to the first aspect of the present disclosure.

[0019] In a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.

[0020] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements.

[0022] Figure 1 A diagram showing a pinhole model used to explain camera imaging.

[0023] Figure 2 A view showing the connection relationship between feature points of a picture captured by a camera and real space points.

[0024] Figure 3A A top view showing the layout of the camera optical center and the feature points of the human body.

[0025] Figure 3B A view showing the layout of the camera optical center and feature points of a human body from another perspective.

[0026] Figure 3C A partial view of the layout of the camera optical center and feature points of the human body is shown from another perspective.

[0027] Figure 3D A partial view of the layout of the camera optical center and feature points of the human body is shown from another perspective.

[0028] Figure 4A The layout of rays from the optical center to two characteristic points observed from one viewing angle is shown.

[0029] Figure 4B The layout of rays from the optical center to two characteristic points observed from another perspective is shown.

[0030] Figure 5 A view showing the layout between rays from an optical center and a candidate intersection point.

[0031] Figure 6 A view showing the layout between a ray starting from the optical center and another candidate intersection point is shown.

[0032] Figure 7 A view showing the layout of the line segments formed by the optical center of the camera and one candidate intersection point.

[0033] Figure 8 A view showing the layout of line segments formed by the optical center of the camera and another candidate intersection point.

[0034] Fig. 9 A flowchart of a method for removing interfering characters in an image according to an embodiment of the present disclosure is shown.

[0035] Fig.10 A block diagram of a computing device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0036] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0037] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0038] In the following specific embodiments, reference is made to the accompanying drawings, which form a part of this document, and in which specific embodiments of the present invention can be practiced are shown by way of illustration. It should be understood that other embodiments may be utilized and structural or logical changes may be made without departing from the scope of the present invention. Therefore, the following specific embodiments should not be considered to have a limiting meaning, and the scope of the present invention is defined by the appended claims. It should be understood that, unless otherwise specifically noted, the features of the various exemplary embodiments described herein may be combined with each other.

[0039] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.

[0040] In order to understand the solution of the present invention in detail, some background knowledge about camera imaging will be introduced as follows.

[0041] The process of a camera mapping coordinate points in the three-dimensional world (in meters) to a two-dimensional image plane (in pixels) can be described by a geometric model. There are many such models, the simplest of which is called the pinhole model. Figure 1 A diagram showing a pinhole model used to explain camera imaging.

[0042] like Figure 1 As shown in the figure, O is the optical center of the camera, that is, the pinhole in the pinhole model, and the horizontal axis Z is the axis passing through the optical center of the camera and perpendicular to the physical imaging plane (that is, the plane where the camera's image sensor is located). The spatial point P in the real world (such as the apex of the flame of a real candle) falls on the physical imaging plane after being projected through the pinhole O, and the imaging point is P' (such as the apex of the flame of the imaged candle). For example Figure 1 The image of the candle shown is an inverted image. For easy viewing, the inverted image is converted into a positive image through preprocessing of the imaging image by the camera, that is, the inverted image is converted into an image on the normalized imaging plane. At this time, the point of the candle flame apex on the normalized imaging plane is converted to P". Figure 1 As shown, points P, P' and P" are located on a straight line.

[0043] In the field of computer vision, in order to analyze the posture of the human body, a neural network model is usually required to identify multiple key points (or multiple feature points) of the human body. These key points include but are not limited to: nose, left shoulder, right shoulder, the midpoint of the line connecting the left shoulder and the right shoulder, left elbow, right elbow, left wrist, right wrist, left hip, right hip, the midpoint of the line connecting the left hip and the right hip, left knee, right knee, left ankle, right ankle, left heel, right heel, left big toe, right big toe, etc.

[0044] Figure 2 A view showing the connection relationship between feature points of a picture captured by a camera and real space points.

[0045] like Figure 2 As shown in , the image processed by the neural network can give the pixel coordinates of the above key points of the human body on the image. The optical center of the camera, a key point identified on the image, and the corresponding key point of the body of the person in space are in the following order: Figure 1 Points P, P' and P" are located on a straight line. Therefore, a ray can be extended from the optical center of the camera, which can pass through a corresponding feature point in the image and the actual corresponding feature point on the human body.

[0046] There are various changes in human posture. The human body observed from the camera is not necessarily facing the camera. There are also occlusions between the limbs. The pictures collected by the camera cannot fully show every key point of the human body. Considering the above situation, the pictures processed by the neural network have errors to a certain extent, and may predict a key point on the picture as two different key points. For example, when only the left arm appears in the picture and the right arm is blocked, the neural network may predict the key point of the left arm as the key points of the left and right arms. Considering the errors of the neural network in predicting each key point of the human body, it is preferred to select key points that are not easily blocked as reference feature points. For example, in one embodiment, the midpoint of the line connecting the left shoulder and the right shoulder (i.e., the position of the neck) is used as a reference feature point, or the midpoint of the line connecting the left hip or the right hip (i.e., the position of the bottom point of the spine) is used as a reference feature point. Therefore, the optical center of the camera, the midpoint of the line connecting the left shoulder and the right shoulder on the picture, and the midpoint of the line connecting the left shoulder and the right shoulder of the actual human body should be in a straight line. In addition, the optical center of the camera, the midpoint of the line connecting the left hip and the right hip on the picture, and the midpoint of the line connecting the left hip and the right hip of the actual human body should be in a straight line.

[0047] So, if Figure 2 As shown, the optical center O1 of the left camera, the midpoint of the line connecting the left shoulder and the right shoulder on the image I1 collected by the camera, and the midpoint of the line connecting the left shoulder and the right shoulder of the actual human body H should be on a straight line, and the optical center O2 of the right camera, the midpoint of the line connecting the left shoulder and the right shoulder on the image I2 collected by the camera, and the midpoint of the line connecting the left shoulder and the right shoulder of the actual human body H should be on a straight line, and both of these straight lines pass through the midpoint of the line connecting the left shoulder and the right shoulder of the actual human body H, that is, these two rays intersect at this point in space. Similarly, the same is true for the midpoint of the line connecting the left hip and the right hip.

[0048] Multiple cameras that are triggered synchronously capture images of a person in the area surrounded by these cameras. However, since this person is not the only person in the camera's field of view, the images captured by the camera also include other people besides this person. However, only some kinematic data analysis is required for this person, and the other people captured by the camera are interference figures. In traditional methods, the scene requirements are often very strict, requiring that there is only one person in the field of view of all cameras, that is, the person to be processed, or a green curtain is placed around the area surrounded by the cameras to block other people. This is obviously too demanding for the system's use environment.

[0049] In order to explain the method of removing interfering people from an image according to the present disclosure, four cameras will be used as an example for explanation. Although the following description is made with reference to four cameras, the present disclosure does not impose any limitation on the number of cameras, and any method of removing interfering people using the method described below falls within the scope of the present disclosure.

[0050] Figure 3A A top view showing the layout of the camera optical center and the feature points of the human body. Figure 3B A view showing the layout of the camera optical center and feature points of a human body from another perspective. Figure 3C A partial view of the layout of the camera optical center and feature points of the human body is shown from another perspective. Figure 3D A partial view of the layout of the camera optical center and feature points of the human body is shown from another perspective.

[0051] In the embodiment shown in FIG3 , the optical centers of the four cameras are represented by C0, C1, C2, and C3, respectively, and they are represented as the first, second, third, and fourth cameras, respectively. The serial numbers of these cameras have been set when the calibration of the intrinsic and extrinsic parameters of the cameras is completed. There are four people in the field of view that can be captured by all cameras, and a specific feature point of these four people (for example, the midpoint of the line connecting the left shoulder and the right shoulder) is represented by P1, P2, P3, and P4. For example, the camera with the optical center C0 can observe the feature points P1, P2, and P5, the camera with the optical center C1 can observe the feature points P1, P3, and P5, the camera with the optical center C2 can observe the feature points P1, P3, and P4, and the camera with the optical center C3 can observe the feature points P1, P2, and P4. Among these feature points P1-P5, only P1 is located in the area formed by multiple cameras, and the other four are outside the area.

[0052] From the above analysis, it can be seen that the line connecting the optical center of each camera and each feature point in space must pass through the corresponding feature point in the captured image. In order to make the top view clearer, the lines connecting each optical center and P1 are not represented in the form of rays. In fact, the other end points of these rays are infinite. Figure 3A In the figure, P5 is not visible. Figure 3B is shown in .

[0053] After the object to be processed is in the area surrounded by the field of view of the four cameras, the four cameras are triggered synchronously to collect the object. During the collection process, it is necessary to ensure that only one person can appear in the area. Outside the area, other interfering people can move around at will. Therefore, in the images collected by the four cameras, there is always a person in the center, but the number of people outside the area can change at will. All the collected pictures are sent to the posture recognition neural network, which predicts multiple feature points of the human body.

[0054] The first camera and the third camera can both observe three people, so there are 3 rays emitted from the optical center C0 and 3 rays emitted from the optical center C1. Figure 3A and 3BFrom the top view, we can see that the three rays emitted from the optical center C0 and all the rays emitted from the optical center C1 intersect at 9 points. These 5 points are as follows: Figure 3A A1, A2, A3, A4, P1, A5, A6, A7 and P5 are shown. Since these rays are projected onto a plane parallel to the bottom surface, the intersection of the three rays and the other three non-parallel rays should be 9. However, in space, these rays are not coplanar, and the actual intersection points are not 9.

[0055] In the method according to the present invention, due to the error of the neural network in posture recognition and the calculation error of the spatial position of the camera, even if the rays of two cameras pointing to the same specific feature point of the same person may be offset by a certain position in space, the actual intersection point is not the real intersection of the two rays in space, but the distance between them is relatively small. It can be set that two rays with a spatial vertical distance less than the threshold distance (the threshold distance can generally be set to 1-5cm) are the real intersection, and their intersection point is set at the midpoint of the line segment perpendicular to the two rays in space.

[0056] Figure 3B The view shown is not a top view. Figure 3B It can be seen that points A2 and A3 are located on ray C0P2 emitted from the first camera, but not on any ray emitted from the optical center C1. Point A1 is the intersection of rays C1P3 and C0P2. Points A5 and A4 are located on two rays emitted from the optical center C1, but not on ray C0P1 emitted from the optical center C0. Points A6 and A7 are located on two rays emitted from the optical center C1, but not on ray C0P5 emitted from the optical center C0. For example, from Figure 3C It can be seen that A3 and A2 are not located on the ray emitted from the optical center C1; Figure 3D It can be seen from the figure that A5 and A6 are not located on the ray C0P1 emitted from the optical center C0. The points of intersection in space among these 9 intersection points only include points A1, P1 and P5.

[0057] In order to remove points A2-A7, the following operation can be performed: Calculate the spatial vertical distance between the ray emitted from the optical center C0 and the ray emitted from the optical center C1. Figure 3AThe embodiment shown can obtain 9 spatial vertical distances. Theoretically, if two rays intersect in space, the spatial vertical distance between them should be 0, but considering that the neural network may have certain errors when identifying the various feature points of the human body, even if two cameras see the same feature point of the same person at the same time, but for the same feature point of the same person captured by the two cameras, the two rays may also have a certain spatial vertical distance in space. As long as the spatial vertical distance is less than a threshold, the two rays can be considered to intersect in space. The value range of the above threshold is within the range of 10-30cm, preferably within the range of 10-20cm. By determining the above spatial vertical distance, points A2-A7 can be excluded, and only points A1, P1 and P5 are retained.

[0058] P1 and P5 are the intersection points of real feature points, but at the intersection point A1, there is no person or feature point. Therefore, it is necessary to exclude points P5 and A1 and only keep point P1.

[0059] In order to exclude the intersection A1, the operation described in detail below can be performed. In one embodiment, two feature points can be used as reference feature points, wherein the first feature point is a feature point described above, and the feature point can be the midpoint of the line connecting the left shoulder and the right shoulder. Another feature point is selected as the second feature point, and the second feature point and the first feature point can be far apart, for example, the second feature point can be the midpoint of the line connecting the left hip and the right hip.

[0060] Figure 4A The layout of rays from the optical center to two characteristic points observed from a viewing angle is shown. Figure 4B The layout of rays from the optical center to two characteristic points observed from another perspective is shown.

[0061] like Figure 4A and 4B As shown, the first characteristic point of a person is represented by P2, and the second characteristic point is represented by P2', and the first characteristic point of another person is represented by P3, and the second characteristic point is represented by P3'. Figure 4A and 4B It can be seen that the ray from the optical center C0 to P2 and the ray from the optical center C1 to P3 intersect at point A1 in space, but the ray from the optical center C0 to P2' and the ray from the optical center C1 to P3' do not intersect in space, but are separated by a certain distance in space. By fusing the rays passing through the first and second feature points, the intersection point A1 can be excluded. Therefore, the following operation can be performed for this intersection point: Calculate the spatial vertical distance between the ray passing through the optical center C0 and the feature point P2 and the ray passing through the optical center C1 and the feature point P3, and then calculate the vertical distance between the ray passing through the optical center C0 and the feature point P2 and the ray passing through the optical center C1 and the feature point P3. Figure 4A and 4BIt can be seen that the spatial vertical distance between them is 0, so it is less than the threshold; calculate the spatial vertical distance between the ray passing through the optical center C0 and the feature point P2' and the ray passing through the optical center C1 and the feature point P3', from Figure 4A and 4B It can be seen that the spatial vertical distance between them is not 0 and is greater than the threshold. By adding the two spatial vertical distances calculated above, it can be seen that the result after addition is greater than the threshold, so the intersection A1 cannot be used as a candidate intersection.

[0062] A method of excluding the intersection A1 has been introduced above, but the selection of feature points is only for the convenience of explanation. Any two feature points can be selected as needed as long as the distance between the two feature points is greater than or equal to the distance between the midpoints of the lines from the nose to the left shoulder and the right shoulder.

[0063] The following will be combined Figure 5 Another method of excluding the intersection point A1 is described below. Figure 5 A view showing the layout between a ray from an optical center and a candidate intersection point, Figure 6 A view showing the layout between a ray starting from the optical center and another candidate intersection point is shown, with some points and rays omitted for ease of explanation.

[0064] In order to exclude point A1, the following operation can also be performed: calculate the second spatial vertical distance between point A1 and the rays emitted from the optical center of other cameras, and if these spatial vertical distances are greater than the threshold, the intersection point A1 can be set as the interference point. Figure 5 As shown, rays C2P4, C2P1 and C2P3 do not pass through point A1 in space, or are not located near intersection point A1, so the second spatial vertical distances related to point A1 are all greater than the threshold, indicating that other cameras C2 and C3 cannot observe the feature point located at point A1, so the feature point is an error or interference feature point. Therefore, feature point A1 can also be excluded by this method.

[0065] A similar method can be used to exclude feature point P5. In order to exclude point P5, the following operation can be performed: calculate the second spatial vertical distance between point P5 and the rays emitted from the optical center of other cameras. If these spatial vertical distances are greater than the threshold, the intersection point P5 can be set as an interference point. Figure 6 As shown, rays C2P4, C2P1 and C2P3 do not pass through point P5 in space, or are not located near the intersection point P5, so the second spatial vertical distances related to point P5 are all greater than the threshold, indicating that other cameras C2 and C3 cannot observe the feature point located at point P5, so this feature point is an interference feature point. Therefore, this method can also exclude feature point P5.

[0066] The above method only lists the spatial vertical distance between the intersection point A1 or P5 and the ray emitted from one optical center C2. In order to make the data more accurate, the spatial vertical distance between the intersection point A1 or P5 and the ray emitted from other optical centers (for example, optical center C3) should be verified. In the case of a large number of cameras, 2 to 3 cameras among the remaining cameras can be selected for verification.

[0067] In some embodiments, for the case where the reference feature point includes two feature points, all spatial vertical distances between the intersection corresponding to the first specific feature point (e.g., the midpoint of the line connecting the left shoulder and the right shoulder) and all rays from the optical center of other cameras and the first specific feature point can be calculated, and then all spatial vertical distances between the intersection corresponding to the second specific feature point (e.g., the midpoint of the line connecting the left hip and the right hip) and all rays from the optical center of other cameras and the second specific feature point can be calculated. The above-calculated matching pair of spatial vertical distances are summed to obtain a second spatial vertical distance, thereby obtaining a set of second spatial vertical distances of all rays. For example, for the intersection point P5, which corresponds to the first specific feature point, the candidate intersection point also has an intersection point P5' (not shown) corresponding to the second specific feature point of the intersection point P5. In one embodiment, in order to calculate the second spatial vertical distance, the first sub-distance from P5 to the ray from another optical center (for example, C2) to a first specific feature point is first calculated, and then the second sub-distance from P5' to the ray from another optical center (for example, C2) to the second specific feature point corresponding to the above-mentioned first specific feature point is calculated, and then the sum of the first sub-distance and the second sub-distance is calculated to obtain a second spatial vertical distance.

[0068] In the above method, although only 2 to 3 cameras are selected for verification, if there are many interfering people, that is, when there are many rays emitted from C2 and C3, it is necessary to verify the spatial vertical distance between each candidate intersection point and all rays, which will result in a large amount of calculation.

[0069] In order to reduce the amount of calculation, some candidate intersection points can be removed before calculating the second spatial vertical distance. Figure 7 and Figure 8 To illustrate how to remove some candidate intersection points.

[0070] Figure 7 A view showing the layout of the line segments formed by the optical center of the camera and one candidate intersection point. Figure 8 A diagram showing the layout of the line segments formed by the optical center of the camera and another candidate intersection point

[0071] Before multiple cameras capture images, the cameras have been calibrated so that the camera positions, spatial coordinates, and order are known. This information can be used to exclude some interference points. Since the pixel coordinates of each feature point can also be given through the neural network, the spatial coordinates of each pixel on each image can be determined by combining the camera's intrinsic and extrinsic parameters and the pixel coordinates of the feature points. The spatial coordinates of each intersection can be determined by the above method.

[0072] The following method will be used to determine whether the intersection is within the area surrounded by multiple cameras. Project multiple cameras and intersections onto a plane parallel to the ground to obtain the optical center of each camera and the two-dimensional coordinates of the intersection. After determining these coordinates, the vector from each optical center to the intersection can be determined, and the following angles can be calculated in sequence along a direction according to the order of the cameras: the angle between the line segment between the previous optical center and the intersection and the line segment between the next optical center and the intersection. Figure 7 As shown, the cameras are arranged in order of optical center as C0, C1, C2 and C3. In counterclockwise order, calculate the angle θ1 between vectors C0A1 and C1A1, the angle θ2 between C1A1 and C2A1, the angle θ3 between C2A1 and C3A1, and the angle θ4 between C3A1 and C0A1. The sum of these angles θ1 to θ4 should be 360°. If all the angles are less than 180°, it can be determined that the intersection is within the area surrounded by all cameras. Figure 7 It can be seen from the top view that the angles θ1 to θ4 are all smaller than 180°, so it is determined that A1 is located within the area surrounded by all the cameras.

[0073] like Figure 8 As shown, the cameras are arranged in order of optical center as C0, C1, C2 and C3. In counterclockwise order, calculate the angle θ5 between vectors C0P5 and C1P5, the angle θ6 between C1P5 and C2P5, the angle θ7 between C2P5 and C3P5, and the angle θ8 between C3P5 and C0P5. The sum of these angles should be 360°. If all the angles are less than 180°, it can be determined that the intersection is within the area surrounded by all cameras. If an angle is greater than 180°, it can be determined that the intersection is outside the area surrounded by all cameras. Figure 8 In the top view shown, the angle θ7 between C2P5 and C3P5 is greater than 180°, so it can be determined that P5 is outside the area surrounded by all cameras.

[0074] Similarly, in one embodiment of the present disclosure, it is also possible to determine whether the intersection is inside other areas, which is a small area in the large area surrounded by the four cameras C0, C1, C2 and C3. Therefore, the staff can set a small area in the large area according to the needs, and then determine whether the intersection is inside the small area according to the above method. For example, if only a part of the large area needs to be analyzed (for example, half of a basketball court), then only half of the basketball court can be demarcated as a small area to determine whether the intersection is inside the small area.

[0075] In one embodiment, the range of the area surrounded by the camera can also be determined by the external parameters of the camera (i.e., the spatial position of the camera), and the range can be a range projected into a plane parallel to the ground. Because the spatial coordinates of each intersection point have been calculated before, its plane coordinates in the above plane can also be calculated. By determining whether the plane coordinates of the intersection point are within the range of the area surrounded by the camera, the intersection points outside the area surrounded by the camera can be removed.

[0076] When it is determined that P5 is outside the area surrounded by all cameras, the second spatial vertical distance may not be calculated for P5. Therefore, the calculation of the second spatial vertical distance for the intersection of the area outside the field can be omitted, thereby saving computer computing resources and improving calculation speed.

[0077] The following will refer to Fig. 9 A method for removing interfering characters in an image according to an embodiment of the present disclosure is described below.

[0078] The method disclosed in the present invention can automatically remove interfering people and only process data of the object to be processed. There is no need to impose too many restrictions on the shooting location, nor is there a need to isolate the shooting location from the surrounding locations, so that the computer vision device using the system and method disclosed in the present invention can have stronger robustness and practicality.

[0079] Before executing the method, multiple cameras that are triggered synchronously are used to capture images, and then multiple images captured in each frame are processed. For multiple images captured in the same frame, the following operations are performed: Step 901) multiple images captured in the same frame are processed using a neural network to obtain multiple feature points of each person in each image; and Step 902): set reference feature points, and obtain rays from the optical center of each camera to the reference feature points of each person in the image captured by it. The reference feature points include the first specific feature points among the multiple feature points of each person. In one example, the specific feature point is the midpoint of the line connecting the left shoulder and the right shoulder. The method also includes step 903): any two cameras among the multiple cameras are used as the first reference camera and the second reference camera, and multiple spatial vertical distances between the first ray and the second ray are calculated to obtain a first spatial vertical distance set. The first ray is a plurality of rays passing through the optical center of the first reference camera and all the reference feature points of all the people captured by it, and the second ray is a plurality of rays passing through the optical center of the second reference camera and all the reference feature points of all the people captured by it. The first ray here is not a single ray, and its number corresponds to the number of all reference feature points of the person in the picture collected by the camera. For example, if the first reference camera collects 10 people in the frame, the first ray includes 10 rays. If the second reference camera only collects 5 people in the frame, the second ray includes 5 rays. 50 first spatial processing distances formed by 10 rays and 5 rays are calculated to form a first spatial vertical distance set. The method also includes step 904): if a first spatial vertical distance in the first spatial vertical distance set is less than or equal to a threshold, an intersection point of the ray corresponding to the first spatial vertical distance is used as a candidate intersection point to obtain a candidate intersection point set. In the above example, if 5 of the 50 first spatial vertical distances are less than or equal to the threshold value, and the value range of the threshold value can be between 10cm and 30cm, then 5 candidate intersection points can be determined. The method also includes step 905): for a candidate intersection point in the candidate intersection point set, a second spatial vertical distance set is calculated. A second spatial vertical distance represents the spatial vertical distance between the candidate intersection and the ray passing through the optical center of one of the other cameras and the first specific feature point; and step 906): if all values ​​in the second spatial vertical distance set are greater than the threshold, the candidate intersection is set as an interference intersection, and if there is a second spatial vertical distance less than or equal to the threshold, the candidate intersection is set as a target intersection. In the above example, one of the five candidate intersections is selected, and then the spatial vertical distance between the candidate intersection and all rays emitted by the remaining cameras is calculated. Of course, if there are many remaining cameras, the rays emitted by 2-3 of the cameras can be selected to calculate the second spatial vertical distance. Figures 3A-3DIn the illustrated embodiment, there are three candidate points, P1, A1 and P5, and all the second spatial vertical distances calculated for A1 and P5 are greater than the threshold value, and only one spatial vertical distance in the set of second spatial vertical distances calculated for P1 is less than or equal to the threshold value. The method also includes step 907): for each remaining candidate intersection, execute steps 5) and 6); and step 908): determine whether there is a target intersection, and if so, the process proceeds to step 909): treat the person corresponding to the target intersection as the object to be processed, otherwise continue to return to step 901).

[0080] In the above method, if the camera is synchronously triggered to collect data after the object to be processed is already located in the above area, the collected images include the object to be processed, that is, the existence of the target intersection can be determined in the first frame of the collected image. However, in actual situations, there are also the following situations: before the object to be processed enters the above area, the camera is already collecting data, so there is a demand to automatically determine whether the object to be processed appears in the above area, and only after it appears in the above area, the subsequent three-dimensional posture analysis is performed on the frame and the data after the frame, that is, the initial frame for posture analysis needs to be determined. In order to achieve the above function, in response to determining that there is no target intersection, in the second frame, steps 901)-908) are executed. If there is no target intersection among the candidate intersections, it indicates that the object to be processed has not entered the above area, then in each subsequent frame, continue to detect whether there is a target intersection, until the target intersection is detected in a certain frame, and then the frame is used as the initial frame for posture analysis.

[0081] If the target intersection has been detected and the target person has been determined in a certain frame, the method also includes the following operations: Step 910) for the frame, calculate the three-dimensional coordinates of the target intersection in space to determine a target three-dimensional space point; and 911) for each frame after the frame, based on the target three-dimensional space point, obtain the object to be processed for the frame. Step 911) includes: obtaining the ray from the optical center of each camera to the first specific feature point of each person in the image it captures: calculating the third spatial vertical distance between the target three-dimensional space point of the previous frame and the ray obtained in the previous step; and selecting the reference feature point corresponding to the third spatial vertical distance less than or equal to the threshold as the target feature point, and a person corresponding to the target feature point as the object to be processed in the current frame.

[0082] Fig.10 1 is a schematic block diagram of an example device 1000 that can be used to implement an embodiment of the present disclosure. The device 1000 can be used to implement Figure 1As shown in the figure, the device 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 1002 or computer program instructions loaded from a storage unit 1008 to a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0083] A number of components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 10010, such as various types of displays, speakers, etc.; a storage unit 1008, such as a disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0084] The processing unit 1001 performs the various methods and processes described above, such as process 900. For example, in some embodiments, process 900 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via ROM 1002 and / or communication unit 1009. When the computer program is loaded into RAM 1003 and executed by CPU 1001, one or more steps of any one of processes 200 and 900 described above may be performed. Alternatively, in other embodiments, CPU 1001 may be configured to perform any one of processes 200 and 600 by any other suitable means (e.g., by means of firmware).

[0085] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip systems (SOCs), load programmable logic devices (CPLDs), and the like.

[0086] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0087] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0088] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0089] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for removing interfering people from an image, using multiple cameras that are triggered synchronously to collect images, there is only one person in the area surrounded by the multiple cameras, and the person is the object to be processed, and other people outside the area are interfering people, the method comprising: Step 1): using a neural network to process multiple images captured in the same frame to obtain multiple feature points of each person in each image; Step 2): setting a reference feature point, and obtaining a ray from the optical center of each camera to the reference feature point of each person in the image captured by the camera, wherein the reference feature point includes a first specific feature point among multiple feature points of each person, and the first specific feature point is any one feature point selected from the multiple feature points; Step 3): setting any two cameras among the multiple cameras as a first reference camera and a second reference camera, calculating multiple spatial vertical distances between a first ray associated with the first reference camera and a second ray associated with the second reference camera to obtain a first spatial vertical distance set, wherein the first ray is a set of rays passing through the optical center of the first reference camera and corresponding first specific feature points of all persons collected by the first reference camera, and the second ray is a set of rays passing through the optical center of the second reference camera and corresponding first specific feature points of all persons collected by the second reference camera; Step 4): if a first spatial vertical distance in the first spatial vertical distance set is less than or equal to a threshold, an intersection point of the ray corresponding to the first spatial vertical distance is taken as a candidate intersection point to obtain a candidate intersection point set; Step 5): for a candidate intersection point in the candidate intersection point set, calculate a second spatial vertical distance set, where the second spatial vertical distance represents a spatial vertical distance between the candidate intersection point and a ray passing through an optical center of one of the other cameras and the first specific feature point; Step 6): if all values ​​in the second spatial vertical distance set are greater than the threshold, the one candidate intersection point is set as an interference intersection point; if there is a second spatial vertical distance less than or equal to the threshold, the one candidate intersection point is set as a target intersection point; Step 7): For each remaining candidate intersection point, execute steps 5) and 6); as well as Step 8): In response to the existence of the target intersection, the person corresponding to the target intersection is taken as an object to be processed.

2. The method for removing interfering persons from an image according to claim 1, further comprising: Step 9): In response to the existence of a target intersection point, for the current frame, the three-dimensional coordinates of the target intersection point in space are calculated to determine a target three-dimensional space point; as well as Step 10): For the next frame, perform the following operations: Step 10.1): Obtain a ray from the optical center of each camera to the first specific feature point of each person in the image captured by the camera; Step 10.2): Calculate a set of third space vertical distances between the determined target three-dimensional space point and all rays acquired in step 10.1); as well as Step 10.3): Select a ray corresponding to a third space vertical distance less than or equal to a threshold value from the third space vertical distance set as the target ray, and use the reference feature point corresponding to the target ray as the target feature point, and use a person corresponding to the target feature point as the object to be processed in the next frame.

3. The method for removing interfering figures from an image according to claim 1, characterized in that: Also includes: In response to the absence of the target intersection, performing step 1) to step 7) for a plurality of images acquired in the next frame; as well as In response to determining that a target intersection exists in a certain frame, the frame is used as an initial frame for subsequent processing.

4. The method for removing interfering figures from an image according to claim 1, characterized in that: The first specific feature point is selected from the following feature points: nose, left shoulder, right shoulder, the midpoint of the line connecting the left shoulder and the right shoulder, left elbow, right elbow, left wrist, right wrist, left hip, right hip, the midpoint of the line connecting the left hip and the right hip, left knee, right knee, left ankle and right ankle.

5. The method for removing interfering figures from an image according to claim 1, characterized in that: The reference feature points only include the first specific feature points; In step 3), calculating the spatial vertical distance between the first ray associated with the first reference camera and the second ray associated with the second reference camera to obtain a first spatial vertical distance set includes: Calculating a spatial vertical distance between each ray in the first rays and each ray in the second rays to obtain a first spatial vertical distance set, wherein the number of distances in the first spatial vertical distance set is equal to the product of the number of the first rays and the number of the second rays; In step 5), for a candidate intersection point in the candidate intersection point set, calculating the second spatial vertical distance set includes: All spatial perpendicular distances between the one candidate intersection point and all rays passing through the optical center of each of the other cameras and the first specific feature point are calculated.

6. The method for removing interfering figures from an image according to claim 1, characterized in that: The reference feature points also include a second specific feature point among the multiple feature points of each character, the second specific feature point is a feature point among the multiple feature points other than the first specific feature point, wherein the distance between the first specific feature point and the second specific feature point is greater than or equal to the distance between the nose and the midpoint of the line connecting the left shoulder and the right shoulder, In step 3), calculating the spatial vertical distance between the first ray associated with the first reference camera and the second ray associated with the second reference camera to obtain a first spatial vertical distance set includes: Step 3.1) calculating a first subspace vertical distance between a ray from the optical center of the first reference camera to a first specific feature point of a person captured by the first reference camera and a ray from the optical center of the second reference camera to a first specific feature point of another person captured by the second reference camera; Step 3.2) calculating a second subspace vertical distance between a ray from the optical center of the first reference camera to the second specific feature point of the one person collected therefrom and a ray from the optical center of the second reference camera to the second specific feature point of the other person collected therefrom; Step 3.3) Calculate the sum of the first subspace vertical distance and the second subspace vertical distance to obtain a first space vertical distance; and Step 3.4) for other combinations of the persons captured by the first reference camera and the persons captured by the second reference camera, calculate the first spatial vertical distance to obtain a first spatial vertical distance set, wherein the number of distances in the first spatial vertical distance set is equal to the product of the number of persons captured by the first reference camera and the number of persons captured by the second reference camera; In step 5), for a candidate intersection point in the candidate intersection point set, calculating the second spatial vertical distance set includes: For the case where the reference feature points include the first specific feature point, calculating all spatial vertical distances between the one candidate intersection point and all rays passing through the optical center of each camera in other cameras and the first specific feature point; or For the case where the reference feature point includes the first specific feature point and the second specific feature point, all spatial vertical distances between the one candidate intersection point and all rays passing through the optical center of each camera in the other cameras and the first specific feature point are calculated, and for the first intersection point that matches the one candidate intersection point and is for the second specific feature point, all spatial vertical distances between the first intersection point and all rays passing through the optical center of each camera in the other cameras and the second specific feature point are calculated, and a pair of matched spatial vertical distances are summed respectively to obtain a second spatial vertical distance, thereby obtaining a second spatial vertical distance set, wherein the matched pair of spatial vertical distances include the vertical distance between the one candidate intersection point and the ray from the optical center of a specific camera to the first specific feature point, and the vertical distance between the first intersection point and the ray from the optical center of the one specific camera to the second specific feature point.

7. The method for removing interfering figures from an image according to claim 1, characterized in that: Also includes: Before executing step 5), it is determined whether each candidate intersection point in the candidate intersection point set is in an area surrounded by multiple cameras.

8. The method for removing interfering figures from an image according to claim 7, characterized in that: Determine whether each candidate intersection point in the candidate intersection point set is included in an area surrounded by multiple cameras: Projecting the candidate intersection point and the multiple cameras onto a plane parallel to the ground, and comparing the plane coordinates of the candidate intersection point and the multiple cameras to determine whether the candidate intersection point is located in an area surrounded by the multiple cameras; or The candidate intersection point and multiple cameras are projected onto a plane parallel to the ground, and along the clockwise or counterclockwise direction, it is determined whether the angle between two line segments formed by two adjacent cameras and the candidate intersection point is greater than or equal to 180°. If the angle is greater than or equal to 180°, it is determined that the candidate intersection point is outside the area surrounded by the multiple cameras. In response to the one candidate intersection point not being located in the area surrounded by the plurality of cameras, setting the one candidate intersection point as an interfering intersection point; and In response to the one candidate intersection point being located in the area surrounded by the multiple cameras, step 5) is continued.

9. An electronic device, comprising: processor; as well as a memory coupled to the processor, the memory having instructions stored therein, the instructions, when executed by the processor, causing the device to perform actions, the actions comprising: Step 1): using a neural network to process multiple images captured in the same frame to obtain multiple feature points of each person in each image; Step 2): setting a reference feature point, and obtaining a ray from the optical center of each camera to the reference feature point of each person in the image captured by the camera, wherein the reference feature point includes a first specific feature point among multiple feature points of each person, and the first specific feature point is any one feature point selected from the multiple feature points; Step 3): setting any two cameras among the multiple cameras as a first reference camera and a second reference camera, calculating multiple spatial vertical distances between a first ray associated with the first reference camera and a second ray associated with the second reference camera to obtain a first spatial vertical distance set, wherein the first ray is a set of rays passing through the optical center of the first reference camera and corresponding first specific feature points of all persons collected by the first reference camera, and the second ray is a set of rays passing through the optical center of the second reference camera and corresponding first specific feature points of all persons collected by the second reference camera; Step 4): if a first spatial vertical distance in the first spatial vertical distance set is less than or equal to a threshold, an intersection point of the ray corresponding to the first spatial vertical distance is taken as a candidate intersection point to obtain a candidate intersection point set; Step 5): for a candidate intersection point in the candidate intersection point set, calculate a second spatial vertical distance set, where the second spatial vertical distance represents a spatial vertical distance between the candidate intersection point and a ray passing through an optical center of one of the other cameras and the first specific feature point; Step 6): if all values ​​in the second spatial vertical distance set are greater than the threshold, the one candidate intersection point is set as an interference intersection point; if there is a second spatial vertical distance less than or equal to the threshold, the one candidate intersection point is set as a target intersection point; and Step 7): For each remaining candidate intersection point, execute steps 5) and 6); Step 8): In response to the existence of the target intersection, the person corresponding to the target intersection is taken as an object to be processed.

10. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for removing an interfering person from an image according to any one of claims 1 to 8 is implemented.