A collaborative data acquisition method and system based on spatially distributed multi-bino data acquisition devices

By dividing the rectangular area in the classroom and adjusting the position of the camera device, establishing a three-dimensional coordinate system, matching the fitting coordinates and calculating the shortest path, the problem of time-consuming multi-desktop focusing is solved, and a fast and efficient focusing process and monitoring accuracy are achieved.

CN118574004BActive Publication Date: 2024-10-01GUANGZHOU LOGANSOFT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411039094.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-01
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

In classrooms, when there are a large number of desktops to be identified, the focusing process of existing binocular data collection equipment takes too long and is difficult to effectively shorten.

Method used

Using a collaborative data collection method based on spatial distribution of multi-binocular data collection equipment, the classroom is divided into several rectangular areas, the installation position and angle of the camera device are adjusted, a three-dimensional coordinate system is established, the coordinates of the desktop to be identified are pre-stored, and the fitting coordinates are matched , calculate the shortest path, and dynamically adjust the focus path to optimize time efficiency.

Benefits of technology

It achieves fast and efficient focusing of multiple desktops to be identified, avoids monitoring blind spots, ensures that each desktop is only responsible for one camera device, and improves focusing accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574004B_ABST
    Figure CN118574004B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of image acquisition, and in particular to a method and system for collaborative data acquisition of multiple binocular data acquisition devices based on spatial distribution, which includes steps S10: pre-storing the desktop coordinates of all desktops to be identified in the classroom; S20: matching the area to be identified and the desktop coordinates in the area to be identified that are pre-associated with each fitting coordinate based on a number of pre-selected camera devices; S30: the camera device in each area to be identified focuses on the desktop coordinates one by one, and through an enumeration algorithm, obtains the shortest time-consuming path for the camera device in each area to complete the focusing of all desktop coordinates one by one; S40: based on the shortest time-consuming path of each area to be identified, compares the time difference between the longest time-consuming area and the shortest time-consuming area; S50: replacing the fitting coordinates by adjusting the preset displacement, and executing the above steps S20 to S40. The present application has the effect of reducing the time required for focusing when there are many desktops to be identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image acquisition, and in particular to a collaborative data acquisition method and system based on spatially distributed multiple binocular data acquisition devices. Background Art

[0002] In the prior art, a target fast focusing algorithm based on binocular data acquisition equipment has been disclosed (publication number: CN118158515A), which aims to quickly focus on the papers and objects on the students' desks. However, when the classroom area is large, the number of desks to be identified is large, making the focusing time-consuming.

[0003] Therefore, studying the collaborative data acquisition method of multiple binocular data acquisition devices based on spatial distribution has important practical significance and application value for reducing the time required for focusing when there are a large number of desktops to be identified. Summary of the invention

[0004] In order to solve the problem of taking a long time to focus on a large number of desktops to be identified, the present application provides a collaborative data acquisition method and system based on spatially distributed multiple binocular data acquisition devices.

[0005] The first object of the invention of this application is achieved through the following technical solutions:

[0006] The method for collaborative data collection of multiple binocular data collection devices based on spatial distribution includes the following steps:

[0007] S110: Divide the classroom into a number of rectangular areas based on the arrangement of the desktops to be identified;

[0008] S210: adjusting the region boundary based on the installation position and angle of the camera device;

[0009] S10: Establishing a three-dimensional coordinate system based on the classroom panoramic view, and pre-storing the desktop coordinates of all desktops to be identified in the classroom;

[0010] S20: Based on a plurality of pre-selected fitting coordinates of the camera device, matching the area to be identified that is pre-associated with each fitting coordinate and the desktop coordinates in the area to be identified;

[0011] S201: The fitting coordinates are obtained by translating and combining the x value and the y value to obtain a plurality of associated fitting coordinates;

[0012] S202: based on a plurality of associated fitting coordinates, when there is a same desktop in the matched area to be identified, matching the desktop coordinates of the same desktop in the associated area to be identified;

[0013] S203: based on the pre-stored desktop coordinates of each area to be identified, comparing the desktop coordinates of two adjacent areas, and when two adjacent areas have the same desktop coordinates, marking the desktop coordinates as duplicate coordinates, and marking the two adjacent areas as a first adjacent area and a second adjacent area;

[0014] S204: For the two adjacent areas, subtract the number of repeated coordinates to obtain the remaining number of desktop coordinates, and divide the number by 2 to obtain the average number of desktop coordinates;

[0015] S205: When the number of remaining desktop coordinates in the first adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the first adjacent area;

[0016] S206: When the number of remaining desktop coordinates in the second adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the second adjacent area;

[0017] S30: The camera device in each area to be identified focuses on the desktop coordinates one by one, and obtains the shortest time-consuming path for the camera device in each area to complete the focusing of all desktop coordinates one by one through an enumeration algorithm;

[0018] S40: Based on the shortest time-consuming path of each area to be identified, compare the time difference between the area with the longest time consumption and the area with the shortest time consumption. When the time difference is outside the preset range, select one or more desktop coordinates from the desktop coordinates of the area with the longest time consumption, and associate the selected desktop coordinates with the adjacent area to be identified. When the time difference is within the preset range, output the time consumption of the area with the longest time consumption as the total focus time of all the desktops to be identified in the classroom;

