Multi-target acquisition path optimization algorithm and system based on binocular data acquisition equipment

By using a multi-target acquisition path optimization algorithm on the binocular data acquisition equipment to generate and screen the shortest path, the problem of long time-consuming camera devices in multi-target focusing scenarios is solved, and efficient and accurate image acquisition is achieved.

CN118555486BActive Publication Date: 2024-10-18GUANGZHOU LOGANSOFT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411020372.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-18
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

The existing target fast focusing algorithm based on binocular data acquisition equipment has the problem of taking a long time in multi-target focusing scenarios. Especially when multiple student desktops need to be focused, the artificial path selection is not optimized, resulting in a long camera device. Distance movement, inefficiency.

Method used

A multi-target acquisition path optimization algorithm based on binocular data acquisition equipment is used to guide the camera device to focus according to the optimal path by identifying the starting desktop coordinates, generating a path list, filtering the shortest path and generating control instructions, using enumeration algorithms and presets The path algorithm calculates the path length and time consumption to ensure the accuracy and automation of path planning.

Benefits of technology

It improves the image collection efficiency, reduces the moving time of the camera device, ensures the rapid completion and accuracy of the entire collection process, and significantly reduces the time consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555486B_ABST
    Figure CN118555486B_ABST
Patent Text Reader

Abstract

The present application relates to a multi-target acquisition path optimization algorithm and system based on a binocular data acquisition device, which includes the steps of: when receiving an image acquisition instruction from a teacher terminal, identifying the starting desktop coordinates at this time, extracting the pre-stored desktop coordinates of the desktop to be identified from the image acquisition instruction; based on a preset path algorithm and the coordinates of the fitting point of the desktop to be identified that is pre-marked by the first camera device, generating a list of several paths representing the first camera device starting from the starting desktop coordinates, focusing on the desktop coordinates of all the desktops to be identified one by one, the list containing the total length data and the total time data of each path; screening out the path with the shortest time among all output paths, matching the corresponding path parameters; based on the path parameters, generating a control instruction and sending it to the first camera device. The present application has the effect of higher efficiency and less time-consuming in focusing and acquiring images when acquiring images of paper documents, objects, etc. on several student desktops.
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 multi-target acquisition path optimization algorithm and system based on a binocular data acquisition device. Background Art

[0002] In the prior art, a method of a target rapid focusing algorithm based on a binocular data acquisition device (publication number: CN118158515A) is disclosed, which is used to quickly focus on objects and manuscripts on students' desks. When it is necessary to focus on several targets on the students' desks, it is necessary to select the focus targets one by one, and in the case of manual selection, the rotation path of the camera device may not be optimal, and rotating the camera device over long distances multiple times may result in a long time consumption.

[0003] Therefore, studying the multi-target acquisition path optimization algorithm based on binocular data acquisition equipment has important practical significance and application value for improving the efficiency of identifying images of paper documents, objects, etc. on several students' desks and reducing time consumption. Summary of the invention

[0004] In order to focus and capture images more efficiently and in less time when acquiring images of paper documents, objects, etc. on several students' desks, the present application provides a multi-target acquisition path optimization algorithm and system based on a binocular data acquisition device.

[0005] The multi-target acquisition path optimization algorithm based on binocular data acquisition equipment includes the following steps:

[0006] When receiving an image acquisition instruction from the teacher terminal, identifying the starting desktop coordinates at this time, and extracting the pre-stored desktop coordinates of the desktop to be identified from the image acquisition instruction;

[0007] Based on a preset path algorithm and the coordinates of the fitting points of the desktop to be identified that are pre-marked by the first camera device, a list of several paths is generated, representing that the first camera device starts from the starting desktop coordinates and focuses on the desktop coordinates of all the desktops to be identified one by one, wherein the list includes total length data and total time consumption data of each path, and the preset path algorithm includes an enumeration algorithm;

[0008] Filter out the path with the shortest time among all output paths and match the corresponding path parameters;

[0009] Based on the path parameters, a control instruction is generated and sent to the first camera device, so that the first camera device focuses on the images of manuscripts and objects on the student's desk in sequence according to the path parameters to collect images.

[0010] By adopting the above technical solution, when receiving the teacher's image acquisition instruction, the current starting desktop coordinates are first determined, and at the same time, the coordinates of each student's desktop stored in advance are extracted from the instruction to provide necessary location information for subsequent path planning. Based on a preset path algorithm (such as an enumeration algorithm), several possible path lists are generated for the camera device, each path list contains a path starting from the starting desktop coordinates and focusing on all the desktop coordinates to be identified one by one. After identifying the coordinates, the path needs to be planned so that the camera device can efficiently capture images. In the generated several path lists, find the path with the shortest time, that is, the optimal path. The selection of the optimal path is to improve the efficiency of image acquisition, reduce the time of the camera device moving, and ensure that the entire acquisition process is completed quickly. After finding the optimal path, extract the specific parameters of the path, such as the moving order, focusing time, etc. The path parameters are the basis for the camera device to perform the acquisition task, and the matching parameters are to ensure that the camera device can accurately operate according to the optimal path. Finally, generate control instructions according to the path parameters, and send these instructions to the first camera device to guide it to perform image acquisition according to the optimal path, ensuring the automation and accuracy of the entire image acquisition process.

