Stress testing method, electronic device and storage medium for large scene spatial positioning

By deploying the cloud positioning algorithm service container and building a stress test script, the problem of being unable to perform stress testing on the spatial positioning algorithm in the existing technology is solved, the performance evaluation and optimization of the cloud positioning algorithm is realized, and the testing efficiency and accuracy are improved.

CN116192687BActive Publication Date: 2024-10-01HANGZHOU YIXIAN XIANJIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310200796.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-10-01
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

Existing performance testing methods cannot effectively perform stress testing on spatial positioning algorithms and cannot evaluate their performance and stability.

Method used

By deploying the cloud positioning algorithm service container, obtain the positioning map resources to be determined, convert the test video into a sequence frame file, construct an AR cloud positioning request, generate a stress test script for large scene space positioning, and control the press to execute the script for stress testing. Get the performance parameters of the cloud positioning algorithm.

Benefits of technology

It realizes effective stress testing of spatial positioning algorithms, can quickly change positioning maps and adjust stress test indicators, outputs reliable large-scenario cloud positioning performance test indicators, balances each algorithm version and server configuration requirements, and improves service resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116192687B_ABST
    Figure CN116192687B_ABST
Patent Text Reader

Abstract

The present invention relates to a stress testing method, electronic device and storage medium for large scene spatial positioning. The stress testing method for large scene spatial positioning provided by the present invention is combined with the cloud positioning algorithm and performance testing field of AR large scene, by deploying AR cloud positioning algorithm service container, and obtaining test video and cloud positioning request json, adjusting the sending rate of stress test request through test script to meet the load requirements of performance test, to obtain performance parameters such as throughput of large scene positioning service, and solves the problem that the spatial positioning algorithm cannot be effectively stress tested in the prior art. In addition, by placing the positioning map resources to be measured of different positioning maps in the cloud positioning algorithm service container, the effect of quickly changing the positioning map can be achieved, and at the same time, by constructing the test script, the adjustment of the stress test indicators of different positioning maps can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of pressure testing technology, and in particular to a pressure testing method, electronic equipment and storage medium for large scene spatial positioning. Background Art

[0002] With the rapid development of computer technology, network technology has been widely used, and the frequency of users' visits to network platforms has also increased. However, the number of visits to the server is limited, so before it is open to the public, the server needs to be stress tested.

[0003] Stress testing, also known as strength testing or load testing, is a test that simulates the hardware and software environment of actual applications and the system load of the user's use process. It runs the test software for a long time or with an extremely large load to test the performance, reliability, stability, etc. of the system under test. The purpose is to understand the system reliability, performance bottlenecks, etc. by performing repeatable load tests before the software is put into use or before the software load reaches its limit, so as to improve the reliability and stability of the software system and reduce the system downtime and the resulting losses.

[0004] However, current performance tests are all based on stress testing of the web or application services and cannot effectively perform stress testing on spatial positioning algorithms. Summary of the invention

[0005] The embodiments of the present invention provide a stress testing method, electronic device and storage medium for large-scene spatial positioning, so as to at least solve the problem in the related art that stress testing cannot be performed on spatial positioning algorithms.

[0006] In a first aspect, an embodiment of the present invention provides a stress testing method for large scene spatial positioning. The stress testing method is applied in a control host, and the method includes:

[0007] Deploy a cloud positioning algorithm service container in the stress-tested host, and obtain the domain name and address of the cloud positioning algorithm service container, wherein the cloud positioning algorithm service container includes a cloud positioning algorithm and a positioning map resource address to be measured;

[0008] Acquire a test video of the geographical environment of the map resource to be measured, and convert the test video into a sequence frame file;

[0009] Generate an AR cloud positioning request according to the domain name, the address and the sequence frame file, and build a stress test script for large scene space positioning according to the AR cloud positioning request;

[0010] The pressure machine is controlled to execute the pressure test script, so that the pressure machine performs pressure testing on the pressure-tested host running the cloud positioning algorithm to obtain performance parameters of large-scene spatial positioning.

