WO2021003692A1 - Algorithm configuration method, device, system, and movable platform - Google Patents

Algorithm configuration method, device, system, and movable platform Download PDF

Info

Publication number
WO2021003692A1
WO2021003692A1 PCT/CN2019/095391 CN2019095391W WO2021003692A1 WO 2021003692 A1 WO2021003692 A1 WO 2021003692A1 CN 2019095391 W CN2019095391 W CN 2019095391W WO 2021003692 A1 WO2021003692 A1 WO 2021003692A1
Authority
WO
WIPO (PCT)
Prior art keywords
algorithm
identification
target
preset
recognition
Prior art date
Application number
PCT/CN2019/095391
Other languages
French (fr)
Chinese (zh)
Inventor
万千
薛立君
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2019/095391 priority Critical patent/WO2021003692A1/en
Priority to CN201980033933.1A priority patent/CN112400147A/en
Publication of WO2021003692A1 publication Critical patent/WO2021003692A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/12Target-seeking control

Definitions

  • the embodiments of this application relate to the field of computer technology, and in particular to an algorithm configuration method, device, system, and mobile platform.
  • the target recognition algorithm is a type of computer vision algorithm.
  • face recognition is a method that uses various sensors as input (such as a camera) to automatically recognize the face in the sensor’s field of view, and obtain its status The position and size of the screen.
  • the embodiments of the present application provide an algorithm configuration method, device, system, and movable platform to overcome the problem that when the target recognition algorithm is applied to a terminal device, it cannot run on low-performance device hardware or cannot take advantage of high-performance device hardware. .
  • an algorithm configuration method including:
  • the processing capability information select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; wherein, the target recognition algorithm package is used to control the local The device recognizes the preset target.
  • the embodiments of the present application provide another algorithm configuration method, including:
  • the control device obtains the processing capability information of the target device
  • the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages;
  • the control device sends the target recognition algorithm package to the target device
  • the target device recognizes a preset target object according to the target recognition algorithm package.
  • the embodiments of the present application provide yet another algorithm configuration method, including:
  • processing capability information selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages;
  • the target recognition algorithm package is sent to a target device, and the target recognition algorithm is used to instruct the target device to recognize a preset target according to the target recognition algorithm package.
  • an embodiment of the present application provides yet another algorithm configuration method, including:
  • a target recognition algorithm package sent by a control device, where the target recognition algorithm package is selected from a plurality of preset recognition algorithm packages according to the processing capability information of the target device, and the target recognition algorithm and the processing of the target device Match the capability information;
  • the preset target is recognized according to the target recognition algorithm package.
  • an embodiment of the present application provides an algorithm configuration device, including a first memory, a first processor, and a computer executable instruction stored in the first memory and running on the first processor, so The first processor implements the algorithm configuration method described in the first aspect and various possible designs of the first aspect when executing the computer-executed instruction.
  • an embodiment of the present application provides a control device, including a second memory, a second processor, and a computer-executable instruction stored in the second memory and running on the second processor, the The second processor implements the algorithm configuration method described in the third aspect and various possible designs of the third aspect when executing the computer-executed instruction.
  • an embodiment of the present application provides a target device, including a third memory, a third processor, and computer-executable instructions stored in the third memory and capable of running on the third processor.
  • the third processor implements the algorithm configuration methods described in the fourth aspect and various possible designs of the fourth aspect when executing the computer-executed instructions.
  • an embodiment of the present application provides an algorithm configuration system, including a control device and a target device; wherein,
  • the control device is used to obtain processing capability information of the target device; and according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; The target recognition algorithm package is sent to the target device;
  • the target device is configured to recognize a preset target object according to the target recognition algorithm package.
  • an embodiment of the present application provides a movable platform, including:
  • the power system is provided in the body, and the power system is used to provide power to the movable platform; and the algorithm configuration device described in the fifth aspect above.
  • an embodiment of the present application provides another movable platform, including:
  • a power system arranged in the body, and the power system is used to provide power to the movable platform;
  • an embodiment of the present application provides yet another movable platform, including:
  • a power system arranged in the body, and the power system is used to provide power to the movable platform;
  • an embodiment of the present application provides yet another movable platform, including:
  • a power system arranged in the body, and the power system is used to provide power to the movable platform;
  • the algorithm configuration system described in the eighth aspect is provided in the body.
  • an embodiment of the present application provides yet another movable platform, including: a movable platform body and a control device; the movable platform body and the control device are connected wirelessly or wiredly;
  • the control device is used to obtain processing capability information of the movable platform body; according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; The target recognition algorithm package is sent to the mobile platform ontology;
  • the movable platform body is used for recognizing a preset target according to the target recognition algorithm package.
  • an embodiment of the present application provides a computer-readable storage medium having computer-executable instructions stored in the computer-readable storage medium.
  • the processor executes the computer-executable instructions, the above first aspect and the first aspect are implemented.
  • the embodiments of the present application provide another computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions.
  • the processor executes the computer-executable instructions, the above third aspect and In the third aspect, various possible designs are described in the algorithm configuration method.
  • the embodiments of the present application provide yet another computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions.
  • the processor executes the computer-executable instructions, the above fourth aspect and In the fourth aspect, various possible designs are described in the algorithm configuration method.
  • the algorithm configuration method, device, system, and movable platform provided by the embodiments of the present application, the method obtains the processing capability information of the target device, and selects the processing capability from a plurality of preset identification algorithm packages according to the processing capability information
  • the target recognition algorithm package with matching information realizes the adaptive configuration of target recognition algorithm, so that it can make full use of hardware resources when running on high-performance hardware, and it can achieve the best compatibility when running on low-performance hardware.
  • the target recognition algorithm is applied to terminal equipment, there are problems that it cannot run on the hardware of low-performance equipment, or cannot take advantage of the hardware of high-performance equipment.
  • FIG. 1 is a schematic flowchart of an algorithm configuration method provided by an embodiment of this application.
  • FIG. 2 is a schematic flowchart of another algorithm configuration method provided by an embodiment of the application.
  • FIG. 3 is a schematic flowchart of yet another algorithm configuration method provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of the architecture of an algorithm configuration system provided by an embodiment of the application.
  • FIG. 5 is a schematic flowchart of yet another algorithm configuration method provided by an embodiment of this application.
  • FIG. 6 is a schematic flowchart of another algorithm configuration method provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of the hardware structure of an algorithm configuration device provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of the hardware structure of a control device provided by an embodiment of the application.
  • FIG. 9 is a schematic diagram of the hardware structure of a target device provided by an embodiment of the application.
  • FIG. 10 is a schematic structural diagram of an algorithm configuration system provided by an embodiment of this application.
  • FIG. 11 is a schematic structural diagram of a movable platform provided by an embodiment of the application.
  • FIG. 12 is a schematic structural diagram of another movable platform provided by an embodiment of this application.
  • FIG. 13 is a schematic structural diagram of yet another movable platform provided by an embodiment of the application.
  • FIG. 14 is a schematic structural diagram of another movable platform provided by an embodiment of the application.
  • FIG. 15 is a schematic structural diagram of another movable platform provided by an embodiment of the application.
  • Target recognition algorithm is a type of computer vision algorithm. Take face recognition as an example. Face recognition is a kind of face recognition that uses various sensors as input (such as a camera) to automatically recognize the face in the sensor's field of view, and get its image in the picture. Location and size of technology. However, when target recognition algorithms are applied to terminal devices, some high-precision algorithms rely on high-performance device hardware, while others sacrifice accuracy in order to run on low-performance device hardware. If the device hardware platforms for algorithm deployment are diverse, the above two algorithms have problems: the former cannot run on low-performance device hardware, while the latter cannot take advantage of high-performance device hardware.
  • this application provides an algorithm configuration method that obtains the processing capability information of the target device, and selects the processing capability information from a plurality of preset identification algorithm packages according to the processing capability information.
  • the matching target recognition algorithm package realizes the adaptive configuration of target recognition algorithm, so that it can make full use of hardware resources when running on high-performance hardware, and running on low-performance hardware can achieve the best compatibility and solve target recognition
  • algorithms are applied to terminal equipment, there are problems that they cannot run on low-performance equipment hardware, or cannot take advantage of high-performance equipment hardware.
  • FIG. 1 is a schematic flowchart of an algorithm configuration method provided by an embodiment of the present application.
  • the execution subject of the embodiment of the present application may be a control device. As shown in Figure 1, the method may include:
  • S101 Acquire processing capability information of the local device.
  • the acquiring processing capability information of the local device includes:
  • the hardware identification information may include hardware model, name, number and other information capable of identifying the hardware identity.
  • the acquiring hardware identification information of the local device includes:
  • API is some predefined functions, the purpose is to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism.
  • the control device can obtain the hardware identification information of the local device through the API interface, or send a hardware capability acquisition request to the back-end server, where the back-end server can pre-store the corresponding relationship between the device and its hardware identification information, and the server is receiving the hardware After the capability acquisition request, the hardware identification information of the local device is returned according to the hardware capability acquisition request.
  • the processing capability information of the local device may also be saved, or the processing capability information may be displayed, which is convenient for relevant personnel to review and view, and is suitable for practical applications.
  • S102 According to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; wherein the target recognition algorithm package is used to control the The local device recognizes the preset target.
  • the method further includes:
  • the preset target is recognized, and the recognition result is generated.
  • the method further includes:
  • the local device is controlled to follow the target.
  • Face recognition is a method that takes various sensors as input (such as a camera), automatically recognizes the face in the sensor’s field of view, and obtains its position in the screen. The size of the technology.
  • the control device Based on the above-mentioned target recognition algorithm, the control device recognizes the preset target and generates a recognition result. Further, according to the recognition result, the local device is controlled to follow the target.
  • the following technology is a technology that uses various sensors as input (such as a camera), automatically locks on a specified object in the sensor's field of view, and then continues to lock and follow it.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the hardware identification information includes a Convolutional Neural Networks (CNN) accelerator identification
  • CNN Convolutional Neural Networks
  • the control device may first detect whether the hardware identification information includes a CNN accelerator identification, and if so, select a preset first identification algorithm as the target identification algorithm package.
  • the control device presets the hardware identification priority, for example, CNN accelerator identification>Graphics Processing Unit (GPU) identification>Central Processing Unit (CPU) identification, etc.
  • the determined identifications are sorted according to the above preset hardware identification priority, and the corresponding identification algorithm is selected as the target identification algorithm package according to the sorted priority For example, if the CNN accelerator logo is ranked first, the preset first recognition algorithm is selected as the target recognition algorithm package.
  • the CNN accelerator identifier may be the CNN accelerator model, name, number and other information.
  • the multiple preset identification algorithm packages may include the corresponding relationship between the hardware identification information and the identification algorithm. If the hardware identification information includes a CNN accelerator identification, the control device may select a preset first identification algorithm as the target identification algorithm package according to the foregoing correspondence relationship.
  • the calculation amount of the first recognition algorithm is within a range of 100 GFLOPS to 1000 GFLOPS
  • the first recognition algorithm is a recognition algorithm based on a convolutional neural network.
  • FLOPS ie, "floating-point operations per second", “peak speed per second”
  • floating-point operations per second floating-point operations per second
  • the calculation amount and other parameters of the first recognition algorithm can also be set according to actual conditions.
  • Convolutional neural network is a type of feedforward neural network (Feedforward Neural Networks) that includes convolution calculation and has a deep structure.
  • Convolutional neural network has the ability of representation learning, and can perform shift-invariant classification of input information according to its hierarchical structure, so it is also called shift-invariant artificial neural network (Shift-Invariant Artificial Neural). Networks, SIANN for short).
  • the first recognition algorithm includes one or more recognition sub-algorithms
  • selecting a preset first identification algorithm as the target identification algorithm package includes:
  • the hardware identification information includes a CNN accelerator identifier, obtain the performance parameters of the CNN accelerator in the local device according to the CNN accelerator identifier;
  • the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the local device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  • the above-mentioned first recognition algorithm includes one or more recognition sub-algorithms, and the calculation amount of each recognition sub-algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, and they are all recognition algorithms based on convolutional neural networks.
  • the control device may preset the corresponding relationship between the CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm.
  • the specific setting rules may be determined according to actual conditions. For example, the better the CNN accelerator performance, the higher the calculation amount of the recognition algorithm.
  • the hardware identification information includes the CNN accelerator identifier
  • the performance parameters of the CNN accelerator in the target device are acquired, the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the local device is determined according to the above-mentioned correspondence, and the target identifier is selected
  • the algorithm is used as a target recognition algorithm package.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the hardware identification information does not include a CNN accelerator identifier, and the hardware identification information includes a GPU identifier, then a preset second identification algorithm is selected as the target identification algorithm package.
  • the processing capability information of the local device is obtained as described above, if it is detected that the hardware identification information does not include the CNN accelerator identification, then it is further detected whether the hardware identification information contains the GPU identification, and if so, the preset second The recognition algorithm is used as the target recognition algorithm package. Or, after determining the identifiers contained in the hardware identification information, and sorting the determined identifiers according to the preset hardware identifier priority, the GPU identifier is ranked first, and then the preset second identifier is selected The algorithm is used as the target recognition algorithm package.
  • the GPU identifier may be information such as GPU model, name, number, and so on.
  • GPU is called graphics processor, also known as display core, visual processor, display chip. It is a kind of microcomputer that specializes in image calculation on personal computers, workstations, game consoles and some mobile devices (such as tablet computers, smart phones, etc.). processor.
  • the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the second recognition algorithm is a recognition algorithm based on a convolutional neural network.
  • the second recognition algorithm includes one or more recognition sub-algorithms
  • selecting a preset second identification algorithm as the target identification algorithm package includes:
  • the hardware identification information does not include a CNN accelerator identification, and the hardware identification information contains a GPU identification, acquiring the performance parameters of the GPU in the local device according to the GPU identification;
  • the target recognition sub-algorithm corresponding to the performance parameters of the GPU in the local device, and select the target recognition sub-algorithm as the target recognition Algorithm package.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the hardware identification information does not contain the CNN accelerator identification and the GPU identification, and the hardware identification information contains the CPU identification, then a preset third identification algorithm is selected as the target identification algorithm package.
  • the processing capability information of the local device is obtained above, if it is detected that the hardware identification information does not include the CNN accelerator identification and the GPU identification, then it is further detected whether the hardware identification information contains the CPU identification, and if so, select the preset
  • the third recognition algorithm is used as the target recognition algorithm package. Or, after determining the identifiers contained in the hardware identification information, and sorting the determined identifiers according to the preset hardware identifier priority, the CPU identifier is ranked first, and then the preset third identifier is selected
  • the algorithm is used as the target recognition algorithm package.
  • the CPU identifier may be information such as the CPU model, name, and serial number.
  • the CPU is called the central processing unit, which is a very large-scale integrated circuit, and is the core and control unit of a computer. Its function is mainly to interpret computer instructions and process data in computer software.
  • the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS, and the third recognition algorithm is a recognition algorithm based on a convolutional neural network.
  • the third recognition algorithm includes one or more recognition sub-algorithms
  • selecting a preset third identification algorithm as the target identification algorithm package includes:
  • the hardware identification information does not contain a CNN accelerator identification and a GPU identification, and the hardware identification information contains a CPU identification, then obtain the performance parameters of the CPU in the local device according to the CPU identification;
  • the target recognition sub-algorithm corresponding to the performance parameters of the CPU in the local device, and select the target recognition sub-algorithm as the target recognition Algorithm package.
  • the method further includes:
  • the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  • the aforementioned preset threshold may be set according to actual conditions, for example, the main frequency is greater than 2.0 GHz.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • a preset fourth identification algorithm is selected as the target identification algorithm package.
  • a preset fourth identification algorithm is selected as the target identification algorithm package .
  • the first ranked ones are not the CNN accelerator identifier, GPU identifier, and CPU identifier, Then the preset fourth recognition algorithm is selected as the target recognition algorithm package.
  • the fourth recognition algorithm is a recognition algorithm based on a correlation filter.
  • the calculation amount of the fourth recognition algorithm is lower than the calculation amount of the third recognition algorithm.
  • the correlation filter obtains the corresponding result by correlating the image to be detected with the filter, and then judges and locates according to the obtained filter output.
  • the fourth recognition algorithm includes one or more recognition sub-algorithms
  • selecting a preset fourth identification algorithm as the target identification algorithm package includes:
  • the hardware identification information does not include CNN accelerator identification, GPU identification, and CPU identification, acquiring the remaining performance parameters in the local device;
  • the target recognition sub-algorithm corresponding to the remaining performance parameters in the local device, and select the target recognition sub-algorithm as the target recognition Algorithm package, where the remaining performance parameters can be other performance parameters in the local device except CNN accelerator performance parameters, GPU performance parameters, and CPU performance parameters.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes :
  • the hardware identification information is a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package;
  • the hardware identification information is a GPU identification, select a preset second identification algorithm as the target identification algorithm package;
  • the hardware identification information is a CPU identification, select a preset third identification algorithm as the target identification algorithm package;
  • the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package.
  • the algorithm configuration method provided in this embodiment obtains the processing capability information of the local device, and according to the processing capability information, selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages, thereby achieving
  • the adaptive configuration of the target recognition algorithm makes it possible to make full use of hardware resources when running on high-performance hardware. It can achieve the best compatibility when running on low-performance hardware. It solves the problem of failure when the target recognition algorithm is applied to terminal equipment. Run on low-performance equipment hardware, or fail to take advantage of high-performance equipment hardware.
  • FIG. 2 is a schematic flowchart of another algorithm configuration method provided by an embodiment of the application. Based on the embodiment in FIG. 1, this embodiment describes in detail the specific implementation process of this embodiment. As shown in Figure 2, the method includes:
  • the hardware identification information of the local device can be acquired under preset conditions, for example, the hardware identification information of the local device can be acquired within a preset time period, where the aforementioned preset time period can be set according to actual needs. In other time periods, the hardware identification information of the local device is not obtained, that is, no subsequent algorithm configuration is performed to meet the needs of various application scenarios.
  • the hardware identification information includes a CNN accelerator identifier
  • the aforementioned preset requirements can be set according to actual conditions.
  • the hardware identification information does not contain the CNN accelerator identification, but the hardware identification information contains the GPU identification, it is determined whether the performance parameters of the GPU corresponding to the GPU identification meet the preset requirements, and if so, execute the above The step of selecting a preset second recognition algorithm as the target recognition algorithm package.
  • the calculation amount of the first recognition algorithm is higher than the calculation amount of the second recognition algorithm
  • the calculation amount of the second recognition algorithm is higher than the calculation amount of the third recognition algorithm
  • the third recognition algorithm is higher than the calculation amount of the fourth recognition algorithm.
  • the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on convolutional neural networks
  • the fourth The recognition algorithm is a recognition algorithm based on correlation filters.
  • the convolutional neural network method is implemented with high accuracy and a large amount of calculation
  • the correlation filter method is implemented with low accuracy and a small amount of calculation.
  • S206 Recognize a preset target based on the target recognition algorithm package, and generate a recognition result.
  • the recognition of the preset target is face recognition
  • the automatic follow technology is used to follow the target.
  • face recognition is a kind of automatic detection with various sensors as input (such as a camera)
  • sensors such as a camera
  • Auto-following technology It is a technology that takes various sensors as input (such as a camera), automatically locks on a specified object in the sensor's field of view, and then continues to lock and follow it.
  • object recognition technologies can also be used to recognize preset targets, such as vehicle recognition, recognition of certain animals, etc., to meet the needs of different scenarios.
  • target recognition algorithm that can use the algorithm configuration method of this application
  • similar object detection algorithms can also use the method mentioned in this application for adaptive hardware matching.
  • the algorithm configuration method provided in this embodiment can adaptively configure the algorithm so that it can run high-precision algorithms on high-performance hardware to make full use of hardware resources, and run low-precision algorithms on low-performance hardware to achieve the best compatibility. , Make full use of hardware performance to achieve the best algorithm efficiency.
  • FIG. 3 is a schematic flowchart of yet another algorithm configuration method provided by an embodiment of this application.
  • the execution subject of this embodiment of this application may be the control device and the target device in the embodiment shown in FIG. 4.
  • FIG. 4 is a schematic diagram of the architecture of the algorithm configuration system, including a control device 401 and a target device 402.
  • the control device 401 may obtain the processing capability information of the target device 402, and may select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information; wherein, the The target recognition algorithm package is used to control the target device 402 to recognize a preset target during execution.
  • the above-mentioned target device may be a movable platform, including an aircraft, a pan/tilt, etc.
  • the processing capability information of the target device is information that can identify the hardware processing capability of the target device, for example, the hardware identification information of the target device.
  • the control device may pre-store the corresponding relationship between the processing capability information of the device and the recognition algorithm, and determine the target recognition algorithm package corresponding to the processing capability information of the target device according to the corresponding relationship.
  • the target device may compare the preset target according to the target recognition algorithm package.
  • the preset target can be any one or more people or things that need to be identified.
  • the target recognition algorithm in the above-mentioned preset multiple recognition algorithm packages can be set according to the actual situation.
  • the target recognition algorithm can be: does not rely on prior knowledge, directly detects the target from the image sequence, and performs Target recognition, finally tracking the target of interest; or, relying on the prior knowledge of the target, first model the moving target, and then find the matching target in the image sequence in real time.
  • the method may include:
  • S301 The control device obtains the processing capability information of the target device.
  • control device acquiring the processing capability information of the target device includes:
  • the control device obtains the hardware identification information of the target device.
  • the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages.
  • control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
  • the control device selects a preset first identification algorithm as the target identification algorithm package.
  • control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
  • the control device selects a preset second identification algorithm as the target identification algorithm package.
  • control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
  • the control device selects a preset third identification algorithm as the target identification algorithm package.
  • the method further includes:
  • the control device determines whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold
  • the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  • control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
  • the control device selects a preset fourth identification algorithm as the target identification algorithm package.
  • control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
  • the control device selects a preset first identification algorithm as the target identification algorithm package;
  • the control device selects a preset second identification algorithm as the target identification algorithm package;
  • the control device selects a preset third identification algorithm as the target identification algorithm package;
  • the control device selects a preset fourth identification algorithm as the target identification algorithm package.
  • the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS
  • the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS
  • the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS
  • the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on a convolutional neural network
  • the fourth recognition algorithm is a recognition algorithm based on a correlation filter.
  • the first recognition algorithm includes one or more recognition sub-algorithms
  • the control device selects a preset first identification algorithm as the target identification algorithm package, which includes:
  • the control device obtains the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
  • the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  • S303 The control device sends the target recognition algorithm package to the target device.
  • S304 The target device recognizes a preset target object according to the target recognition algorithm package.
  • the method further includes:
  • the target device generates a recognition result, and follows the target according to the recognition result.
  • control device when the control device is a remote sensing device and the target device is a movable platform, the control device obtains the corresponding recognition result and sends a follow instruction to the movable platform body to make the movable platform
  • the platform body can follow the target according to the follow instruction.
  • the method further includes:
  • the target device sends the recognition result to the control device.
  • the method further includes:
  • the control device follows the target object according to the recognition result.
  • control device is a movable platform body
  • target device is an image recognition device connected to the movable body
  • the movable platform body configures a target recognition algorithm for the image recognition device, and the image recognition device is based on the target
  • the recognition algorithm package recognizes the target object, and sends the recognition result to the movable platform body, and the movable platform body then follows the target object based on the recognition result.
  • the control device obtains the processing capability information of the target device, and according to the processing capability information, selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages , And send the target recognition algorithm package to the target device, and the target device recognizes the preset target according to the target recognition algorithm package, and realizes the adaptive configuration algorithm so that it can run high-precision algorithms on high-performance hardware To make full use of hardware resources, run low-precision algorithms on low-performance hardware to achieve the best compatibility, and make full use of hardware performance to achieve the best algorithm efficiency.
  • FIG. 5 is a schematic flowchart of yet another algorithm configuration method provided by an embodiment of this application.
  • the execution subject of this embodiment of this application may be a control device. It should be understood that the following related features, functions, and other parts corresponding to the description of FIG. 2 and FIG. 3 are described below for brevity, and repeated descriptions are appropriately omitted.
  • the method may include:
  • S501 Acquire processing capability information of the target device.
  • the acquiring processing capability information of the target device includes:
  • S502 According to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the hardware identification information includes a CNN accelerator identification
  • a preset first identification algorithm is selected as the target identification algorithm package.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the hardware identification information does not include a CNN accelerator identifier, and the hardware identification information includes a GPU identifier, then a preset second identification algorithm is selected as the target identification algorithm package.
  • the selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the hardware identification information does not contain the CNN accelerator identification and the GPU identification, and the hardware identification information contains the CPU identification, then a preset third identification algorithm is selected as the target identification algorithm package.
  • the method further includes:
  • the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • a preset fourth identification algorithm is selected as the target identification algorithm package.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the hardware identification information is a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package;
  • the hardware identification information is a GPU identification, select a preset second identification algorithm as the target identification algorithm package;
  • the hardware identification information is a CPU identification, select a preset third identification algorithm as the target identification algorithm package;
  • the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package.
  • the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS
  • the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS
  • the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS
  • the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on a convolutional neural network
  • the fourth recognition algorithm is a recognition algorithm based on a correlation filter.
  • the first recognition algorithm includes one or more recognition sub-algorithms
  • selecting a preset first identification algorithm as the target identification algorithm package includes:
  • the hardware identification information includes a CNN accelerator identifier, obtain the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
  • the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  • S503 Send the target recognition algorithm package to a target device, where the target recognition algorithm is used to instruct the target device to recognize a preset target according to the target recognition algorithm package.
  • the method further includes:
  • the method further includes:
  • the target is followed.
  • the control device obtains the processing capability information of the target device, and according to the processing capability information, selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages , And send the target recognition algorithm package to the target device, and the target recognition algorithm is used to instruct the target device to recognize the preset target according to the target recognition algorithm package, so as to realize adaptively configuring the algorithm so that It runs high-precision algorithms on high-performance hardware to make full use of hardware resources, runs low-precision algorithms on low-performance hardware to achieve the best compatibility, and makes full use of hardware performance to achieve the best algorithm efficiency.
  • FIG. 6 is a schematic flowchart of another algorithm configuration method provided by an embodiment of the present application.
  • the execution subject of the embodiment of the present application may be a target device. It should be understood that the following related features, functions, and other parts corresponding to the description of FIG. 2 and FIG. 3 are described below for brevity, and repeated descriptions are appropriately omitted.
  • the method may include:
  • S601 Receive a target recognition algorithm package sent by the control device, where the target recognition algorithm package is selected from a plurality of preset recognition algorithm packages according to the processing capability information of the target device, and the target recognition algorithm and the target device Match the processing power information.
  • S602 Recognize a preset target according to the target recognition algorithm package.
  • the method further includes:
  • a recognition result is generated, and the target is followed according to the recognition result.
  • the method further includes:
  • the target device receives a target recognition algorithm package sent by the control device, and the target recognition algorithm package is selected from a plurality of preset recognition algorithm packages according to the processing capability information of the target device, so The target recognition algorithm is matched with the processing capability information of the target device, and the preset target is recognized according to the target recognition algorithm package, so as to realize the adaptive configuration algorithm, so that it can run high-precision algorithms on high-performance hardware To make full use of hardware resources, run low-precision algorithms on low-performance hardware to achieve the best compatibility, and make full use of hardware performance to achieve the best algorithm efficiency.
  • FIG. 7 is a schematic diagram of the hardware structure of an algorithm configuration device provided by an embodiment of the application.
  • the algorithm configuration device 70 of this embodiment includes: a first processor 701 and a first memory 702;
  • the memory 702 is used to store computer execution instructions
  • the processor 701 is configured to execute computer-executable instructions stored in the memory to implement the steps performed by the algorithm configuration method described in FIG. 1 and FIG. 2 in the foregoing embodiment. For details, refer to the related description in the foregoing method embodiment.
  • the memory 702 may be independent or integrated with the processor 701.
  • the algorithm configuration device further includes a bus 703 for connecting the memory 702 and the processor 701.
  • the device provided in the embodiment of the present application can be used to implement the technical solutions of the method embodiments in FIG. 1 and FIG. 2 above, and its implementation principles and technical effects are similar, and the embodiments of the present application will not be repeated here.
  • FIG. 8 is a schematic diagram of the hardware structure of a control device provided by an embodiment of the application.
  • the control device 80 of this embodiment includes: a second processor 801 and a second memory 802;
  • the memory 802 is used to store computer execution instructions
  • the processor 801 is configured to execute computer-executable instructions stored in the memory to implement each step executed by the algorithm configuration method described in FIG. 5 in the foregoing embodiment. For details, refer to the related description in the foregoing method embodiment.
  • the memory 802 may be independent or integrated with the processor 801.
  • the algorithm configuration device When the memory 802 is set independently, the algorithm configuration device also includes a bus 803 for connecting the memory 802 and the processor 801.
  • the device provided in the embodiment of the present application can be used to implement the technical solution of the method embodiment in FIG. 5, and its implementation principles and technical effects are similar, and the details of the embodiment of the present application are not repeated here.
  • FIG. 9 is a schematic diagram of the hardware structure of a target device provided by an embodiment of the application.
  • the target device 90 of this embodiment includes: a third processor 901 and a third memory 902;
  • the memory 902 is used to store computer execution instructions
  • the processor 901 is configured to execute computer-executable instructions stored in the memory to implement each step executed by the algorithm configuration method described in FIG. 6 in the foregoing embodiment. For details, refer to the related description in the foregoing method embodiment.
  • the memory 902 may be independent or integrated with the processor 901.
  • the algorithm configuration device further includes a bus 903 for connecting the memory 902 and the processor 901.
  • the device provided in the embodiment of the present application can be used to implement the technical solution of the method embodiment in FIG. 6 above, and its implementation principles and technical effects are similar, and the details of the embodiment of the present application are not repeated here.
  • FIG. 10 is a schematic structural diagram of an algorithm configuration system provided by an embodiment of this application.
  • the algorithm configuration system 100 of this embodiment includes: a control device 1001 and a target device 1002; among them,
  • the control device 1001 is configured to obtain processing capability information of a target device; and according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; Sending the target recognition algorithm package to the target device;
  • the target device 1002 is configured to recognize a preset target object according to the target recognition algorithm package.
  • the target device 1002 is also used to generate a recognition result, and follow the target according to the recognition result.
  • the target device 1002 is further configured to send the identification result to the control device.
  • control device 1001 is further configured to follow the target according to the recognition result.
  • control device 1001 is also used to obtain hardware identification information of the target device.
  • control device 1001 is further configured to:
  • the hardware identification information includes a CNN accelerator identification
  • a preset first identification algorithm is selected as the target identification algorithm package.
  • control device 1001 is further configured to:
  • the hardware identification information does not include a CNN accelerator identifier, and the hardware identification information includes a GPU identifier, then a preset second identification algorithm is selected as the target identification algorithm package.
  • control device 1001 is further configured to:
  • the hardware identification information does not contain the CNN accelerator identification and the GPU identification, and the hardware identification information contains the CPU identification, then a preset third identification algorithm is selected as the target identification algorithm package.
  • control device 1001 is further configured to:
  • a preset fourth identification algorithm is selected as the target identification algorithm package.
  • control device 1001 is further configured to:
  • the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  • control device 1001 is further configured to:
  • the hardware identification information is a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package;
  • the hardware identification information is a GPU identification, select a preset second identification algorithm as the target identification algorithm package;
  • the hardware identification information is a CPU identification, select a preset third identification algorithm as the target identification algorithm package;
  • the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package.
  • the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS
  • the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS
  • the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS
  • the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on a convolutional neural network
  • the fourth recognition algorithm is a recognition algorithm based on a correlation filter.
  • the first recognition algorithm includes one or more recognition sub-algorithms
  • the control device 1001 is also used for:
  • the hardware identification information includes a CNN accelerator identifier, obtain the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
  • the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  • FIG. 11 is a schematic structural diagram of a movable platform provided by an embodiment of the application. As shown in FIG. 11, the movable platform 110 of this embodiment includes:
  • the power system 1102 is provided in the body 1101, and the power system 1102 is used to provide power for the movable platform; and the algorithm configuration device 70 as described above in FIG. 7.
  • the device provided by the embodiment of the present application includes the algorithm configuration device 70 described in FIG. 7 above, and its implementation principle and technical effect are as described above, and the embodiments of the present application will not be repeated here.
  • FIG. 12 is a schematic structural diagram of another movable platform provided by an embodiment of the application. As shown in FIG. 12, the movable platform 120 of this embodiment includes:
  • the power system 1202 is provided in the body 1201, and the power system 1202 is used to provide power for the movable platform;
  • control device 80 as described in FIG. 8.
  • the devices provided in the embodiments of the present application include the control device 80 described in FIG. 8, and the implementation principles and technical effects thereof are as described above, and the embodiments of the present application will not be repeated here.
  • FIG. 13 is a schematic structural diagram of still another movable platform provided by an embodiment of the application. As shown in FIG. 13, the movable platform 130 of this embodiment includes:
  • the power system 1302 is provided in the body 1301, and the power system 1302 is used to provide power for the movable platform;
  • the devices provided in the embodiments of the present application include the control device 90 described in FIG. 9 above, and the implementation principles and technical effects thereof are as described above, and the embodiments of the present application will not be repeated here.
  • Fig. 14 is a schematic structural diagram of yet another movable platform provided by an embodiment of the application. As shown in FIG. 14, the movable platform 140 of this embodiment includes:
  • the power system 1402 is provided in the body 1401, and the power system 1402 is used to provide power for the movable platform;
  • the algorithm configuration system 100 as shown in Figure 10 is located in the body.
  • the target device and the control device are both located on the fuselage, the target device can be used to identify, and the control device can be used to select algorithms and control the movement of the movable platform.
  • the control device can be used to select the algorithm, and the target device can be used to identify and control the movement of the movable platform.
  • FIG. 15 is a schematic structural diagram of another movable platform provided by an embodiment of the application.
  • the movable platform 150 of this embodiment includes: a movable platform body 1501 and a control device 1502; the movable platform body 1501 and the control device 1502 are connected wirelessly or wiredly;
  • the control device 1502 is configured to obtain the processing capability information of the movable platform body 1501; according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; Send the target recognition algorithm package to the movable platform body 1501;
  • the movable platform body 1501 is used to recognize a preset target according to the target recognition algorithm package.
  • the movable platform body 1501 generates a recognition result, and follows the target according to the recognition result.
  • the movable platform body 1501 sends the recognition result to the control device 1502.
  • control device 1502 sends a follow instruction to the movable platform body 1501 according to the recognition result, so that the movable platform body 1501 can follow the target according to the follow instruction.
  • control device 1502 acquiring processing capability information of the movable platform body includes:
  • the control device obtains the hardware identification information of the movable platform body.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the control device selects a preset first identification algorithm as the target identification algorithm package.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the control device selects a preset second identification algorithm as the target identification algorithm package.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the control device selects a preset third identification algorithm as the target identification algorithm package.
  • the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the control device selects a preset fourth identification algorithm as the target identification algorithm package.
  • control device determines whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold
  • the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  • the selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
  • the control device selects a preset first identification algorithm as the target identification algorithm package;
  • the control device selects a preset second identification algorithm as the target identification algorithm package;
  • the control device selects a preset third identification algorithm as the target identification algorithm package;
  • the control device selects a preset fourth identification algorithm as the target identification algorithm package.
  • the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS
  • the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS
  • the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS
  • the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on a convolutional neural network
  • the fourth recognition algorithm is a recognition algorithm based on a correlation filter.
  • the first recognition algorithm includes one or more recognition sub-algorithms
  • the control device selects a preset first identification algorithm as the target identification algorithm package, which includes:
  • the control device obtains the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
  • the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  • the control device obtains the processing capability information of the movable platform body, and according to the processing capability information, selects target recognition matching the processing capability information from a plurality of preset recognition algorithm packages Algorithm package, and send the target recognition algorithm package to the mobile platform body, and the mobile platform body recognizes the preset target according to the target recognition algorithm package, and realizes the adaptive configuration algorithm to make it in high performance Run high-precision algorithms on hardware to make full use of hardware resources, run low-precision algorithms on low-performance hardware to achieve the best compatibility, and make full use of hardware performance to achieve the best algorithm efficiency.
  • the embodiments of the present application also provide a computer-readable storage medium, which stores computer-executable instructions, and when the processor executes the computer-executable instructions, the algorithm described in Figure 1 and Figure 2 above is implemented. Configuration method.
  • the embodiment of the present application also provides another computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions.
  • the processor executes the computer-executable instructions, the algorithm configuration method described in FIG. .
  • the embodiments of the present application also provide yet another computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executed instructions, the algorithm configuration method described in FIG. .
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division, and there may be other divisions in actual implementation, for example, multiple modules can be combined or integrated. To another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may be in electrical, mechanical or other forms.
  • modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules may be integrated into one unit.
  • the units formed by the above-mentioned modules can be realized in the form of hardware, or in the form of hardware plus software functional units.
  • the above-mentioned integrated modules implemented in the form of software function modules may be stored in a computer readable storage medium.
  • the above-mentioned software function module is stored in a storage medium and includes several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute the various embodiments of the present application Part of the method.
  • processor may be a central processing unit (Central Processing Unit, CPU for short), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), and application specific integrated circuits (Application Specific Integrated Circuits). Referred to as ASIC) and so on.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in combination with the invention can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage, and may also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk, or an optical disk.
  • NVM non-volatile storage
  • the bus may be an Industry Standard Architecture (ISA) bus, Peripheral Component (PCI) bus, or Extended Industry Standard Architecture (EISA) bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus, etc.
  • the buses in the drawings of this application are not limited to only one bus or one type of bus.
  • the above-mentioned storage medium can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Except for programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disks or optical disks.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable except for programmable read only memory
  • PROM programmable read only memory
  • ROM read only memory
  • magnetic memory flash memory
  • flash memory magnetic disks or optical disks.
  • optical disks any available medium that can be accessed by a general-purpose or special-purpose computer.
  • An exemplary storage medium is coupled to the processor, so that the processor can read information from the storage medium and can write information to the storage medium.
  • the storage medium may also be an integral part of the processor.
  • the processor and the storage medium may be located in Application Specific Integrated Circuits (ASIC for short).
  • ASIC Application Specific Integrated Circuits
  • the processor and the storage medium may also exist as discrete components in the electronic device or the main control device.
  • a person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps including the foregoing method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Image Analysis (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

An algorithm configuration method, a device, and a movable platform. The method comprises: obtaining processing capability information of a local device (S101); and selecting from a plurality of preset recognition algorithm packages, according to the processing capability information, a target recognition algorithm package matching the processing capability information, wherein the target recognition algorithm package, when being executed, is used to control the local device to recognize a preset target object (S102). The method is used to adaptively configure a target recognition algorithm, such that the target recognition algorithm can make full use of hardware resources when running on high-performance hardware, and can achieve good compatibility when running on low-performance hardware, thus solving the problem in which the target recognition algorithm, when being applied to a terminal device, cannot run on low-performance device hardware or cannot take full advantage of high-performance device hardware.

Description

算法配置方法、设备、系统及可移动平台Algorithm configuration method, equipment, system and movable platform 技术领域Technical field
本申请实施例涉及计算机技术领域,尤其涉及一种算法配置方法、设备、系统及可移动平台。The embodiments of this application relate to the field of computer technology, and in particular to an algorithm configuration method, device, system, and mobile platform.
背景技术Background technique
随着社会的不断发展进步,终端设备越来越多样化,功能也越来越强大。以手机为例,手机从普通手机发展到智能机,不仅成为电话交流工具,也成为多元化的沟通工具。目标识别算法是一种常应用于手机的一种算法。With the continuous development and progress of society, terminal devices are becoming more and more diverse and more powerful. Take mobile phones as an example. The development of mobile phones from ordinary mobile phones to smart phones has not only become a telephone communication tool, but also a diversified communication tool. The target recognition algorithm is an algorithm commonly used in mobile phones.
具体的,目标识别算法是一类计算机视觉算法,以人脸识别为例,人脸识别是一种以各种传感器为输入(比如摄像头),自动识别在传感器视野中的人脸,得到其在画面中的位置、所占大小的技术。Specifically, the target recognition algorithm is a type of computer vision algorithm. Taking face recognition as an example, face recognition is a method that uses various sensors as input (such as a camera) to automatically recognize the face in the sensor’s field of view, and obtain its status The position and size of the screen.
然而,在目标识别算法应用于终端设备时,一些高精度算法依赖于高性能设备硬件,另一些则牺牲精度以便在低性能设备硬件上运行。如果算法部署的设备硬件平台多种多样,则上述两种算法都有问题:前者无法在低性能设备硬件上运行,而后者无法发挥高性能设备硬件的优势。However, when target recognition algorithms are applied to terminal devices, some high-precision algorithms rely on high-performance device hardware, while others sacrifice accuracy in order to run on low-performance device hardware. If the device hardware platforms for algorithm deployment are diverse, the above two algorithms have problems: the former cannot run on low-performance device hardware, while the latter cannot take advantage of high-performance device hardware.
发明内容Summary of the invention
本申请实施例提供一种算法配置方法、设备、系统及可移动平台,以克服目标识别算法应用于终端设备时,出现无法在低性能设备硬件上运行,或者无法发挥高性能设备硬件优势的问题。The embodiments of the present application provide an algorithm configuration method, device, system, and movable platform to overcome the problem that when the target recognition algorithm is applied to a terminal device, it cannot run on low-performance device hardware or cannot take advantage of high-performance device hardware. .
第一方面,本申请实施例提供一种算法配置方法,包括:In the first aspect, an embodiment of the present application provides an algorithm configuration method, including:
获取本地设备的处理能力信息;Obtain the processing capability information of the local device;
根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;其中,所述目标识别算法包用于在执行时,控制所述本地设备对预设的目标物进行识别。According to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; wherein, the target recognition algorithm package is used to control the local The device recognizes the preset target.
第二方面,本申请实施例提供另一种算法配置方法,包括:In the second aspect, the embodiments of the present application provide another algorithm configuration method, including:
控制设备获取目标设备的处理能力信息;The control device obtains the processing capability information of the target device;
所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;According to the processing capability information, the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages;
所述控制设备将所述目标识别算法包发送至目标设备;The control device sends the target recognition algorithm package to the target device;
所述目标设备根据所述目标识别算法包对预设的目标物进行识别。The target device recognizes a preset target object according to the target recognition algorithm package.
第三方面,本申请实施例提供再一种算法配置方法,包括:In the third aspect, the embodiments of the present application provide yet another algorithm configuration method, including:
获取目标设备的处理能力信息;Obtain the processing capability information of the target device;
根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;According to the processing capability information, selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages;
将所述目标识别算法包发送至目标设备,所述目标识别算法用于指示所述目标设备根据所述目标识别算法包对预设的目标物进行识别。The target recognition algorithm package is sent to a target device, and the target recognition algorithm is used to instruct the target device to recognize a preset target according to the target recognition algorithm package.
第四方面,本申请实施例提供又一种算法配置方法,包括:In a fourth aspect, an embodiment of the present application provides yet another algorithm configuration method, including:
接收控制设备发送的目标识别算法包,所述目标识别算法包为根据目标设备的处理能力信息,在预设的多个识别算法包中选取得到,所述目标识别算法与所述目标设备的处理能力信息相匹配;Receive a target recognition algorithm package sent by a control device, where the target recognition algorithm package is selected from a plurality of preset recognition algorithm packages according to the processing capability information of the target device, and the target recognition algorithm and the processing of the target device Match the capability information;
根据所述目标识别算法包对预设的目标物进行识别。The preset target is recognized according to the target recognition algorithm package.
第五方面,本申请实施例提供一种算法配置设备,包括第一存储器、第一处理器以及存储在所述第一存储器中并可在所述第一处理器上运行的计算机执行指令,所述第一处理器执行所述计算机执行指令时实现如第一方面以及第一方面各种可能的设计所述的算法配置方法。In a fifth aspect, an embodiment of the present application provides an algorithm configuration device, including a first memory, a first processor, and a computer executable instruction stored in the first memory and running on the first processor, so The first processor implements the algorithm configuration method described in the first aspect and various possible designs of the first aspect when executing the computer-executed instruction.
第六方面,本申请实施例提供一种控制设备,包括第二存储器、第二处理器以及存储在所述第二存储器中并可在所述第二处理器上运行的计算机执行指令,所述第二处理器执行所述计算机执行指令时实现如第三方面以及第三方面各种可能的设计所述的算法配置方法。In a sixth aspect, an embodiment of the present application provides a control device, including a second memory, a second processor, and a computer-executable instruction stored in the second memory and running on the second processor, the The second processor implements the algorithm configuration method described in the third aspect and various possible designs of the third aspect when executing the computer-executed instruction.
第七方面,本申请实施例提供一种目标设备,包括第三存储器、第三处理器以及存储在所述第三存储器中并可在所述第三处理器上运行的计算机执行指令,所述第三处理器执行所述计算机执行指令时实现如第四方面以及第四方面各种可能的设计所述的算法配置方法。In a seventh aspect, an embodiment of the present application provides a target device, including a third memory, a third processor, and computer-executable instructions stored in the third memory and capable of running on the third processor. The third processor implements the algorithm configuration methods described in the fourth aspect and various possible designs of the fourth aspect when executing the computer-executed instructions.
第八方面,本申请实施例提供一种算法配置系统,包括控制设备和目标设备;其中,In an eighth aspect, an embodiment of the present application provides an algorithm configuration system, including a control device and a target device; wherein,
所述控制设备,用于获取目标设备的处理能力信息;并根据所述处理 能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;将所述目标识别算法包发送至目标设备;The control device is used to obtain processing capability information of the target device; and according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; The target recognition algorithm package is sent to the target device;
所述目标设备,用于根据所述目标识别算法包对预设的目标物进行识别。The target device is configured to recognize a preset target object according to the target recognition algorithm package.
第九方面,本申请实施例提供一种可移动平台,包括:In a ninth aspect, an embodiment of the present application provides a movable platform, including:
机体;Body
动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力;以及以上第五方面所述的算法配置设备。The power system is provided in the body, and the power system is used to provide power to the movable platform; and the algorithm configuration device described in the fifth aspect above.
第十方面,本申请实施例提供另一种可移动平台,包括:In a tenth aspect, an embodiment of the present application provides another movable platform, including:
机体;Body
动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力;A power system, arranged in the body, and the power system is used to provide power to the movable platform;
以及如第六方面所述的控制设备。And the control device as described in the sixth aspect.
第十一方面,本申请实施例提供再一种可移动平台,包括:In an eleventh aspect, an embodiment of the present application provides yet another movable platform, including:
机体;Body
动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力;A power system, arranged in the body, and the power system is used to provide power to the movable platform;
以及如第七方面所述的目标设备。And the target device as described in the seventh aspect.
第十二方面,本申请实施例提供又一种可移动平台,包括:In a twelfth aspect, an embodiment of the present application provides yet another movable platform, including:
机体;Body
动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力;A power system, arranged in the body, and the power system is used to provide power to the movable platform;
如第八方面所述的算法配置系统,设于所述机体。The algorithm configuration system described in the eighth aspect is provided in the body.
第十三方面,本申请实施例提供又一种可移动平台,包括:可移动平台本体和控制设备;所述可移动平台本体和所述控制设备无线连接或有线连接;In a thirteenth aspect, an embodiment of the present application provides yet another movable platform, including: a movable platform body and a control device; the movable platform body and the control device are connected wirelessly or wiredly;
所述控制设备用于获取可移动平台本体的处理能力信息;根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;将所述目标识别算法包发送至可移动平台本体;The control device is used to obtain processing capability information of the movable platform body; according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; The target recognition algorithm package is sent to the mobile platform ontology;
所述可移动平台本体用于根据所述目标识别算法包对预设的目标物 进行识别。The movable platform body is used for recognizing a preset target according to the target recognition algorithm package.
第十四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的算法配置方法。In a fourteenth aspect, an embodiment of the present application provides a computer-readable storage medium having computer-executable instructions stored in the computer-readable storage medium. When the processor executes the computer-executable instructions, the above first aspect and the first aspect are implemented. On the one hand, various possible designs of the algorithm configuration method described.
第十五方面,本申请实施例提供另一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第三方面以及第三方面各种可能的设计所述的算法配置方法。In the fifteenth aspect, the embodiments of the present application provide another computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the above third aspect and In the third aspect, various possible designs are described in the algorithm configuration method.
第十六方面,本申请实施例提供再一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第四方面以及第四方面各种可能的设计所述的算法配置方法。In a sixteenth aspect, the embodiments of the present application provide yet another computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the above fourth aspect and In the fourth aspect, various possible designs are described in the algorithm configuration method.
本申请实施例提供的算法配置方法、设备、系统及可移动平台,该方法通过获取目标设备的处理能力信息,根据该处理能力信息,在预设的多个识别算法包中选取与该处理能力信息相匹配的目标识别算法包,实现了对目标识别算法的自适应配置,使其在高性能硬件上运行能够充分利用硬件资源,在低性能硬件上运行可以做到最好的兼容性,解决目标识别算法应用于终端设备时,出现无法在低性能设备硬件上运行,或者无法发挥高性能设备硬件优势的问题。The algorithm configuration method, device, system, and movable platform provided by the embodiments of the present application, the method obtains the processing capability information of the target device, and selects the processing capability from a plurality of preset identification algorithm packages according to the processing capability information The target recognition algorithm package with matching information realizes the adaptive configuration of target recognition algorithm, so that it can make full use of hardware resources when running on high-performance hardware, and it can achieve the best compatibility when running on low-performance hardware. When the target recognition algorithm is applied to terminal equipment, there are problems that it cannot run on the hardware of low-performance equipment, or cannot take advantage of the hardware of high-performance equipment.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1为本申请实施例提供的一种算法配置方法的流程示意图;FIG. 1 is a schematic flowchart of an algorithm configuration method provided by an embodiment of this application;
图2为本申请实施例提供的另一种算法配置方法的流程示意图;2 is a schematic flowchart of another algorithm configuration method provided by an embodiment of the application;
图3为本申请实施例提供的再一种算法配置方法的流程示意图;FIG. 3 is a schematic flowchart of yet another algorithm configuration method provided by an embodiment of the application;
图4为本申请实施例提供的算法配置系统架构示意图;FIG. 4 is a schematic diagram of the architecture of an algorithm configuration system provided by an embodiment of the application;
图5为本申请实施例提供的又一种算法配置方法的流程示意图;FIG. 5 is a schematic flowchart of yet another algorithm configuration method provided by an embodiment of this application;
图6为本申请实施例提供的又一种算法配置方法的流程示意图;6 is a schematic flowchart of another algorithm configuration method provided by an embodiment of the application;
图7为本申请实施例提供的一种算法配置设备的硬件结构示意图;FIG. 7 is a schematic diagram of the hardware structure of an algorithm configuration device provided by an embodiment of the application;
图8为本申请实施例提供的一种控制设备的硬件结构示意图;FIG. 8 is a schematic diagram of the hardware structure of a control device provided by an embodiment of the application;
图9为本申请实施例提供的一种目标设备的硬件结构示意图;9 is a schematic diagram of the hardware structure of a target device provided by an embodiment of the application;
图10为本申请实施例提供的一种算法配置系统的结构示意图;FIG. 10 is a schematic structural diagram of an algorithm configuration system provided by an embodiment of this application;
图11为本申请实施例提供的一种可移动平台的结构示意图;FIG. 11 is a schematic structural diagram of a movable platform provided by an embodiment of the application;
图12为本申请实施例提供的另一种可移动平台的结构示意图;FIG. 12 is a schematic structural diagram of another movable platform provided by an embodiment of this application;
图13为本申请实施例提供的再一种可移动平台的结构示意图;FIG. 13 is a schematic structural diagram of yet another movable platform provided by an embodiment of the application;
图14为本申请实施例提供的又一种可移动平台的结构示意图;FIG. 14 is a schematic structural diagram of another movable platform provided by an embodiment of the application;
图15为本申请实施例提供的又一种可移动平台的结构示意图。FIG. 15 is a schematic structural diagram of another movable platform provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present application will be clearly described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of the present invention. The terms used in the description of the present invention herein are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The term "and/or" as used herein includes any and all combinations of one or more related listed items.
目标识别算法是一类计算机视觉算法,以人脸识别为例,人脸识别是一种以各种传感器为输入(比如摄像头),自动识别在传感器视野中的人脸,得到其在画面中的位置、所占大小的技术。然而,在目标识别算法应用于终端设备时,一些高精度算法依赖于高性能设备硬件,另一些则牺牲精度以便在低性能设备硬件上运行。如果算法部署的设备硬件平台多种多样,则上述两种算法都有问题:前者无法在低性能设备硬件上运行,而后者无法发挥高性能设备硬件的优势。Target recognition algorithm is a type of computer vision algorithm. Take face recognition as an example. Face recognition is a kind of face recognition that uses various sensors as input (such as a camera) to automatically recognize the face in the sensor's field of view, and get its image in the picture. Location and size of technology. However, when target recognition algorithms are applied to terminal devices, some high-precision algorithms rely on high-performance device hardware, while others sacrifice accuracy in order to run on low-performance device hardware. If the device hardware platforms for algorithm deployment are diverse, the above two algorithms have problems: the former cannot run on low-performance device hardware, while the latter cannot take advantage of high-performance device hardware.
因此,考虑到上述问题,本申请提供一种算法配置方法,该方法通过 获取目标设备的处理能力信息,根据该处理能力信息,在预设的多个识别算法包中选取与该处理能力信息相匹配的目标识别算法包,实现了对目标识别算法的自适应配置,使其在高性能硬件上运行能够充分利用硬件资源,在低性能硬件上运行可以做到最好的兼容性,解决目标识别算法应用于终端设备时,出现无法在低性能设备硬件上运行,或者无法发挥高性能设备硬件优势的问题。Therefore, in consideration of the above-mentioned problems, this application provides an algorithm configuration method that obtains the processing capability information of the target device, and selects the processing capability information from a plurality of preset identification algorithm packages according to the processing capability information. The matching target recognition algorithm package realizes the adaptive configuration of target recognition algorithm, so that it can make full use of hardware resources when running on high-performance hardware, and running on low-performance hardware can achieve the best compatibility and solve target recognition When algorithms are applied to terminal equipment, there are problems that they cannot run on low-performance equipment hardware, or cannot take advantage of high-performance equipment hardware.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solutions of the present application and how the technical solutions of the present application solve the above-mentioned technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the drawings.
图1为本申请实施例提供的一种算法配置方法的流程示意图,本申请实施例的执行主体可以为控制设备。如图1所示,该方法可以包括:FIG. 1 is a schematic flowchart of an algorithm configuration method provided by an embodiment of the present application. The execution subject of the embodiment of the present application may be a control device. As shown in Figure 1, the method may include:
S101:获取本地设备的处理能力信息。S101: Acquire processing capability information of the local device.
可选地,所述获取本地设备的处理能力信息,包括:Optionally, the acquiring processing capability information of the local device includes:
获取所述本地设备的硬件标识信息。其中,所述硬件标识信息可以包括硬件型号、名称、编号等能够标识硬件身份的信息。Obtain the hardware identification information of the local device. Wherein, the hardware identification information may include hardware model, name, number and other information capable of identifying the hardware identity.
可选地,所述获取所述本地设备的硬件标识信息,包括:Optionally, the acquiring hardware identification information of the local device includes:
通过应用程序编程接口(Application Programming Interface,简称API)接口获取所述本地设备的硬件标识信息;Obtain the hardware identification information of the local device through an application programming interface (Application Programming Interface, API for short) interface;
或者or
发送硬件能力获取请求至后台服务器,所述硬件能力获取请求用于指示所述后台服务器根据所述硬件能力获取请求返回所述本地设备的硬件标识信息,所述硬件能力获取请求携带所述本地设备的标识。Sending a hardware capability acquisition request to a background server, where the hardware capability acquisition request is used to instruct the background server to return the hardware identification information of the local device according to the hardware capability acquisition request, and the hardware capability acquisition request carries the local device Logo.
这里,API是一些预先定义的函数,目的是提供应用程序与开发人员基于某软件或硬件得以访问一组例程的能力,而又无需访问源码,或理解内部工作机制的细节。在本实施例中,控制设备可以通过API接口获取本地设备的硬件标识信息,或者发送硬件能力获取请求至后台服务器,其中,后台服务器可以预存设备与其硬件标识信息的对应关系,服务器在接收上述硬件能力获取请求后,根据所述硬件能力获取请求返回所述本地设备的硬件标识信息。Here, API is some predefined functions, the purpose is to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism. In this embodiment, the control device can obtain the hardware identification information of the local device through the API interface, or send a hardware capability acquisition request to the back-end server, where the back-end server can pre-store the corresponding relationship between the device and its hardware identification information, and the server is receiving the hardware After the capability acquisition request, the hardware identification information of the local device is returned according to the hardware capability acquisition request.
可选地,在所述获取本地设备的处理能力信息之后,还可以保存所述处理能力信息,也可以显示所述处理能力信息,方便相关人员审核、查看等,适合实际应用。Optionally, after the processing capability information of the local device is acquired, the processing capability information may also be saved, or the processing capability information may be displayed, which is convenient for relevant personnel to review and view, and is suitable for practical applications.
S102:根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;其中,所述目标识别算法包用于在执行时,控制所述本地设备对预设的目标物进行识别。S102: According to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; wherein the target recognition algorithm package is used to control the The local device recognizes the preset target.
可选地,所述方法还包括:Optionally, the method further includes:
基于所述目标识别算法包,对预设的目标物进行识别,并生成识别结果。Based on the target recognition algorithm package, the preset target is recognized, and the recognition result is generated.
可选地,所述方法还包括:Optionally, the method further includes:
根据所述识别结果,控制所述本地设备对所述目标物进行跟随。According to the recognition result, the local device is controlled to follow the target.
这里,以目标识别算法为人脸识别算法为例,人脸识别是一种以各种传感器为输入(比如摄像头),自动识别在传感器视野中的人脸,得到其在画面中的位置、所占大小的技术。控制设备基于上述目标识别算法,对预设的目标物进行识别,并生成识别结果。进一步地,根据所述识别结果,控制所述本地设备对所述目标物进行跟随。其中,跟随技术是一种以各种传感器为输入(比如摄像头),自动锁定在传感器视野中的某个指定的物体,然后持续对其进行锁定跟随的技术。Here, take the target recognition algorithm as a face recognition algorithm as an example. Face recognition is a method that takes various sensors as input (such as a camera), automatically recognizes the face in the sensor’s field of view, and obtains its position in the screen. The size of the technology. Based on the above-mentioned target recognition algorithm, the control device recognizes the preset target and generates a recognition result. Further, according to the recognition result, the local device is controlled to follow the target. Among them, the following technology is a technology that uses various sensors as input (such as a camera), automatically locks on a specified object in the sensor's field of view, and then continues to lock and follow it.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中包含卷积神经网络(Convolutional Neural Networks,简称CNN)加速器标识,则选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a Convolutional Neural Networks (CNN) accelerator identification, a preset first identification algorithm is selected as the target identification algorithm package.
示例性的,在上述获取本地设备的处理能力信息之后,控制设备可以首先检测所述硬件标识信息是否包含CNN加速器标识,如果有,选取预设的第一识别算法作为所述目标识别算法包。或者,控制设备预设设置硬件标识优先级,例如CNN加速器标识>图形处理器(Graphics Processing Unit,简称GPU)标识>中央处理器(Central Processing Unit,简称CPU)标识等。在确定所述硬件标识信息中包含的标识后,根据上述预设设置的硬件标识优先级,对确定的标识进行排序,根据排序后的优先级,选取相 应的识别算法作为所述目标识别算法包,例如排序第一位的为CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包。其中,CNN加速器标识可以为CNN加速器型号、名称、编号等信息。Exemplarily, after acquiring the processing capability information of the local device, the control device may first detect whether the hardware identification information includes a CNN accelerator identification, and if so, select a preset first identification algorithm as the target identification algorithm package. Alternatively, the control device presets the hardware identification priority, for example, CNN accelerator identification>Graphics Processing Unit (GPU) identification>Central Processing Unit (CPU) identification, etc. After the identification contained in the hardware identification information is determined, the determined identifications are sorted according to the above preset hardware identification priority, and the corresponding identification algorithm is selected as the target identification algorithm package according to the sorted priority For example, if the CNN accelerator logo is ranked first, the preset first recognition algorithm is selected as the target recognition algorithm package. Among them, the CNN accelerator identifier may be the CNN accelerator model, name, number and other information.
这里,预设的多个识别算法包中可以包括硬件标识信息与识别算法的对应关系。若所述硬件标识信息中包含CNN加速器标识,控制设备可以根据上述对应关系选取预设的第一识别算法作为所述目标识别算法包。Here, the multiple preset identification algorithm packages may include the corresponding relationship between the hardware identification information and the identification algorithm. If the hardware identification information includes a CNN accelerator identification, the control device may select a preset first identification algorithm as the target identification algorithm package according to the foregoing correspondence relationship.
可选地,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第一识别算法为基于卷积神经网络的识别算法。其中,FLOPS(即“每秒浮点运算次数”,“每秒峰值速度”),是“每秒所执行的浮点运算次数”(floating-point operations per second)的缩写,它常被用来估算电脑的执行效能,尤其是在使用到大量浮点运算的科学计算领域中。所述第一识别算法的计算量和其它参数还可以根据实际情况设置。卷积神经网络是一类包含卷积计算且具有深度结构的前馈神经网络(Feedforward Neural Networks),是深度学习(deep learning)的代表算法之一。卷积神经网络具有表征学习(representation learning)能力,能够按其阶层结构对输入信息进行平移不变分类(shift-invariant classification),因此也被称为平移不变人工神经网络(Shift-Invariant Artificial Neural Networks,简称SIANN)。Optionally, the calculation amount of the first recognition algorithm is within a range of 100 GFLOPS to 1000 GFLOPS, and the first recognition algorithm is a recognition algorithm based on a convolutional neural network. Among them, FLOPS (ie, "floating-point operations per second", "peak speed per second"), is the abbreviation of "floating-point operations per second" (floating-point operations per second), it is often used Estimate the performance of a computer, especially in the field of scientific computing that uses a lot of floating-point operations. The calculation amount and other parameters of the first recognition algorithm can also be set according to actual conditions. Convolutional neural network is a type of feedforward neural network (Feedforward Neural Networks) that includes convolution calculation and has a deep structure. It is one of the representative algorithms of deep learning. Convolutional neural network has the ability of representation learning, and can perform shift-invariant classification of input information according to its hierarchical structure, so it is also called shift-invariant artificial neural network (Shift-Invariant Artificial Neural). Networks, SIANN for short).
可选地,所述第一识别算法包括一个或多个识别子算法;Optionally, the first recognition algorithm includes one or more recognition sub-algorithms;
所述若所述硬件标识信息中包含CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包,包括:If the hardware identification information includes a CNN accelerator identification, selecting a preset first identification algorithm as the target identification algorithm package includes:
若所述硬件标识信息中包含CNN加速器标识,则根据所述CNN加速器标识获取所述本地设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, obtain the performance parameters of the CNN accelerator in the local device according to the CNN accelerator identifier;
根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述本地设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the local device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
这里,上述第一识别算法包括一个或多个识别子算法,各个识别子算法的计算量均在100GFLOPS至1000GFLOPS范围内,均为基于卷积神经网络的识别算法。控制设备可以预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,具体设置规则可以根据实际情况确定, 例如CNN加速器性能越好对应的识别算法的计算量越高。若所述硬件标识信息中包含CNN加速器标识,则获取所述目标设备中CNN加速器的性能参数,根据上述对应关系确定本地设备中CNN加速器的性能参数对应的目标识别子算法,选取该目标识别子算法作为目标识别算法包。Here, the above-mentioned first recognition algorithm includes one or more recognition sub-algorithms, and the calculation amount of each recognition sub-algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, and they are all recognition algorithms based on convolutional neural networks. The control device may preset the corresponding relationship between the CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm. The specific setting rules may be determined according to actual conditions. For example, the better the CNN accelerator performance, the higher the calculation amount of the recognition algorithm. If the hardware identification information includes the CNN accelerator identifier, the performance parameters of the CNN accelerator in the target device are acquired, the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the local device is determined according to the above-mentioned correspondence, and the target identifier is selected The algorithm is used as a target recognition algorithm package.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identifier, and the hardware identification information includes a GPU identifier, then a preset second identification algorithm is selected as the target identification algorithm package.
示例性的,在上述获取本地设备的处理能力信息之后,如果检测所述硬件标识信息不包含CNN加速器标识,则进一步检测所述硬件标识信息是否包含GPU标识,如果有,选取预设的第二识别算法作为所述目标识别算法包。或者,在确定所述硬件标识信息中包含的标识,根据上述预设设置的硬件标识优先级,对确定的标识进行排序后,排序第一位的为GPU标识,则选取预设的第二识别算法作为所述目标识别算法包。其中,GPU标识可以为GPU型号、名称、编号等信息。GPU称为图形处理器,又称显示核心、视觉处理器、显示芯片,是一种专门在个人电脑、工作站、游戏机和一些移动设备(如平板电脑、智能手机等)上图像运算工作的微处理器。Exemplarily, after the processing capability information of the local device is obtained as described above, if it is detected that the hardware identification information does not include the CNN accelerator identification, then it is further detected whether the hardware identification information contains the GPU identification, and if so, the preset second The recognition algorithm is used as the target recognition algorithm package. Or, after determining the identifiers contained in the hardware identification information, and sorting the determined identifiers according to the preset hardware identifier priority, the GPU identifier is ranked first, and then the preset second identifier is selected The algorithm is used as the target recognition algorithm package. Wherein, the GPU identifier may be information such as GPU model, name, number, and so on. GPU is called graphics processor, also known as display core, visual processor, display chip. It is a kind of microcomputer that specializes in image calculation on personal computers, workstations, game consoles and some mobile devices (such as tablet computers, smart phones, etc.). processor.
可选地,所述第二识别算法的计算量在10GFLOPS至100GFLOPS范围内,所述第二识别算法为基于卷积神经网络的识别算法。Optionally, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the second recognition algorithm is a recognition algorithm based on a convolutional neural network.
可选地,所述第二识别算法包括一个或多个识别子算法;Optionally, the second recognition algorithm includes one or more recognition sub-algorithms;
所述若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则选取预设的第二识别算法作为所述目标识别算法包,包括:If the hardware identification information does not include a CNN accelerator identification, and the hardware identification information contains a GPU identification, then selecting a preset second identification algorithm as the target identification algorithm package includes:
若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则根据所述GPU标识获取所述本地设备中GPU的性能参数;If the hardware identification information does not include a CNN accelerator identification, and the hardware identification information contains a GPU identification, acquiring the performance parameters of the GPU in the local device according to the GPU identification;
根据预设GPU性能参数与所述第二识别算法中识别子算法的对应关系,确定所述本地设备中GPU的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset GPU performance parameters and the recognition sub-algorithm in the second recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the GPU in the local device, and select the target recognition sub-algorithm as the target recognition Algorithm package.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则选取预设的第三识别算法作为所述目标识别算法包。If the hardware identification information does not contain the CNN accelerator identification and the GPU identification, and the hardware identification information contains the CPU identification, then a preset third identification algorithm is selected as the target identification algorithm package.
示例性的,在上述获取本地设备的处理能力信息之后,如果检测所述硬件标识信息不包含CNN加速器标识和GPU标识,则进一步检测所述硬件标识信息是否包含CPU标识,如果有,选取预设的第三识别算法作为所述目标识别算法包。或者,在确定所述硬件标识信息中包含的标识,根据上述预设设置的硬件标识优先级,对确定的标识进行排序后,排序第一位的为CPU标识,则选取预设的第三识别算法作为所述目标识别算法包。其中,CPU标识可以为CPU型号、名称、编号等信息。CPU称为中央处理器,是一块超大规模的集成电路,是一台计算机的运算核心(Core)和控制核心(Control Unit)。它的功能主要是解释计算机指令以及处理计算机软件中的数据。Exemplarily, after the processing capability information of the local device is obtained above, if it is detected that the hardware identification information does not include the CNN accelerator identification and the GPU identification, then it is further detected whether the hardware identification information contains the CPU identification, and if so, select the preset The third recognition algorithm is used as the target recognition algorithm package. Or, after determining the identifiers contained in the hardware identification information, and sorting the determined identifiers according to the preset hardware identifier priority, the CPU identifier is ranked first, and then the preset third identifier is selected The algorithm is used as the target recognition algorithm package. Among them, the CPU identifier may be information such as the CPU model, name, and serial number. The CPU is called the central processing unit, which is a very large-scale integrated circuit, and is the core and control unit of a computer. Its function is mainly to interpret computer instructions and process data in computer software.
可选地,所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第三识别算法为基于卷积神经网络的识别算法。Optionally, the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS, and the third recognition algorithm is a recognition algorithm based on a convolutional neural network.
可选地,所述第三识别算法包括一个或多个识别子算法;Optionally, the third recognition algorithm includes one or more recognition sub-algorithms;
所述若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则选取预设的第三识别算法作为所述目标识别算法包,包括:If the hardware identification information does not include the CNN accelerator identification and the GPU identification, and the hardware identification information contains the CPU identification, then selecting a preset third identification algorithm as the target identification algorithm package includes:
若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则根据所述CPU标识获取所述本地设备中CPU的性能参数;If the hardware identification information does not contain a CNN accelerator identification and a GPU identification, and the hardware identification information contains a CPU identification, then obtain the performance parameters of the CPU in the local device according to the CPU identification;
根据预设CPU性能参数与所述第三识别算法中识别子算法的对应关系,确定所述本地设备中CPU的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CPU performance parameters and the recognition sub-algorithm in the third recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CPU in the local device, and select the target recognition sub-algorithm as the target recognition Algorithm package.
可选地,所述方法还包括:Optionally, the method further includes:
判断所述CPU标识对应的CPU的主频是否大于预设阈值;Judging whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述 选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
其中,上述预设阈值可以根据实际情况设置,例如主频大于2.0GHz。Wherein, the aforementioned preset threshold may be set according to actual conditions, for example, the main frequency is greater than 2.0 GHz.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, a preset fourth identification algorithm is selected as the target identification algorithm package.
示例性的,在上述获取本地设备的处理能力信息之后,如果检测所述硬件标识信息不包含CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。或者,在确定所述硬件标识信息中包含的标识,根据上述预设设置的硬件标识优先级,对确定的标识进行排序后,排序第一位的不为CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。Exemplarily, after the processing capability information of the local device is obtained above, if it is detected that the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package . Alternatively, after determining the identifiers contained in the hardware identification information, and sorting the determined identifiers according to the above preset hardware identifier priority, the first ranked ones are not the CNN accelerator identifier, GPU identifier, and CPU identifier, Then the preset fourth recognition algorithm is selected as the target recognition algorithm package.
可选地,所述第四识别算法为基于相关滤波器的识别算法。所述第四识别算法的计算量低于所述第三识别算法的计算量。其中,相关滤波器通过将待检测图像与滤波器进行相关处理得到相应结果,再根据获得的滤波输出来进行判断与定位。Optionally, the fourth recognition algorithm is a recognition algorithm based on a correlation filter. The calculation amount of the fourth recognition algorithm is lower than the calculation amount of the third recognition algorithm. Among them, the correlation filter obtains the corresponding result by correlating the image to be detected with the filter, and then judges and locates according to the obtained filter output.
可选地,所述第四识别算法包括一个或多个识别子算法;Optionally, the fourth recognition algorithm includes one or more recognition sub-algorithms;
所述若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包,包括:If the hardware identification information does not include CNN accelerator identification, GPU identification, and CPU identification, selecting a preset fourth identification algorithm as the target identification algorithm package includes:
若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则获取所述本地设备中剩余的性能参数;If the hardware identification information does not include CNN accelerator identification, GPU identification, and CPU identification, acquiring the remaining performance parameters in the local device;
根据预设剩余性能参数与所述第四识别算法中识别子算法的对应关系,确定所述本地设备中剩余的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包,其中,剩余性能参数可以为本地设备中除CNN加速器性能参数、GPU性能参数和CPU性能参数外的其它性能参数。According to the correspondence between the preset remaining performance parameters and the recognition sub-algorithm in the fourth recognition algorithm, determine the target recognition sub-algorithm corresponding to the remaining performance parameters in the local device, and select the target recognition sub-algorithm as the target recognition Algorithm package, where the remaining performance parameters can be other performance parameters in the local device except CNN accelerator performance parameters, GPU performance parameters, and CPU performance parameters.
可选地,若获取到的硬件标识仅为一个时,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, if only one hardware identifier is obtained, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes :
若所述硬件标识信息为CNN加速器标识,则选取预设的第一识别算 法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package;
若所述硬件标识信息为GPU标识,则选取预设的第二识别算法作为所述目标识别算法包;If the hardware identification information is a GPU identification, select a preset second identification algorithm as the target identification algorithm package;
若所述硬件标识信息为CPU标识,则选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, select a preset third identification algorithm as the target identification algorithm package;
若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package.
本实施例提供的算法配置方法,通过获取本地设备的处理能力信息,根据该处理能力信息,在预设的多个识别算法包中选取与该处理能力信息相匹配的目标识别算法包,实现了对目标识别算法的自适应配置,使其在高性能硬件上运行能够充分利用硬件资源,在低性能硬件上运行可以做到最好的兼容性,解决目标识别算法应用于终端设备时,出现无法在低性能设备硬件上运行,或者无法发挥高性能设备硬件优势的问题。The algorithm configuration method provided in this embodiment obtains the processing capability information of the local device, and according to the processing capability information, selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages, thereby achieving The adaptive configuration of the target recognition algorithm makes it possible to make full use of hardware resources when running on high-performance hardware. It can achieve the best compatibility when running on low-performance hardware. It solves the problem of failure when the target recognition algorithm is applied to terminal equipment. Run on low-performance equipment hardware, or fail to take advantage of high-performance equipment hardware.
图2为本申请实施例提供的另一种算法配置方法的流程示意图,本实施例在图1实施例的基础上,对本实施例的具体实现过程进行了详细说明。如图2所示,该方法包括:FIG. 2 is a schematic flowchart of another algorithm configuration method provided by an embodiment of the application. Based on the embodiment in FIG. 1, this embodiment describes in detail the specific implementation process of this embodiment. As shown in Figure 2, the method includes:
S201:获取本地设备的硬件标识信息。S201: Obtain hardware identification information of the local device.
这里,可以在预设条件下获取本地设备的硬件标识信息,例如在预设时间段内获取本地设备的硬件标识信息,其中,上述预设时间段可以根据实际需要设置。其它时间段不获取本地设备的硬件标识信息,即不进行后续算法配置,满足多种应用场景需要。Here, the hardware identification information of the local device can be acquired under preset conditions, for example, the hardware identification information of the local device can be acquired within a preset time period, where the aforementioned preset time period can be set according to actual needs. In other time periods, the hardware identification information of the local device is not obtained, that is, no subsequent algorithm configuration is performed to meet the needs of various application scenarios.
另外,还可以通过多次获取本地设备的硬件标识信息来保证后续处理的准确进行,其中,获取次数可以由相关人员设置。In addition, it is also possible to obtain the hardware identification information of the local device multiple times to ensure the accuracy of subsequent processing, wherein the number of acquisitions can be set by relevant personnel.
S202:若所述硬件标识信息中包含CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包。S202: If the hardware identification information includes a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package.
可选地,若所述硬件标识信息中包含CNN加速器标识,则判断所述CNN加速器标识对应的CNN加速器的性能参数是否满足预设要求,如果满足,执行上述选取预设的第一识别算法作为所述目标识别算法包的步骤。其中,上述预设要求可以根据实际情况设置。Optionally, if the hardware identification information includes a CNN accelerator identifier, it is determined whether the performance parameters of the CNN accelerator corresponding to the CNN accelerator identifier meet the preset requirements, and if so, execute the above-mentioned selection of the preset first recognition algorithm as The steps of the target recognition algorithm package. Among them, the aforementioned preset requirements can be set according to actual conditions.
S203:若所述硬件标识信息中不包含CNN加速器标识,所述硬件标 识信息中包含GPU标识,则选取预设的第二识别算法作为所述目标识别算法包。S203: If the hardware identification information does not contain the CNN accelerator identification, and the hardware identification information contains the GPU identification, select a preset second identification algorithm as the target identification algorithm package.
同理,若所述硬件标识信息中不包含CNN加速器标识,但所述硬件标识信息中包含GPU标识,则判断所述GPU标识对应的GPU的性能参数是否满足预设要求,如果满足,执行上述选取预设的第二识别算法作为所述目标识别算法包的步骤。In the same way, if the hardware identification information does not contain the CNN accelerator identification, but the hardware identification information contains the GPU identification, it is determined whether the performance parameters of the GPU corresponding to the GPU identification meet the preset requirements, and if so, execute the above The step of selecting a preset second recognition algorithm as the target recognition algorithm package.
S204:若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则选取预设的第三识别算法作为所述目标识别算法包。S204: If the hardware identification information does not include a CNN accelerator identification and a GPU identification, and the hardware identification information contains a CPU identification, select a preset third identification algorithm as the target identification algorithm package.
S205:若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。S205: If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, select a preset fourth identification algorithm as the target identification algorithm package.
这里,所述第一识别算法的计算量高于所述第二识别算法的计算量,所述第二识别算法的计算量高于所述第三识别算法的计算量,所述第三识别算法的计算量高于所述第四识别算法的计算量,所述第一识别算法、所述第二识别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。其中,卷积神经网络方式实现,精度高,计算量较大,相关滤波器方式实现,精度低,计算量较小。Here, the calculation amount of the first recognition algorithm is higher than the calculation amount of the second recognition algorithm, the calculation amount of the second recognition algorithm is higher than the calculation amount of the third recognition algorithm, and the third recognition algorithm The calculation amount is higher than the calculation amount of the fourth recognition algorithm. The first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on convolutional neural networks, and the fourth The recognition algorithm is a recognition algorithm based on correlation filters. Among them, the convolutional neural network method is implemented with high accuracy and a large amount of calculation, and the correlation filter method is implemented with low accuracy and a small amount of calculation.
S206:基于所述目标识别算法包,对预设的目标物进行识别,并生成识别结果。S206: Recognize a preset target based on the target recognition algorithm package, and generate a recognition result.
S207:根据所述识别结果,控制所述本地设备对所述目标物进行跟随。S207: Control the local device to follow the target according to the recognition result.
示例性的,对预设的目标物进行识别为对人脸识别,对目标物进行跟随采用自动跟随技术,其中,对人脸识别是一种以各种传感器为输入(比如摄像头),自动检测在传感器视野中的人脸,得到其在画面中的位置、所占大小的技术。自动跟随技术:是一种以各种传感器为输入(比如摄像头),自动锁定在传感器视野中的某个指定的物体,然后持续对其进行锁定跟随的技术。Exemplarily, the recognition of the preset target is face recognition, and the automatic follow technology is used to follow the target. Among them, face recognition is a kind of automatic detection with various sensors as input (such as a camera) The technology of obtaining the position and size of the human face in the field of view of the sensor. Auto-following technology: It is a technology that takes various sensors as input (such as a camera), automatically locks on a specified object in the sensor's field of view, and then continues to lock and follow it.
另外,除了对人脸识别以外,对预设的目标物进行识别还可以使用其他物体识别技术,例如车辆识别、某种动物的识别等,以满足不同场景的需要。除了目标识别算法可以用本申请算法配置方法,类似的物体检测算 法也能使用本申请提及的方法进行自适应硬件匹配。In addition, in addition to face recognition, other object recognition technologies can also be used to recognize preset targets, such as vehicle recognition, recognition of certain animals, etc., to meet the needs of different scenarios. In addition to the target recognition algorithm that can use the algorithm configuration method of this application, similar object detection algorithms can also use the method mentioned in this application for adaptive hardware matching.
本实施例提供的算法配置方法,可自适应地配置算法,使其在高性能硬件上运行高精度算法以充分利用硬件资源,在低性能硬件上运行低精度算法以做到最好的兼容性,充分利用硬件性能达到最好的算法效率。The algorithm configuration method provided in this embodiment can adaptively configure the algorithm so that it can run high-precision algorithms on high-performance hardware to make full use of hardware resources, and run low-precision algorithms on low-performance hardware to achieve the best compatibility. , Make full use of hardware performance to achieve the best algorithm efficiency.
图3为本申请实施例提供的再一种算法配置方法的流程示意图,本申请实施例的执行主体可以为图4所示实施例中的控制设备和目标设备。图4为算法配置系统架构示意图,包括控制设备401和目标设备402。控制设备401可以获取目标设备402的处理能力信息,可以根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;其中,所述目标识别算法包用于在执行时,控制所述目标设备402对预设的目标物进行识别。FIG. 3 is a schematic flowchart of yet another algorithm configuration method provided by an embodiment of this application. The execution subject of this embodiment of this application may be the control device and the target device in the embodiment shown in FIG. 4. FIG. 4 is a schematic diagram of the architecture of the algorithm configuration system, including a control device 401 and a target device 402. The control device 401 may obtain the processing capability information of the target device 402, and may select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information; wherein, the The target recognition algorithm package is used to control the target device 402 to recognize a preset target during execution.
其中,上述目标设备可以为可移动平台,包括飞行器、云台等。上述目标设备的处理能力信息为可以标识上述目标设备硬件处理能力的信息,例如上述目标设备的硬件标识信息。上述控制设备可以预存设备的处理能力信息与识别算法的对应关系,根据该对应关系确定上述目标设备的处理能力信息对应的目标识别算法包,上述目标设备可以根据目标识别算法包对预设的目标物进行识别,这里,预设的目标物可以为任意一个或多个需要识别的人或物。另外,上述预设的多个识别算法包中的目标识别算法可以根据实际情况设置,示例性的,目标识别算法可以为:不依赖于先验知识,直接从图像序列中检测到目标,并进行目标识别,最终跟踪感兴趣的目标;或者,依赖于目标的先验知识,首先为运动目标建模,然后在图像序列中实时找到相匹配的目标。Among them, the above-mentioned target device may be a movable platform, including an aircraft, a pan/tilt, etc. The processing capability information of the target device is information that can identify the hardware processing capability of the target device, for example, the hardware identification information of the target device. The control device may pre-store the corresponding relationship between the processing capability information of the device and the recognition algorithm, and determine the target recognition algorithm package corresponding to the processing capability information of the target device according to the corresponding relationship. The target device may compare the preset target according to the target recognition algorithm package. Here, the preset target can be any one or more people or things that need to be identified. In addition, the target recognition algorithm in the above-mentioned preset multiple recognition algorithm packages can be set according to the actual situation. For example, the target recognition algorithm can be: does not rely on prior knowledge, directly detects the target from the image sequence, and performs Target recognition, finally tracking the target of interest; or, relying on the prior knowledge of the target, first model the moving target, and then find the matching target in the image sequence in real time.
应理解,下述相关特性、功能等与图1、图2的描述相对应的部分,下述为了简洁,适当省略重复的描述。如图3所示,该方法可以包括:It should be understood that the following related features, functions, and other parts corresponding to the description of FIG. 1 and FIG. 2 are described below for brevity, and repeated descriptions are appropriately omitted. As shown in Figure 3, the method may include:
S301:控制设备获取目标设备的处理能力信息。S301: The control device obtains the processing capability information of the target device.
可选地,所述控制设备获取目标设备的处理能力信息,包括:Optionally, the control device acquiring the processing capability information of the target device includes:
所述控制设备获取所述目标设备的硬件标识信息。The control device obtains the hardware identification information of the target device.
S302:控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包。S302: According to the processing capability information, the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages.
可选地,所述控制设备根据所述处理能力信息,在预设的多个识别算 法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
若所述硬件标识信息中包含CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package.
可选地,所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则所述控制设备选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identification, and the hardware identification information contains a GPU identification, the control device selects a preset second identification algorithm as the target identification algorithm package.
可选地,所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则所述控制设备选取预设的第三识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identification and a GPU identification, and the hardware identification information contains a CPU identification, the control device selects a preset third identification algorithm as the target identification algorithm package.
可选地,所述方法还包括:Optionally, the method further includes:
所述控制设备判断所述CPU标识对应的CPU的主频是否大于预设阈值;The control device determines whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
可选地,所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则所述控制设备选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, the control device selects a preset fourth identification algorithm as the target identification algorithm package.
可选地,所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, including:
若所述硬件标识信息为CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package;
若所述硬件标识信息为GPU标识,则所述控制设备选取预设的第二识别算法作为所述目标识别算法包;If the hardware identification information is a GPU identification, the control device selects a preset second identification algorithm as the target identification algorithm package;
若所述硬件标识信息为CPU标识,则所述控制设备选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, the control device selects a preset third identification algorithm as the target identification algorithm package;
若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则所述控制设备选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, the control device selects a preset fourth identification algorithm as the target identification algorithm package.
可选地,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第二识别算法的计算量在10GFLOPS至100GFLOPS范围内,所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第一识别算法、所述第二识别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。Optionally, the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS Inside, the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on a convolutional neural network, and the fourth recognition algorithm is a recognition algorithm based on a correlation filter.
可选地,所述第一识别算法包括一个或多个识别子算法;Optionally, the first recognition algorithm includes one or more recognition sub-algorithms;
所述若所述硬件标识信息中包含CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包,包括:If the hardware identification information includes a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package, which includes:
若所述硬件标识信息中包含CNN加速器标识,则所述控制设备根据所述CNN加速器标识获取所述目标设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, the control device obtains the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述目标设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
S303:控制设备将所述目标识别算法包发送至目标设备。S303: The control device sends the target recognition algorithm package to the target device.
S304:所述目标设备根据所述目标识别算法包对预设的目标物进行识别。S304: The target device recognizes a preset target object according to the target recognition algorithm package.
可选地,所述方法还包括:Optionally, the method further includes:
所述目标设备生成识别结果,并根据所述识别结果对所述目标物进行跟随。The target device generates a recognition result, and follows the target according to the recognition result.
存在一种应用场景是,当控制设备为遥感设备,所述目标设备为可移动平台时,所述控制设备获得相应识别结果,向所述可移动平台本体发出跟随指令,以使得所述可移动平台本体能够根据所述跟随指令对所述目标物进行跟随。There is an application scenario that when the control device is a remote sensing device and the target device is a movable platform, the control device obtains the corresponding recognition result and sends a follow instruction to the movable platform body to make the movable platform The platform body can follow the target according to the follow instruction.
可选地,所述方法还包括:Optionally, the method further includes:
所述目标设备将所述识别结果发送至所述控制设备。The target device sends the recognition result to the control device.
可选地,所述方法还包括:Optionally, the method further includes:
所述控制设备根据所述识别结果,对所述目标物进行跟随。The control device follows the target object according to the recognition result.
存在一种应用场景是,控制设备为可移动平台本体,目标设备为与可移动本体相连接的图像识别器件,可移动平台本体为图像识别器件配置目标识别算法,而图像识别器件基于所述目标识别算法包对目标物进行识别,并将所述识别结果发送至可移动平台本体,可移动平台本体再基于所述识别结果对所述目标物进行跟随。There is an application scenario where the control device is a movable platform body, the target device is an image recognition device connected to the movable body, and the movable platform body configures a target recognition algorithm for the image recognition device, and the image recognition device is based on the target The recognition algorithm package recognizes the target object, and sends the recognition result to the movable platform body, and the movable platform body then follows the target object based on the recognition result.
本实施例提供的算法配置方法,控制设备获取目标设备的处理能力信息,根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,并将所述目标识别算法包发送至目标设备,目标设备根据所述目标识别算法包对预设的目标物进行识别,实现自适应地配置算法,使其在高性能硬件上运行高精度算法以充分利用硬件资源,在低性能硬件上运行低精度算法以做到最好的兼容性,充分利用硬件性能达到最好的算法效率。In the algorithm configuration method provided in this embodiment, the control device obtains the processing capability information of the target device, and according to the processing capability information, selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages , And send the target recognition algorithm package to the target device, and the target device recognizes the preset target according to the target recognition algorithm package, and realizes the adaptive configuration algorithm so that it can run high-precision algorithms on high-performance hardware To make full use of hardware resources, run low-precision algorithms on low-performance hardware to achieve the best compatibility, and make full use of hardware performance to achieve the best algorithm efficiency.
图5为本申请实施例提供的又一种算法配置方法的流程示意图,本申请实施例的执行主体可以为控制设备。应理解,下述相关特性、功能等与图2、图3的描述相对应的部分,下述为了简洁,适当省略重复的描述。如图5所示,该方法可以包括:FIG. 5 is a schematic flowchart of yet another algorithm configuration method provided by an embodiment of this application. The execution subject of this embodiment of this application may be a control device. It should be understood that the following related features, functions, and other parts corresponding to the description of FIG. 2 and FIG. 3 are described below for brevity, and repeated descriptions are appropriately omitted. As shown in Figure 5, the method may include:
S501:获取目标设备的处理能力信息。S501: Acquire processing capability information of the target device.
可选地,所述获取目标设备的处理能力信息,包括:Optionally, the acquiring processing capability information of the target device includes:
获取所述目标设备的硬件标识信息。Obtain the hardware identification information of the target device.
S502:根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包。S502: According to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中包含CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a CNN accelerator identification, a preset first identification algorithm is selected as the target identification algorithm package.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identifier, and the hardware identification information includes a GPU identifier, then a preset second identification algorithm is selected as the target identification algorithm package.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选 取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则选取预设的第三识别算法作为所述目标识别算法包。If the hardware identification information does not contain the CNN accelerator identification and the GPU identification, and the hardware identification information contains the CPU identification, then a preset third identification algorithm is selected as the target identification algorithm package.
可选地,所述方法还包括:Optionally, the method further includes:
判断所述CPU标识对应的CPU的主频是否大于预设阈值;Judging whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, a preset fourth identification algorithm is selected as the target identification algorithm package.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息为CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package;
若所述硬件标识信息为GPU标识,则选取预设的第二识别算法作为所述目标识别算法包;If the hardware identification information is a GPU identification, select a preset second identification algorithm as the target identification algorithm package;
若所述硬件标识信息为CPU标识,则选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, select a preset third identification algorithm as the target identification algorithm package;
若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package.
可选地,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第二识别算法的计算量在10GFLOPS至100GFLOPS范围内,所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第一识别算法、所述第二识别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。Optionally, the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS Inside, the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on a convolutional neural network, and the fourth recognition algorithm is a recognition algorithm based on a correlation filter.
可选地,所述第一识别算法包括一个或多个识别子算法;Optionally, the first recognition algorithm includes one or more recognition sub-algorithms;
所述若所述硬件标识信息中包含CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包,包括:If the hardware identification information includes a CNN accelerator identification, selecting a preset first identification algorithm as the target identification algorithm package includes:
若所述硬件标识信息中包含CNN加速器标识,则根据所述CNN加速器标识获取所述目标设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, obtain the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述目标设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
S503:将所述目标识别算法包发送至目标设备,所述目标识别算法用于指示所述目标设备根据所述目标识别算法包对预设的目标物进行识别。S503: Send the target recognition algorithm package to a target device, where the target recognition algorithm is used to instruct the target device to recognize a preset target according to the target recognition algorithm package.
可选地,所述方法还包括:Optionally, the method further includes:
接收所述目标设备发送的对所述目标物进行识别的识别结果。Receiving a recognition result for recognizing the target object sent by the target device.
可选地,所述方法还包括:Optionally, the method further includes:
根据所述识别结果,对所述目标物进行跟随。According to the recognition result, the target is followed.
本实施例提供的算法配置方法,控制设备获取目标设备的处理能力信息,根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,并将所述目标识别算法包发送至目标设备,所述目标识别算法用于指示所述目标设备根据所述目标识别算法包对预设的目标物进行识别,实现自适应地配置算法,使其在高性能硬件上运行高精度算法以充分利用硬件资源,在低性能硬件上运行低精度算法以做到最好的兼容性,充分利用硬件性能达到最好的算法效率。In the algorithm configuration method provided in this embodiment, the control device obtains the processing capability information of the target device, and according to the processing capability information, selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages , And send the target recognition algorithm package to the target device, and the target recognition algorithm is used to instruct the target device to recognize the preset target according to the target recognition algorithm package, so as to realize adaptively configuring the algorithm so that It runs high-precision algorithms on high-performance hardware to make full use of hardware resources, runs low-precision algorithms on low-performance hardware to achieve the best compatibility, and makes full use of hardware performance to achieve the best algorithm efficiency.
图6为本申请实施例提供的又一种算法配置方法的流程示意图,本申请实施例的执行主体可以为目标设备。应理解,下述相关特性、功能等与图2、图3的描述相对应的部分,下述为了简洁,适当省略重复的描述。如图6所示,该方法可以包括:FIG. 6 is a schematic flowchart of another algorithm configuration method provided by an embodiment of the present application. The execution subject of the embodiment of the present application may be a target device. It should be understood that the following related features, functions, and other parts corresponding to the description of FIG. 2 and FIG. 3 are described below for brevity, and repeated descriptions are appropriately omitted. As shown in Figure 6, the method may include:
S601:接收控制设备发送的目标识别算法包,所述目标识别算法包为根据目标设备的处理能力信息,在预设的多个识别算法包中选取得到,所述目标识别算法与所述目标设备的处理能力信息相匹配。S601: Receive a target recognition algorithm package sent by the control device, where the target recognition algorithm package is selected from a plurality of preset recognition algorithm packages according to the processing capability information of the target device, and the target recognition algorithm and the target device Match the processing power information.
S602:根据所述目标识别算法包对预设的目标物进行识别。S602: Recognize a preset target according to the target recognition algorithm package.
可选地,所述方法还包括:Optionally, the method further includes:
生成识别结果,根据所述识别结果对所述目标物进行跟随。A recognition result is generated, and the target is followed according to the recognition result.
可选地,所述方法还包括:Optionally, the method further includes:
将所述识别结果发送至控制设备。Send the recognition result to the control device.
本实施例提供的算法配置方法,目标设备接收控制设备发送的目标识别算法包,所述目标识别算法包为根据目标设备的处理能力信息,在预设的多个识别算法包中选取得到,所述目标识别算法与所述目标设备的处理能力信息相匹配,根据所述目标识别算法包对预设的目标物进行识别,实现自适应地配置算法,使其在高性能硬件上运行高精度算法以充分利用硬件资源,在低性能硬件上运行低精度算法以做到最好的兼容性,充分利用硬件性能达到最好的算法效率。In the algorithm configuration method provided in this embodiment, the target device receives a target recognition algorithm package sent by the control device, and the target recognition algorithm package is selected from a plurality of preset recognition algorithm packages according to the processing capability information of the target device, so The target recognition algorithm is matched with the processing capability information of the target device, and the preset target is recognized according to the target recognition algorithm package, so as to realize the adaptive configuration algorithm, so that it can run high-precision algorithms on high-performance hardware To make full use of hardware resources, run low-precision algorithms on low-performance hardware to achieve the best compatibility, and make full use of hardware performance to achieve the best algorithm efficiency.
图7为本申请实施例提供的一种算法配置设备的硬件结构示意图。如图7所示,本实施例的算法配置设备70包括:第一处理器701以及第一存储器702;其中FIG. 7 is a schematic diagram of the hardware structure of an algorithm configuration device provided by an embodiment of the application. As shown in FIG. 7, the algorithm configuration device 70 of this embodiment includes: a first processor 701 and a first memory 702;
存储器702,用于存储计算机执行指令;The memory 702 is used to store computer execution instructions;
处理器701,用于执行存储器存储的计算机执行指令,以实现上述实施例中图1、图2所述算法配置方法所执行的各个步骤。具体可以参见前述方法实施例中的相关描述。The processor 701 is configured to execute computer-executable instructions stored in the memory to implement the steps performed by the algorithm configuration method described in FIG. 1 and FIG. 2 in the foregoing embodiment. For details, refer to the related description in the foregoing method embodiment.
可选地,存储器702既可以是独立的,也可以跟处理器701集成在一起。Optionally, the memory 702 may be independent or integrated with the processor 701.
当存储器702独立设置时,该算法配置设备还包括总线703,用于连接所述存储器702和处理器701。When the memory 702 is set independently, the algorithm configuration device further includes a bus 703 for connecting the memory 702 and the processor 701.
本申请实施例提供的设备,可用于执行上述图1、图2方法实施例的技术方案,其实现原理和技术效果类似,本申请实施例此处不再赘述。The device provided in the embodiment of the present application can be used to implement the technical solutions of the method embodiments in FIG. 1 and FIG. 2 above, and its implementation principles and technical effects are similar, and the embodiments of the present application will not be repeated here.
图8为本申请实施例提供的一种控制设备的硬件结构示意图。如图8所示,本实施例的控制设备80包括:第二处理器801以及第二存储器802;其中FIG. 8 is a schematic diagram of the hardware structure of a control device provided by an embodiment of the application. As shown in FIG. 8, the control device 80 of this embodiment includes: a second processor 801 and a second memory 802;
存储器802,用于存储计算机执行指令;The memory 802 is used to store computer execution instructions;
处理器801,用于执行存储器存储的计算机执行指令,以实现上述实施例中图5所述算法配置方法所执行的各个步骤。具体可以参见前述方法实施例中的相关描述。The processor 801 is configured to execute computer-executable instructions stored in the memory to implement each step executed by the algorithm configuration method described in FIG. 5 in the foregoing embodiment. For details, refer to the related description in the foregoing method embodiment.
可选地,存储器802既可以是独立的,也可以跟处理器801集成在一起。Optionally, the memory 802 may be independent or integrated with the processor 801.
当存储器802独立设置时,该算法配置设备还包括总线803,用于连 接所述存储器802和处理器801。When the memory 802 is set independently, the algorithm configuration device also includes a bus 803 for connecting the memory 802 and the processor 801.
本申请实施例提供的设备,可用于执行上述图5方法实施例的技术方案,其实现原理和技术效果类似,本申请实施例此处不再赘述。The device provided in the embodiment of the present application can be used to implement the technical solution of the method embodiment in FIG. 5, and its implementation principles and technical effects are similar, and the details of the embodiment of the present application are not repeated here.
图9为本申请实施例提供的一种目标设备的硬件结构示意图。如图9所示,本实施例的目标设备90包括:第三处理器901以及第三存储器902;其中FIG. 9 is a schematic diagram of the hardware structure of a target device provided by an embodiment of the application. As shown in FIG. 9, the target device 90 of this embodiment includes: a third processor 901 and a third memory 902;
存储器902,用于存储计算机执行指令;The memory 902 is used to store computer execution instructions;
处理器901,用于执行存储器存储的计算机执行指令,以实现上述实施例中图6所述算法配置方法所执行的各个步骤。具体可以参见前述方法实施例中的相关描述。The processor 901 is configured to execute computer-executable instructions stored in the memory to implement each step executed by the algorithm configuration method described in FIG. 6 in the foregoing embodiment. For details, refer to the related description in the foregoing method embodiment.
可选地,存储器902既可以是独立的,也可以跟处理器901集成在一起。Optionally, the memory 902 may be independent or integrated with the processor 901.
当存储器902独立设置时,该算法配置设备还包括总线903,用于连接所述存储器902和处理器901。When the memory 902 is set independently, the algorithm configuration device further includes a bus 903 for connecting the memory 902 and the processor 901.
本申请实施例提供的设备,可用于执行上述图6方法实施例的技术方案,其实现原理和技术效果类似,本申请实施例此处不再赘述。The device provided in the embodiment of the present application can be used to implement the technical solution of the method embodiment in FIG. 6 above, and its implementation principles and technical effects are similar, and the details of the embodiment of the present application are not repeated here.
图10为本申请实施例提供的一种算法配置系统的结构示意图。如图10所示,本实施例的算法配置系统100包括:控制设备1001和目标设备1002;其中,FIG. 10 is a schematic structural diagram of an algorithm configuration system provided by an embodiment of this application. As shown in FIG. 10, the algorithm configuration system 100 of this embodiment includes: a control device 1001 and a target device 1002; among them,
所述控制设备1001,用于获取目标设备的处理能力信息;并根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;将所述目标识别算法包发送至目标设备;The control device 1001 is configured to obtain processing capability information of a target device; and according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; Sending the target recognition algorithm package to the target device;
所述目标设备1002,用于根据所述目标识别算法包对预设的目标物进行识别。The target device 1002 is configured to recognize a preset target object according to the target recognition algorithm package.
可选的,所述目标设备1002,还用于生成识别结果,并根据所述识别结果对所述目标物进行跟随。Optionally, the target device 1002 is also used to generate a recognition result, and follow the target according to the recognition result.
可选的,所述目标设备1002,还用于将所述识别结果发送至所述控制设备。Optionally, the target device 1002 is further configured to send the identification result to the control device.
可选的,所述控制设备1001,还用于根据所述识别结果,对所述目标物进行跟随。Optionally, the control device 1001 is further configured to follow the target according to the recognition result.
可选的,所述控制设备1001,还用于获取所述目标设备的硬件标识信息。Optionally, the control device 1001 is also used to obtain hardware identification information of the target device.
可选的,所述控制设备1001,还用于:Optionally, the control device 1001 is further configured to:
若所述硬件标识信息中包含CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a CNN accelerator identification, a preset first identification algorithm is selected as the target identification algorithm package.
可选的,所述控制设备1001,还用于:Optionally, the control device 1001 is further configured to:
若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identifier, and the hardware identification information includes a GPU identifier, then a preset second identification algorithm is selected as the target identification algorithm package.
可选的,所述控制设备1001,还用于:Optionally, the control device 1001 is further configured to:
若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则选取预设的第三识别算法作为所述目标识别算法包。If the hardware identification information does not contain the CNN accelerator identification and the GPU identification, and the hardware identification information contains the CPU identification, then a preset third identification algorithm is selected as the target identification algorithm package.
可选的,所述控制设备1001,还用于:Optionally, the control device 1001 is further configured to:
若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, a preset fourth identification algorithm is selected as the target identification algorithm package.
可选的,所述控制设备1001,还用于:Optionally, the control device 1001 is further configured to:
判断所述CPU标识对应的CPU的主频是否大于预设阈值;Judging whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
可选的,所述控制设备1001,还用于:Optionally, the control device 1001 is further configured to:
若所述硬件标识信息为CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package;
若所述硬件标识信息为GPU标识,则选取预设的第二识别算法作为所述目标识别算法包;If the hardware identification information is a GPU identification, select a preset second identification algorithm as the target identification algorithm package;
若所述硬件标识信息为CPU标识,则选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, select a preset third identification algorithm as the target identification algorithm package;
若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package.
可选的,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第二识别算法的计算量在10GFLOPS至100GFLOPS范围内, 所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第一识别算法、所述第二识别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。Optionally, the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS Inside, the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on a convolutional neural network, and the fourth recognition algorithm is a recognition algorithm based on a correlation filter.
可选的,所述第一识别算法包括一个或多个识别子算法;Optionally, the first recognition algorithm includes one or more recognition sub-algorithms;
所述控制设备1001,还用于:The control device 1001 is also used for:
若所述硬件标识信息中包含CNN加速器标识,则根据所述CNN加速器标识获取所述目标设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, obtain the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述目标设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
本申请实施例提供的系统,其实现原理和技术效果如上述,本申请实施例此处不再赘述。The implementation principles and technical effects of the system provided in the embodiment of the present application are as described above, and the description of the embodiment of the present application is omitted here.
图11为本申请实施例提供的一种可移动平台的结构示意图。如图11所示,本实施例的可移动平台110包括:FIG. 11 is a schematic structural diagram of a movable platform provided by an embodiment of the application. As shown in FIG. 11, the movable platform 110 of this embodiment includes:
机体1101;Body 1101;
动力系统1102,设于所述机体1101,所述动力系统1102用于为所述可移动平台提供动力;以及以上如图7所述的算法配置设备70。The power system 1102 is provided in the body 1101, and the power system 1102 is used to provide power for the movable platform; and the algorithm configuration device 70 as described above in FIG. 7.
本申请实施例提供的设备,包括上述图7所述的算法配置设备70,其实现原理和技术效果如上述,本申请实施例此处不再赘述。The device provided by the embodiment of the present application includes the algorithm configuration device 70 described in FIG. 7 above, and its implementation principle and technical effect are as described above, and the embodiments of the present application will not be repeated here.
图12为本申请实施例提供的另一种可移动平台的结构示意图。如图12所示,本实施例的可移动平台120包括:FIG. 12 is a schematic structural diagram of another movable platform provided by an embodiment of the application. As shown in FIG. 12, the movable platform 120 of this embodiment includes:
机体1201;Body 1201;
动力系统1202,设于所述机体1201,所述动力系统1202用于为所述可移动平台提供动力;The power system 1202 is provided in the body 1201, and the power system 1202 is used to provide power for the movable platform;
以及如图8所述的控制设备80。And the control device 80 as described in FIG. 8.
本申请实施例提供的设备,包括上述图8所述的控制设备80,其实现原理和技术效果如上述,本申请实施例此处不再赘述。The devices provided in the embodiments of the present application include the control device 80 described in FIG. 8, and the implementation principles and technical effects thereof are as described above, and the embodiments of the present application will not be repeated here.
图13为本申请实施例提供的再一种可移动平台的结构示意图。如图13所示,本实施例的可移动平台130包括:FIG. 13 is a schematic structural diagram of still another movable platform provided by an embodiment of the application. As shown in FIG. 13, the movable platform 130 of this embodiment includes:
机体1301;Body 1301;
动力系统1302,设于所述机体1301,所述动力系统1302用于为所述可移动平台提供动力;The power system 1302 is provided in the body 1301, and the power system 1302 is used to provide power for the movable platform;
以及如图9所述的目标设备90。And the target device 90 as described in FIG. 9.
本申请实施例提供的设备,包括上述图9所述的控制设备90,其实现原理和技术效果如上述,本申请实施例此处不再赘述。The devices provided in the embodiments of the present application include the control device 90 described in FIG. 9 above, and the implementation principles and technical effects thereof are as described above, and the embodiments of the present application will not be repeated here.
图14为本申请实施例提供的又一种可移动平台的结构示意图。如图14所示,本实施例的可移动平台140包括:Fig. 14 is a schematic structural diagram of yet another movable platform provided by an embodiment of the application. As shown in FIG. 14, the movable platform 140 of this embodiment includes:
机体1401;Body 1401;
动力系统1402,设于所述机体1401,所述动力系统1402用于为所述可移动平台提供动力;The power system 1402 is provided in the body 1401, and the power system 1402 is used to provide power for the movable platform;
如图10所述的算法配置系统100,设于所述机体.The algorithm configuration system 100 as shown in Figure 10 is located in the body.
这里,目标设备和控制设备都位于机身上,目标设备可以用来识别,控制设备可以用来选取算法,以及控制可移动平台移动。另一种情况下,控制设备可以用来选取算法,目标设备可以用来识别和控制可移动平台移动。Here, the target device and the control device are both located on the fuselage, the target device can be used to identify, and the control device can be used to select algorithms and control the movement of the movable platform. In another case, the control device can be used to select the algorithm, and the target device can be used to identify and control the movement of the movable platform.
本申请实施例提供的设备,其实现原理和技术效果如上述,本申请实施例此处不再赘述。The implementation principles and technical effects of the device provided in the embodiment of the present application are as described above, and the description of the embodiment of the present application will not be repeated here.
图15为本申请实施例提供的又一种可移动平台的结构示意图。如图15所示,本实施例的可移动平台150包括:可移动平台本体1501和控制设备1502;所述可移动平台本体1501和所述控制设备1502无线连接或有线连接;FIG. 15 is a schematic structural diagram of another movable platform provided by an embodiment of the application. As shown in Figure 15, the movable platform 150 of this embodiment includes: a movable platform body 1501 and a control device 1502; the movable platform body 1501 and the control device 1502 are connected wirelessly or wiredly;
所述控制设备1502用于获取可移动平台本体1501的处理能力信息;根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;将所述目标识别算法包发送至可移动平台本体1501;The control device 1502 is configured to obtain the processing capability information of the movable platform body 1501; according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; Send the target recognition algorithm package to the movable platform body 1501;
所述可移动平台本体1501用于根据所述目标识别算法包对预设的目标物进行识别。The movable platform body 1501 is used to recognize a preset target according to the target recognition algorithm package.
可选地,所述可移动平台本体1501生成识别结果,并根据所述识别结果对所述目标物进行跟随。Optionally, the movable platform body 1501 generates a recognition result, and follows the target according to the recognition result.
可选地,所述可移动平台本体1501将所述识别结果发送至所述控制 设备1502。Optionally, the movable platform body 1501 sends the recognition result to the control device 1502.
可选地,所述控制设备1502根据所述识别结果,向所述可移动平台本体1501发出跟随指令,以使得所述可移动平台本体1501能够根据所述跟随指令对所述目标物进行跟随。Optionally, the control device 1502 sends a follow instruction to the movable platform body 1501 according to the recognition result, so that the movable platform body 1501 can follow the target according to the follow instruction.
可选地,所述控制设备1502获取可移动平台本体的处理能力信息,包括:Optionally, the control device 1502 acquiring processing capability information of the movable platform body includes:
所述控制设备获取所述可移动平台本体的硬件标识信息。The control device obtains the hardware identification information of the movable platform body.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中包含CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则所述控制设备选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identification, and the hardware identification information contains a GPU identification, the control device selects a preset second identification algorithm as the target identification algorithm package.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则所述控制设备选取预设的第三识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identification and a GPU identification, and the hardware identification information contains a CPU identification, the control device selects a preset third identification algorithm as the target identification algorithm package.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则所述控制设备选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, the control device selects a preset fourth identification algorithm as the target identification algorithm package.
可选地,所述控制设备判断所述CPU标识对应的CPU的主频是否大于预设阈值;Optionally, the control device determines whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
可选地,所述根据所述处理能力信息,在预设的多个识别算法包中选 取与所述处理能力信息相匹配的目标识别算法包,包括:Optionally, the selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes:
若所述硬件标识信息为CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package;
若所述硬件标识信息为GPU标识,则所述控制设备选取预设的第二识别算法作为所述目标识别算法包;If the hardware identification information is a GPU identification, the control device selects a preset second identification algorithm as the target identification algorithm package;
若所述硬件标识信息为CPU标识,则所述控制设备选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, the control device selects a preset third identification algorithm as the target identification algorithm package;
若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则所述控制设备选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, the control device selects a preset fourth identification algorithm as the target identification algorithm package.
可选地,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第二识别算法的计算量在10GFLOPS至100GFLOPS范围内,所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第一识别算法、所述第二识别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。Optionally, the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the calculation amount of the third recognition algorithm is in the range of 1 GFLOPS to 10 GFLOPS Inside, the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on a convolutional neural network, and the fourth recognition algorithm is a recognition algorithm based on a correlation filter.
可选地,所述第一识别算法包括一个或多个识别子算法;Optionally, the first recognition algorithm includes one or more recognition sub-algorithms;
所述若所述硬件标识信息中包含CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包,包括:If the hardware identification information includes a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package, which includes:
若所述硬件标识信息中包含CNN加速器标识,则所述控制设备根据所述CNN加速器标识获取所述目标设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, the control device obtains the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述目标设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
本实施例提供的可移动平台,控制设备获取可移动平台本体的处理能力信息,根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,并将所述目标识别算法包发送至可移动平台本体,可移动平台本体根据所述目标识别算法包对预设的目标物进行识别,实现自适应地配置算法,使其在高性能硬件上运行高精度算法以充分利用硬件资源,在低性能硬件上运行低精度算法以做到最好的兼容性,充分利用硬件性能达到最好的算法效率。In the mobile platform provided in this embodiment, the control device obtains the processing capability information of the movable platform body, and according to the processing capability information, selects target recognition matching the processing capability information from a plurality of preset recognition algorithm packages Algorithm package, and send the target recognition algorithm package to the mobile platform body, and the mobile platform body recognizes the preset target according to the target recognition algorithm package, and realizes the adaptive configuration algorithm to make it in high performance Run high-precision algorithms on hardware to make full use of hardware resources, run low-precision algorithms on low-performance hardware to achieve the best compatibility, and make full use of hardware performance to achieve the best algorithm efficiency.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上图1、图2所述的算法配置方法。The embodiments of the present application also provide a computer-readable storage medium, which stores computer-executable instructions, and when the processor executes the computer-executable instructions, the algorithm described in Figure 1 and Figure 2 above is implemented. Configuration method.
本申请实施例还提供另一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上图5所述的算法配置方法。The embodiment of the present application also provides another computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the algorithm configuration method described in FIG. .
本申请实施例还提供再一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上图6所述的算法配置方法。The embodiments of the present application also provide yet another computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executed instructions, the algorithm configuration method described in FIG. .
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other divisions in actual implementation, for example, multiple modules can be combined or integrated. To another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述模块成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules may be integrated into one unit. The units formed by the above-mentioned modules can be realized in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例所述方法的部分步骤。The above-mentioned integrated modules implemented in the form of software function modules may be stored in a computer readable storage medium. The above-mentioned software function module is stored in a storage medium and includes several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute the various embodiments of the present application Part of the method.
应理解,上述处理器可以是中央处理单元(Central Processing Unit, 简称CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that the foregoing processor may be a central processing unit (Central Processing Unit, CPU for short), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), and application specific integrated circuits (Application Specific Integrated Circuits). Referred to as ASIC) and so on. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in combination with the invention can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,还可以为U盘、移动硬盘、只读存储器、磁盘或光盘等。The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage, and may also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk, or an optical disk.
总线可以是工业标准体系结构(Industry Standard Architecture,简称ISA)总线、外部设备互连(Peripheral Component,简称PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,简称EISA)总线等。总线可分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus may be an Industry Standard Architecture (ISA) bus, Peripheral Component (PCI) bus, or Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.
上述存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。存储介质可以是通用或专用计算机能够存取的任何可用介质。The above-mentioned storage medium can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Except for programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disks or optical disks. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(Application Specific Integrated Circuits,简称ASIC)中。当然,处理器和存储介质也可以作为分立组件存在于电子设备或主控设备中。An exemplary storage medium is coupled to the processor, so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium may also be an integral part of the processor. The processor and the storage medium may be located in Application Specific Integrated Circuits (ASIC for short). Of course, the processor and the storage medium may also exist as discrete components in the electronic device or the main control device.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps including the foregoing method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的 普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: It is still possible to modify the technical solutions described in the foregoing embodiments, or equivalently replace some or all of the technical features; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the application range.