[0011] In a preferred example of the present application: based on the preset path algorithm and the coordinates of the fitting point of the desktop to be identified that is pre-marked by the first camera device, a list of several paths representing that the first camera device focuses on the desktop coordinates of all the desktops to be identified one by one starting from the starting desktop coordinates is generated, and the list includes the total length data and the total time consumption data of each path, and the preset path algorithm includes the steps of enumerating the algorithm, including the steps of:

[0012] In one enumeration, the first camera device sequentially focuses on the desktop coordinates of all desktops to be identified, and records the coordinates of the fitting points of the first camera device during focusing, to obtain a coordinate change list of the fitting points;

[0013] Based on the coordinate change list, calculate the moving distances of the two fitting points before and after and add them up to generate the total length data of the enumerated path;

[0014] Based on the preset moving shooting speed of the first camera device, the total time consumption data of the path is calculated and stored in the path list.

[0015] By adopting the above technical solution, during an enumeration process, the first camera device will focus on all the desktop coordinates to be identified in turn, and record the coordinates of the camera device fitting point at each focus, forming a list of fitting point coordinate changes. The purpose of this step is to accurately record the fitting point coordinates. Only by accurately recording the fitting point coordinates can the accuracy of path planning be ensured, and the path length and time consumption can be accurately calculated. Based on this coordinate change list, the moving distances between the two fitting points before and after are calculated, and these distances are added together to generate the total path length data of this enumeration. The purpose of this step is that only by calculating the total path length can the total path time consumption of the subsequent camera device movement be calculated. Subsequently, according to the preset camera device movement shooting speed, the total path time consumption is calculated, and this data is stored in the path list for subsequent selection of the optimal path.

[0016] In a preferred example of the present application, when an image acquisition instruction is received from a teacher terminal, the starting desktop coordinates at this time are identified, and after the steps of extracting the pre-stored desktop coordinates of the desktop to be identified from the image acquisition instruction, the following steps are performed:

[0017] Desktop coordinates based on the pre-stored starting desktop , the pre-stored fitting coordinates of the first camera device close to the ceiling , the pre-stored length of the first camera device , obtain the coordinates of the fitting point when the first camera device focuses on the starting desktop and store;

[0018] When the desktop to be identified is , get the The desktop coordinates of the desktop to be identified and store, ;

[0019] Based on the The desktop coordinates of the desktop to be identified , the pre-stored fitting coordinates of the first camera device close to the ceiling , the pre-stored length of the first camera device , obtain the focus of the first camera device When there are desktops to be identified, the coordinates of the fitting points and store.

[0020] By adopting the above technical solution, an enumeration algorithm is used to generate all possible paths, and combined with a preset three-dimensional coordinate graph, the coordinates of the fitting points when the first camera device focuses on the desktop to be identified are pre-stored. Only by accurately storing the coordinates of the fitting points can the prerequisite be provided for the subsequent accurate calculation of the total length of the path and the total time consumed by the accurate path.

[0021] In a preferred example of the present application: the list includes the steps of total length data and total time consumption data of each path, and further includes the steps of:

[0022] Based on the pre-stored first camera length ;

[0023] When the desktop to be identified is When the path is the fitting coordinates of the desktop starting from the focus of the first camera device, Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path;

[0024] Based on the preset data processing model, when the first camera device focuses on the second The fitting coordinates of the desktop to be identified Go to the first camera and focus on the The fitting coordinates of the desktop to be identified hour, , according to the preset formula , calculated from Go to Angle and store;

[0025] Based on the , according to the preset formula , calculated from Go to The path length ;

[0026] Based on the preset path algorithm, the fitting coordinates of the desktop starting from the focus of the first camera device are calculated. Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path .

[0027] By adopting the above technical scheme, firstly, according to the preset length of the first camera device, the preset three-dimensional coordinate diagram and the preset data processing model, the angle of the fitting coordinates of the first camera device focusing on several desktops to be identified is calculated, and then according to the length of the first camera device and the angle, the total length of the path from the fitting coordinates of the starting desktop focused by the first camera device to the fitting coordinates of the several desktops to be identified focused by the first camera device is calculated. These calculation steps are conducive to the calculation of the total time consumed by the subsequent path.

[0028] In a preferred example of the present application: the list includes the steps of total length data and total time consumption data of each path, and further includes the steps of:

[0029] Based on the pre-stored first camera length ;

[0030] When the desktop to be identified is When the path is the fitting coordinates of the desktop starting from the focus of the first camera device, Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path;