[0011] Specifically, the deployment of the cloud positioning algorithm service container in the stress-tested host includes:

[0012] Obtaining a user's test requirements, and constructing a test account and execution permissions for the test account according to the test requirements;

[0013] Deploy an empty map service container and a remote control instruction in the stress-tested host, wherein the remote control instruction is used to implement remote control of the stress-tested host by the control host;

[0014] Obtain the map resource to be determined and the cloud positioning algorithm, and load the map resource to be determined in the empty map service container

[0015] Control the stress-tested host to run the cloud positioning algorithm.

[0016] Specifically, converting the test video into a sequence frame file includes:

[0017] Obtaining a parsing script, and converting the test video into an initial sequence frame image of a fixed resolution through the parsing script;

[0018] Acquire a frame extraction interval, and perform frame extraction processing on the initial sequence frame images according to the frame extraction interval to obtain a sequence frame image;

[0019] The sequence frame images are converted into a sequence frame file in a predetermined format.

[0020] Specifically, the stress test script for large scene space positioning is constructed according to the AR cloud positioning request, including:

[0021] Obtain the positioning requirements of the cloud positioning algorithm, which include camera intrinsic parameters, width and height of sequence frame images, image channel type, pose positioning method type, and pose prior switch;

[0022] Obtain the request assertion of the AR cloud positioning request, which is used to determine whether the cloud positioning is successful during the test;

[0023] Setting the sending frequency of the AR cloud positioning request according to user needs;

[0024] The stress test script is generated according to the AR cloud positioning request, the positioning requirement, the request assertion and the sending frequency; wherein the sequence frame file after format conversion is used as a variable of the stress test script.

[0025] In some embodiments, before the control press executes the pressure test script, the control press further includes:

[0026] Installing a corresponding stress testing tool on the press according to user needs, wherein the stress testing tool is used to run the stress testing script;

[0027] Acquire configuration information, and configure the test file in the stress testing tool according to the configuration information;

[0028] After the configuration is completed, the stress test tool is controlled to execute the stress test script.

[0029] In some embodiments, the configuration information includes thread construction time and loop count; wherein,

[0030] Obtain the complete thread time, and set the thread construction time to 1.2 times of the complete thread time; the complete thread time refers to the time from sending to responding to the AR cloud positioning request;

[0031] The single experience duration of cloud positioning is obtained, and the number of stress test cycles is determined according to the single experience duration.

[0032] In some embodiments, performing the stress test includes:

[0033] Perform stress testing according to the duration of the single experience;

[0034] After the stress test performed according to the single experience duration is stable, the concurrency is increased at a preset multiple rate each time, where the concurrency is the number of AR cloud positioning requests sent by the stress machine to the stress tested host at the same time;

[0035] A plurality of stress tests with a duration exceeding a preset duration are performed according to the concurrency and the number of cycles, and the test results are recorded as performance parameters of the large-scene spatial positioning.

[0036] In some embodiments, the stress testing method further comprises:

[0037] Obtaining a skeleton mapping video and a calibration plate video, and inputting the skeleton mapping video and the calibration plate video into a mapping platform;

[0038] The mapping platform generates the position determination map resource according to the skeleton mapping video and the calibration plate video.

[0039] In a second aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, characterized in that a computer program is stored in the memory, and the processor is configured to run the computer program to execute the stress testing method for large scene space positioning described in any of the above embodiments.

[0040] In a third aspect, an embodiment of the present invention provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the stress testing method for large scene space positioning described in any of the above embodiments when running.

[0041] Compared with the related art, the stress testing method for large-scene spatial positioning provided by an embodiment of the present invention deploys a cloud positioning algorithm service container, which includes a cloud positioning algorithm and a positioning map resource to be measured, and obtains a domain name and address for cloud positioning stress testing; collects data for the geographical environment corresponding to the positioning map resource to be measured to obtain a test video, parses the test video into multiple sequence frame images, and converts the sequence frame images into a sequence frame file in a predetermined format; obtains an AR cloud positioning request, and constructs a stress testing script for a large-scene cloud positioning request according to the AR cloud positioning request; controls a press to execute the stress testing script, and obtains performance parameters of large-scene cloud positioning according to the domain name and address for the cloud positioning stress testing, the test video, and the sequence frame file.