[0019] S50: Based on the preset camera device model, the fitting coordinates are changed by adjusting the preset displacement amount, and the above steps S20 to S40 are executed to select the shortest total focusing time from the total focusing times obtained by changing the fitting coordinates multiple times.

[0020] By adopting the above technical solution, firstly, the entire classroom space is divided into several rectangular areas according to the arrangement of the desktops in the classroom. Each rectangular area contains a certain number of desktops, which are the objects that the camera device needs to identify. By dividing the classroom into rectangular areas, it helps to improve the accuracy of the camera device in identifying specific desktops. Then, the boundaries of the previously divided rectangular areas are adjusted according to the actual installation position and angle of the camera device. The purpose of the adjustment is to ensure that each camera device can effectively cover its corresponding area and the image of each desktop can be clearly captured by the camera device.

[0021] When collecting desktop images of the desktops to be identified in the classroom, the purpose of step S10 is to accurately locate the position of each desktop to be identified in the classroom. First, use the panoramic image of the classroom as a reference, then establish a three-dimensional coordinate system, and finally, pre-store the three-dimensional coordinates of each desktop, which will become important reference data when the camera device focuses in the subsequent steps. In this way, the accuracy of the focusing process can be ensured, and the basis for the subsequent focus on the desktop to be identified is provided; then, the purpose of step S20 is to use the fitting coordinates of the camera device to match the desktop coordinates of the desktop to be identified that were previously pre-associated in step S10. In this way, the camera device can know which desktops need to be focused on, and can automatically focus according to these coordinates; next, the purpose of step S30 is to calculate the shortest path required when the camera device focuses on different desktops to be identified, and provide a basis for the subsequent comparison of the optimal path duration of each area. First, an enumeration algorithm is used to enumerate all possible paths in each area, that is, from the fitting coordinates of the desktop where the camera device focuses to the fitting coordinates of other desktops to be identified in the area. Next, compare the time consumption of these paths to find the representative path with the shortest time consumption. In this way, the camera device can focus along the shortest path, thereby achieving fast and efficient focusing on multiple desktops to be identified.

[0022] Then, step S40 is responsible for dynamically adjusting the focus path and optimizing the time efficiency of the focus process. First, the shortest path from the fitting coordinates of the starting desktop where the camera device focuses to the fitting coordinates of other desktops to be identified in each area is calculated, and then the time consumption of these shortest paths is compared to determine which area's shortest path consumes the longest time. If the time difference of the longest time-consuming area exceeds the preset preset range, the preselected desktop coordinates in the area are adjusted and transferred to the adjacent area to shorten the shortest path time. If the time difference is within the preset range, the duration of the longest duration area will be output, which represents the total duration required from the start of the camera device to the completion of the focus of all desktops to be identified. Finally, the purpose of step S50 is to adapt to changes in the camera device model or position, and to continuously optimize the process of focusing on the desktop to be identified. First, according to the preselected camera device model, the fitting coordinates, that is, the precise position of the camera device in three-dimensional space, are replaced. Then, according to the preset displacement, the fitting coordinates are adjusted to ensure that the camera device can accurately focus at the new position. Finally, steps S20 to S40 are re-executed, that is, from determining the focus target, calculating the shortest path, to comparing the time difference and outputting the total duration.

[0023] The pre-selected camera device fitting coordinates are used as the center point, and these fitting coordinates are translated and combined by x-values ​​and y-values ​​to obtain a number of associated fitting coordinates, thereby matching the desktop coordinates of the same desktop in the associated area to be identified. In this way, the camera device can know which desktops need to be focused on, and can automatically focus according to these coordinates.

[0024] If a desktop coordinate is found to be matched by two adjacent areas to be identified during the identification process, the desktop coordinate will be marked as a "duplicate coordinate". This means that the same desktop coordinate is covered by two identification areas. Marking duplicate coordinates can prevent the same desktop from being identified multiple times. The remaining desktop coordinates in each adjacent area to be identified are redistributed to make the number of desktop coordinates in each adjacent area as even as possible.

[0025] The step of obtaining a plurality of associated fitting coordinates by translating and combining x values ​​and y values ​​comprises the steps of:

[0026] SA: Based on several rectangular areas, output the fitting center point of each rectangular area;

[0027] SA1: Calculate the displacement of x and y values ​​based on the distance between the fitting center points of adjacent rectangular areas;

[0028] SA2: Based on the displacement, the fitting coordinates are translated, and the translated fitting coordinates are associated with the area to be identified;

[0029] SA3: When it is identified that all desktop coordinates in the to-be-identified area are within the classroom panorama, the translated fitting coordinates are output;

[0030] SA4: When it is identified that one or more desktop coordinates in the area to be identified are not in the classroom panorama, repeat steps SA1-SA3 until the translated fitting coordinates are output.

[0031] By adopting the above technical solution, through this optimized division based on the arrangement of the desktops to be identified and the installation positions of the camera devices, it can be ensured that the shooting range covers all the tables to be identified and avoids the occurrence of monitoring blind spots.

[0032] The method further comprises the steps of comparing the time difference between the longest time-consuming area and the shortest time-consuming area based on the shortest time-consuming path of each area to be identified, and selecting one or more desktop coordinates from the desktop coordinates of the longest time-consuming area when the time difference is outside a preset range, associating the selected desktop coordinates with the adjacent area to be identified, and outputting the time consumption of the longest time-consuming area as the total focus time of all the desktops to be identified in the classroom when the time difference is within a preset range.