[0031] Based on the pre-stored information of the first camera device focusing on the The fitting coordinates of the desktop to be identified and the first camera device focuses on the The fitting coordinates of the desktop to be identified , according to the preset formula , calculated from Go to The path length ;

[0032] Based on the preset path algorithm, the fitting coordinates of the desktop starting from the focus of the first camera device are calculated. Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path .

[0033] By adopting the above technical solution, firstly, based on the pre-stored fitting coordinates of the first camera device focusing on several desktops to be identified and the preset formula, the total length of the path from the fitting coordinates of the starting desktop focused on by the first camera device to the fitting coordinates of the several desktops to be identified focused on by the first camera device is calculated. These calculation steps are conducive to the calculation of the total time consumed by the subsequent path.

[0034] In a preferred example of the present application: the list includes the steps of total length data and total time consumption data of each path, and further includes the steps of:

[0035] When the path has When When, along the The total length of the paths is ;

[0036] Based on the total length of the path and the first camera device moving shooting speed , when along the When pre-shooting a path, according to the preset formula The total time taken for the path is .

[0037] By adopting the above technical solution, the total time consumed by the path is calculated using the total length of the path and the moving shooting speed of the first camera device, and is stored in the data processing model for subsequent screening of the optimal path.

[0038] In a preferred example of the present application, the step of screening out the path with the shortest time consumption among all output paths and matching the corresponding path parameters comprises the following steps:

[0039] Filter Comparison The total time taken by each of the paths is When it is the smallest, the corresponding path is the optimal path, and the optimal path parameters are matched, output and stored.

[0040] By adopting the above technical solution, the total time of different paths is compared based on the preset data processing model, the optimal path with the shortest time is selected, and the optimal path parameters are matched and output and stored, so that the first camera device can be controlled to focus and capture images faster based on the optimal path.

[0041] The second object of the invention is achieved by the following technical solutions:

[0042] The multi-target acquisition path optimization system based on binocular data acquisition equipment includes:

[0043] Image acquisition instruction module: when receiving an image acquisition instruction from the teacher terminal, identifying the starting desktop coordinates at this time, and extracting the pre-stored desktop coordinates of the desktop to be identified from the image acquisition instruction;

[0044] Generate a path list module: Based on a preset path algorithm and the coordinates of the fitting point where the first camera device focuses on the desktop to be identified, generate a list of paths representing that the first camera device starts from the starting desktop coordinates and focuses on the desktop coordinates of all the desktops to be identified one by one. The list contains the total length data and the total time consumption data of each path. The preset path algorithm includes an enumeration algorithm.

[0045] Path parameter screening and matching module: Screen out the path with the shortest time consumption among all output paths and match the corresponding path parameters;

[0046] Control acquisition module: control based on path parameters, generate control instructions and send them to the first camera device, so that the first camera device focuses on the paper manuscripts and object images on the student's desktop in turn according to the path parameters to collect them.

[0047] By adopting the above technical solution, when the image acquisition instruction of the teacher terminal is received, based on the stored coordinates of several desktops to be identified and the fitted coordinates of several desktops to be identified focused by the first camera device, several path lists containing path length and time-consuming data are generated, the optimal path is screened out by a preset algorithm, the optimal path parameters are output, and then a control instruction is generated to control the first camera device to focus on and collect images of manuscripts and objects on the student's desktop efficiently and quickly according to the optimal path, thereby greatly improving the efficiency of image acquisition and reducing the overall time consumption.

[0048] The third objective of the present application is achieved through the following technical solutions:

[0049] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the multi-target acquisition path optimization algorithm based on a binocular data acquisition device are implemented.

[0050] The fourth objective of the present application is achieved through the following technical solutions:

[0051] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the multi-target acquisition path optimization algorithm based on a binocular data acquisition device are implemented.

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

[0053] 1. When receiving the teacher's image acquisition instruction, first determine the current starting desktop coordinates, and at the same time, extract the pre-stored coordinates of each student's desktop from the instruction to provide necessary location information for subsequent path planning. Based on a preset path algorithm (such as an enumeration algorithm), generate several possible path lists for the camera device, each path list contains a path starting from the starting desktop coordinates and focusing on all the desktop coordinates to be identified one by one. After identifying the coordinates, it is necessary to plan the path so that the camera device can efficiently capture images. In the generated several path lists, find the path with the shortest time, that is, the optimal path. The optimal path is selected to improve the efficiency of image acquisition, reduce the time of the camera device moving, and ensure that the entire acquisition process is completed quickly. After finding the optimal path, extract the specific parameters of the path, such as the moving order, focusing time, etc. The path parameters are the basis for the camera device to perform the acquisition task, and the matching parameters are to ensure that the camera device can accurately operate according to the optimal path. Finally, generate control instructions according to the path parameters, and send these instructions to the first camera device to guide it to perform image acquisition according to the optimal path to ensure the automation and accuracy of the entire image acquisition process.