[0042] The present invention combines large-scale spatial positioning algorithms (such as cloud positioning algorithms) and performance testing methods, directly replaces the positioning map resources to be measured and modifies the stress test script, so as to quickly replace the positioning map and adjust its stress test indicators, and output reliable large-scale cloud positioning performance test indicators, thereby solving the problem that stress testing cannot be performed on spatial positioning algorithms in the prior art. In addition, the present invention can achieve efficient comparison of the performance impact of various versions of cloud positioning algorithms on the server by replacing the cloud positioning algorithm service container, or replacing the cloud positioning algorithm in the container and then performing stress testing, thereby balancing the relationship between each algorithm version and the server configuration requirements to maximize the utilization of service resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0044] Figure 1 is a flow chart of a pressure testing method for large scene spatial positioning according to an embodiment of the present invention;

[0045] Figure 2 is a flow chart of a pressure testing method for large scene spatial positioning according to another embodiment of the present invention;

[0046] Figure 3 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is described and illustrated in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments provided by the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed by the present invention, some changes such as design, manufacturing or production based on the technical contents disclosed by the present invention are only conventional technical means, and should not be understood as insufficient contents disclosed by the present invention.

[0048] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in the present invention may be combined with other embodiments without conflict.

[0049] Unless otherwise defined, the technical terms or scientific terms involved in the present invention shall have the usual meanings understood by persons with ordinary skills in the technical field to which the present invention belongs. The words "one", "a", "a", "the" and the like involved in the present invention do not indicate a quantity limitation and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in the present invention are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device including a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in the present invention are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in the present invention refers to greater than or equal to two. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may indicate: A exists alone, A and B exist at the same time, and B exists alone. The terms "first", "second", "third" and the like involved in the present invention are merely used to distinguish similar objects and do not represent a specific ordering of the objects.

[0050] An embodiment of the present invention provides a stress testing method for large scene spatial positioning. Large scene spatial positioning refers to calculating the position and posture of a camera in a three-dimensional physical space based on an input image or video, which is called camera positioning. The position and posture of an object or moving target in a scene in a three-dimensional physical space. The method provided in this embodiment is applied in a control host. The control host (referred to as the control host) of this embodiment performs a stress test on a stress tested host by controlling a stress host (referred to as a stress host). The stress tested host can be a cloud server or a local server. Reference Figure 1 The stress testing method for large scene spatial positioning provided in this embodiment is implemented through the following contents.

[0051] Step S1, deploy a cloud positioning algorithm service container in the host being tested, and obtain the domain name and address for accessing the cloud positioning algorithm service container, wherein the cloud positioning algorithm service container includes a cloud positioning algorithm and a positioning map resource to be measured. The cloud positioning algorithm includes all existing positioning algorithms, which are used for spatial positioning of large scenes; the positioning map resource to be measured can be replaced, and the corresponding positioning map resource to be measured can be obtained for different maps or geographical environments.

[0052] In addition, in a preferred embodiment, the algorithm service container may include more than one cloud positioning algorithm and more than one positioning map resource to be measured, which can be replaced at any time according to the test requirements.

[0053] Specifically, for deploying a cloud positioning algorithm service container in a stress-tested host, this embodiment first installs a corresponding server system in the stress-tested host according to the user's requirements. Then, the test requirements are obtained, and the test account and the execution permissions of the test account are constructed according to the test requirements, that is, the test account is allowed to control the cloud positioning algorithm service container; then, an empty map service container and remote control instructions are deployed in the stress-tested host, and the remote control instructions are used to realize the remote control of the stress-tested host by the control host, such as performing remote shutdown and other operations; obtain the map resources to be measured and the cloud positioning algorithm, and load the map resources to be measured in the empty map service container, that is, the user wants to test which map, and the map resources to be measured corresponding to the map are placed in the empty map service container, and the stress-tested host is controlled to run the cloud positioning algorithm. The cloud positioning algorithm service container of this embodiment is composed of an empty map service container, a cloud positioning algorithm, and the map resources to be measured. Through the above steps, the deployment of the cloud positioning algorithm service container can be completed.