[0033] Based on the duration parameters of the optimal path in each area, the shortest duration parameters of the optimal path in each area are used Indicates that the longest duration parameter of the optimal path in each area is expressed as express;

[0034] when , Indicates the preset range, and places the pre-selected desktop coordinates in the area corresponding to the longest duration parameter into the adjacent area;

[0035] when , the duration of the area corresponding to the output longest duration parameter is the total duration of all the desktops to be identified in the focused classroom.

[0036] By adopting the above technical solution, firstly, based on the duration parameter of the optimal path in each area, the shortest duration parameter of the optimal path in each area is expressed as , the maximum duration parameter is expressed as Then, compare and .when , which means that the time difference is within the preset range, keeping the desktop coordinate allocation of the current area unchanged, but when , which means the time difference is outside the preset range. The pre-selected desktop coordinates in the corresponding area are transferred to the adjacent area. This can shorten the time consumption.

[0037] Finally, when the time difference is within the preset range, the output The duration of the corresponding area represents the total time required from the start of focusing of the camera device to the completion of focusing of all the desktops to be identified.

[0038] The second invention objective of this application is achieved through the following technical solutions:

[0039] The collaborative data acquisition system of multiple binocular data acquisition devices based on spatial distribution includes:

[0040] Rectangular area division module: S110: Based on the arrangement of the desktops to be identified, the classroom is divided into a number of rectangular areas;

[0041] Adjusting region boundary module: S210: adjusting region boundary based on the installation position and angle of the camera device;

[0042] Pre-store desktop coordinate module: S10: Establish a three-dimensional coordinate system based on the classroom panoramic view, and pre-store the desktop coordinates of all desktops to be identified in the classroom;

[0043] Desktop coordinate matching module: S20: Based on a plurality of pre-selected fitting coordinates of the camera device, matching the area to be identified pre-associated with each fitting coordinate and the desktop coordinates in the area to be identified;

[0044] Translation and combination module: S201: The fitting coordinates are obtained by translating and combining the x value and the y value to obtain a number of associated fitting coordinates;

[0045] Association matching module: S202: Based on a plurality of associated fitting coordinates, when the same desktop exists in the matched area to be identified, the desktop coordinates of the same desktop in the associated area to be identified are matched.

[0046] Repeated coordinate marking module: S203: based on the pre-stored desktop coordinates of each area to be identified, compare the desktop coordinates of two adjacent areas, and when two adjacent areas have the same desktop coordinates, mark the desktop coordinates as repeated coordinates, and mark the two adjacent areas as the first adjacent area and the second adjacent area;

[0047] Average desktop coordinate quantity module: S204: for the two adjacent areas, subtract the number of repeated coordinates to obtain the remaining desktop coordinate quantity, and divide it by 2 to obtain the average desktop coordinate quantity;

[0048] Matching first adjacent area module: S205: When the number of remaining desktop coordinates in the first adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the first adjacent area;

[0049] Matching second adjacent area module: S206: When the number of remaining desktop coordinates in the second adjacent area is lower than the average number of desktop coordinates, the repeated coordinates are matched to the second adjacent area.

[0050] Obtaining the shortest time-consuming path module: S30: The camera device in each area to be identified focuses on the desktop coordinates one by one, and obtains the shortest time-consuming path for the camera device in each area to complete the focusing of all desktop coordinates one by one through an enumeration algorithm;

[0051] Comparison of time difference module: S40: Based on the shortest time-consuming path of each area to be identified, compare the time difference between the area with the longest time consumption and the area with the shortest time consumption. When the time difference is outside the preset range, select one or more desktop coordinates from the desktop coordinates of the area with the longest time consumption, and associate the selected desktop coordinates with the adjacent area to be identified. When the time difference is within the preset range, the time consumption of the area with the longest time consumption is output as the total focus time of all the desktops to be identified in the classroom;

[0052] Fitting coordinate replacement module: S50: Based on the preset camera device model, the fitting coordinates are replaced by adjusting the preset displacement, and the above steps S20 to S40 are executed to select the shortest total focusing time from the total focusing time obtained by multiple replacements of the fitting coordinates.

[0053] By adopting the above technical solution, firstly, the entire classroom space is divided into several rectangular areas according to the arrangement of the desktops in the classroom. Each rectangular area contains a certain number of desktops, which are the objects that the camera device needs to identify. By dividing the classroom into rectangular areas, it helps to improve the accuracy of the camera device in identifying specific desktops. Then, the boundaries of the previously divided rectangular areas are adjusted according to the actual installation position and angle of the camera device. The purpose of the adjustment is to ensure that each camera device can effectively cover its corresponding area and the image of each desktop can be clearly captured by the camera device.