[0054] 2. During an enumeration process, the first camera device will focus on all the desktop coordinates to be identified in turn, and record the coordinates of the camera device's fitting points at each focus, forming a list of fitting point coordinate changes. The purpose of this step is to accurately record the fitting point coordinates. Only by accurately recording the fitting point coordinates can the accuracy of path planning be ensured, and the path length and time can be accurately calculated. Based on this coordinate change list, the moving distances between the two fitting points before and after are calculated, and these distances are added together to generate the total path length data for this enumeration. The purpose of this step is that only by calculating the total path length can the total path time for the subsequent camera device movement be calculated. Subsequently, according to the preset camera device movement shooting speed, the total path time is calculated, and this data is stored in the path list for subsequent selection of the optimal path.

[0055] 3. Use an enumeration algorithm to generate all possible paths, and combine with a preset three-dimensional coordinate diagram to pre-store the coordinates of the fitting points when the first camera device focuses on the desktop to be identified. Only by accurately storing the coordinates of the fitting points can the prerequisite be provided for the subsequent accurate calculation of the total length of the path and the total time consumed by the accurate path.

[0056] 4. First, according to the preset length of the first camera device, the preset three-dimensional coordinate diagram and the preset data processing model, the angle of the fitting coordinates of the first camera device focusing on several desktops to be identified is calculated, and then according to the length of the first camera device and the angle, the total length of the path from the fitting coordinates of the starting desktop focused on by the first camera device to the fitting coordinates of the several desktops to be identified focused on by the first camera device is calculated. These calculation steps are conducive to the calculation of the subsequent total time consumption of the path. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 This is a flowchart of an implementation of an embodiment of a multi-target acquisition path optimization algorithm based on a binocular data acquisition device of the present application;

[0058] Figure 2 This is the first implementation flow chart of step S20 in the embodiment of the multi-target acquisition path optimization algorithm based on the binocular data acquisition device of the present application;

[0059] Figure 3 This is an implementation flow chart after step S10 in the embodiment of the multi-target acquisition path optimization algorithm based on binocular data acquisition equipment of the present application;

[0060] Figure 4 This is the second implementation flow chart of step S20 in the embodiment of the multi-target acquisition path optimization algorithm based on the binocular data acquisition device of the present application;

[0061] Figure 5This is the third implementation flow chart of step S20 in the embodiment of the multi-target acquisition path optimization algorithm based on the binocular data acquisition device of the present application;

[0062] Figure 6 This is the fourth implementation flow chart of step S20 in the embodiment of the multi-target acquisition path optimization algorithm based on the binocular data acquisition device of the present application;

[0063] Figure 7 This is a flowchart of an implementation of step S30 in the embodiment of the multi-target acquisition path optimization algorithm based on binocular data acquisition equipment of the present application;

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

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

[0066] In one embodiment, if Figure 1 As shown, the present application discloses a multi-target acquisition path optimization algorithm based on a binocular data acquisition device, which specifically includes the following steps:

[0067] S10: When receiving an image acquisition instruction from the teacher terminal, identifying the starting desktop coordinates at this time, and extracting the pre-stored desktop coordinates of the desktop to be identified from the image acquisition instruction;

[0068] In this embodiment, the teacher terminal refers to a PC terminal set up in the classroom for the teacher to operate or a teacher's mobile terminal. The image acquisition instruction refers to an instruction issued by the teacher through the teacher terminal, which is used to focus and capture the image of the desktop paper or objects to be identified. The desktop to be identified refers to the desktop of the target student, and the desktop coordinates are the coordinate points of the desktop to be identified.

[0069] Specifically, when the teacher checks paper items on the target student's desktop, such as homework, an instruction for acquiring an image of the homework on the target student's desktop is sent to the first camera terminal through the PC logged in in the classroom or the mobile terminal APP carried by the teacher, the starting desktop coordinates at this time are identified, and the pre-stored coordinate points of the target student's desktop are extracted.

[0070] S20: Based on a preset path algorithm and the coordinates of the fitting points of the desktop to be identified that are pre-marked by the first camera device, a list of several paths is generated, representing that the first camera device starts from the starting desktop coordinates and focuses on the desktop coordinates of all the desktops to be identified one by one, wherein the list includes total length data and total time consumption data of each path, and the preset path algorithm includes an enumeration algorithm;

[0071] In this embodiment, the enumeration algorithm refers to a basic algorithm that tries all possible combinations of paths one by one; the path list refers to a list of fitting coordinates of the fitting coordinates of several desktops to be identified that are focused on by the first camera device during each enumeration; the total path length data refers to the sum of the path lengths of each path; and the total path time data refers to the sum of the time lengths of each path.