[0054] Corresponding to the positioning map resources to be measured, the present invention obtains the skeleton mapping video and the calibration plate video, and then inputs the skeleton mapping video and the calibration plate video into the mapping platform, and the mapping platform can generate the positioning map resources according to the skeleton mapping video and the calibration plate video. The skeleton mapping video and the calibration plate video are generally obtained by data collection personnel for positioning maps.

[0055] Step S2, collect data on the geographical environment corresponding to the positioning map resource to be measured, obtain a test video, parse the test video into multiple sequence frame images, and convert the sequence frame images into a sequence frame file of a predetermined format. Specifically, first obtain a parsing script, and then convert the test video into one or more initial sequence frame images of a fixed resolution through the parsing script; then obtain a frame extraction interval, perform frame extraction on the initial sequence frame image according to the frame extraction interval, mark the extracted initial sequence frame image as a sequence frame image, and finally convert the sequence frame image into a sequence frame file of a predetermined format, which can be used as a variable in the test process. In the present invention, the frame extraction interval can include multiple frame extraction intervals, that is, when there is only one frame extraction interval, frame extraction is performed at equal intervals; if multiple frame extraction intervals are set, the test video needs to be frame extracted at unequal intervals, which can be determined by the user.

[0056] Step S3, generate an AR cloud positioning request according to the domain name, address and sequence frame file, and construct a stress test script for large scene space positioning according to the AR cloud positioning request. The present invention puts the access path and sequence frame file into the AR cloud positioning request, and the stress machine accesses the corresponding cloud positioning algorithm service container through the domain name and address provided above, and then the stress test script performs stress testing on the cloud positioning algorithm service container.

[0057] In this embodiment, for the generation of the stress test script, first, the positioning requirements of the cloud positioning algorithm are obtained, and the positioning requirements include camera intrinsic parameters, width and height of the sequence frame image, image channel type, pose positioning method type and pose prior switch, which can be input into the control machine by the user; then, the AR cloud positioning request and positioning requirements are encoded and added to the stress test script, and the format of the sequence frame file is modified according to the user-set file encoding format, and the sequence frame file after the modified format is used as a variable of the stress test script; in addition, the request assertion of the AR cloud positioning request is obtained, and the request assertion is used to determine whether the cloud positioning is successful during the test. In this embodiment, the request assertion can be replaced according to the stress test requirements of different positioning results; it is also necessary to set the sending frequency of the AR cloud positioning request according to the user's needs so that the value of the performance test indicator is optimal, wherein the request assertion and the sending frequency are also important parameters of the test script.

[0058] Step S4, control the press to execute the stress test script, so that the press sends the AR cloud positioning request to the host under stress test to perform stress test on the host under stress test, and obtain the performance parameters of large scene space positioning. In this embodiment, the host under stress test runs the cloud positioning algorithm therein during the test process, and loads the corresponding positioning map resources to be measured. For controlling the press to execute the stress test script, firstly, the corresponding stress test tools are installed on both the control machine and the press according to the needs of the user. The stress test tool can be selected according to the needs of the user, and the stress test tool is used to run the stress test script; obtain configuration information, and configure the test file of the stress test tool according to the configuration information; the press executes the stress test script through the configured stress test tool.

[0059] During the test, the test time and time need to be set. The configuration information of this embodiment includes the thread construction time and the number of cycles. These indicators can affect the frequency of AR cloud positioning requests. Among them, the complete thread time from sending to responding to the AR cloud positioning request is determined; then the Ramp-up period is set to 1.2 times the complete thread time. The Ramp-up period is the thread construction time, which is used to tell the stress test tool how long it will take to establish all threads; before performing a long-term cycle test, first obtain the single experience duration of cloud positioning (that is, the time for one cloud positioning), and then determine the number of stress test cycles based on the single experience duration.