[0054] When collecting desktop images of the desktops to be identified in the classroom, the purpose of step S10 is to accurately locate the position of each desktop to be identified in the classroom. First, use the panoramic image of the classroom as a reference, then establish a three-dimensional coordinate system, and finally, pre-store the three-dimensional coordinates of each desktop, which will become important reference data when the camera device focuses in the subsequent steps. In this way, the accuracy of the focusing process can be ensured, and the basis for the subsequent focus on the desktop to be identified is provided; then, the purpose of step S20 is to use the fitting coordinates of the camera device to match the desktop coordinates of the desktop to be identified that were previously pre-associated in step S10. In this way, the camera device can know which desktops need to be focused on, and can automatically focus according to these coordinates; next, the purpose of step S30 is to calculate the shortest path required when the camera device focuses on different desktops to be identified, and provide a basis for the subsequent comparison of the optimal path duration of each area. First, an enumeration algorithm is used to enumerate all possible paths in each area, that is, from the fitting coordinates of the desktop where the camera device focuses to the fitting coordinates of other desktops to be identified in the area. Next, compare the time consumption of these paths to find the representative path with the shortest time consumption. In this way, the camera device can focus along the shortest path, thereby achieving fast and efficient focusing on multiple desktops to be identified.

[0055] Then, step S40 is responsible for dynamically adjusting the focus path and optimizing the time efficiency of the focus process. First, the shortest path from the fitting coordinates of the starting desktop where the camera device focuses to the fitting coordinates of other desktops to be identified in each area is calculated, and then the time consumption of these shortest paths is compared to determine which area's shortest path consumes the longest time. If the time difference of the longest time-consuming area exceeds the preset preset range, the preselected desktop coordinates in the area are adjusted and transferred to the adjacent area to shorten the shortest path time. If the time difference is within the preset range, the duration of the longest duration area will be output, which represents the total duration required from the start of the camera device to the completion of the focus of all desktops to be identified. Finally, the purpose of step S50 is to adapt to changes in the camera device model or position, and to continuously optimize the process of focusing on the desktop to be identified. First, according to the preselected camera device model, the fitting coordinates, that is, the precise position of the camera device in three-dimensional space, are replaced. Then, according to the preset displacement, the fitting coordinates are adjusted to ensure that the camera device can accurately focus at the new position. Finally, steps S20 to S40 are re-executed, that is, from determining the focus target, calculating the shortest path, to comparing the time difference and outputting the total duration.

[0056] The pre-selected camera device fitting coordinates are used as the center point, and these fitting coordinates are translated and combined by x-values ​​and y-values ​​to obtain a number of associated fitting coordinates, thereby matching the desktop coordinates of the same desktop in the associated area to be identified. In this way, the camera device can know which desktops need to be focused on, and can automatically focus according to these coordinates.

[0057] If a desktop coordinate is found to be matched by two adjacent areas to be identified during the identification process, the desktop coordinate will be marked as a "duplicate coordinate". This means that the same desktop coordinate is covered by two identification areas. Marking duplicate coordinates can prevent the same desktop from being identified multiple times. The remaining desktop coordinates in each adjacent area to be identified are redistributed to make the number of desktop coordinates in each adjacent area as even as possible.

[0058] The third purpose of this application is achieved through the following technical solutions:

[0059] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the collaborative data acquisition method of multiple binocular data acquisition devices based on spatial distribution when executing the computer program.

[0060] The fourth objective of this application is achieved through the following technical solutions:

[0061] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-mentioned method for collaborative data acquisition of multiple binocular data acquisition devices based on spatial distribution.

[0062] In summary, the present application includes at least one of the following beneficial technical effects:

[0063] 1. First, according to the arrangement of the desks in the classroom, the entire classroom space is divided into several rectangular areas. Each rectangular area contains a certain number of desks. These desks are the objects that the camera device needs to identify. By dividing the classroom into rectangular areas, it helps to improve the accuracy of the camera device in identifying specific desks. Then adjust the boundaries of the previously divided rectangular areas according to the actual installation position and angle of the camera device. The purpose of the adjustment is to ensure that each camera device can effectively cover its corresponding area and the image of each desk can be clearly captured by the camera device.

[0064] 2. Take the pre-selected camera device's fitting coordinates as the center point, translate and combine these fitting coordinates by x-value and y-value, and obtain several associated fitting coordinates, so as to match the desktop coordinates of the same desktop in the associated area to be identified. In this way, the camera device can know which desktops need to be focused on, and can automatically focus according to these coordinates.

[0065] 3. Through this optimized division based on the arrangement of the tables to be identified and the installation positions of the cameras, it can be ensured that the shooting range covers all the tables to be identified and avoids blind spots in monitoring.

[0066] 4. If a desktop coordinate is found to be matched by two or more adjacent areas to be identified during the identification process, the desktop coordinate will be marked as a "duplicate coordinate". This means that the same desktop coordinate is covered by multiple cameras or identification areas. Marking duplicate coordinates can prevent the same desktop from being identified and monitored multiple times, ensure the accuracy of monitoring data, and help cameras allocate monitoring resources more effectively to ensure that each desktop is monitored by only one camera. The desktop coordinates are redistributed according to the number of remaining desktop coordinates in each area to be identified, with the goal of making the number of desktop coordinates in each area as uniform as possible. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 This is a flowchart of an implementation of an embodiment of a method for collaborative data collection of multiple binocular data collection devices based on spatial distribution in the present application;

[0068] Figure 2 This is an implementation flow chart before step S10 in the embodiment of the collaborative data acquisition method of multiple binocular data acquisition devices based on spatial distribution of the present application;

[0069] Figure 3 This is a flowchart for implementing step S20 in an embodiment of the method for collaborative data collection of multiple binocular data collection devices based on spatial distribution of the present application;

[0070] Figure 4 This is another implementation flow chart of step S20 in the embodiment of the method for collaborative data acquisition of multiple binocular data acquisition devices based on spatial distribution of the present application;

