Method, device, medium and electronic device for capturing abnormal actions of target objects
By setting up multiple cameras in the invigilation room, segmenting video images and adjusting camera parameters to capture abnormal movements of candidates, the problem of monitoring loopholes in the existing technology is solved and the accuracy of invigilation and video clarity are improved.
Patent Information
- Application Number
- CN202111430789.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-11-29
AI Technical Summary
In the existing proctoring method, due to the limitations of the camera, the abnormal movements of the candidates cannot be clearly captured, and there are monitoring loopholes in some areas.
By setting up multiple cameras in a limited space, obtain video images and perform image segmentation, identify abnormal action types, adjust the area and camera parameter values of the second camera to track abnormal actions, and generate videos that capture abnormal actions.
It improves the accuracy of capturing abnormal movements and the clarity of imaging videos, and solves the problem of surveillance loopholes.
Smart Images

Figure CN114040115B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing, and in particular to a method, device, medium and electronic device for capturing abnormal motion of a target object. Background Art
[0002] Examinations are a means for schools to test teaching effectiveness and understand students' knowledge mastery. Usually, one or two invigilators will be arranged in the examination room to supervise the students through patrolling to prevent cheating in the examination.
[0003] With the development of information technology, the invigilation method is also progressing from manual to information-based. Usually, multiple cameras are set up in all directions in the examination room, and the camera parameter value and area parameter value of each camera are fixed values. The camera captures the student's test video, and the test video is manually monitored to improve the monitoring effect.
[0004] However, due to the limitations of the camera, this monitoring method always has surveillance loopholes in some areas, and it is impossible to clearly capture the abnormal movements of the candidates.
[0005] Therefore, the present disclosure provides a method for capturing abnormal actions of a target object to solve one of the above technical problems. Summary of the invention
[0006] The purpose of the present disclosure is to provide a method, device, medium and electronic device for capturing abnormal actions of a target object, which can solve at least one of the above-mentioned technical problems. The specific solution is as follows:
[0007] According to a specific embodiment of the present disclosure, in a first aspect, the present disclosure provides a method for capturing abnormal actions of a target object, comprising:
[0008] Acquire video images captured at the same time by a plurality of first cameras arranged in a limited space, wherein a first camera parameter value and a first area parameter value of each first camera for a respective shooting area are fixed values, and all video images captured at the same time include images captured in all directions for a target object occupying the respective fixed space;
[0009] Performing image segmentation on the video image to obtain at least one independent image of each target object and a first spatial position of the target object to which each independent image belongs;
[0010] Identify abnormal actions on the independent images of each target object and obtain the abnormal action type of the suspicious target object;
[0011] Acquire a second area parameter value and a second camera parameter value of at least one second camera set in the limited space according to the first spatial position and the abnormal action type of the suspicious target object, wherein the second area parameter value and the second camera parameter value are used to adjust the second camera to track the abnormal action of the suspicious target object;
[0012] The second camera is adjusted based on the second area parameter value and the second camera parameter value of the second camera to generate a video capturing the abnormal action.
[0013] According to a specific embodiment of the present disclosure, in a second aspect, the present disclosure provides a device for capturing abnormal actions of a target object, comprising:
[0014] An image acquisition unit is used to acquire video images respectively shot at the same time point by a plurality of first cameras arranged in a limited space, wherein a first camera parameter value and a first area parameter value of each first camera for a respective shooting area are fixed values, and all video images shot at the same time point include images shot in all directions for a target object occupying the respective fixed space;
[0015] An image segmentation unit, configured to perform image segmentation on the video image to obtain at least one independent image of each target object and a first spatial position of the target object to which each independent image belongs;
[0016] An abnormality recognition unit, used to recognize abnormal actions of each independent image of the target object and obtain the abnormal action type of the suspicious target object;
[0017] a parameter value acquisition unit, configured to acquire a second area parameter value and a second camera parameter value of at least one second camera arranged in the limited space according to the first spatial position and the abnormal action type of the suspicious target object, wherein the second area parameter value and the second camera parameter value are used to adjust the second camera to track the abnormal action of the suspicious target object;
[0018] The video capturing unit is used to adjust the second camera based on the second area parameter value and the second camera parameter value of the second camera to generate a video capturing the abnormal action.
[0019] According to a specific implementation of the present disclosure, in a third aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method for capturing abnormal actions of a target object as described in any one of the above items is implemented.
[0020] According to the specific implementation of the present disclosure, in a fourth aspect, the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method for capturing abnormal actions of a target object as described in any of the above items.
[0021] Compared with the prior art, the above solution of the embodiment of the present disclosure has at least the following beneficial effects:
[0022] The present disclosure provides a method, device, medium and electronic device for capturing abnormal actions of a target object. The embodiment of the present disclosure obtains the abnormal action type of a suspicious target object through video graphics captured by multiple first cameras set in a limited space, and then obtains the second area parameter value and the second camera parameter value of a second camera through the first spatial position and abnormal action type of the suspicious target object, thereby adjusting the second camera to generate a video capturing the abnormal action. The accuracy of capturing the abnormal action and the clarity of the imaging video are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A flow chart of a method for capturing abnormal actions of a target object according to an embodiment of the present disclosure is shown;
[0024] Figure 2 A schematic diagram showing a limited space according to an embodiment of the present disclosure is shown;
[0025] Figure 3 A unit block diagram of a device for capturing abnormal motion of a target object according to an embodiment of the present disclosure is shown;
[0026] Figure 4 A schematic diagram of a connection structure of an electronic device provided according to an embodiment of the present disclosure is shown;
[0027] Description of Figure Numbers
[0028] 1-first camera, 2-second camera, 3-target object, 4-limited space, 5-current camera angle, 6-angle value. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0030] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments, and are not intended to limit the present disclosure. The singular forms "a", "said" and "the" used in the embodiments of the present disclosure and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0031] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0032] It should be understood that although the terms first, second, third, etc. may be used to describe in the disclosed embodiments, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the disclosed embodiments, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
[0033] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0034] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0035] It should be particularly noted that any symbols and / or numbers in the specification that are not marked in the accompanying drawings are not drawing marks.
[0036] The optional embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0037] Example 1
[0038] The embodiment provided by the present disclosure is an embodiment of a method for capturing abnormal actions of a target object.
[0039] Combine the following Figure 1 and Figure 2 The embodiments of the present disclosure are described in detail.
[0040] like Figure 1 As shown, in step S101, video images taken by multiple first cameras 1 set in the limited space 4 at the same time point are obtained.
[0041] The limited space 4 is a closed or partially closed space that is relatively isolated from the outside world and has a narrow entrance and exit, in which the target object 3 can move. For example, a classroom is the limited space 4, and the students in the classroom are the target objects 3.
[0042] Among them, the first camera parameter value and the first area parameter value of each first camera 1 for their respective shooting areas are fixed values; the video images taken at the same time point include all-round images of the target object 3 occupying the respective fixed space in the limited space 4.
[0043] The area parameter value includes the angle parameter of the camera shooting.
[0044] The camera parameter value refers to a specific parameter value set for the camera at the front of the camera lens to obtain a clear image of the target object 3. The camera parameter value includes: an aperture parameter value, a focal length parameter value, and a field of view angle parameter value.
[0045] The field of view parameter value, usually the horizontal field of view angle, is used to reflect the shooting range of the picture. The larger the focal length f, the smaller the field of view angle, and the smaller the picture range formed on the photosensitive element; conversely, the smaller the focal length f, the larger the field of view angle, and the larger the picture range formed on the photosensitive element.
[0046] The first camera parameter value belongs to a camera parameter value; the first area parameter value belongs to an area parameter value.
[0047] like Figure 2 As shown, the first camera parameter value and the first area parameter value of each first camera 1 for their respective shooting areas are fixed values. It can be understood that a plurality of first cameras 1 with fixed positions are arranged in the limited space 4, and each first camera 1 is responsible for shooting a designated shooting area in the limited space 4, and the shooting areas of all first cameras 1 cover the entire limited space 4.
[0048] In order to achieve multi-angle and all-round shooting of each target object 3, the shooting area of each first camera 1 partially overlaps with the shooting areas of other cameras. Therefore, all the video images shot at the same time point include all-round images of the target objects 3 occupying their respective fixed spaces. It can be understood that each target object 3 exists in multiple video images shot at the same time point, and each video image shoots the same target object 3 at a different angle.
[0049] The target object 3 in the fixed space means that the target object 3 can only move in a fixed space in the limited space 4. For example, in an examination room, students take an examination in their seats.
[0050] The video image refers to a frame of image in the video captured by a camera.
[0051] Step S102 : performing image segmentation on the video image to obtain at least one independent image of each target object 3 and a first spatial position of the target object 3 to which each independent image belongs.
[0052] Image segmentation refers to the technology and process of dividing a video image into several specific regions with unique properties and proposing the target object 3 of interest. Image segmentation includes: threshold-based segmentation method, region-based segmentation method, edge-based segmentation method and segmentation method based on specific theory. It can be understood that image segmentation is the process of dividing a digital image into non-intersecting regions, that is, the process of obtaining an independent image of the target object 3.
[0053] The image segmentation process is also a labeling process, that is, the process of labeling the independent image with the first spatial position. The first spatial position refers to the spatial position of the target object 3 in the limited space 4, that is, the three-dimensional position. For example, a three-dimensional coordinate system is set in the classroom according to the characteristics of the examination room, such as Figure 2 As shown, the lower left corner of the figure is the coordinate origin O, the horizontal line from the coordinate origin O to the right is the x-axis, the vertical line from the coordinate origin O to the top is the y-axis, the x-axis and the y-axis form a horizontal plane, and the line from the coordinate origin O to the height direction is the z-axis; the first spatial position is the three-dimensional coordinate value in the three-dimensional coordinate system. Since the target object 3 can only move in a specific fixed space, the first spatial position of the target object 3 is also fixed.
[0054] In the process of image segmentation, first, by identifying the independent image, a mapping relationship can be established between the independent image and the identification information of the target object 3. Then, through the mapping relationship between the identification information of the target object 3 and the first spatial position of the target object 3 that is preset, a mapping relationship between the independent image and the first spatial position is established.
[0055] Step S103 , identifying abnormal actions of the independent images of each target object 3 , and obtaining the abnormal action type of the suspicious target object.
[0056] The suspicious target object refers to a target object 3 with abnormal movements. The disclosed embodiment represents characteristic information of abnormal movements through abnormal movement types. The abnormal movement types include: eye abnormality type, left hand abnormality type, right hand abnormality type, left foot abnormality type and right foot abnormality type. For example, in the examination room, the eye abnormality type indicates that the student's eyes are looking in the left hand direction, right hand direction or behind the body; the left hand abnormality type and / or the right hand abnormality type indicate that the student's left hand and / or right hand are placed under the table, or the left hand and / or right hand are beyond the space of their seat; the left foot abnormality type and / or the right foot abnormality type indicate that the student's left foot and / or right foot are beyond the space of their seat.
[0057] By inputting the independent image of each target object 3 into the trained action recognition model, the abnormal action type of the suspicious target object can be obtained.
[0058] The action recognition model can be obtained based on previous historical action images, for example, the action recognition model is trained using historical action images as training samples. The process of identifying abnormal action types of action images according to the action recognition model is not described in detail in this embodiment, and can be implemented with reference to various implementation methods in the prior art.
[0059] Step S104 , obtaining a second area parameter value and a second camera parameter value of at least one second camera 2 set in the limited space 4 according to the first spatial position and abnormal action type of the suspicious target object.
[0060] The second camera parameter value belongs to a camera parameter value; the second area parameter value belongs to an area parameter value.
[0061] The second area parameter value and the second camera parameter value are used to adjust the second camera 2 to track abnormal movements of suspicious target objects.
[0062] like Figure 2 As shown, a second camera 2 is set in the limited space 4, and the second area parameter value and the second camera parameter value of each second camera 2 are adjustable. The second camera 2 is used to track abnormal movements of suspicious target objects. For example, when it is found that the right hand of a student exceeds the space of his seat, the student is listed as a suspicious target object, and the abnormal movement type is the right hand abnormal type, then the second area parameter value and the second camera parameter value of at least one second camera 2 set in the limited space 4 are adjusted to make the second camera 2 track and shoot the right hand movement of the student.
[0063] In some specific embodiments, the step of obtaining a second area parameter value and a second camera parameter value of at least one second camera 2 set in the limited space 4 according to the first spatial position and the abnormal action type of the suspicious target object includes the following steps:
[0064] Step S104-1, obtaining a preset angle range of the suspicious target object based on the abnormal action type of the suspicious target object.
[0065] In this specific embodiment, according to the characteristics of each abnormal action type, a preset angle range for the horizontal plane in the three-dimensional coordinate system is set for it. Figure 2 The upper part is the position of the podium, and the student facing the podium is the correct action, so start rotating clockwise with the y-axis as the reference. For the eye abnormality type, the preset angle range is set to an angle range of 90° to 270°; for the left hand abnormality type, the preset angle range is set to an angle range of 180° to 360°; for the right hand abnormality type, the preset angle range is set to an angle range of 0° to 180°; for the left foot abnormality type, the preset angle range is set to an angle range of -90° to 45°; for the right foot abnormality type, the preset angle range is set to an angle range of -45° to 90°.
[0066] Step S104 - 2 , determining at least one second spatial position corresponding to the suspicious target object according to the preset angle range and the first spatial position of the suspicious target object and the preset spatial position of each second camera 2 .
[0067] The second spatial position refers to a preset spatial position in which the second camera 2 capable of tracking abnormal movements of a suspicious target object is arranged in the limited space 4 .
[0068] If the second camera 2 is blocked by a suspicious target object at the preset spatial position and cannot capture the abnormal action, the preset spatial position cannot be used as the second spatial position. For example, if a student is found to have an abnormal right hand type, the second camera 2 set on the left side of the student cannot capture the abnormal right hand action.
[0069] In order to improve the accuracy of capturing, a plurality of second cameras 2 meeting the requirements may be determined to participate in capturing the abnormal action.
[0070] In some specific embodiments, the step of determining at least one second spatial position corresponding to the suspicious target object according to the preset angle range and the first spatial position of the suspicious target object and the preset spatial position of each second camera 2 comprises the following steps:
[0071] Step S104-2-1, obtaining a current camera angle 5 of the suspicious target object according to a preset angle range and a first spatial position of the suspicious target object.
[0072] The current camera angle 5 is set with the first projection position of the first spatial position on the horizontal plane as the vertex position and a preset angle range on the horizontal plane as the angle value.
[0073] For example, taking the above-mentioned three-dimensional coordinate space as an example, the x-axis and the y-axis form a horizontal plane, that is, the classroom floor; the first projection position formed by the student's first spatial position on the classroom floor is used as the vertex position of the current camera angle 5, and the current camera angle 5 value is a preset angle range.
[0074] In this specific embodiment, the second camera 2 capable of tracking abnormal movements of the suspicious target object is determined through the current camera angle 5 .
[0075] Step S104-2-2, based on the current camera angle 5 of the suspicious target object and the second projection position of each second camera 2, all second projection positions within the current camera angle 5 of the suspicious target object are determined.
[0076] The second projection position refers to the projection position of the preset spatial position of the second camera 2 on the horizontal plane.
[0077] Step S104-2-3, based on the relationship between the first projection position of the suspicious target object and the second projection position within the current camera angle 5, the second projection position is screened to determine at least one screened second projection position.
[0078] The purpose of screening is to find a second camera 2 that meets a preset imaging condition among the second cameras 2 that can track abnormal movements of the suspicious target object, so as to generate a clear imaging video.
[0079] Specifically, based on the relationship between the first projection position of the suspicious target object and the second projection position within the current camera angle 5, screening the second projection position to determine at least one screened second projection position includes the following steps:
[0080] Step S104-2-3-1, calculating the relationship value between the first projection position of the suspicious target object and each second projection position within the current camera angle 5 corresponding to the suspicious target object.
[0081] In a specific embodiment, the calculation of the relationship between the first projection position of the suspicious target object and each second projection position within the current camera angle 5 of the corresponding suspicious target object comprises the following steps:
[0082] Step S104-2-3-1a-1, calculating the distance value between the first projection position of the suspicious target object and each second projection position within the current camera angle 5 corresponding to the suspicious target object.
[0083] The relationship value includes a distance value.
[0084] For a suspicious target object, the distance values are calculated between the first projection position of the suspicious target object and each second projection position within the current camera angle 5 of the suspicious target object.
[0085] Step S104-2-3-1a-2, in response to at least one distance value of the suspicious target object being less than or equal to a preset screening threshold, determining a second projection position associated with the distance value as a screened second projection position.
[0086] That is, the second camera 2 that is closer to the abnormal movement of the suspicious target object is selected from the second cameras 2 that can track the abnormal movement of the suspicious target object, so that the video image capturing the abnormal movement can be larger and clearer.
[0087] In another specific embodiment, the calculating of the relationship between the first projection position of the suspicious target object and each second projection position within the current camera angle 5 of the corresponding suspicious target object comprises the following steps:
[0088] Step S104-2-3-1b-1, based on the first projection position of the suspicious target object and each second projection position within the current camera angle 5 corresponding to the suspicious target object, respectively generate a first straight line corresponding to the suspicious target object.
[0089] For a suspicious target object, a first straight line is generated between the first projection position of the suspicious target object and each second projection position within the current camera angle 5 of the suspicious target object.
[0090] Step S104-2-3-1b-2, determine that the angle bisector of the current camera angle 5 of the suspicious target object is the second straight line corresponding to the suspicious target object.
[0091] A ray is drawn from the vertex position of the current camera angle 5 to divide the current camera angle 5 into two identical angles. This ray is the angle bisector of the current camera angle 5.
[0092] Step S104-2-3-1b-3, calculate the angle between the first straight line and the second straight line of the suspicious target object 6.
[0093] The relationship value includes an angle value of 6.
[0094] Step S104-2-3-1b-4, in response to at least one angle value 6 of the suspicious target object being less than or equal to a preset screening threshold, determining the second projection position associated with the angle value 6 as the screened second projection position.
[0095] That is, the second camera 2 with a smaller angle value 6 is selected from the second cameras 2 that can track the abnormal movement of the suspicious target object. The second camera 2 with a smaller angle value 6 means that it is closer to the abnormal movement of the suspicious target object, can face the abnormal movement head-on, and has a better camera angle, so that the video image capturing the abnormal movement can be larger and clearer.
[0096] Step S104-2-4, determining that the preset spatial position corresponding to the filtered second projection position is the second spatial position.
[0097] Since the second projection position is the projection position of the preset spatial position of the second camera 2 on the horizontal plane, based on this, the second spatial position of the second camera 2 can be determined.
[0098] Step S104-3, obtaining a second area parameter value and a second camera parameter value of a second camera 2 set at the second spatial position according to the first spatial position of the suspicious target object and the second spatial position corresponding to the suspicious target object.
[0099] The process of obtaining the second area parameter value and the second camera parameter value of the second camera 2 for the suspicious target object through the first spatial position and the second spatial position is not described in detail in this embodiment, and can be implemented with reference to various implementation methods in the prior art.
[0100] Step S105 , adjusting the second camera 2 based on the second area parameter value and the second camera parameter value of the second camera 2 to generate a video capturing the abnormal action.
[0101] The disclosed embodiment obtains the abnormal action type of the suspicious target object through the video graphics captured by the multiple first cameras 1 set in the limited space 4, and then obtains the second area parameter value and the second camera parameter value of the second camera 2 through the first spatial position and the abnormal action type of the suspicious target object, thereby adjusting the second camera 2 to generate a video capturing the abnormal action. The accuracy of capturing the abnormal action and the clarity of the imaging video are improved.
[0102] Example 2
[0103] The present disclosure also provides an apparatus embodiment that is consistent with the above-mentioned embodiment, and is used to implement the method steps described in the above-mentioned embodiment. The explanation based on the same name meaning is the same as that of the above-mentioned embodiment, and has the same technical effect as that of the above-mentioned embodiment, and will not be repeated here.
[0104] like Figure 3 As shown, the present disclosure provides a device 300 for capturing abnormal motion of a target object, comprising:
[0105] The image acquisition unit 301 is used to acquire video images respectively shot at the same time point by a plurality of first cameras arranged in a limited space, wherein the first camera parameter value and the first area parameter value of each first camera for the respective shooting area are fixed values, and all the video images shot at the same time point include images shot in all directions for the target objects occupying the respective fixed spaces;
[0106] An image segmentation unit 302 is used to perform image segmentation on the video image to obtain at least one independent image of each target object and a first spatial position of the target object to which each independent image belongs;
[0107] The abnormality identification unit 303 is used to identify abnormal actions of each independent image of the target object and obtain the abnormal action type of the suspicious target object;
[0108] A parameter value acquisition unit 304 is used to acquire a second area parameter value and a second camera parameter value of at least one second camera set in the limited space according to the first spatial position and the abnormal action type of the suspicious target object, wherein the second area parameter value and the second camera parameter value are used to adjust the second camera to track the abnormal action of the suspicious target object;
[0109] The video capturing unit 305 is configured to adjust the second camera based on the second area parameter value and the second camera parameter value of the second camera to generate a video capturing the abnormal action.
[0110] Optionally, the parameter value acquiring unit 304 includes:
[0111] A first obtaining subunit, configured to obtain a preset angle range of the suspicious target object based on the abnormal action type of the suspicious target object;
[0112] A first determining subunit is used to determine at least one second spatial position corresponding to the suspicious target object according to the preset angle range and the first spatial position of the suspicious target object and the preset spatial position of each second camera, wherein the second spatial position refers to a preset spatial position in the limited space where a second camera capable of tracking abnormal movements of the suspicious target object is set;
[0113] The second obtaining subunit is used to obtain a second area parameter value and a second camera parameter value of a second camera set at the second spatial position according to the first spatial position of the suspicious target object and the second spatial position corresponding to the suspicious target object.
[0114] Optionally, the first determining subunit includes:
[0115] A third obtaining subunit is used to obtain a current camera angle of the suspicious target object according to a preset angle range and a first spatial position of the suspicious target object, wherein the current camera angle is set with a first projection position of the first spatial position on a horizontal plane as a vertex position and with a preset angle range on a horizontal plane as an angle value;
[0116] A second determining subunit is used to determine all second projection positions within the current camera angle of the suspicious target object based on the current camera angle of the suspicious target object and the second projection position of each second camera, wherein the second projection position refers to the projection position of the preset spatial position of the second camera on the horizontal plane;
[0117] A first screening subunit is used to screen the second projection position of the suspicious target object based on the relationship between the first projection position of the suspicious target object and the second projection position within the current camera angle, and determine at least one screened second projection position;
[0118] The third determining subunit is used to determine the preset spatial position corresponding to the screened second projection position as the second spatial position.
[0119] Optionally, the first screening subunit includes:
[0120] A first calculation subunit is used to calculate the relationship value between the first projection position of the suspicious target object and each second projection position within the current camera angle of the corresponding suspicious target object;
[0121] The response subunit is used to determine, in response to at least one relationship value of the suspicious target object being less than or equal to a preset screening threshold, a second projection position associated with the relationship value as a screened second projection position.
[0122] Optionally, the first computing subunit includes:
[0123] The second calculation subunit is used to calculate the distance value between the first projection position of the suspicious target object and each second projection position within the current camera angle of the corresponding suspicious target object, and the relationship value includes the distance value.
[0124] Optionally, the first computing subunit includes:
[0125] A straight line generating subunit, configured to respectively generate a first straight line corresponding to the suspicious target object based on the first projection position of the suspicious target object and each second projection position within the current camera angle corresponding to the suspicious target object;
[0126] A straight line determination subunit, used to determine the angle bisector of the current camera angle of the suspicious target object as a second straight line corresponding to the suspicious target object;
[0127] The third calculation subunit is used to calculate the angle value between the first straight line and the second straight line of the suspicious target object, and the relationship value includes the angle value.
[0128] Optionally, the abnormal action types include: eye abnormality type, left hand abnormality type, right hand abnormality type, left foot abnormality type and right foot abnormality type.
[0129] The disclosed embodiment obtains the abnormal action type of the suspicious target object through the video graphics captured by multiple first cameras set in a limited space, and then obtains the second area parameter value and the second camera parameter value of the second camera through the first spatial position and abnormal action type of the suspicious target object, thereby adjusting the second camera to generate a video capturing the abnormal action. The accuracy of capturing the abnormal action and the clarity of the imaging video are improved.
[0130] Example 3
[0131] like Figure 4 As shown, this embodiment provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method steps described in the above embodiment.
[0132] Example 4
[0133] An embodiment of the present disclosure provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the method steps described in the above embodiment.
[0134] Example 5
[0135] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0136] like Figure 4As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In RAM 403, various programs and data required for the operation of the electronic device are also stored. The processing device 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0137] Typically, the following devices may be connected to the I / O interface 405: input devices 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 405 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 408 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 409. The communication devices 409 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0138] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0139] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0140] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0141] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
Claims
1. A method for capturing abnormal actions of a target object, characterized in that: include: Acquire video images captured at the same time by a plurality of first cameras arranged in a limited space, wherein a first camera parameter value and a first area parameter value of each first camera for a respective shooting area are fixed values, and all video images captured at the same time include images captured in all directions for a target object occupying the respective fixed space; Performing image segmentation on the video image to obtain at least one independent image of each target object and a first spatial position of the target object to which each independent image belongs; Perform abnormal motion identification on the independent image of each target object to obtain the abnormal motion type of the suspicious target object, wherein the abnormal motion type includes: eye abnormality type, left hand abnormality type, right hand abnormality type, left foot abnormality type and right foot abnormality type; Acquiring a second area parameter value and a second camera parameter value of at least one second camera set in the limited space according to the first spatial position and the abnormal action type of the suspicious target object, wherein the second area parameter value and the second camera parameter value are used to adjust the second camera to track the abnormal action of the suspicious target object, including: acquiring a preset angle range of the suspicious target object based on the abnormal action type of the suspicious target object; Determining at least one second spatial position corresponding to the suspicious target object according to the preset angle range and the first spatial position of the suspicious target object and the preset spatial position of each second camera, wherein the second spatial position refers to a preset spatial position in the limited space where a second camera capable of tracking abnormal movements of the suspicious target object is set, including: Obtaining a current camera angle of the suspicious target object according to a preset angle range and a first spatial position of the suspicious target object, wherein the current camera angle is set with a first projection position of the first spatial position on a horizontal plane as a vertex position and with a preset angle range on a horizontal plane as an angle value; Determine all second projection positions within the current camera angle of the suspicious target object based on the current camera angle of the suspicious target object and the second projection position of each second camera, wherein the second projection position refers to the projection position of the preset spatial position of the second camera on the horizontal plane; Based on the relationship between the first projection position of the suspicious target object and the second projection position within the current camera angle, the second projection position is screened to determine at least one screened second projection position; Determine the preset spatial position corresponding to the filtered second projection position as the second spatial position; Obtaining a second area parameter value and a second camera parameter value of a second camera set at the second spatial position according to the first spatial position of the suspicious target object and the second spatial position corresponding to the suspicious target object; The second camera is adjusted based on the second area parameter value and the second camera parameter value of the second camera to generate a video capturing the abnormal action.
2. The method according to claim 1, characterized in that: The step of screening the second projection positions based on the relationship between the first projection position of the suspicious target object and the second projection position within the current camera angle to determine at least one screened second projection position includes: Calculating a relationship value between a first projection position of the suspicious target object and each second projection position within a current camera angle corresponding to the suspicious target object; In response to at least one relationship value of the suspicious target object being less than or equal to a preset screening threshold, a second projection position associated with the relationship value is determined as a screened second projection position.
3. The method according to claim 2, characterized in that The calculating of the relationship between the first projection position of the suspicious target object and each second projection position of the corresponding suspicious target object within the current camera angle includes: The distance values between the first projection position of the suspicious target object and each second projection position within the current camera angle corresponding to the suspicious target object are calculated, and the relationship value includes the distance value.
4. The method according to claim 2, characterized in that: The calculating of the relationship between the first projection position of the suspicious target object and each second projection position of the corresponding suspicious target object within the current camera angle includes: Based on the first projection position of the suspicious target object and each second projection position within the current camera angle of the corresponding suspicious target object, a first straight line corresponding to the suspicious target object is generated respectively; Determine that the angle bisector of the current camera angle of the suspicious target object is a second straight line corresponding to the suspicious target object; The angle value between the first straight line and the second straight line of the suspicious target object is calculated, and the relationship value includes the angle value.
5. A device for capturing abnormal movements of a target object, characterized in that: include: An image acquisition unit is used to acquire video images respectively shot at the same time point by a plurality of first cameras arranged in a limited space, wherein a first camera parameter value and a first area parameter value of each first camera for a respective shooting area are fixed values, and all video images shot at the same time point include images shot in all directions for a target object occupying the respective fixed space; An image segmentation unit, configured to perform image segmentation on the video image to obtain at least one independent image of each target object and a first spatial position of the target object to which each independent image belongs; An abnormality identification unit is used to identify abnormal actions of each independent image of the target object and obtain abnormal action types of the suspicious target object, wherein the abnormal action types include: eye abnormality type, left hand abnormality type, right hand abnormality type, left foot abnormality type and right foot abnormality type; A parameter value acquisition unit, used for acquiring a second area parameter value and a second camera parameter value of at least one second camera set in the limited space according to the first spatial position and the abnormal action type of the suspicious target object, wherein the second area parameter value and the second camera parameter value are used to adjust the second camera to track the abnormal action of the suspicious target object, including: obtaining a preset angle range of the suspicious target object based on the abnormal action type of the suspicious target object; determining at least one second spatial position corresponding to the suspicious target object according to the preset angle range and the first spatial position of the suspicious target object and the preset spatial position of each second camera, wherein the second spatial position refers to the preset spatial position of the second camera capable of tracking the abnormal action of the suspicious target object set in the limited space; the parameter value acquisition unit also includes: A third obtaining subunit is used to obtain a current camera angle of the suspicious target object according to a preset angle range and a first spatial position of the suspicious target object, wherein the current camera angle is set with a first projection position of the first spatial position on a horizontal plane as a vertex position and with a preset angle range on a horizontal plane as an angle value; A second determining subunit is used to determine all second projection positions within the current camera angle of the suspicious target object based on the current camera angle of the suspicious target object and the second projection position of each second camera, wherein the second projection position refers to the projection position of the preset spatial position of the second camera on the horizontal plane; A first screening subunit is used to screen the second projection position of the suspicious target object based on the relationship between the first projection position of the suspicious target object and the second projection position within the current camera angle, and determine at least one screened second projection position; A third determining subunit is used to determine the preset spatial position corresponding to the screened second projection position as the second spatial position; Obtaining a second area parameter value and a second camera parameter value of a second camera set at the second spatial position according to the first spatial position of the suspicious target object and the second spatial position corresponding to the suspicious target object; The video capturing unit is used to adjust the second camera based on the second area parameter value and the second camera parameter value of the second camera to generate a video capturing the abnormal action.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
7. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 5.