Claims (76)

  1. 一种算法配置方法,其特征在于,包括:An algorithm configuration method, characterized in that it includes:
    获取本地设备的处理能力信息;Obtain the processing capability information of the local device;
    根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;其中,所述目标识别算法包用于在执行时,控制所述本地设备对预设的目标物进行识别。According to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; wherein, the target recognition algorithm package is used to control the local The device recognizes the preset target.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    基于所述目标识别算法包,对预设的目标物进行识别,并生成识别结果。Based on the target recognition algorithm package, the preset target is recognized, and the recognition result is generated.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    根据所述识别结果,控制所述本地设备对所述目标物进行跟随。According to the recognition result, the local device is controlled to follow the target.
  4. 根据权利要求1所述的方法,其特征在于,所述获取本地设备的处理能力信息,包括:The method according to claim 1, wherein said acquiring processing capability information of a local device comprises:
    获取所述本地设备的硬件标识信息。Obtain the hardware identification information of the local device.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to claim 4, wherein the selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information comprises:
    若所述硬件标识信息中包含卷积神经网络CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a convolutional neural network CNN accelerator identification, a preset first identification algorithm is selected as the target identification algorithm package.
  6. 根据权利要求4或5所述的方法,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to claim 4 or 5, wherein the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes :
    若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含图形处理器GPU标识,则选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, and the hardware identification information contains the graphics processor GPU identification, then a preset second identification algorithm is selected as the target identification algorithm package.
  7. 根据权利要求4至6任一项所述的方法,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to any one of claims 4 to 6, wherein, according to the processing capability information, a target recognition algorithm that matches the processing capability information is selected from a plurality of preset recognition algorithm packages The package includes:
    若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含中央处理器CPU标识,则选取预设的第三识别算法作 为所述目标识别算法包。If the hardware identification information does not contain the CNN accelerator identification and the GPU identification, and the hardware identification information contains the central processing unit CPU identification, then a preset third identification algorithm is selected as the target identification algorithm package.
  8. 根据权利要求4至7任一项所述的方法,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to any one of claims 4 to 7, characterized in that, according to the processing capability information, a target recognition algorithm that matches the processing capability information is selected from a plurality of preset recognition algorithm packages The package includes:
    若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, a preset fourth identification algorithm is selected as the target identification algorithm package.
  9. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    判断所述CPU标识对应的CPU的主频是否大于预设阈值;Judging whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
    若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  10. 根据权利要求4所述的方法,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to claim 4, wherein the selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information comprises:
    若所述硬件标识信息为CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为GPU标识,则选取预设的第二识别算法作为所述目标识别算法包;If the hardware identification information is a GPU identification, select a preset second identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为CPU标识,则选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, select a preset third identification algorithm as the target identification algorithm package;
    若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package.
  11. 根据权利要求10所述的方法,其特征在于,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第二识别算法的计算量在10GFLOPS至100GFLOPS范围内,所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第一识别算法、所述第二识别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。The method of claim 10, wherein the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the third recognition algorithm The calculation amount of the algorithm is in the range of 1GFLOPS to 10GFLOPS. The first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on convolutional neural networks, and the fourth recognition algorithm is based on Recognition algorithm of correlation filter.
  12. 根据权利要求5所述的方法,其特征在于,所述第一识别算法包括一个或多个识别子算法;The method according to claim 5, wherein the first recognition algorithm comprises one or more recognition sub-algorithms;
    所述若所述硬件标识信息中包含CNN加速器标识,则选取预设的第 一识别算法作为所述目标识别算法包,包括:If the hardware identification information includes a CNN accelerator identification, selecting a preset first identification algorithm as the target identification algorithm package includes:
    若所述硬件标识信息中包含CNN加速器标识,则根据所述CNN加速器标识获取所述本地设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, obtain the performance parameters of the CNN accelerator in the local device according to the CNN accelerator identifier;
    根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述本地设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the local device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  13. 一种算法配置方法,其特征在于,包括:An algorithm configuration method, characterized in that it includes:
    控制设备获取目标设备的处理能力信息;The control device obtains the processing capability information of the target device;
    所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;According to the processing capability information, the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages;
    所述控制设备将所述目标识别算法包发送至目标设备;The control device sends the target recognition algorithm package to the target device;
    所述目标设备根据所述目标识别算法包对预设的目标物进行识别。The target device recognizes a preset target object according to the target recognition algorithm package.
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13, wherein the method further comprises:
    所述目标设备生成识别结果,并根据所述识别结果对所述目标物进行跟随。The target device generates a recognition result, and follows the target according to the recognition result.
  15. 根据权利要求14所述的方法,其特征在于,所述方法还包括:The method of claim 14, wherein the method further comprises:
    所述目标设备将所述识别结果发送至所述控制设备。The target device sends the recognition result to the control device.
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:The method according to claim 15, wherein the method further comprises:
    所述控制设备根据所述识别结果,对所述目标物进行跟随。The control device follows the target object according to the recognition result.
  17. 根据权利要求13所述的方法,其特征在于,所述控制设备获取目标设备的处理能力信息,包括:The method according to claim 13, wherein the control device acquiring processing capability information of the target device comprises:
    所述控制设备获取所述目标设备的硬件标识信息。The control device obtains the hardware identification information of the target device.
  18. 根据权利要求17所述的方法,其特征在于,所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to claim 17, wherein the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, comprising: :
    若所述硬件标识信息中包含CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package.
  19. 根据权利要求17或18所述的方法,其特征在于,所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to claim 17 or 18, wherein the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information ,include:
    若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则所述控制设备选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identification, and the hardware identification information contains a GPU identification, the control device selects a preset second identification algorithm as the target identification algorithm package.
  20. 根据权利要求17至19任一项所述的方法,其特征在于,所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to any one of claims 17 to 19, wherein the control device selects a target matching the processing capability information from a plurality of preset identification algorithm packages according to the processing capability information Identification algorithm package, including:
    若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则所述控制设备选取预设的第三识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identification and a GPU identification, and the hardware identification information contains a CPU identification, the control device selects a preset third identification algorithm as the target identification algorithm package.
  21. 根据权利要求17至20任一项所述的方法,其特征在于,所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to any one of claims 17 to 20, wherein the control device selects a target matching the processing capability information from a plurality of preset identification algorithm packages according to the processing capability information Identification algorithm package, including:
    若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则所述控制设备选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, the control device selects a preset fourth identification algorithm as the target identification algorithm package.
  22. 根据权利要求20所述的方法,其特征在于,所述方法还包括:The method of claim 20, wherein the method further comprises:
    所述控制设备判断所述CPU标识对应的CPU的主频是否大于预设阈值;The control device determines whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
    若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  23. 根据权利要求17所述的方法,其特征在于,所述控制设备根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to claim 17, wherein the control device selects a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information, comprising: :
    若所述硬件标识信息为CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为GPU标识,则所述控制设备选取预设的第二识别算法作为所述目标识别算法包;If the hardware identification information is a GPU identification, the control device selects a preset second identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为CPU标识,则所述控制设备选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, the control device selects a preset third identification algorithm as the target identification algorithm package;
    若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则所述控制设备选取预设的第四识别算法作为所述目标识别算 法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, the control device selects a preset fourth identification algorithm as the target identification algorithm package.
  24. 根据权利要求23所述的方法,其特征在于,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第二识别算法的计算量在10GFLOPS至100GFLOPS范围内,所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第一识别算法、所述第二识别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。The method according to claim 23, wherein the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the third recognition algorithm The calculation amount of the algorithm is in the range of 1GFLOPS to 10GFLOPS. The first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on convolutional neural networks, and the fourth recognition algorithm is based on Correlation filter recognition algorithm.
  25. 根据权利要求18所述的方法,其特征在于,所述第一识别算法包括一个或多个识别子算法;The method according to claim 18, wherein the first recognition algorithm comprises one or more recognition sub-algorithms;
    所述若所述硬件标识信息中包含CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包,包括:If the hardware identification information includes a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package, which includes:
    若所述硬件标识信息中包含CNN加速器标识,则所述控制设备根据所述CNN加速器标识获取所述目标设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, the control device obtains the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
    根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述目标设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  26. 一种算法配置方法,其特征在于,包括:An algorithm configuration method, characterized in that it includes:
    获取目标设备的处理能力信息;Obtain the processing capability information of the target device;
    根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;According to the processing capability information, selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages;
    将所述目标识别算法包发送至目标设备,所述目标识别算法用于指示所述目标设备根据所述目标识别算法包对预设的目标物进行识别。The target recognition algorithm package is sent to a target device, and the target recognition algorithm is used to instruct the target device to recognize a preset target according to the target recognition algorithm package.
  27. 根据权利要求26所述的方法,其特征在于,所述方法还包括:The method according to claim 26, wherein the method further comprises:
    接收所述目标设备发送的对所述目标物进行识别的识别结果。Receiving a recognition result for recognizing the target object sent by the target device.
  28. 根据权利要求27所述的方法,其特征在于,所述方法还包括:The method of claim 27, wherein the method further comprises:
    根据所述识别结果,对所述目标物进行跟随。According to the recognition result, the target is followed.
  29. 根据权利要求26所述的方法,其特征在于,所述获取目标设备的处理能力信息,包括:The method according to claim 26, wherein said acquiring processing capability information of the target device comprises:
    获取所述目标设备的硬件标识信息。Obtain the hardware identification information of the target device.
  30. 根据权利要求29所述的方法,其特征在于,所述根据所述处理 能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to claim 29, wherein the selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information comprises:
    若所述硬件标识信息中包含CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a CNN accelerator identification, a preset first identification algorithm is selected as the target identification algorithm package.
  31. 根据权利要求29或30所述的方法,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to claim 29 or 30, wherein the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes :
    若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identifier, and the hardware identification information includes a GPU identifier, then a preset second identification algorithm is selected as the target identification algorithm package.
  32. 根据权利要求29至31任一项所述的方法,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to any one of claims 29 to 31, wherein, according to the processing capability information, a target recognition algorithm that matches the processing capability information is selected from a plurality of preset recognition algorithm packages The package includes:
    若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则选取预设的第三识别算法作为所述目标识别算法包。If the hardware identification information does not contain the CNN accelerator identification and the GPU identification, and the hardware identification information contains the CPU identification, then a preset third identification algorithm is selected as the target identification algorithm package.
  33. 根据权利要求29至32任一项所述的方法,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to any one of claims 29 to 32, wherein, according to the processing capability information, a target recognition algorithm that matches the processing capability information is selected from a plurality of preset recognition algorithm packages The package includes:
    若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, a preset fourth identification algorithm is selected as the target identification algorithm package.
  34. 根据权利要求32所述的方法,其特征在于,所述方法还包括:The method of claim 32, wherein the method further comprises:
    判断所述CPU标识对应的CPU的主频是否大于预设阈值;Judging whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
    若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  35. 根据权利要求29所述的方法,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The method according to claim 29, wherein the selecting a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information comprises:
    若所述硬件标识信息为CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为GPU标识,则选取预设的第二识别算法作为 所述目标识别算法包;If the hardware identification information is a GPU identification, select a preset second identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为CPU标识,则选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, select a preset third identification algorithm as the target identification algorithm package;
    若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package.
  36. 根据权利要求35所述的方法,其特征在于,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第二识别算法的计算量在10GFLOPS至100GFLOPS范围内,所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第一识别算法、所述第二识别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。The method of claim 35, wherein the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the third recognition algorithm The calculation amount of the algorithm is in the range of 1GFLOPS to 10GFLOPS. The first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on convolutional neural networks, and the fourth recognition algorithm is based on Correlation filter recognition algorithm.
  37. 根据权利要求30所述的方法,其特征在于,所述第一识别算法包括一个或多个识别子算法;The method according to claim 30, wherein the first recognition algorithm comprises one or more recognition sub-algorithms;
    所述若所述硬件标识信息中包含CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包,包括:If the hardware identification information includes a CNN accelerator identification, selecting a preset first identification algorithm as the target identification algorithm package includes:
    若所述硬件标识信息中包含CNN加速器标识,则根据所述CNN加速器标识获取所述目标设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, obtain the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
    根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述目标设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  38. 一种算法配置方法,其特征在于,包括:An algorithm configuration method, characterized in that it includes:
    接收控制设备发送的目标识别算法包,所述目标识别算法包为根据目标设备的处理能力信息,在预设的多个识别算法包中选取得到,所述目标识别算法与所述目标设备的处理能力信息相匹配;Receive a target recognition algorithm package sent by a control device, where the target recognition algorithm package is selected from a plurality of preset recognition algorithm packages according to the processing capability information of the target device, and the target recognition algorithm and the processing of the target device Match the capability information;
    根据所述目标识别算法包对预设的目标物进行识别。The preset target is recognized according to the target recognition algorithm package.
  39. 根据权利要求38所述的方法,其特征在于,所述方法还包括:The method of claim 38, wherein the method further comprises:
    生成识别结果,根据所述识别结果对所述目标物进行跟随。A recognition result is generated, and the target is followed according to the recognition result.
  40. 根据权利要求39所述的方法,其特征在于,所述方法还包括:The method of claim 39, wherein the method further comprises:
    将所述识别结果发送至控制设备。Send the recognition result to the control device.
  41. 一种算法配置设备,其特征在于,包括第一存储器、第一处理器 以及存储在所述第一存储器中并可在所述第一处理器上运行的计算机执行指令,所述第一处理器执行所述计算机执行指令时实现如权利要求1至12任一项所述的算法配置方法。An algorithm configuration device, characterized in that it includes a first memory, a first processor, and computer execution instructions stored in the first memory and running on the first processor. The first processor The algorithm configuration method according to any one of claims 1 to 12 is realized when the computer execution instruction is executed.
  42. 一种控制设备,其特征在于,包括第二存储器、第二处理器以及存储在所述第二存储器中并可在所述第二处理器上运行的计算机执行指令,所述第二处理器执行所述计算机执行指令时实现如权利要求26至37任一项所述的算法配置方法。A control device, characterized in that it includes a second memory, a second processor, and computer-executable instructions that are stored in the second memory and run on the second processor, and the second processor executes When the computer executes instructions, the algorithm configuration method according to any one of claims 26 to 37 is implemented.
  43. 一种目标设备,其特征在于,包括第三存储器、第三处理器以及存储在所述第三存储器中并可在所述第三处理器上运行的计算机执行指令,所述第三处理器执行所述计算机执行指令时实现如权利要求38至40任一项所述的算法配置方法。A target device, characterized by comprising a third memory, a third processor, and computer-executable instructions stored in the third memory and capable of running on the third processor, and the third processor executes When the computer executes instructions, the algorithm configuration method according to any one of claims 38 to 40 is implemented.
  44. 一种算法配置系统,其特征在于,包括控制设备和目标设备;其中,An algorithm configuration system, which is characterized by comprising a control device and a target device; wherein,
    所述控制设备,用于获取目标设备的处理能力信息;并根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;将所述目标识别算法包发送至目标设备;The control device is used to obtain processing capability information of the target device; and according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; The target recognition algorithm package is sent to the target device;
    所述目标设备,用于根据所述目标识别算法包对预设的目标物进行识别。The target device is configured to recognize a preset target object according to the target recognition algorithm package.
  45. 根据权利要求44所述的系统,其特征在于,所述目标设备,还用于生成识别结果,并根据所述识别结果对所述目标物进行跟随。The system according to claim 44, wherein the target device is further used to generate a recognition result, and follow the target according to the recognition result.
  46. 根据权利要求45所述的系统,其特征在于,所述目标设备,还用于将所述识别结果发送至所述控制设备。The system according to claim 45, wherein the target device is further configured to send the recognition result to the control device.
  47. 根据权利要求46所述的系统,其特征在于,所述控制设备,还用于根据所述识别结果,对所述目标物进行跟随。The system according to claim 46, wherein the control device is further configured to follow the target according to the recognition result.
  48. 根据权利要求44所述的系统,其特征在于,所述控制设备,还用于获取所述目标设备的硬件标识信息。The system according to claim 44, wherein the control device is further configured to obtain hardware identification information of the target device.
  49. 根据权利要求48所述的系统,其特征在于,所述控制设备,还用于:The system according to claim 48, wherein the control device is further used for:
    若所述硬件标识信息中包含CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a CNN accelerator identification, a preset first identification algorithm is selected as the target identification algorithm package.
  50. 根据权利要求48或49所述的系统,其特征在于,所述控制设备,还用于:The system according to claim 48 or 49, wherein the control device is further configured to:
    若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identifier, and the hardware identification information includes a GPU identifier, then a preset second identification algorithm is selected as the target identification algorithm package.
  51. 根据权利要求48至50任一项所述的系统,其特征在于,所述控制设备,还用于:The system according to any one of claims 48 to 50, wherein the control device is further used for:
    若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则选取预设的第三识别算法作为所述目标识别算法包。If the hardware identification information does not contain the CNN accelerator identification and the GPU identification, and the hardware identification information contains the CPU identification, then a preset third identification algorithm is selected as the target identification algorithm package.
  52. 根据权利要求48至51任一项所述的系统,其特征在于,所述控制设备,还用于:The system according to any one of claims 48 to 51, wherein the control device is further configured to:
    若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, a preset fourth identification algorithm is selected as the target identification algorithm package.
  53. 根据权利要求51所述的系统,其特征在于,所述控制设备,还用于:The system according to claim 51, wherein the control device is further used for:
    判断所述CPU标识对应的CPU的主频是否大于预设阈值;Judging whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
    若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  54. 根据权利要求48所述的系统,其特征在于,所述控制设备,还用于:The system according to claim 48, wherein the control device is further used for:
    若所述硬件标识信息为CNN加速器标识,则选取预设的第一识别算法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, select a preset first identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为GPU标识,则选取预设的第二识别算法作为所述目标识别算法包;If the hardware identification information is a GPU identification, select a preset second identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为CPU标识,则选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, select a preset third identification algorithm as the target identification algorithm package;
    若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, then a preset fourth identification algorithm is selected as the target identification algorithm package.
  55. 根据权利要求54所述的系统,其特征在于,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第二识别算法的计 算量在10GFLOPS至100GFLOPS范围内,所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第一识别算法、所述第二识别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。The system according to claim 54, wherein the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the third recognition algorithm The calculation amount of the algorithm is in the range of 1GFLOPS to 10GFLOPS. The first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on convolutional neural networks, and the fourth recognition algorithm is based on Correlation filter recognition algorithm.
  56. 根据权利要求49所述的系统,其特征在于,所述第一识别算法包括一个或多个识别子算法;The system according to claim 49, wherein the first recognition algorithm comprises one or more recognition sub-algorithms;
    所述控制设备,还用于:The control device is also used for:
    若所述硬件标识信息中包含CNN加速器标识,则根据所述CNN加速器标识获取所述目标设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, obtain the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
    根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述目标设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  57. 一种可移动平台,其特征在于,包括:A movable platform, characterized in that it comprises:
    机体;Body
    动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力;以及以上权利要求41所述的算法配置设备。The power system is provided in the body, and the power system is used to provide power for the movable platform; and the algorithm configuration device according to claim 41 above.
  58. 一种可移动平台,其特征在于,包括:A movable platform, characterized in that it comprises:
    机体;Body
    动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力;A power system, arranged in the body, and the power system is used to provide power to the movable platform;
    以及如权利要求42所述的控制设备。And the control device according to claim 42.
  59. 一种可移动平台,其特征在于,包括:A movable platform, characterized in that it comprises:
    机体;Body
    动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力;A power system, arranged in the body, and the power system is used to provide power to the movable platform;
    以及如权利要求43所述的目标设备。And the target device according to claim 43.
  60. 一种可移动平台,其特征在于,包括:A movable platform, characterized in that it comprises:
    机体;Body
    动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力;A power system, arranged in the body, and the power system is used to provide power to the movable platform;
    如权利要求44至56任一项所述的算法配置系统,设于所述机体。The algorithm configuration system according to any one of claims 44 to 56, which is provided in the body.
  61. 一种可移动平台,其特征在于,包括:可移动平台本体和控制设备;所述可移动平台本体和所述控制设备无线连接或有线连接;A movable platform, characterized by comprising: a movable platform body and a control device; the movable platform body and the control device are connected wirelessly or wiredly;
    所述控制设备用于获取可移动平台本体的处理能力信息;根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包;将所述目标识别算法包发送至可移动平台本体;The control device is used to obtain processing capability information of the movable platform body; according to the processing capability information, select a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages; The target recognition algorithm package is sent to the mobile platform ontology;
    所述可移动平台本体用于根据所述目标识别算法包对预设的目标物进行识别。The movable platform body is used for recognizing a preset target according to the target recognition algorithm package.
  62. 根据权利要求61所述的可移动平台,其特征在于,所述可移动平台本体生成识别结果,并根据所述识别结果对所述目标物进行跟随。The movable platform of claim 61, wherein the movable platform body generates a recognition result, and follows the target according to the recognition result.
  63. 根据权利要求62所述的可移动平台,其特征在于,所述可移动平台本体将所述识别结果发送至所述控制设备。The movable platform according to claim 62, wherein the movable platform body sends the recognition result to the control device.
  64. 根据权利要求63所述的可移动平台,其特征在于,所述控制设备根据所述识别结果,向所述可移动平台本体发出跟随指令,以使得所述可移动平台本体能够根据所述跟随指令对所述目标物进行跟随。The movable platform according to claim 63, wherein the control device sends a follow instruction to the movable platform body according to the recognition result, so that the movable platform body can follow the follow instruction Follow the target.
  65. 根据权利要求61所述的可移动平台,其特征在于,所述控制设备获取可移动平台本体的处理能力信息,包括:The movable platform according to claim 61, wherein the control device acquiring processing capability information of the movable platform body comprises:
    所述控制设备获取所述可移动平台本体的硬件标识信息。The control device obtains the hardware identification information of the movable platform body.
  66. 根据权利要求65所述的可移动平台,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The mobile platform according to claim 65, wherein the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes :
    若所述硬件标识信息中包含CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包。If the hardware identification information includes a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package.
  67. 根据权利要求65或66所述的可移动平台,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The mobile platform according to claim 65 or 66, wherein the target recognition algorithm package that matches the processing capability information is selected from a plurality of preset recognition algorithm packages according to the processing capability information ,include:
    若所述硬件标识信息中不包含CNN加速器标识,所述硬件标识信息中包含GPU标识,则所述控制设备选取预设的第二识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identification, and the hardware identification information contains a GPU identification, the control device selects a preset second identification algorithm as the target identification algorithm package.
  68. 根据权利要求65至67任一项所述的可移动平台,其特征在于, 所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The mobile platform according to any one of claims 65 to 67, wherein, according to the processing capability information, a target that matches the processing capability information is selected from a plurality of preset identification algorithm packages Identification algorithm package, including:
    若所述硬件标识信息中不包含CNN加速器标识和GPU标识,所述硬件标识信息中包含CPU标识,则所述控制设备选取预设的第三识别算法作为所述目标识别算法包。If the hardware identification information does not include a CNN accelerator identification and a GPU identification, and the hardware identification information contains a CPU identification, the control device selects a preset third identification algorithm as the target identification algorithm package.
  69. 根据权利要求65至68任一项所述的可移动平台,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The mobile platform according to any one of claims 65 to 68, wherein, according to the processing capability information, a target that matches the processing capability information is selected from a plurality of preset identification algorithm packages Identification algorithm package, including:
    若所述硬件标识信息中不包含CNN加速器标识、GPU标识和CPU标识,则所述控制设备选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information does not include the CNN accelerator identification, GPU identification, and CPU identification, the control device selects a preset fourth identification algorithm as the target identification algorithm package.
  70. 根据权利要求68所述的可移动平台,其特征在于,所述控制设备判断所述CPU标识对应的CPU的主频是否大于预设阈值;The movable platform according to claim 68, wherein the control device determines whether the main frequency of the CPU corresponding to the CPU identifier is greater than a preset threshold;
    若所述CPU标识对应的CPU的主频大于所述预设阈值,则执行所述选取预设的第三识别算法作为所述目标识别算法包的步骤。If the main frequency of the CPU corresponding to the CPU identifier is greater than the preset threshold, the step of selecting the preset third recognition algorithm as the target recognition algorithm package is executed.
  71. 根据权利要求65所述的可移动平台,其特征在于,所述根据所述处理能力信息,在预设的多个识别算法包中选取与所述处理能力信息相匹配的目标识别算法包,包括:The mobile platform according to claim 65, wherein the selection of a target recognition algorithm package matching the processing capability information from a plurality of preset recognition algorithm packages according to the processing capability information includes :
    若所述硬件标识信息为CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包;If the hardware identification information is a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为GPU标识,则所述控制设备选取预设的第二识别算法作为所述目标识别算法包;If the hardware identification information is a GPU identification, the control device selects a preset second identification algorithm as the target identification algorithm package;
    若所述硬件标识信息为CPU标识,则所述控制设备选取预设的第三识别算法作为所述目标识别算法包;If the hardware identification information is a CPU identification, the control device selects a preset third identification algorithm as the target identification algorithm package;
    若所述硬件标识信息不为CNN加速器标识,不为GPU标识,且不为CPU标识,则所述控制设备选取预设的第四识别算法作为所述目标识别算法包。If the hardware identification information is not a CNN accelerator identification, a GPU identification, and a CPU identification, the control device selects a preset fourth identification algorithm as the target identification algorithm package.
  72. 根据权利要求71所述的可移动平台,其特征在于,所述第一识别算法的计算量在100GFLOPS至1000GFLOPS范围内,所述第二识别算法的计算量在10GFLOPS至100GFLOPS范围内,所述第三识别算法的计算量在1GFLOPS至10GFLOPS范围内,所述第一识别算法、所述第二识 别算法和所述第三识别算法均为基于卷积神经网络的识别算法,所述第四识别算法为基于相关滤波器的识别算法。The mobile platform according to claim 71, wherein the calculation amount of the first recognition algorithm is in the range of 100 GFLOPS to 1000 GFLOPS, the calculation amount of the second recognition algorithm is in the range of 10 GFLOPS to 100 GFLOPS, and the The calculation amount of the three recognition algorithms is in the range of 1GFLOPS to 10GFLOPS, the first recognition algorithm, the second recognition algorithm, and the third recognition algorithm are all recognition algorithms based on convolutional neural networks, and the fourth recognition algorithm It is a recognition algorithm based on correlation filter.
  73. 根据权利要求66所述的可移动平台,其特征在于,所述第一识别算法包括一个或多个识别子算法;The mobile platform of claim 66, wherein the first recognition algorithm comprises one or more recognition sub-algorithms;
    所述若所述硬件标识信息中包含CNN加速器标识,则所述控制设备选取预设的第一识别算法作为所述目标识别算法包,包括:If the hardware identification information includes a CNN accelerator identification, the control device selects a preset first identification algorithm as the target identification algorithm package, which includes:
    若所述硬件标识信息中包含CNN加速器标识,则所述控制设备根据所述CNN加速器标识获取所述目标设备中CNN加速器的性能参数;If the hardware identification information includes a CNN accelerator identifier, the control device obtains the performance parameters of the CNN accelerator in the target device according to the CNN accelerator identifier;
    根据预设CNN加速器性能参数与所述第一识别算法中识别子算法的对应关系,确定所述目标设备中CNN加速器的性能参数对应的目标识别子算法,选取所述目标识别子算法作为所述目标识别算法包。According to the correspondence between the preset CNN accelerator performance parameters and the recognition sub-algorithm in the first recognition algorithm, determine the target recognition sub-algorithm corresponding to the performance parameters of the CNN accelerator in the target device, and select the target recognition sub-algorithm as the Target recognition algorithm package.
  74. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至12任一项所述的算法配置方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the computer-readable Algorithm configuration method.
  75. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求26至37任一项所述的算法配置方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the computer-readable storage medium implements any one of claims 26 to 37 Algorithm configuration method.
  76. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求38至40任一项所述的算法配置方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the computer-readable Algorithm configuration method.