[0071] Figure 5 This is a flowchart for implementing step S201 in an embodiment of the method for collaborative data collection of multiple binocular data collection devices based on spatial distribution of the present application;

[0072] Figure 6 This is another implementation flow chart of step S40 in the embodiment of the method for collaborative data collection of multiple binocular data collection devices based on spatial distribution of the present application;

[0073] Figure 7 This is a principle block diagram of a computer device of the present application. DETAILED DESCRIPTION

[0074] The following is combined with Figure 1-4 This application is described in further detail.

[0075] In one embodiment, if Figure 1-4 As shown, the present application discloses a collaborative data acquisition method of multiple binocular data acquisition devices based on spatial distribution, which specifically includes the following steps:

[0076] S110: Divide the classroom into a number of rectangular areas based on the arrangement of the desktops to be identified;

[0077] S210: adjusting the region boundary based on the installation position and angle of the camera device;

[0078] S10: Establishing a three-dimensional coordinate system based on the classroom panoramic view, and pre-storing the desktop coordinates of all desktops to be identified in the classroom;

[0079] S20: Based on a plurality of pre-selected fitting coordinates of the camera device, matching the area to be identified that is pre-associated with each fitting coordinate and the desktop coordinates in the area to be identified;

[0080] S201: The fitting coordinates are obtained by translating and combining the x value and the y value to obtain a plurality of associated fitting coordinates;

[0081] S202: based on a plurality of associated fitting coordinates, when there is a same desktop in the matched area to be identified, matching the desktop coordinates of the same desktop in the associated area to be identified;

[0082] S203: based on the pre-stored desktop coordinates of each area to be identified, comparing the desktop coordinates of two adjacent areas, and when two adjacent areas have the same desktop coordinates, marking the desktop coordinates as duplicate coordinates, and marking the two adjacent areas as a first adjacent area and a second adjacent area;

[0083] S204: For the two adjacent areas, subtract the number of repeated coordinates to obtain the remaining number of desktop coordinates, and divide the number by 2 to obtain the average number of desktop coordinates;

[0084] S205: When the number of remaining desktop coordinates in the first adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the first adjacent area;

[0085] S206: When the number of remaining desktop coordinates in the second adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the second adjacent area;

[0086] S30: The camera device in each area to be identified focuses on the desktop coordinates one by one, and obtains the shortest time-consuming path for the camera device in each area to complete the focusing of all desktop coordinates one by one through an enumeration algorithm;

[0087] S40: Based on the shortest time-consuming path of each area to be identified, compare the time difference between the area with the longest time consumption and the area with the shortest time consumption. When the time difference is outside the preset range, select one or more desktop coordinates from the desktop coordinates of the area with the longest time consumption, and associate the selected desktop coordinates with the adjacent area to be identified. When the time difference is within the preset range, output the time consumption of the area with the longest time consumption as the total focus time of all the desktops to be identified in the classroom;

[0088] S50: Based on the preset camera device model, the fitting coordinates are changed by adjusting the preset displacement amount, and the above steps S20 to S40 are executed to select the shortest total focusing time from the total focusing times obtained by changing the fitting coordinates multiple times.

[0089] In this embodiment, according to the arrangement of the tables in the classroom, the entire classroom space is divided into multiple rectangular areas, each rectangular area contains a certain number of tables, and the boundaries of the previously divided rectangular areas are adjusted according to the actual installation position and angle of the camera device. Establishing a three-dimensional coordinate system based on the classroom panoramic image refers to a three-dimensional coordinate system established with the classroom panoramic image as the quadrant, and the desktop coordinates of the desktop to be identified refer to the desktop coordinates of the target student. The pre-selected several fitting coordinates of the camera device refer to the precise position coordinates of the camera device in the three-dimensional space calculated by the positions of the pre-selected several camera devices. The fitting coordinates of the pre-selected camera device are used as the center point, and are diffused to the area to be identified captured by the camera device through the translation and combination of the x value and the y value. When the same desktop exists in the matched area to be identified, the desktop coordinates of the same desktop of the associated area to be identified are matched. If it is found during the identification process that a desktop coordinate is simultaneously identified by two or more adjacent areas to be identified, then this desktop coordinate will be marked as a "duplicate coordinate". Redistribute according to the number of desktop coordinates remaining in each adjacent area to be identified so that the number of desktop coordinates in each adjacent area is roughly the same. The enumeration algorithm refers to a basic algorithm that tries all possible combinations of paths one by one. The preset range refers to a preset time difference threshold, which is used to determine whether the time difference of the camera focusing on different desktops is within a reasonable range. The preset displacement refers to the predetermined range of movement that the camera may undergo in actual use.

[0090] Specifically, a three-dimensional coordinate system is established with the panoramic image of the classroom as the quadrant, and the desktop coordinates of all target students in the classroom are pre-stored. According to the precise position coordinates of several pre-selected camera devices in three-dimensional space, the area to be identified and the desktop coordinates in the area to be identified that are pre-associated with each fitting coordinate are matched. According to the basic algorithm for trying all possible combinations of paths in each area one by one, the path representing the fitting coordinates of the starting desktop focused by the camera device to the fitting coordinates of several desktops to be identified by the camera device is obtained with the shortest time; according to the shortest path in each area, the time difference between the shortest duration area and the longest duration area is compared. When the time difference is outside a pre-set time difference threshold, the pre-selected desktop coordinates in the longest duration area are placed in an adjacent area. When the time difference is within a pre-set time difference threshold, the duration of the longest duration area is output as the total duration of all desktops to be identified in the classroom. The fitting coordinates are replaced according to the preselected camera device model and the predetermined possible movement range of the camera device in actual use, and the fitting coordinates are adjusted, and the above steps S20 to S40 are performed to select the shortest total focusing time from the total focusing times obtained by replacing the fitting coordinates multiple times.