[0072] Specifically, according to a preset path algorithm and the coordinates of the fitting points of the desktop to be identified that are pre-marked by the first camera device, and based on a basic algorithm that tries all possible combinations of the path one by one, a fitting coordinate list is generated, representing the fitting coordinates of the first camera device focusing from the starting desktop to the fitting coordinates of several desktops to be identified that are focused on one by one. The list includes data on the sum of the path lengths of each path and data on the sum of the time taken to make the paths.

[0073] S30: Filter out the path with the shortest time consumption among all output paths, and match the corresponding path parameters;

[0074] In this embodiment, the path with the shortest relative time refers to the path with the shortest total time required from the fitting coordinates of the starting desktop focused by the first camera device to the fitting coordinates of the last desktop to be identified focused by the first camera device among all output paths when it is required to shoot several student desktops.

[0075] Specifically, when it is necessary to shoot several student desktops, the path with the shortest total time from the fitting coordinates of the starting desktop focused on by the first camera device to the fitting coordinates of the last desktop to be identified focused by the first camera device is screened out among all output paths, and the corresponding path parameters are matched.

[0076] S40: Based on the path parameters, a control instruction is generated and sent to the first camera device, so that the first camera device focuses on the images of papers and objects on the student's desk in sequence according to the path parameters to collect images.

[0077] In this embodiment, the control instruction refers to an instruction for controlling the first camera device to focus on the images of papers and objects on the student's desk in sequence according to the path parameters based on the path parameters.

[0078] Specifically, according to the path parameters, through control instructions, the first camera device is controlled to focus on the images of papers and objects on the student's desk in sequence according to the path parameters to collect images.

[0079] In one embodiment, referring to Figure 2 , step S20, comprising the steps of:

[0080] S201: In one enumeration, the first camera device sequentially focuses on the desktop coordinates of all desktops to be identified, and records the coordinates of the fitting points of the first camera device during focusing, to obtain a coordinate change list of the fitting points;

[0081] S202: Based on the coordinate change list, calculate and add the moving distances of the two fitting points to generate the total length data of the path enumerated this time;

[0082] S203: Based on the preset moving shooting speed of the first camera device, the total time consumption data of the path is calculated and stored in the path list.

[0083] In this embodiment, the coordinate change list refers to a list generated when the first camera device sequentially focuses on the desktop coordinates of all desktops to be identified during one enumeration and records the changes in the coordinates of the fitting points of the first camera device during the focusing.

[0084] Specifically, during an enumeration, the first camera device focuses on the desktop coordinates of all desktops to be identified in turn, and records a list generated by the changes in the coordinates of the fitting points of the first camera device during focusing. According to the list, the moving distances of all the fitting points before and after are calculated and added, and all the moving distance data after addition are the total length data of the path enumerated this time; based on the preset moving shooting speed of the first camera device, the time consumption data of all the fitting points before and after are calculated and added, and all the time consumption data after addition are the total time consumption data of the path enumerated this time, and finally the total time consumption data of the path is stored in the path list.

[0085] In one embodiment, referring to Figure 3 , after step S10, perform the following steps:

[0086] S11: Desktop coordinates based on the pre-stored starting desktop , the pre-stored fitting coordinates of the first camera device close to the ceiling , the pre-stored length of the first camera device , obtain the coordinates of the fitting point when the first camera device focuses on the starting desktop and store;

[0087] S12: When the desktop to be identified is , get the The desktop coordinates of the desktop to be identified and store, ;

[0088] S13: Based on the The desktop coordinates of the desktop to be identified , the pre-stored fitting coordinates of the first camera device close to the ceiling , the pre-stored length of the first camera device , obtain the focus of the first camera device When there are desktops to be identified, the coordinates of the fitting points and store.

[0089] In this embodiment, first, based on the pre-stored desktop coordinates of the starting desktop, the pre-stored fitting coordinates of the first camera device close to the ceiling, and the pre-stored length of the first camera device, the coordinates of the fitting points when the first camera device focuses on the starting desktop and several desktops to be identified are obtained and stored.

[0090] In one embodiment, referring to Figure 4 , step S20, further comprising the steps of:

[0091] S204: Based on the pre-stored first camera device length ;

[0092] S205: When the desktop to be identified is When the path is the fitting coordinates of the desktop starting from the focus of the first camera device, Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path;

[0093] S206: Based on the preset data processing model, when the first camera device focuses on the second The fitting coordinates of the desktop to be identified Go to the first camera and focus on the The fitting coordinates of the desktop to be identified hour, , according to the preset formula , calculated from Go to Angle and store;

[0094] S207: Based on the , according to the preset formula , calculated from Go to The path length ;

[0095] S208: Calculate the fitting coordinates of the desktop starting from the focus of the first camera device based on the preset path algorithm Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path .

[0096] In this embodiment, in the preset data processing model, according to the preset length of the first camera device , the first camera device to the fitting coordinates of the several desktops to be identified, and calculate the angle between the front and rear fitting coordinates , according to the distance length and angle , calculate the distance between the front and rear fitting coordinates , add up the distances of all the front and back fitting coordinates to calculate the total path length .

