A method for counting the number of people in a military camp based on edge computing
By using an edge computing system to identify soldiers and company markings within military camp images, the problem of time-consuming headcount statistics in military camps has been solved in existing technologies, enabling fast and accurate headcount statistics and display of missing personnel locations.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUIZHIAN INFORMATION TECH CO LTD
- Filing Date
- 2022-08-22
- Publication Date
- 2026-06-09
AI Technical Summary
Existing methods for counting the number of people assembled in military camps are time-consuming, especially in emergency situations where it is difficult to quickly and accurately count the number of people in an entire army.
An edge computing system is used for image recognition to identify soldiers and determine the status of the assembled troops. The system identifies the assembly status of the company by recognizing markers, generates an assembly matrix, and calculates the number of missing personnel.
It enables rapid and accurate census of military personnel, saving time and improving efficiency, and can intuitively display the location and unique identifier of missing personnel.
Smart Images

Figure CN115620218B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of edge computing technology, and in particular relates to a method for counting the number of people in a military camp based on edge computing. Background Technology
[0002] Military assembly is often a compulsory course for new recruits in Chinese military units, military academies, and public security academies. It plays a crucial role in maintaining the combat effectiveness and discipline of the troops, and objectively reflects the efficiency of the unit's combat readiness. A necessary part of military assembly is counting the number of personnel. There are two main methods for counting the number of personnel during military assembly: one is to have the first row and first column personnel count off, and then calculate the number of personnel by multiplying the row and column numbers; the other is to have everyone count off in turn. The first method is faster than the second, but the error in counting the number of personnel is greater. However, both the first method (counting off in the first row and first column) and the second method (counting off in turn) require a significant amount of time. In urgent situations, there is not enough time for sequential counting, making it difficult to obtain an accurate number of personnel for the formation immediately. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a method for counting the number of soldiers at a military camp assembly point based on edge computing, which solves the problem of long time consumption in existing methods for counting the number of soldiers at a military camp assembly point. The present invention can intelligently and automatically identify soldiers in the image of the assembly point through the image recognition method of the edge computing system, and can intelligently determine the completion status of the assembly, thereby improving the efficiency of counting the number of soldiers at a military camp assembly point and saving counting time.
[0004] This invention provides a method for counting the number of people in a military camp based on edge computing, including:
[0005] Images of the military assembly point within the barracks are captured using cameras; the assembly point is marked with a fixed location for each soldier during assembly.
[0006] Soldiers within the image of the assembly point are identified using a preset image recognition method of the edge computing system.
[0007] The identification results determine whether the entire army has assembled.
[0008] In an optional embodiment, identifying soldiers within the image of the assembly point using a preset image recognition method of the edge computing system includes:
[0009] The image recognition method of the edge computing system is used to identify the identification marks of different companies in the image of the assembly point and the position of each identification mark; wherein, the identification marks are pre-set on the top of the soldiers' hats, and different identification marks correspond to soldiers of different companies;
[0010] The step of determining whether the entire army has assembled based on the identification results includes:
[0011] The location of the identification markers indicates whether the army has assembled.
[0012] In an optional embodiment, determining whether the entire army has assembled based on the location of the identification marker includes:
[0013] The judgment value for the completion of the assembly of the i-th company is calculated according to the first formula; i = 1, 2, ..., N; N is the number of companies included in the entire army:
[0014] Determine if the value of the judgment that the i-th company has finished assembling is equal to 1;
[0015] If the judgment value for the completion of the assembly of the i-th company is equal to 1, then it is determined that the assembly of the i-th company is complete.
[0016] If the value indicating that the i-th company has finished assembling is not equal to 1, then it is determined that the i-th company has not finished assembling.
[0017] The first formula is:
[0018]
[0019] In the first formula, H(i) represents the judgment value that the i-th company has completed assembly; a(i) represents the position of the a-th identification mark among the identification marks of the i-th company identified from the image of the assembly point; a = 1, 2, ..., m; m represents the total number of identification marks corresponding to the i-th company identified from the image of the assembly point; a Smin1 (i) represents the position of the identification marker closest to a(i) among the identification markers of the i-th company; a Smin2 (i) represents the position of the second closest identification marker to a(i) among the identification markers of the i-th company; a(i)→a Smin1 (i) indicates that position a(i) is compared with a Smin1 (i) Make a connection; a(i)→a Smin2 (i) indicates that position a(i) is compared with a Smin2 (i) Make connections; Z{(||or⊥){[a(i)→a Smin1 (i)],[a(i)→a Smin2 (i)]}} represents the judgment [a(i)→a Smin1 (i)] and [a(i)→a Smin2 (i) is a function to determine whether two lines are perpendicular or parallel. If the result is true, the function value is 1; if the result is false, the function value is 0.
[0020] In an optional embodiment, before capturing images of the troop assembly point within the military camp using a camera, the method further includes:
[0021] The fixed positions of all soldiers in each company at the assembly point are grouped together to form the position matrix of that company:
[0022] Alternatively, if the fixed positions of all soldiers in the current company are insufficient to form a matrix, then several blank positions are added, and the fixed positions of all soldiers in the current company and the added blank positions are combined to form the position matrix of the company.
[0023] In an optional embodiment, after determining that the i-th company has been assembled, the method further includes:
[0024] Display the overall army position map composed of the position matrices of each company, and mark the fixed position points where soldiers are currently missing within the overall army position map.
[0025] In an optional embodiment, after determining that the i-th company has been assembled, the method further includes:
[0026] Based on the positions of all identification markers corresponding to the i-th company identified from the image of the assembly point, a set matrix for the i-th company is generated. The set matrix for the i-th company corresponds to the position matrix of the i-th company. If a soldier of the i-th company is identified at any fixed position point, the corresponding element in the set matrix of the i-th company has a value of 1; if a soldier of the i-th company is identified at any fixed position point, the corresponding element in the set matrix of the i-th company has a value of 0. Furthermore, the element in the set matrix of the i-th company corresponding to an empty position in the position matrix of that company has a value of 2.
[0027] Based on the set matrix of the current i-th company and the predetermined full-strength set matrix, the number of missing personnel in the current i-th company is calculated using the second formula; wherein, the full-strength set matrix of the i-th company is the set matrix generated when the i-th company is at full strength.
[0028] Determine if the number of missing persons in the current i-th company is equal to 0;
[0029] If the number of missing persons in the current i-th company is 0, then the i-th company is considered to be full.
[0030] If the number of missing persons in the current i-th company is not equal to 0, then the missing persons matrix of the current i-th company is determined based on the third formula according to the current set matrix and the full set matrix of the i-th company. The missing persons matrix of the i-th company corresponds to the position matrix of the i-th company. If the element value of any position in the missing persons matrix of the i-th company is 0, it means that the soldier corresponding to the corresponding position in the position matrix of the i-th company is located at his / her fixed position point. If the element value of any position in the missing persons set matrix of the i-th company is 1, it means that the soldier corresponding to the corresponding position in the position matrix of the i-th company is not located at his / her fixed position point.
[0031] The step of marking the fixed locations where soldiers are currently missing within the assembly location map includes:
[0032] Take the position of the element with a value of 1 in the man shortage matrix of the current i-th company as the target position;
[0033] In the position matrix of the i-th company within the overall troop assembly position map, the fixed position point corresponding to the target position is marked with a specified color;
[0034] The second formula is:
[0035] Δj(i) = sum[|J0(i) - J(i)|]
[0036] In the second formula, Δj(i) represents the number of missing persons in the i-th company; J(i) represents the set matrix of the current i-th company; J0(i) represents the set matrix of the full i-th company; |J0(i)-J(i)| represents the new matrix obtained by subtracting the set matrix of the current i-th company from the set matrix of the full i-th company and taking the absolute value; sum[] represents summing the values of each element in the matrix within the parentheses;
[0037] The third formula is:
[0038] R(i_k)=[|J0(i)-J(i)|](k)
[0039] In the third formula, R(i_k) represents the man shortage matrix of the current i-th company; [|J0(i)-J(i)|](k) represents the element value at the k-th position in the man shortage matrix of the current i-th company.
[0040] In an optional embodiment, when forming the position matrix of each company, the correspondence between each fixed position point in the position matrix of each company and the unique identifier of the soldier is also stored;
[0041] After taking the position of the element with a value of 1 in the man shortage matrix of the current i-th company as the target position, the method further includes:
[0042] Obtain the unique identifier of the soldier corresponding to the target location to obtain the set of unique identifiers of the absent soldiers;
[0043] The method of marking the fixed position point corresponding to the target position in the position matrix of the i-th company within the overall troop assembly position map with a specified color further includes:
[0044] The system displays the number of missing personnel in each company and the unique identifiers of the absent soldiers.
[0045] This invention provides a method for counting the number of soldiers assembled in a military camp based on edge computing. First, images of the assembly point within the military camp are acquired. Then, the image recognition method of an edge computing system identifies the soldiers within the images. Finally, the identification results determine whether the entire assembly has been completed. This invention can intelligently and automatically identify soldiers within images of the assembly point using the image recognition method of an edge computing system, and can intelligently determine the completion status of the assembly, thus improving the efficiency of counting the number of soldiers assembled in the military camp and saving statistical time. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 A flowchart illustrating a method for counting the number of people in a military camp based on edge computing, provided in an embodiment of the present invention. Detailed Implementation
[0048] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0049] It should be understood that the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0050] Figure 1 This is a flowchart illustrating a method for counting the number of people in a military camp based on edge computing, provided as an embodiment of the present invention. See also... Figure 1 The method includes the following steps S101-S103:
[0051] S101: Capture images of the military assembly point within the barracks using cameras.
[0052] The assembly point is designated as the fixed location for each soldier in the army when they assemble.
[0053] S102: Identify the soldiers in the image of the assembly point using the preset image recognition method of the edge computing system.
[0054] S103: Determine whether the entire army has assembled based on the recognition results.
[0055] The beneficial effects of the above technical solution are as follows: The embodiment of the present invention provides a method for counting the number of soldiers assembled in a military camp based on edge computing. First, images of the assembly point within the military camp are collected. Then, the image recognition method of the edge computing system is used to identify the soldiers in the images. Finally, the identification results are used to determine whether the entire military unit has assembled. This invention can intelligently and automatically identify soldiers in images of the assembly point using the image recognition method of the edge computing system, and can intelligently determine the completion of the assembly, thus improving the efficiency of counting the number of soldiers assembled in the military camp and saving counting time.
[0056] As an optional embodiment, step S102 may include: identifying the identification marks of different companies in the image of the assembly point and the position of each identification mark by using a preset image recognition method of the edge computing system; wherein, the identification marks are preset on the top of the soldiers' hats, and different identification marks correspond to soldiers of different companies;
[0057] Step S103 may include: determining whether the entire army has assembled based on the location of the identification marker.
[0058] The beneficial effects of the above technical solution are as follows: each assembly team at the military assembly point is assembled in the form of a company, and each soldier in each company has a fixed position in the assembly team. The hats of soldiers from different companies are equipped with different identification marks. The edge computing system can identify the company to which the current assembly team belongs and the number of people in each company through the identification marks on the hats. At the same time, it can also know whether each company has completed its assembly, which has the advantage of high execution efficiency.
[0059] As an optional embodiment, determining whether the entire army has assembled based on the position of the identification marker may include the following steps S201-S206:
[0060] S201: Calculate the judgment value for when the i-th company has finished assembling according to the first formula;
[0061] Where i = 1, 2, ..., N; N is the number of companies included in the entire army, initially valued at 1. The first formula is:
[0062]
[0063] In the first formula, H(i) represents the judgment value that the i-th company has completed assembly; a(i) represents the position of the a-th identification mark among the identification marks of the i-th company identified from the image of the assembly point; a = 1, 2, ..., m; m represents the total number of identification marks corresponding to the i-th company identified from the image of the assembly point; a Smin1 (i) represents the position of the identification marker closest to a(i) among the identification markers of the i-th company; a Smin2 (i) represents the position of the second closest identification marker to a(i) among the identification markers of the i-th company; a(i)→a Smin1 (i) indicates that position a(i) is compared with a Smin1 (i) Make a connection; a(i)→a Smin2 (i) indicates that position a(i) is compared with a Smin2 (i) Make connections; Z{(||or⊥){[a(i)→a Smin1 (i)],[a(i)→a Smin2 (i)]}} represents the judgment [a(i)→a Smin1 (i)] and [a(i)→a Smin2 (i) is a function to determine whether two lines are perpendicular or parallel. If the result is true, the function value is 1; if the result is false, the function value is 0.
[0064] S202: Determine if the judgment value for the completion of the assembly of the i-th company is equal to 1; if yes, proceed to step S203, otherwise proceed to step S204.
[0065] S203: Determine that the i-th company has assembled, and then proceed to step S205;
[0066] S204: It is determined that the i-th company has not yet assembled;
[0067] S205: Determine if i is equal to N. If yes, exit the process; otherwise, execute S206.
[0068] S206: Set i = i + 1, then return to step S201.
[0069] The beneficial effects of the above technical solution are as follows: by using the first formula (1) to determine whether the current team has been assembled based on the location information (or coordinate positioning information) of the identification mark on the hat of the soldier corresponding to each company identified by the edge computing system, the assembly time of each team can be calculated while counting personnel, thus facilitating the reorganization of the company.
[0070] As an optional embodiment, before step S101, the method may further include: gathering the fixed position points of all soldiers in each company at the assembly point to form a position matrix for that company; or, if the fixed position points of all soldiers in the current company are insufficient to form a matrix, adding several blank position points, and combining the fixed position points of all soldiers in the current company with the added blank position points to form the position matrix for that company. For example, if a company has 118 soldiers, a 10*12 matrix can be set up, as shown in matrix A below. In matrix A, the position with an element value of 1 represents the fixed position point of the soldier in the current company, and the position with an element value of 1 represents the added blank position point.
[0071]
[0072] Preferably, after determining that the i-th company has been assembled in step S203, the method further includes: displaying a full assembly position map composed of the position matrices of each company, and marking the fixed position points where soldiers are currently missing in the full assembly position map.
[0073] The beneficial effects of the above technical solution are as follows: Before the troops are assembled, the fixed position points of all soldiers in each company are collected to generate the position matrix of the corresponding company. This makes it easier to generate the same army assembly position map after the troops are assembled. According to the army assembly position map, the neatness of the arrangement of each full-strength company and the position of the missing soldiers in the missing-strength companies can be known.
[0074] As an optional embodiment, after determining that the i-th company has been assembled in step S203, the following steps may also be included:
[0075] S301: Based on the positions of all identification markers corresponding to the i-th company identified from the image of the assembly point, generate the set matrix of the i-th company; wherein, the set matrix of the i-th company corresponds to the position matrix of the i-th company. If a soldier of the i-th company is identified at any fixed position point, the element value at the corresponding position in the set matrix of the i-th company is 1; if a soldier of the i-th company is identified at any fixed position point, the element value at the corresponding position in the set matrix of the i-th company is 0. It is also stipulated that the element value at the position corresponding to the blank position point in the position matrix of the i-th company is 2.
[0076] S302: Based on the set matrix of the current i-th company and the predetermined full-strength set matrix, calculate the number of missing personnel in the current i-th company according to the second formula; wherein, the full-strength set matrix of the i-th company is the set matrix generated when the i-th company is at full strength;
[0077] The second formula is:
[0078] Δj(i)=sum[|J0(i)-J(i)|] (2)
[0079] In the second formula, Δj(i) represents the number of missing persons in the i-th company; J(i) represents the set matrix of the current i-th company; J0(i) represents the set matrix of the full i-th company; |J0(i)-J(i)| represents the new matrix obtained by subtracting the set matrix of the current i-th company from the set matrix of the full i-th company and taking the absolute value; sum[] represents summing the values of each element in the matrix within the parentheses;
[0080] S303: Determine if the number of missing persons in the current i-th company is equal to 0. If yes, execute S304; otherwise, execute S305.
[0081] S304: Determine that the i-th company is full;
[0082] S305: Based on the current set matrix and full set matrix of the i-th company, determine the current man shortage matrix of the i-th company according to the third formula; the man shortage matrix of the i-th company corresponds to the position matrix of the i-th company. If the element value of any position in the man shortage matrix of the i-th company is 0, it means that the soldier corresponding to the corresponding position in the position matrix of the i-th company is located at his / her fixed position point. If the element value of any position in the man shortage set matrix of the i-th company is 1, it means that the soldier corresponding to the corresponding position in the position matrix of the i-th company is not located at his / her fixed position point.
[0083] The third formula is:
[0084] R(i_k)=[|J0(i)-J(i)|](k) (3)
[0085] In the third formula, R(i_k) represents the man shortage matrix of the current i-th company; [|J0(i)-J(i)|](k) represents the element value at the k-th position in the man shortage matrix of the current i-th company. If R(i_k) = 0, the k-th position in the i-th company will not be marked in red; if R(i_k) = 1, the k-th position in the i-th company will be marked in red.
[0086] For example, according to the above method, assuming that the current company has 18 people and the current company position matrix is B, then the full-staff set matrix of the company is J0. In S301, the current set matrix of the company is generated based on the identified identification flags of the current presence of the company, which is J. Subsequently, in S305, the current missing person matrix of the company is generated as R. B, J0, J, and R are as follows:
[0087]
[0088]
[0089] According to the second formula, the number of people missing in the current company is 2.
[0090] The step of marking the fixed locations where soldiers are currently missing within the assembly location map includes:
[0091] S401: Take the position of the element with a value of 1 in the missing person matrix of the current i-th company as the target position;
[0092] S402: The fixed position point corresponding to the target position in the position matrix of the i-th company in the overall army assembly position map is marked with a specified color;
[0093] The beneficial effects of the above technical solution are as follows: the second formula (2) is used to determine whether the currently assembled team is missing personnel based on the set matrix of each company and the full set matrix of each company, and then automatically and intelligently calculates the missing personnel, which reflects the automation characteristics of the system; then the third formula (3) is used to locate the missing soldiers based on the set matrix of each company and the full set matrix of each company, and the corresponding position is marked in red on the control screen (this screen is used to display the assembly position map of the army), so the position of the missing personnel can be known based on the red position on the screen, thus displaying it intuitively. The number of personnel data is clear at a glance, and a lot of time can be saved in counting the number of personnel during emergency assembly.
[0094] As an optional embodiment, when forming the position matrix of each company, the correspondence between each fixed position point in the position matrix of each company and the unique identifier of the soldier is also stored;
[0095] Preferably, after step S401, the method may further include: obtaining the unique identifier of the soldier corresponding to the target location, and obtaining a set of unique identifiers of the absent soldiers;
[0096] Step S402 may further include: displaying the number of people currently missing in each company and the set of unique identifiers of the absent soldiers.
[0097] The beneficial effects of the above technical solution are as follows: This invention can not only display the locations of missing personnel, but also display the unique identification information of soldiers who have not assembled at the assembly point, making it clear at a glance which personnel have not arrived at the assembly point, effectively improving the display friendliness and enhancing the user experience.
[0098] As can be seen from the above embodiments, the edge computing system can improve the intelligent recognition of the monitoring screen (i.e., the image of the troop assembly point), intelligently detect the number of people in the screen and display it on the screen for real-time viewing; in addition, each assembly team is assembled in the form of a company, and each soldier in each company has a fixed position in the assembly team. Soldiers from different companies have different identification marks on their hats. The edge computing system can identify the company to which the current assembly team belongs and the number of people in each company by recognizing the identification marks on the hats. At the same time, it can also know whether each company has assembled. After the teams have assembled, a set matrix of the corresponding companies is generated. According to the set matrix, the neatness of the arrangement of each full-strength company and the position of the missing soldiers in the missing-strength teams can also be known. It can intuitively display the number of people in the military camp and effectively improve the efficiency of military camp assembly personnel statistics.
[0099] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A means for the method specified in one or more boxes.
[0100] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The method specified in one or more boxes.
[0101] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the method specified in one or more boxes.
[0102] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims and their equivalents, this invention also intends to include these modifications and variations. The above descriptions are merely specific embodiments of this invention, but the scope of protection of this invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this invention should be included within the scope of protection of this invention. Therefore, the scope of protection of this invention should be determined by the scope of the claims.
Claims
1. A method for counting the number of people in a military camp based on edge computing, characterized in that, include: Images of the military assembly point within the barracks are captured using cameras; the assembly point is marked with a fixed location for each soldier during assembly. Soldiers within the image of the assembly point are identified using a preset image recognition method of the edge computing system. Determine whether the entire army has assembled based on the identification results; The step of identifying soldiers within the image of the assembly point using a preset image recognition method of the edge computing system includes: The image recognition method of the edge computing system is used to identify the identification marks of different companies in the image of the assembly point and the position of each identification mark; wherein, the identification marks are pre-set on the top of the soldiers' hats, and different identification marks correspond to soldiers of different companies; The step of determining whether the entire army has assembled based on the identification results includes: Determine whether the troops have assembled based on the location of the identification markers; The step of determining whether the entire army has assembled based on the location of the identification markers includes: Calculate the first formula. The judgment value indicating that all companies have assembled; ; The total number of companies included in the entire army; Judge the first The judgment value after all companies have assembled is equal to 1; If the first If the judgment value for the completed assembly of the nth company is equal to 1, then the nth company is determined to be... All companies have assembled; If the first If the value of the judgment after the first company has assembled is not equal to 1, then determine the first company. One company had not yet assembled; The first formula is: In the first formula, Indicates the first The judgment value indicating that all companies have assembled; The first one identified from the image of the assembly point The first of the company's identification marks The location of each identification mark; ; This indicates the corresponding first [unit] identified from the image of the assembly point. The total number of identification marks for each company; Indicates the first identified The identification mark of each company is located at the distance of the... The location of the nearest identification marker; Indicates the first identified The identification mark of each company is located at the distance of the... The location of the second nearest identification mark; Indicates the position and Make a connection; Indicates the position and Make a connection; Indicates judgment and A function to determine whether two lines are perpendicular or parallel. If the condition is true, the function value is 1; if the condition is false, the function value is 0.
2. The method for counting the number of people in a military camp based on edge computing as described in claim 1, characterized in that, Before capturing images of the military assembly point within the barracks using cameras, the process also included: The fixed positions of all soldiers in each company at the assembly point are gathered together to form the position matrix of that company; Alternatively, if the fixed positions of all soldiers in the current company are insufficient to form a matrix, then several blank positions are added, and the fixed positions of all soldiers in the current company and the added blank positions are combined to form the position matrix of the company.
3. The method for counting the number of people in a military camp based on edge computing as described in claim 2, characterized in that, In determining the first After all the companies have assembled, the following is also included: Display the overall army position map composed of the position matrices of each company, and mark the fixed position points where soldiers are currently missing within the overall army position map.
4. The method for counting the number of people in a military camp based on edge computing as described in claim 3, characterized in that, In determining the first After all the companies have assembled, the following is also included: Based on the corresponding first image identified from the image of the assembly point The location of all identification markers for each company is generated. The set matrix of the nth company; wherein, the nth company The set matrix of the company and the ... The position matrix of the 1st company corresponds to the position matrix of the 2nd company. If the 1st company is identified... If a soldier from any fixed location of any company is present, then the first... If the element at the corresponding position in the set matrix of the company has a value of 1, then the company is identified. If a soldier from any fixed location of any company is present, then the first... The element at the corresponding position in the set matrix of the nth company is 0, and it is stipulated that the nth company... The element with a value of 2 is located at the position corresponding to the blank position point in the position matrix of the company in the set matrix of the company. According to the current number The set matrix of the current company and the predetermined full set matrix are used to calculate the current company based on the second formula. The number of missing personnel in each company; among which, the number of missing personnel in the company... The full set matrix of the nth company is the nth A set matrix generated when soldiers in each company are fully enlisted; Determine the current number Is the number of missing personnel in each company equal to 0? If the current number is If the number of missing persons in a company is 0, then the number of missing persons in the first company is determined to be 0. The company is fully staffed; If the current number is If the number of missing personnel in a company is not equal to 0, then according to the number of missing personnel... The current set matrix and the full set matrix of the i-th company are used to determine the current i-th company based on the third formula. The manpower shortage matrix of the company; the first The manpower shortage matrix of the first company and the first The position matrix of the 1st company corresponds to that of the 2nd company. If any element in the man shortage matrix of a company is 0, it indicates that the missing man matrix of the company is empty. In the position matrix of each company, the soldier at the corresponding position is located at his / her fixed position point. If the first... An element with a value of 1 at any position in the man shortage set matrix of the company indicates that the company is missing a man. In the position matrix of each company, the soldier corresponding to the corresponding position is not located at his fixed position point; The step of marking the fixed locations where soldiers are currently missing within the assembly location map includes: The current number The position of the element with a value of 1 in the man shortage matrix of each company is taken as the target position; Within the assembly location map of the army The fixed position points corresponding to the target position in the position matrix of each company are marked with a specified color; The second formula is: In the second formula, Indicates the first The number of men missing in each company; Indicates the current number A matrix of sets of companies; Indicates the first A matrix of full-strength sets of each company; This indicates that the current number will be... The new matrix is obtained by subtracting the set matrix of each company from the set matrix of the full five companies and taking the absolute value; This indicates that the summation is performed on each element of the matrix enclosed in parentheses; The third formula is: In the third formula, Indicates the current number The manpower shortage matrix of each company; Indicates the current number In the manpower shortage matrix of the [number] company, the [number]th The element value at each position.
5. The method for counting the number of people in a military camp based on edge computing as described in claim 4, characterized in that, When constructing the position matrix for each company, the system also stores the correspondence between each fixed position point in the position matrix of each company and the unique identifier of the soldier. In the current number After using the positions of elements with a value of 1 in the man-deficit matrix of each company as the target positions, the method further includes: Obtain the unique identifier of the soldier corresponding to the target location to obtain the set of unique identifiers of the absent soldiers; The first in the assembly location map of the army The fixed position points corresponding to the target position in the position matrix of each company are marked with a specified color, and also include: The system displays the number of missing personnel in each company and the unique identifiers of the absent soldiers.