[0091] In one embodiment, referring to Figure 5 , step S201, comprising the steps of:

[0092] SA: Based on several rectangular areas, output the fitting center point of each rectangular area;

[0093] SA1: Calculate the displacement of x and y values ​​based on the distance between the fitting center points of adjacent rectangular areas;

[0094] SA2: Based on the displacement, the fitting coordinates are translated, and the translated fitting coordinates are associated with the area to be identified;

[0095] SA3: When it is identified that all desktop coordinates in the to-be-identified area are within the classroom panorama, the translated fitting coordinates are output;

[0096] SA4: When it is identified that one or more desktop coordinates in the area to be identified are not in the classroom panorama, repeat steps SA1-SA3 until the translated fitting coordinates are output.

[0097] In this embodiment, the center point of each rectangular area is calculated and output, the distance between the fitting center points of adjacent rectangular areas in the x-axis and y-axis directions is calculated, and the displacement amount that the camera device needs to move is determined based on these distances. According to the calculated displacement amount, the fitting coordinates are translated, and the translated coordinates are associated with the corresponding area to be identified. It is identified whether the translated fitting coordinates can cover all desktop coordinates in the area to be identified, and whether these desktop coordinates are within the panoramic view of the classroom. If all desktop coordinates are within the panoramic view, these translated fitting coordinates are output as the final result. If any desktop coordinates are not within the classroom panoramic view, this means that the current fitting coordinates of the camera device do not completely cover all desktops. In this case, it is necessary to repeat steps SA1 to SA3 to adjust the position of the fitting coordinates until all desktop coordinates can be covered by the classroom panoramic view. This process will continue until suitable fitting coordinates are found and these coordinates are output.

[0098] In one embodiment, referring to Figure 6 , step S40, further comprising the steps of:

[0099] S402: Based on the duration parameters of the optimal paths in each area, the shortest duration parameters of the optimal paths in each area are used Indicates that the longest duration parameter of the optimal path in each area is expressed as express;

[0100] S403: When , Indicates the preset range, and places the pre-selected desktop coordinates in the area corresponding to the longest duration parameter into the adjacent area;

[0101] S404: When , the duration of the area corresponding to the output longest duration parameter is the total duration of all the desktops to be identified in the focused classroom.

[0102] In this embodiment, first, based on the duration parameter of the optimal path in each area, the shortest duration parameter of the optimal path in each area is expressed as , the maximum duration parameter is expressed as Then, compare and .when , which means that the time difference is within the preset range, keeping the desktop coordinate allocation of the current area unchanged, but when , which means the time difference is not within the preset range. The pre-selected desktop coordinates in the corresponding area are transferred to the adjacent area. Finally, when the time difference is within the preset range, the output The duration of the corresponding area represents the total time required from the start of focusing of the camera device to the completion of focusing of all the desktops to be identified.

[0103] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0104] In one embodiment, a multi-binocular data acquisition device collaborative data acquisition system based on spatial distribution is provided, and the multi-binocular data acquisition device collaborative data acquisition system based on spatial distribution corresponds to the multi-binocular data acquisition device collaborative data acquisition method based on spatial distribution in the above embodiment. The multi-binocular data acquisition device collaborative data acquisition system based on spatial distribution includes:

[0105] Rectangular area division module: S110: Based on the arrangement of the desktops to be identified, the classroom is divided into a number of rectangular areas;

[0106] Adjusting region boundary module: S210: adjusting region boundary based on the installation position and angle of the camera device;

[0107] Pre-store desktop coordinate module: S10: Establish a three-dimensional coordinate system based on the classroom panoramic view, and pre-store the desktop coordinates of all desktops to be identified in the classroom;

[0108] Desktop coordinate matching module: S20: Based on a plurality of pre-selected fitting coordinates of the camera device, matching the area to be identified pre-associated with each fitting coordinate and the desktop coordinates in the area to be identified;

[0109] Translation and combination module: S201: The fitting coordinates are obtained by translating and combining the x value and the y value to obtain a number of associated fitting coordinates;

[0110] Association matching module: S202: Based on a plurality of associated fitting coordinates, when the same desktop exists in the matched area to be identified, the desktop coordinates of the same desktop in the associated area to be identified are matched.

[0111] Repeated coordinate marking module: S203: based on the pre-stored desktop coordinates of each area to be identified, compare the desktop coordinates of two adjacent areas, and when two adjacent areas have the same desktop coordinates, mark the desktop coordinates as repeated coordinates, and mark the two adjacent areas as the first adjacent area and the second adjacent area;

[0112] Average desktop coordinate quantity module: S204: for the two adjacent areas, subtract the number of repeated coordinates to obtain the remaining desktop coordinate quantity, and divide it by 2 to obtain the average desktop coordinate quantity;