[0097] In one embodiment, referring to Figure 5 , step S20, further comprising the steps of:

[0098] S209: Based on the pre-stored first camera device length ;

[0099] S210: When the desktop to be identified is When the path is the fitting coordinates of the desktop starting from the focus of the first camera device, Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path;

[0100] S211: Based on the pre-stored information of the first camera device focusing on the The fitting coordinates of the desktop to be identified and the first camera device focuses on the The fitting coordinates of the desktop to be identified , according to the preset formula , calculated from Go to The path length ;

[0101] S212: Calculate the fitting coordinates of the desktop starting from the focus of the first camera device based on the preset path algorithm Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path .

[0102] In this embodiment, in the preset data processing model, according to the preset length of the first camera device , the first camera device to the fitting coordinates of several desktops to be identified, and calculate the straight-line distance between the front and rear fitting coordinates , add up the straight-line distances of all the front and back fitting coordinates to calculate the total path length .

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

[0104] S213: When the path has When When, along the The total length of the paths is ;

[0105] S214: Based on the total length of the path and the first camera device moving shooting speed , when along the When pre-shooting a path, according to the preset formula The total time taken for the path is .

[0106] In one embodiment, referring to Figure 7 Step S30 includes the following steps:

[0107] S301: Screening comparison The total time taken by each of the paths is When it is the smallest, the corresponding path is the optimal path, and the optimal path parameters are matched, output and stored.

[0108] In this embodiment, the total time consumption of the path is input, the total time consumption of each path is compared, the optimal path with the smallest total time consumption is screened and compared, and the optimal path parameters are matched, output and stored.

[0109] 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.

[0110] In one embodiment, a multi-target acquisition path optimization system based on a binocular data acquisition device is provided, and the multi-target acquisition path optimization system based on a binocular data acquisition device corresponds to the multi-target acquisition path optimization algorithm based on a binocular data acquisition device in the above embodiment. The multi-target acquisition path optimization system based on a binocular data acquisition device includes:

[0111] Image acquisition instruction module: when receiving an image acquisition instruction from the teacher terminal, identifying the starting desktop coordinates at this time, and extracting the pre-stored desktop coordinates of the desktop to be identified from the image acquisition instruction;

[0112] Generate a path list module: Based on a preset path algorithm and the coordinates of the fitting point where the first camera device focuses on the desktop to be identified, generate a list of paths representing that the first camera device starts from the starting desktop coordinates and focuses on the desktop coordinates of all the desktops to be identified one by one. The list contains the total length data and the total time consumption data of each path. The preset path algorithm includes an enumeration algorithm.

[0113] Path parameter screening and matching module: Screen out the path with the shortest time consumption among all output paths and match the corresponding path parameters;

[0114] Control acquisition module: control based on path parameters, generate control instructions and send them to the first camera device, so that the first camera device focuses on the paper manuscripts and object images on the student's desktop in turn according to the path parameters to collect them.

[0115] Optionally, also include:

[0116] Coordinate change list module: In one enumeration, the first camera device sequentially focuses on the desktop coordinates of all desktops to be identified, and records the coordinates of the fitting points of the first camera device during focusing, to obtain a coordinate change list of the fitting points;

[0117] Calculation and generation of total length data module: Based on the coordinate change list, calculate the moving distances of the two fitting points before and after and add them up to generate the total length data of the enumerated path;

[0118] Module for calculating total time consumption data: based on the preset first camera device moving shooting speed, calculate the total time consumption data of the path and store it in the path list.

[0119] Optionally, also include:

[0120] Get the coordinates of the fitting points Module: Desktop coordinates based on pre-stored starting desktop , the pre-stored fitting coordinates of the first camera device close to the ceiling , the pre-stored length of the first camera device , obtain the coordinates of the fitting point when the first camera device focuses on the starting desktop and store;

[0121] Storage of the desktop module to be identified: When the desktop to be identified is , get the The desktop coordinates of the desktop to be identified and store, ;

[0122] Get the coordinates of the fitting points Module: Based on the The desktop coordinates of the desktop to be identified , the pre-stored fitting coordinates of the first camera device close to the ceiling , the pre-stored length of the first camera device , obtain the focus of the first camera device When there are desktops to be identified, the coordinates of the fitting points and store.

[0123] Optionally, also include:

[0124] Pre-store first camera device length module: based on the pre-stored first camera device length ;

[0125] Pre-shooting path module: When the desktop to be identified is When the path is the fitting coordinates of the desktop starting from the focus of the first camera device, Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path;

[0126] Calculate the angle between the coordinates of the front and rear fitting points module: Based on the preset data processing model, when the first camera device focuses on the The fitting coordinates of the desktop to be identified Go to the first camera and focus on the The fitting coordinates of the desktop to be identified hour, , according to the preset formula , calculated from Go to Angle and store;