PCT/CN2019/095391 2019-07-10 2019-07-10 Algorithm configuration method, device, system, and movable platform WO2021003692A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/095391 WO2021003692A1 (en) 2019-07-10 2019-07-10 Algorithm configuration method, device, system, and movable platform
CN201980033933.1A CN112400147A (en) 2019-07-10 2019-07-10 Algorithm configuration method, equipment and system and movable platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/095391 WO2021003692A1 (en) 2019-07-10 2019-07-10 Algorithm configuration method, device, system, and movable platform

Publications (1)

Publication Number Publication Date
WO2021003692A1 true WO2021003692A1 (en) 2021-01-14

Family

ID=74114298

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095391 WO2021003692A1 (en) 2019-07-10 2019-07-10 Algorithm configuration method, device, system, and movable platform

Country Status (2)

Country Link
CN (1) CN112400147A (en)
WO (1) WO2021003692A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596158A (en) * 2021-07-29 2021-11-02 杭州海康威视系统技术有限公司 Scene-based algorithm configuration method and device
CN114924772A (en) * 2022-07-15 2022-08-19 浙江大华技术股份有限公司 Updating method and equipment of algorithm package

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113657320A (en) * 2021-08-23 2021-11-16 杭州海康威视数字技术股份有限公司 Service execution method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108292141A (en) * 2016-03-01 2018-07-17 深圳市大疆创新科技有限公司 Method and system for target following
US20180208309A1 (en) * 2015-07-02 2018-07-26 SZ DJI Technology Co., Ltd. Unmanned aerial vehicle, control system and method thereof, and unmanned aerial vehicle landing control method
CN108596434A (en) * 2018-03-23 2018-09-28 卫盈联信息技术(深圳)有限公司 Fraud detection and methods of risk assessment, system, equipment and storage medium
CN109657535A (en) * 2018-10-30 2019-04-19 银河水滴科技(北京)有限公司 Image identification method, target device and cloud platform
CN109960965A (en) * 2017-12-14 2019-07-02 翔升(上海)电子技术有限公司 Methods, devices and systems based on unmanned plane identification animal behavior

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829518B (en) * 2018-05-31 2020-01-03 北京百度网讯科技有限公司 Method and device for pushing information
CN109471718B (en) * 2018-10-12 2023-09-22 平安科技(深圳)有限公司 Computing resource configuration method, device, equipment and medium based on face recognition

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180208309A1 (en) * 2015-07-02 2018-07-26 SZ DJI Technology Co., Ltd. Unmanned aerial vehicle, control system and method thereof, and unmanned aerial vehicle landing control method
CN108292141A (en) * 2016-03-01 2018-07-17 深圳市大疆创新科技有限公司 Method and system for target following
CN109960965A (en) * 2017-12-14 2019-07-02 翔升(上海)电子技术有限公司 Methods, devices and systems based on unmanned plane identification animal behavior
CN108596434A (en) * 2018-03-23 2018-09-28 卫盈联信息技术(深圳)有限公司 Fraud detection and methods of risk assessment, system, equipment and storage medium
CN109657535A (en) * 2018-10-30 2019-04-19 银河水滴科技(北京)有限公司 Image identification method, target device and cloud platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596158A (en) * 2021-07-29 2021-11-02 杭州海康威视系统技术有限公司 Scene-based algorithm configuration method and device
CN114924772A (en) * 2022-07-15 2022-08-19 浙江大华技术股份有限公司 Updating method and equipment of algorithm package