[0113] Matching first adjacent area module: S205: When the number of remaining desktop coordinates in the first adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the first adjacent area;

[0114] Matching second adjacent area module: S206: When the number of remaining desktop coordinates in the second adjacent area is lower than the average number of desktop coordinates, the repeated coordinates are matched to the second adjacent area.

[0115] Obtaining the shortest time-consuming path module: S30: The camera device in each area to be identified focuses on the desktop coordinates one by one, and obtains the shortest time-consuming path for the camera device in each area to complete the focusing of all desktop coordinates one by one through an enumeration algorithm;

[0116] Comparison of time difference module: S40: Based on the shortest time-consuming path of each area to be identified, compare the time difference between the area with the longest time consumption and the area with the shortest time consumption. When the time difference is outside the preset range, select one or more desktop coordinates from the desktop coordinates of the area with the longest time consumption, and associate the selected desktop coordinates with the adjacent area to be identified. When the time difference is within the preset range, the time consumption of the area with the longest time consumption is output as the total focus time of all the desktops to be identified in the classroom;

[0117] Fitting coordinate replacement module: S50: Based on the preset camera device model, the fitting coordinates are replaced by adjusting the preset displacement, and the above steps S20 to S40 are executed to select the shortest total focusing time from the total focusing time obtained by multiple replacements of the fitting coordinates.

[0118] Optionally, also include:

[0119] Output fitting center point module: SA: Based on several rectangular areas, output the fitting center point of each rectangular area;

[0120] Displacement calculation module: SA1: Calculate the displacement of x and y values ​​based on the distance between the fitting center points of adjacent rectangular areas;

[0121] Translation association module: SA2: based on the displacement, the fitting coordinates are translated, and the translated fitting coordinates are associated with the area to be identified;

[0122] Translation coordinate module: SA3: when it is identified that all desktop coordinates in the area to be identified are within the classroom panorama, output the translated fitting coordinates;

[0123] Repeating step module: SA4: When it is identified that one or more desktop coordinates in the area to be identified are not in the classroom panorama, repeat steps SA1-SA3 until the translated fitting coordinates are output.

[0124] Optionally, also include:

[0125] Shortest duration module: Based on the duration parameters of the optimal path in each area, the shortest duration parameters of the optimal path in each area are used Indicates that the longest duration parameter of the optimal path in each area is expressed as express;

[0126] Adjacent area coordinate placement module: when , Indicates the preset range, and places the pre-selected desktop coordinates in the area corresponding to the longest duration parameter into the adjacent area;

[0127] Output total duration module: When , the duration of the area corresponding to the output longest duration parameter is the total duration of all the desktops to be identified in the focused classroom.

[0128] For the specific definition of the collaborative data acquisition system of multiple binocular data acquisition devices based on spatial distribution, please refer to the definition of the collaborative data acquisition method of multiple binocular data acquisition devices based on spatial distribution in the above text, which will not be repeated here. Each module in the above-mentioned collaborative data acquisition system of multiple binocular data acquisition devices based on spatial distribution can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0129] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store fitting coordinates and path lists. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a collaborative data acquisition method of multiple binocular data acquisition devices based on spatial distribution is implemented.

[0130] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a collaborative data acquisition method for multiple binocular data acquisition devices based on spatial distribution is implemented.

[0131] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, a collaborative data acquisition method based on multiple binocular data acquisition devices distributed in space is implemented.

[0132] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0133] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

Claims

1. A collaborative data acquisition method based on multiple binocular data acquisition devices distributed in space, characterized in that: Includes steps: S110: Divide the classroom into a number of rectangular areas based on the arrangement of the desktops to be identified; S210: adjusting the region boundary based on the installation position and angle of the camera device; S10: Establishing a three-dimensional coordinate system based on the classroom panoramic view, and pre-storing the desktop coordinates of all desktops to be identified in the classroom; S20: Based on a plurality of pre-selected fitting coordinates of the camera device, matching the area to be identified that is pre-associated with each fitting coordinate and the desktop coordinates in the area to be identified; S201: The fitting coordinates are obtained by translating and combining the x value and the y value to obtain a plurality of associated fitting coordinates; S202: based on a plurality of associated fitting coordinates, when there is a same desktop in the matched area to be identified, matching the desktop coordinates of the same desktop in the associated area to be identified; S203: based on the pre-stored desktop coordinates of each area to be identified, comparing the desktop coordinates of two adjacent areas, and when two adjacent areas have the same desktop coordinates, marking the desktop coordinates as duplicate coordinates, and marking the two adjacent areas as a first adjacent area and a second adjacent area; S204: For the two adjacent areas, subtract the number of repeated coordinates to obtain the remaining number of desktop coordinates, and divide the number by 2 to obtain the average number of desktop coordinates; S205: When the number of remaining desktop coordinates in the first adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the first adjacent area; S206: When the number of remaining desktop coordinates in the second adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the second adjacent area; S30: The camera device in each area to be identified focuses on the desktop coordinates one by one, and obtains the shortest time-consuming path for the camera device in each area to complete the focusing of all desktop coordinates one by one through an enumeration algorithm; S40: Based on the shortest time-consuming path of each area to be identified, compare the time difference between the area with the longest time consumption and the area with the shortest time consumption. When the time difference is outside the preset range, select one or more desktop coordinates from the desktop coordinates of the area with the longest time consumption, and associate the selected desktop coordinates with the adjacent area to be identified. When the time difference is within the preset range, output the time consumption of the area with the longest time consumption as the total focus time of all the desktops to be identified in the classroom; S50: Based on the preset camera device model, the fitting coordinates are changed by adjusting the preset displacement amount, and the above steps S20 to S40 are executed to select the shortest total focusing time from the total focusing times obtained by changing the fitting coordinates multiple times.