[0127] Calculate the coordinate length module of the front and rear fitting points: based on the , according to the preset formula , calculated from Go to The path length ;

[0128] Calculate the total length of the path module: Based on the preset path algorithm, calculate the fitting coordinates of the desktop starting from the focus of the first camera device Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path .

[0129] Optionally, also include

[0130] Pre-storage module: based on the pre-stored first camera device length ;

[0131] Pre-shooting module along the path: when the desktop to be identified is When the path is the fitting coordinates of the desktop starting from the focus of the first camera device, Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path;

[0132] Calculate the straight line length module of the front and rear fitting coordinate points: based on the pre-stored first camera device focusing on the The fitting coordinates of the desktop to be identified and the first camera device focuses on the The fitting coordinates of the desktop to be identified , according to the preset formula , calculated from Go to The path length ;

[0133] Module for calculating the total length of the straight line of the front and rear fitting coordinate points: Based on the preset path algorithm, the fitting coordinates of the desktop starting from the focus of the first camera device are calculated. Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path .

[0134] Optionally, also include:

[0135] Pre-shooting module along the preset path: when the path has When When, along the The total length of the paths is ;

[0136] Calculate the total time of the path Module: Based on the total length of the path and the first camera moving shooting speed , when along the When pre-shooting a path, according to the preset formula The total time taken for the path is .

[0137] Optionally, also include:

[0138] Screening and comparison total time-consuming module: Screening and comparison The total time taken by each of the paths is When it is the smallest, the corresponding path is the optimal path, and the optimal path parameters are matched, output and stored.

[0139] For the specific definition of the multi-target acquisition path optimization system based on the binocular data acquisition device, please refer to the definition of the multi-target acquisition path optimization algorithm based on the binocular data acquisition device mentioned above, which will not be repeated here. Each module in the above-mentioned multi-target acquisition path optimization system based on the binocular data acquisition device 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.

[0140] 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 8 As 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, a path list, total length data, and total time consumption data. 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, it uses a multi-target acquisition path optimization algorithm based on a binocular data acquisition device.

[0141] 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 multi-target acquisition path optimization algorithm based on a binocular data acquisition device is implemented.

[0142] 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, multi-target acquisition path optimization based on a binocular data acquisition device is implemented.

[0143] 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.

[0144] 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.

[0145] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A multi-target acquisition path optimization algorithm based on binocular data acquisition equipment, characterized by: Includes steps: When receiving an image acquisition instruction from the teacher terminal, identifying the starting desktop coordinates at this time, and extracting the pre-stored desktop coordinates of the desktop to be identified from the image acquisition instruction; Based on a preset path algorithm and the coordinates of the fitting points of the desktop to be identified that are pre-marked by the first camera device, a list of several paths is generated, representing that the first camera device starts from the starting desktop coordinates and focuses on the desktop coordinates of all the desktops to be identified one by one, wherein the list includes total length data and total time consumption data of each path, and the preset path algorithm includes an enumeration algorithm; Based on the pre-stored first camera length ; When the desktop to be identified is When the path is the fitting coordinates of the desktop starting from the focus of the first camera device, Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path; Based on the preset data processing model, when the first camera device focuses on the second The fitting coordinates of the desktop to be identified Go to the first camera and focus on the The fitting coordinates of the desktop to be identified hour, , according to the preset formula , calculated from Go to Angle and store; Based on the , , according to the preset formula , calculated from Go to The path length ; Based on the preset path algorithm, the fitting coordinates of the desktop starting from the focus of the first camera device are calculated. Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path ; Based on the pre-stored first camera length ; When the desktop to be identified is When the path is the fitting coordinates of the desktop starting from the focus of the first camera device, Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path; Based on the pre-stored information of the first camera device focusing on the The fitting coordinates of the desktop to be identified and the first camera device focuses on the The fitting coordinates of the desktop to be identified , according to the preset formula , calculated from Go to The path length ; Based on the preset path algorithm, the fitting coordinates of the desktop starting from the focus of the first camera device are calculated. Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path ; Filter out the path with the shortest time among all output paths and match the corresponding path parameters; The control is based on the path parameters, and generates a control instruction which is sent to the first camera device, so that the first camera device focuses on the images of the paper manuscripts and objects on the student's desk in sequence according to the path parameters to collect images.

2. The multi-target acquisition path optimization algorithm based on binocular data acquisition equipment according to claim 1 is characterized in that: Based on the preset path algorithm and the coordinates of the fitting points of the desktop to be identified that are pre-marked by the first camera device, a list of several paths representing that the first camera device focuses on the desktop coordinates of all the desktops to be identified one by one starting from the starting desktop coordinates is generated, and the list includes the total length data and the total time consumption data of each path. The preset path algorithm includes the steps of enumerating the algorithm, including the steps of: In one enumeration, the first camera device sequentially focuses on the desktop coordinates of all desktops to be identified, and records the coordinates of the fitting points of the first camera device during focusing, to obtain a coordinate change list of the fitting points; Based on the coordinate change list, calculate the moving distances of the two fitting points before and after and add them up to generate the total length data of the enumerated path; Based on the preset moving shooting speed of the first camera device, the total time consumption data of the path is calculated and stored in the path list.