[0060] After the stress test conducted according to the single experience duration is stable, a long-term stress test can be carried out. Specifically, the concurrency is increased by a preset multiple of the increasing rate each time, and the concurrency is the number of AR cloud positioning requests sent by the stress machine to the host under stress test at the same time; multiple stress tests with a duration exceeding the preset duration are carried out according to the concurrency and the number of cycles, and the results of each test are recorded as the performance parameters of the large-scene space positioning.

[0061] The stress testing method for large-scene spatial positioning provided by the embodiment of the present invention combines the AR large-scene cloud positioning algorithm and performance testing fields, deploys the AR cloud positioning algorithm service, and sends the cloud positioning request json of the camera's video sequence frame image, and adjusts the sending rate of the stress test request to meet the load requirements of the performance test, so as to obtain the throughput and other performance parameters of the large-scene positioning service, thereby solving the problem that the spatial positioning algorithm cannot be effectively stress tested in the prior art. In addition, by placing the positioning map resources to be measured of different positioning maps in the cloud positioning algorithm service container, the effect of quickly replacing the positioning map can be achieved, and at the same time, by constructing the test script, the adjustment of the stress test indicators of different positioning maps can be achieved.

[0062] In another embodiment of the present invention, the stress testing method for large scene spatial positioning provided in this embodiment illustrates various devices and parameters such as a stress machine, a stress tested host, and a stress test script, and reference Figure 2 .

[0063] Step 1, deploy the cloud positioning algorithm service docker. The server system where the cloud positioning algorithm service docker is deployed requires Debian Buster 10 or higher. Create a new cloud positioning test user and add the execution permission of the cloud positioning algorithm service docker for this test user. Deploy the empty map service docker on the cloud positioning stress test server (the host being stress tested), and add instructions to the cron on the server to control the remote shutdown. Replace the empty map in the empty map service docker with the positioning map resource to be measured. The positioning map resource contains colmap model, features, net model, initial configuration file, etc. If it is a multi-submap, the master-submap deployment mode can be performed by modifying the configuration file.

[0064] In a preferred embodiment, the positioning map resource to be measured is composed of a skeleton mapping video and a calibration plate video. Specifically, the positioning map resource to be measured is a skeleton mapping video + a calibration plate video obtained through a mapping platform. The result (i.e., the positioning map resource to be measured) can be opened and viewed through the colmap software. Figure 3 Dimensional model, and then place the generated Scene.zip in the cloud positioning service docker empty map resource path.

[0065] Step 2, collect the test video of the geographic location of the positioning map, parse the video into sequence frame images through the frame extraction script, and convert it into a sequence frame file in base64 format. Specifically, the cloud positioning test video is set to 4K and 60fps during acquisition, and the image set needs to be converted to a fixed resolution of 640*360 through a conversion script to meet the image requirements of the cloud positioning request. Parse it into sequence frame images through a script, and preferably convert it to a fixed resolution. The video_name needs to be modified to the test video name in the parsing script, and the frame extraction interval is set. When collecting video at a normal walking speed, the frame extraction interval is generally set to 10, that is, 1 frame is selected from every 10 frames in the test video as a test sequence frame.

[0066] Step 3: Write the AR cloud positioning request json and build a jmeter stress test script for large-scale cloud positioning requests. Specifically:

[0067] Step S31, write the AR cloud positioning request json, which needs to provide camera internal parameters, sequence frame width and height, image channel type, pose positioning method type, and pose prior switch according to the positioning requirements of the large scene space positioning algorithm;

[0068] Step S32, encode the request json in base64 and add it to the test script, and place the sequence frame file as a variable in the CSV Data Set Config module. The file encoding format is UTF-8 and is applied to all threads;