Also Published As

Publication number Publication date
CN112400147A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
WO2021003692A1 (en) Algorithm configuration method, device, system, and movable platform
US10917552B2 (en) Photographing method using external electronic device and electronic device supporting the same
US9733083B2 (en) Motion sensing method and user equipment thereof
US20180034224A1 (en) Electrical device
CN112528831B (en) Multi-target attitude estimation method, multi-target attitude estimation device and terminal equipment
CN103679788B (en) The generation method and device of 3D rendering in a kind of mobile terminal
CN111833447A (en) Three-dimensional map construction method, three-dimensional map construction device and terminal equipment
CN111462174B (en) Multi-target tracking method and device and electronic equipment
US20160364564A1 (en) Lock screen output controlling method and electronic device for supporting the same
US10839555B2 (en) Target detection method and unmanned aerial vehicle
US9355338B2 (en) Image recognition device, image recognition method, and recording medium
CN106959927B (en) Method and device for acquiring position information of logical partitions in virtual machine
US20190251394A1 (en) Method and apparatus for continuously displaying images on basis of similarity of images
CN108596079A (en) Gesture identification method, device and electronic equipment
JP5430636B2 (en) Data acquisition apparatus, method and program
US20150347853A1 (en) Method for providing service and electronic device thereof
US10706555B2 (en) Image processing method and device
EP3446240B1 (en) Electronic device and method for outputting thumbnail corresponding to user input
US10091436B2 (en) Electronic device for processing image and method for controlling the same
CN110738175A (en) Face image processing method and device, computer equipment and storage medium
WO2018053956A1 (en) Interaction method, and wearable device
CN109933298B (en) Method and device for displaying according to user position
KR20180083144A (en) Method for detecting marker and an electronic device thereof
CN113587917A (en) Indoor positioning method, device, equipment, storage medium and computer program product
CN114913567A (en) Mask wearing detection method and device, terminal equipment and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19937115

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19937115

Country of ref document: EP

Kind code of ref document: A1