2. The method for collaborative data acquisition based on spatial distribution of multiple binocular data acquisition devices according to claim 1 is characterized in that: The step of obtaining a plurality of associated fitting coordinates by translating and combining x values ​​and y values ​​comprises the steps of: SA: Based on several rectangular areas, output the fitting center point of each rectangular area; SA1: Calculate the displacement of x and y values ​​based on the distance between the fitting center points of adjacent rectangular areas; SA2: Based on the displacement, the fitting coordinates are translated, and the translated fitting coordinates are associated with the area to be identified; SA3: When it is identified that all desktop coordinates in the to-be-identified area are within the classroom panorama, the translated fitting coordinates are output; SA4: When it is identified that one or more desktop coordinates in the area to be identified are not in the classroom panorama, repeat steps SA1-SA3 until the translated fitting coordinates are output.

3. The method for collaborative data acquisition based on spatial distribution of multiple binocular data acquisition devices according to claim 1, characterized in that: The method further comprises the steps of comparing the time difference between the longest time-consuming area and the shortest time-consuming area based on the shortest time-consuming path of each area to be identified, and selecting one or more desktop coordinates from the desktop coordinates of the longest time-consuming area when the time difference is outside a preset range, associating the selected desktop coordinates with the adjacent area to be identified, and outputting the time consumption of the longest time-consuming area as the total focus time of all the desktops to be identified in the classroom when the time difference is within a preset range. Based on the duration parameters of the optimal path in each area, the shortest duration parameters of the optimal path in each area are used Indicates that the longest duration parameter of the optimal path in each area is expressed as express; when , Indicates the preset range, and places the pre-selected desktop coordinates in the area corresponding to the longest duration parameter into the adjacent area; when , the duration of the area corresponding to the output longest duration parameter is the total duration of all the desktops to be identified in the focused classroom.

4. A collaborative data acquisition system based on spatially distributed multiple binocular data acquisition devices, characterized in that: include: Rectangular area division module: S110: Based on the arrangement of the desktops to be identified, the classroom is divided into a number of rectangular areas; Adjusting region boundary module: S210: adjusting region boundary based on the installation position and angle of the camera device; Pre-store desktop coordinate module: S10: Establish a three-dimensional coordinate system based on the classroom panoramic view, and pre-store the desktop coordinates of all desktops to be identified in the classroom; Desktop coordinate matching module: S20: Based on a plurality of pre-selected fitting coordinates of the camera device, matching the area to be identified pre-associated with each fitting coordinate and the desktop coordinates in the area to be identified; Translation and combination module: S201: The fitting coordinates are obtained by translating and combining the x value and the y value to obtain a number of associated fitting coordinates; Association matching module: S202: based on a plurality of associated fitting coordinates, when there is a same desktop in the matched area to be identified, the desktop coordinates of the same desktop in the associated area to be identified are matched; Repeated coordinate marking module: S203: based on the pre-stored desktop coordinates of each area to be identified, compare the desktop coordinates of two adjacent areas, and when two adjacent areas have the same desktop coordinates, mark the desktop coordinates as repeated coordinates, and mark the two adjacent areas as the first adjacent area and the second adjacent area; Average desktop coordinate quantity module: S204: for the two adjacent areas, subtract the number of repeated coordinates to obtain the remaining desktop coordinate quantity, and divide it by 2 to obtain the average desktop coordinate quantity; Matching first adjacent area module: S205: When the number of remaining desktop coordinates in the first adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the first adjacent area; Matching second adjacent area module: S206: When the number of remaining desktop coordinates in the second adjacent area is lower than the average number of desktop coordinates, matching the repeated coordinates to the second adjacent area; Obtaining the shortest time-consuming path module: S30: The camera device in each area to be identified focuses on the desktop coordinates one by one, and obtains the shortest time-consuming path for the camera device in each area to complete the focusing of all desktop coordinates one by one through an enumeration algorithm; Comparison of time difference module: S40: Based on the shortest time-consuming path of each area to be identified, compare the time difference between the area with the longest time consumption and the area with the shortest time consumption. When the time difference is outside the preset range, select one or more desktop coordinates from the desktop coordinates of the area with the longest time consumption, and associate the selected desktop coordinates with the adjacent area to be identified. When the time difference is within the preset range, the time consumption of the area with the longest time consumption is output as the total focus time of all the desktops to be identified in the classroom; Fitting coordinate replacement module: S50: Based on the preset camera device model, the fitting coordinates are replaced by adjusting the preset displacement, and the above steps S20 to S40 are executed to select the shortest total focusing time from the total focusing time obtained by multiple replacements of the fitting coordinates.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the collaborative data acquisition method of multiple binocular data acquisition devices based on spatial distribution are implemented as described in any one of claims 1 to 3.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the collaborative data acquisition method of multiple binocular data acquisition devices based on spatial distribution are implemented as described in any one of claims 1 to 3.