[0069] Step S33, setting a cloud positioning request assertion, for example, if "algcode" is 1, it is determined that the cloud positioning request is successful; if "algcode" is 16, it is determined that the cloud positioning request fails. This assertion is changed according to the stress testing requirements of different positioning results;

[0070] Step S34, setting the frequency of sending cloud positioning requests to achieve the optimal TPS value.

[0071] Step 4: Use the control machine to remotely control the pressure machine to execute the cloud positioning pressure test script to obtain performance parameters such as large-scale cloud positioning throughput. In this embodiment of the present invention, in addition to recording the performance parameters of the pressure test software, the large-scale cloud positioning pressure test results also need to remotely go to the cloud positioning service deployment docker local to record mem, res, CPU percentage, CPU operating temperature, and CPU operating frequency.

[0072] Before performing a stress test, the stress tester and server system need to be configured according to the configuration information; then the configured stress tester is controlled to execute the stress test script. For example, both the cloud positioning stress test control machine and the stress tester need to install apache-jmeter-5.xx (a certain version of the stress test tool), and configure the server's environment variable / etc / profile; remote_hosts inputs the IP of the stress tester; the stress tester bin / jmeter.properties needs to cancel the server.rmi.ssl.disable=false comment and set it to true, the stress tester starts jmeter, the control machine remotely controls the stress tester to execute the stress test script, and obtains the large-scale cloud positioning stress test results.

[0073] When preparing for the test, you also need to set jmeter test time and test times. Specifically, the full thread time from sending to responding to the cloud positioning request is in the range of 100ms-500ms, the ramp-up period is set to 1.2 times the full thread time, and the number of loops is set according to the single experience duration of the cloud positioning, which is 5-10 minutes. After the single experience duration stress test is stable, a long-term stress test is performed. For a long-term stress test after the single experience duration stress test is stable, it is necessary to increase the concurrency at a rate of 1-1.2 times each time after obtaining the cloud positioning performance parameters for the single experience duration, and adjust the loop count to 10,000, so that each performance test lasts more than 1 hour, and record the test data when the tps curve is stable.

[0074] Compared with the related art, the stress test method for large-scene spatial positioning provided by the embodiment of the present invention deploys the cloud positioning algorithm service docker, obtains the domain name and address of the cloud positioning stress test, and parses the test trajectory video into a sequence frame image through the frame extraction script, and converts it into a sequence frame file in base64 format, and executes the stress test script for large-scene cloud positioning request; obtains performance parameters such as large-scene cloud positioning throughput, and solves the problem of performance test indicators required for different spatial positioning maps in the prior art. That is, by combining the large-scene spatial positioning algorithm and the performance test method, the present invention can quickly replace the positioning map and adjust its stress test indicators, output reliable large-scene cloud positioning performance test indicators, and solves the problem that the spatial positioning algorithm cannot be stress tested in the prior art.

[0075] In addition, in combination with the stress test method for large scene spatial positioning in the above embodiment, the embodiment of the present invention can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any of the stress test methods for large scene spatial positioning in the above embodiment is implemented.

[0076] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0077] In one embodiment of the present invention, an electronic device is also provided, which may be a terminal. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, any stress testing method for large scene space positioning is implemented. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device may be a touch layer covered on the display screen, or a button, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0078] In one embodiment, Figure 3 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present invention. Figure 3 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 3 As shown. The electronic device includes a processor, a network interface, an internal memory and a non-volatile memory connected through an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used to provide computing and control capabilities, the network interface is used to communicate with an external terminal through a network connection, the internal memory is used to provide an environment for the operation of the operating system and the computer program, the computer program is executed by the processor to implement a stress testing method for large scene space positioning, and the database is used to store data.

[0079] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present invention, and does not constitute a limitation on the electronic device to which the scheme of the present invention is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0080] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed 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 by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an 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).