3. The multi-target acquisition path optimization algorithm based on binocular data acquisition equipment according to claim 1 is characterized in that: After the step of identifying the starting desktop coordinates at this time and extracting the pre-stored desktop coordinates of the desktop to be identified from the image acquisition instruction when receiving the image acquisition instruction from the teacher terminal, the following steps are performed: Desktop coordinates based on the pre-stored starting desktop , the pre-stored fitting coordinates of the first camera device close to the ceiling , the pre-stored length of the first camera device , obtain the coordinates of the fitting point when the first camera device focuses on the starting desktop and store; When the desktop to be identified is , get the The desktop coordinates of the desktop to be identified and store, ; Based on the The desktop coordinates of the desktop to be identified , the pre-stored fitting coordinates of the first camera device close to the ceiling , the pre-stored length of the first camera device , obtain the focus of the first camera device When there are desktops to be identified, the coordinates of the fitting points and store.

4. The multi-target acquisition path optimization algorithm based on binocular data acquisition equipment according to claim 1 is characterized in that: The list includes the steps of total length data and total time consumption data of each path, and further includes the steps of: When the path has When When, along the The total length of the path is ; Based on the total length of the path and the first camera device moving shooting speed , when along the When pre-shooting a path, according to the preset formula The total time taken for the path is .

5. The multi-target acquisition path optimization algorithm based on binocular data acquisition equipment according to claim 1 is characterized in that: The step of screening out the path with the shortest relative time consumption among all output paths and matching the corresponding path parameters comprises the following steps: Filter Comparison The total time taken by each of the paths is When it is the smallest, the corresponding path is the optimal path, and the optimal path parameters are matched, output and stored.

6. A multi-target acquisition path optimization system based on binocular data acquisition equipment, characterized in that: include: Image acquisition instruction module: when receiving an image acquisition instruction from the teacher terminal, identifying the starting desktop coordinates at this time, and extracting the pre-stored desktop coordinates of the desktop to be identified from the image acquisition instruction; Generate a path list module: Based on a preset path algorithm and the coordinates of the fitting point where the first camera device focuses on the desktop to be identified, generate a list of paths representing that the first camera device starts from the starting desktop coordinates and focuses on the desktop coordinates of all the desktops to be identified one by one. The list contains the total length data and the total time consumption data of each path. The preset path algorithm includes an enumeration algorithm. Pre-store first camera device length module: based on the pre-stored first camera device length ; Pre-shooting path module: When the desktop to be identified is When the path is a fitting coordinate from the first camera device focusing on the starting desktop Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path; Calculate the angle between the coordinates of the front and rear fitting points module: Based on the preset data processing model, when the first camera device focuses on the The fitting coordinates of the desktop to be identified Go to the first camera and focus on the The fitting coordinates of the desktop to be identified hour, , according to the preset formula , calculated from Go to Angle and store; Module for calculating the coordinate length of the front and rear fitting points: based on the , , according to the preset formula , calculated from Go to The path length ; Calculate the total path length module: Based on the preset path algorithm, calculate the fitting coordinates of the desktop starting from the focus of the first camera device Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path ; Pre-storage module: based on the pre-stored length of the first camera device ; Pre-shooting module along the path: When the desktop to be identified is When the path is the fitting coordinates of the desktop starting from the focus of the first camera device, Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified , pre-shooting along the path; Calculate the straight line length module of the front and rear fitting coordinate points: based on the pre-stored first camera device focusing on the The fitting coordinates of the desktop to be identified and the first camera device focuses on the The fitting coordinates of the desktop to be identified , according to the preset formula , calculated from Go to The path length ; Module for calculating the total length of the straight line of the front and rear fitting coordinate points: Based on the preset path algorithm, the fitting coordinates of the desktop starting from the focus of the first camera device are calculated. Start traversing until the first camera device focuses on the The fitting coordinates of the desktop to be identified The total length of the path is calculated according to the preset formula Calculate the total length of the path ; Path parameter screening and matching module: Screen out the path with the shortest time consumption among all output paths and match the corresponding path parameters; Control acquisition module: control based on path parameters, generate control instructions and send them to the first camera device, so that the first camera device focuses on the paper manuscripts and object images on the student's desktop in turn according to the path parameters to collect them.

7. 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 multi-target acquisition path optimization algorithm based on the binocular data acquisition device as described in any one of claims 1 to 5 are implemented.

8. 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 multi-target acquisition path optimization algorithm based on a binocular data acquisition device as claimed in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Target rapid focusing algorithm and system based on binocular data acquisition equipment

    CN118158515A

  • Multi-target-point focusing method and application thereof

    CN113766131A