[0081] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0082] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A stress testing method for large scene spatial positioning, characterized in that: The pressure testing method is applied in a control host, and the method comprises: Deploy a cloud positioning algorithm service container in the stress-tested host, and obtain the domain name and address of the cloud positioning algorithm service container, wherein the cloud positioning algorithm service container includes a cloud positioning algorithm and a positioning map resource address to be measured; Acquire a test video of the geographical environment of the map resource to be measured, and convert the test video into a sequence frame file; Generate an AR cloud positioning request according to the domain name, the address and the sequence frame file, and build a stress test script for large scene space positioning according to the AR cloud positioning request; The pressure machine is controlled to execute the pressure test script, so that the pressure machine performs pressure testing on the pressure-tested host running the cloud positioning algorithm to obtain performance parameters of large-scene spatial positioning.

2. The pressure testing method according to claim 1, characterized in that: The step of deploying a cloud positioning algorithm service container in the stress-tested host includes: Obtaining a user's test requirements, and constructing a test account and execution permissions for the test account according to the test requirements; Deploy an empty map service container and a remote control instruction in the stress-tested host, wherein the remote control instruction is used to implement remote control of the stress-tested host by the control host; Acquire the map resource to be determined and the cloud positioning algorithm, and load the map resource to be determined in the empty map service container; Control the stress-tested host to run the cloud positioning algorithm.

3. The pressure testing method according to claim 1, characterized in that: The step of converting the test video into a sequence frame file comprises: Obtaining a parsing script, and converting the test video into an initial sequence frame image of a fixed resolution through the parsing script; Acquire a frame extraction interval, and perform frame extraction processing on the initial sequence frame images according to the frame extraction interval to obtain a sequence frame image; The sequence frame images are converted into a sequence frame file in a predetermined format.

4. The pressure testing method according to claim 1, characterized in that: The stress test script for large scene space positioning is constructed according to the AR cloud positioning request, including: Obtain the positioning requirements of the cloud positioning algorithm, which include camera intrinsic parameters, width and height of sequence frame images, image channel type, pose positioning method type, and pose prior switch; Get the request assertion of the AR cloud positioning request, which is used to determine whether the cloud positioning is successful during the test; Setting the sending frequency of the AR cloud positioning request according to user needs; The stress test script is generated according to the AR cloud positioning request, the positioning requirement, the request assertion and the sending frequency; wherein the sequence frame file after format conversion is used as a variable of the stress test script.

5. The pressure testing method according to claim 1, characterized in that: Before the control press executes the pressure test script, the method further includes: Installing a corresponding stress testing tool on the press according to user needs, wherein the stress testing tool is used to run the stress testing script; Acquire configuration information, and configure the test file in the stress testing tool according to the configuration information; After the configuration is completed, the stress test tool is controlled to execute the stress test script.

6. The pressure testing method according to claim 5, characterized in that: The configuration information includes thread construction time and loop number; wherein, Obtain the complete thread time, and set the thread construction time to 1.2 times of the complete thread time; the complete thread time refers to the time from sending to responding to the AR cloud positioning request; The single experience duration of cloud positioning is obtained, and the number of stress test cycles is determined according to the single experience duration.

7. The pressure testing method according to claim 6, characterized in that: The stress test includes: Perform stress testing according to the duration of the single experience; After the stress test performed according to the single experience duration is stable, the concurrency is increased at a preset multiple rate each time, where the concurrency is the number of AR cloud positioning requests sent by the stress machine to the stress tested host at the same time; A plurality of stress tests with a duration exceeding a preset duration are performed according to the concurrency and the number of cycles, and the test results are recorded as performance parameters of the large-scene spatial positioning.

8. The pressure testing method according to claim 1, characterized in that: The pressure testing method further comprises: Obtaining a skeleton mapping video and a calibration plate video, and inputting the skeleton mapping video and the calibration plate video into a mapping platform; The mapping platform generates the position determination map resource according to the skeleton mapping video and the calibration plate video.

9. An electronic device, comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the stress testing method for large scene spatial positioning according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the stress testing method for large scene spatial positioning according to any one of claims 1 to 8 when running.