Control method and apparatus thereof, self-moving device, storage medium, and electronic device
Patent Information
- Application Number
- PCT/CN2024/087168
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-12
- Filing Date
- 2024-04-11
- Publication Date
- 2024-10-17
AI Technical Summary
On embedded chips with limited computing power, the computational pressure of running multiple neural network models is high. Especially in industries such as mobile devices such as lawn mowers, it is difficult to meet the needs of real-time image recognition and control.
By setting multiple image recognition models with different recognition objects and limiting the recognition frame rate of at least one image recognition model to an adjustable frame rate, the recognition frame rate can be dynamically adjusted according to different working environments and image recognition results to achieve efficient image recognition and equipment control.
It improves the recognition efficiency, reduces the computing power requirements for model operation, enhances the control accuracy and control timeliness of the equipment, and adapts to the needs of different working environments.
Smart Images

Figure CN2024087168_17102024_PF_FP_ABST
Abstract
Description
Control method and device thereof, self-equipping device, storage medium and electronic device
[0001] This application claims priority to Chinese patent application filed on April 12, 2023, with application number CN202310390029.4, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application relates to the field of automation control technology, and in particular to a control method and device thereof, a self-moving device, a storage medium, and an electronic device. Background Art
[0003] In recent years, with the rapid development of artificial intelligence technology, the functions of neural network models have become increasingly powerful and their application scope has become increasingly wide, especially neural network models related to image processing (such as image recognition models).
[0004] However, running neural network models requires a lot of computing power. On embedded chips with limited computing power, running neural network models, especially running multiple neural network models at the same time, puts a lot of computing pressure on them.
[0005] Summary of the Invention
[0006] In view of this, embodiments of the present application provide a control method and a model switching method and apparatus thereof, a self-mobile device, a storage medium, and an electronic device.
[0007] In a first aspect, an embodiment of the present application provides a control method for a self-moving device configured to travel and / or operate within a work area. The method comprises: determining the recognition frame rates of multiple image recognition models, each of which has different recognition functions, recognition algorithms, and / or output results, and at least one of which has an adjustable recognition frame rate, wherein the recognition frame rate represents the number of images recognized within a preset time; acquiring an image of the work area; performing image recognition processing on the image based on the recognition frame rates of the multiple image recognition models to obtain an image recognition result; and controlling the movement and / or operation of the self-moving device based on the image recognition result.
[0008] In conjunction with the first aspect, in certain implementations of the first aspect, determining the recognition frame rates of the multiple image recognition models includes:
[0009] Obtaining the operating mode and / or historical image recognition results of the mobile device;
[0010] The recognition frame rates of the plurality of image recognition models are determined according to the working mode of the mobile device and / or the historical image recognition results.
[0011] In conjunction with the first aspect, in certain implementations of the first aspect, determining the recognition frame rates of the multiple image recognition models includes:
[0012] Obtaining the operating mode of the mobile device;
[0013] Determining at least one model to be run from the plurality of image recognition models according to the working mode of the self-mobile device;
[0014] Determine a recognition frame rate of the at least one model to be run.
[0015] In conjunction with the first aspect, in some implementations of the first aspect, determining the recognition frame rate of the at least one to-be-run model includes:
[0016] Obtain historical image recognition results;
[0017] The recognition frame rate of the at least one model to be run is determined according to the historical image recognition result and the preset rule.
[0018] In conjunction with the first aspect, in certain implementations of the first aspect, the multiple image recognition models include a first main model, and the objects recognized by the first main model include grass and non-grass. Determining at least one model to be run from the multiple image recognition models based on an operating mode of the self-mobile device includes: when the operating mode is the first main mode, determining the first main model as the model to be run.
[0019] In conjunction with the first aspect, in certain implementations of the first aspect, the multiple image recognition models include a second main model, and the recognition objects corresponding to the second main model include grass, target non-grass, and other non-grass, and the target non-grass includes at least one of fallen leaves, dirt, and stone slabs. Determining at least one model to be run from the multiple image recognition models based on the operating mode of the self-moving device includes: when the operating mode is the second main mode, determining the second main model as the model to be run.
[0020] In conjunction with the first aspect, in certain implementations of the first aspect, the multiple image recognition models include at least one primary model and at least one secondary model. Determining at least one model to be run from the multiple image recognition models based on an operating mode of the self-mobile device includes: when the operating mode is the auxiliary mode, determining the at least one primary model and the at least one secondary model as the model to be run.
[0021] In combination with the first aspect, in certain implementations of the first aspect, at least one sub-model includes a tall and low grass model and / or a charging station model, the identification objects corresponding to the tall and low grass model include tall grass, low grass, and non-grass, and the identification objects corresponding to the charging station model include a charging station.
[0022] In combination with the first aspect, in certain implementations of the first aspect, when the working mode is the auxiliary mode, at least one main model and at least one secondary model are determined as models to be run, including: when the working mode is the regression mode, at least one main model, a tall and low grass model, and a charging station model are determined as models to be run.
[0023] In combination with the first aspect, in certain implementations of the first aspect, when the working mode is the auxiliary mode, at least one main model and at least one secondary model are determined as models to be run, including: when the working mode is the edge cutting mode, at least one main model and a tall and low grass model are determined as models to be run.
[0024] In combination with the first aspect, in certain implementations of the first aspect, the recognition frame rate of at least one model to be run is determined based on historical image recognition results and preset rules, including: when the historical image recognition results indicate that the target object is not recognized, the recognition frame rate of each model to be run is determined based on the preset frame rate corresponding to each model to be run, and the target object includes one or more identifiable objects from the mobile device.
[0025] In combination with the first aspect, in certain implementations of the first aspect, when the historical image recognition results indicate that the target object is not recognized, the recognition frame rate of each model to be run is determined based on the preset frame rate corresponding to each model to be run, including: when the historical image recognition results indicate that the target object is not recognized, obtaining preset mapping information, the preset mapping information represents the preset frame rate corresponding to each image recognition model in each working mode; and determining the recognition frame rate of each model to be run based on the preset mapping information and the working mode.
[0026] In combination with the first aspect, in certain implementations of the first aspect, the recognition frame rate of at least one model to be run is determined based on historical image recognition results and preset rules, including: when the historical image recognition results indicate that a target object has been recognized, increasing the recognition frame rate of the target model in at least one model to be run, the target object includes one or more identifiable objects from the mobile device, and the target model is a model corresponding to the target object.
[0027] In combination with the first aspect, in certain implementations of the first aspect, when the historical image recognition results indicate that the target object has been recognized, the recognition frame rate of the target model in at least one model to be run is increased, including: when the historical image recognition results indicate that the target object has been recognized and the distribution state of the target object meets preset conditions, the recognition frame rate of the target model is increased.
[0028] In combination with the first aspect, in certain implementations of the first aspect, increasing the recognition frame rate of the target model in at least one model to be run includes: increasing the recognition frame rate of the target model to a preset maximum frame rate.
[0029] In combination with the first aspect, in certain implementations of the first aspect, when the historical image recognition results indicate that a target object has been identified, the recognition frame rate of the target model in at least one model to be run is increased, including: when the image recognition results indicate that multiple target objects have been identified, obtaining priority information, the priority information indicating the priority order between the multiple target objects; determining a priority object among the multiple identified target objects based on the priority information; and increasing the recognition frame rate of the model corresponding to the priority object, the model corresponding to the priority object being the target model.
[0030] In combination with the first aspect, in certain implementations of the first aspect, at least one image recognition model includes a tall and low grass model and a charging station model, the recognition objects corresponding to the tall and low grass model include tall grass, low grass, and non-grass, and the recognition objects corresponding to the charging station model include charging stations; the priority of the charging station is higher than the priority of the tall grass.
[0031] In combination with the first aspect, in certain implementations of the first aspect, the recognition frame rate of each of at least one model to be run is determined based on historical image recognition results and preset rules, including: when the historical image recognition results indicate that a target object has been recognized, reducing the recognition frame rate of other models in at least one model to be run, where the other models are models other than the target model in at least one model to be run.
[0032] In combination with the first aspect, in certain implementations of the first aspect, image recognition processing is performed on the image based on the recognition frame rates of each of the multiple image recognition models to obtain an image recognition result, including: determining the number corresponding to the image, the number representing the shooting order when the image is taken; based on the number and the recognition frame rates of each of the multiple image recognition models, determining at least one target operation model among the multiple image recognition models; based on the at least one target operation model, performing image recognition processing on the image to obtain an image recognition result.
[0033] In conjunction with the first aspect, in certain implementations of the first aspect, determining the recognition frame rates of each of the multiple image recognition models based on the operating mode of the mobile device and / or historical image recognition results includes:
[0034] When the working mode of the self-mobile device is a regression mode, obtaining a historical image recognition result;
[0035] When the historical image recognition result indicates that the target object has been recognized, obtaining preset mapping information, wherein the preset mapping information indicates the image recognition model enabled at each stage in the regression mode and the corresponding preset recognition frame rate;
[0036] The recognition frame rates of the respective image recognition models are determined according to the preset mapping information.
[0037] In combination with the first aspect, in some implementations of the first aspect, the target object includes a charging station.
[0038] In conjunction with the first aspect, in certain implementations of the first aspect, the multiple image recognition models include a primary model, a secondary model, and a marker recognition model;
[0039] The determining the recognition frame rate of each image recognition model according to the preset mapping information includes:
[0040] In response to a first stage in the regression mode, according to the preset mapping information, the primary model and the secondary model are enabled, and a recognition frame rate of the primary model and the secondary model is controlled to be a preset frame rate, wherein the first stage is triggered by a regression instruction of the mobile device;
[0041] In response to the second stage in the regression mode, according to the preset mapping information, the secondary model and the marker recognition model are enabled and the main model is stopped, and the recognition frame rate of the secondary model and the marker recognition model is controlled to be the preset frame rate, wherein the second stage is triggered according to the recognition result of the secondary model.
[0042] In combination with the first aspect, in some implementations of the first aspect, the recognition result of the secondary model is recognition of the charging station.
[0043] In conjunction with the first aspect, in certain implementations of the first aspect, before determining the recognition frame rates of the respective multiple image recognition models, the method includes:
[0044] Select multiple image recognition models from the preset image recognition model library according to the working environment.
[0045] In conjunction with the first aspect, in certain implementations of the first aspect, selecting multiple image recognition models from a preset image recognition model library based on the working environment includes:
[0046] determining a working environment in response to an environment detection instruction, wherein the working environment includes a first environment and a second environment;
[0047] Multiple image recognition models are selected from a preset image recognition model library according to the working environment, wherein the preset image recognition model library includes at least one image recognition model corresponding to the first environment and at least one image recognition model corresponding to the second environment, and the image recognition model corresponding to the first environment and the image recognition model corresponding to the second environment have the same recognition function.
[0048] In conjunction with the first aspect, in certain implementations of the first aspect, selecting multiple image recognition models from a preset image recognition model library according to the working environment includes:
[0049] Determining whether the working environment meets preset environmental conditions;
[0050] If the conditions are met, selecting at least one image recognition model corresponding to the first environment from the preset image recognition model library;
[0051] If not, at least one image recognition model corresponding to the second environment is selected from the preset image recognition model library.
[0052] In combination with the first aspect, in certain implementations of the first aspect, the first environment is a daytime environment, and the second environment is a nighttime environment;
[0053] The selecting of multiple image recognition models from a preset image recognition model library according to the working environment includes:
[0054] Determine the working environment;
[0055] When the working environment is the daytime environment, selecting a plurality of image recognition models corresponding to the daytime environment from the preset image recognition model library;
[0056] When the working environment is the night environment, a plurality of image recognition models corresponding to the night environment are selected from the preset image recognition model library.
[0057] In conjunction with the first aspect, in certain implementations of the first aspect, determining the working environment includes:
[0058] Acquiring a current image and at least one historical image of the working environment;
[0059] determining a brightness value of the working environment based on the current image and at least one historical image;
[0060] Determine whether the brightness value meets the brightness threshold
[0061] When the brightness value meets the brightness threshold, the working environment is the daytime environment;
[0062] When the brightness value does not meet the brightness threshold, the working environment is the night environment.
[0063] In a second aspect, an embodiment of the present application provides a self-moving device, which is configured to travel and / or work in a working area. The self-moving device includes: a fuselage, and a driving module, a visual module and a control module arranged on the fuselage. Among them, the driving module is configured to drive the self-moving device to move according to the driving instruction; the visual module is configured to collect images; the control module is connected to the driving module and the visual module respectively, and is configured to: determine the recognition frame rate of each of the multiple image recognition models, the recognition functions and / or recognition algorithms of the multiple image recognition models are different, the recognition frame rate of at least one image recognition model is an adjustable frame rate, and the recognition frame rate represents the number of images recognized within a preset time; obtain images within the field of view; perform image recognition processing on the images based on the recognition frame rates of each of the multiple image recognition models to obtain image recognition results; and control the movement and / or work of the self-moving device according to the image recognition results.
[0064] In a third aspect, an embodiment of the present application provides a control device for a self-moving device configured to travel and / or operate within a work area. The device includes: a determination module for determining the recognition frame rates of multiple image recognition models, wherein the multiple image recognition models each have different recognition functions, recognition algorithms, and / or output results, and the recognition frame rate of at least one image recognition model is an adjustable frame rate, wherein the recognition frame rate represents the number of images recognized within a preset time; an acquisition module for acquiring images within a field of view; a recognition module for performing image recognition processing on the images based on the recognition frame rates of the multiple image recognition models to obtain image recognition results; and a control module for controlling the movement and / or operation of the self-moving device based on the image recognition results.
[0065] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program for executing the method mentioned in the first aspect.
[0066] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor; a memory for storing processor-executable instructions; and the processor is used to execute the method mentioned in the first aspect.
[0067] The present application sets up multiple image recognition models with different recognition objects, and limits the recognition frame rate of at least one image recognition model to an adjustable frame rate. This achieves the purpose of performing image recognition processing on images within the field of view using models with different recognition frame rates according to different working environments, thereby controlling the movement and / or operation of the self-mobile device according to the image recognition results. Compared with the traditional solution in which the recognition frame rate of the image recognition model remains unchanged, the present application can not only improve the recognition efficiency, but also greatly reduce the computing power required for the model operation. In addition, the present application can also adjust the movement and / or operation of the self-mobile device according to the actual working environment, thereby improving the control accuracy and timeliness of the self-mobile device. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The above and other purposes, features, and advantages of the present application will become more apparent through a more detailed description of the embodiments of the present application in conjunction with the accompanying drawings. The accompanying drawings are intended to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the drawings, the same reference numerals generally represent the same components or steps.
[0069] FIG1 is a schematic diagram of a scenario applicable to an embodiment of the present application.
[0070] FIG2 is a flow chart showing a control method according to an exemplary embodiment of the present application.
[0071] FIG3 is a schematic diagram showing a flow chart of determining the recognition frame rates of each of a plurality of image recognition models provided by an exemplary embodiment of the present application.
[0072] FIG4 is a schematic diagram showing a flow chart of determining at least one model to be run from a plurality of image recognition models provided by an exemplary embodiment of the present application.
[0073] FIG5 is a flow chart showing a process of determining at least one main model and at least one secondary model as models to be run when the working mode is the auxiliary mode, provided by an exemplary embodiment of the present application.
[0074] FIG6 is a flowchart showing a method of determining the recognition frame rate of at least one model to be run according to historical image recognition results and preset rules, provided by an exemplary embodiment of the present application.
[0075] FIG7 is a flow chart showing a method of performing image recognition processing on an image based on the recognition frame rates of respective multiple image recognition models to obtain image recognition results, provided by an exemplary embodiment of the present application.
[0076] FIG8 is a schematic structural diagram of a control device provided by an exemplary embodiment of the present application.
[0077] FIG9 is a schematic structural diagram of an electronic device provided in one embodiment of the present application;
[0078] FIG10 is a schematic diagram showing a process of determining the recognition frame rate of each of the plurality of image recognition models according to the working mode of the mobile device and / or historical image recognition results, provided by an embodiment of the present application;
[0079] FIG11 is a schematic diagram of a regression model provided in an embodiment of the present application;
[0080] FIG12 shows a model switching method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0081] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. In addition, it is particularly important to note that different embodiments can be combined with each other.
[0082] Image recognition refers to the use of computers to process, analyze, and understand images to identify different target objects. With the advancement of computing power and improvements in image recognition algorithms, deep learning has achieved results in fields such as image processing and natural language processing that surpass traditional methods. Neural network models are the vehicle for deep learning, implementing artificial intelligence within computing systems by building hierarchical artificial neural networks. Because neural network models can extract and filter input information layer by layer, they possess representational learning capabilities, enabling end-to-end supervised and unsupervised learning.
[0083] However, relying on multiple neural network models to simultaneously recognize multiple target objects requires significant computational effort. This is especially true in the mobile device industry (such as lawn mowers), where computing power is inherently limited to control costs. Furthermore, the limited computing power of embedded chips makes it even more difficult to run multiple neural network models simultaneously.
[0084] Example scenarios
[0085] Figure 1 shows a schematic diagram of a scenario used in an embodiment of the present application. For example, the scenario is a lawn mower mowing lawn, which can be considered a self-propelled device. During the mowing process, the lawn mower may perform regular mowing, encounter large obstacles, require charging, and mow along the edge of the mowing area. In these situations, the lawn mower needs to use different image recognition models to identify whether the area is grass, non-grass, a charging station, and high / low grass to enable different operating modes.
[0086] Specifically, as shown in Figure 1, the scenario involves a work area Z, which includes a grass area, a non-grass area, and a charging station c. The grass area includes a high grass area a1 and a low grass area a2, and the non-grass area includes other non-grass areas b1 and a target non-grass area b2. The lawn mower includes a drive module, a vision module, and a control module. When the lawn mower moves or works in the work area Z, it uses its own configured vision module to capture an image of the work area. In addition, the control module is configured to determine the recognition frame rates of each of the multiple image recognition models, the multiple image recognition models corresponding to different recognition objects, the recognition frame rate of at least one image recognition model being an adjustable frame rate, and the recognition frame rate representing the number of images recognized within a preset time; obtain an image of the work area; perform image recognition processing on the image based on the recognition frame rates of each of the multiple image recognition models to obtain an image recognition result; and control the movement and / or operation of the self-mobile device based on the image recognition result.
[0087] For example, in actual application, the user can communicate with the lawn mower through the mobile terminal and send an operation instruction to the lawn mower. After receiving the operation instruction, the lawn mower moves to the operation area Z. In the process of performing the weeding operation in the operation area Z, the lawn mower collects images within the preset field of view in front of it, and uses the main process model to distinguish between grass areas and non-grass areas, and performs weeding operations in the grass areas. Specifically, in the random cutting scenario, the lawn mower applies the main mode to distinguish between grass and non-grass (that is, to distinguish between grass areas and non-grass areas). In the regression charging scenario, the lawn mower applies the auxiliary mode, specifically applying the high and low grass model to distinguish between high grass, low grass and non-grass (that is, to distinguish between high grass areas, low grass areas and non-grass areas), and also applies the charging station model to detect the charging station c.
[0088] In addition, during actual application, the lawn mower can retreat a first preset distance when encountering a large obstacle when applying the main model, or it can drive and / or work within the low grass area a2 along the boundary between the grass area and the non-grass area, or the boundary between the high grass area a1 and the low grass area a2 when applying the high-low grass model.
[0089] Exemplary Methods
[0090] Figure 2 is a schematic flow chart of a control method provided by an exemplary embodiment of the present application. For example, the control method in this embodiment of the present application is applied to a self-propelled device configured to travel and / or operate within a work area. As shown in Figure 2, the control method in this embodiment of the present application includes the following steps.
[0091] Step S210: determining the recognition frame rates of the respective image recognition models.
[0092] Exemplarily, the above-mentioned image recognition model is a neural network model based on deep learning.
[0093] Multiple image recognition models correspond to different recognition objects. In some embodiments, the multiple image recognition models include a first main model, a second main model, a high and low grass model, and a charging station model. For example, the first main model recognizes objects including grass and non-grass. The second main model recognizes objects including grass, target non-grass, and other non-grass, where target non-grass includes fallen leaves, dirt, and stone slabs. The high and low grass model recognizes objects including tall grass, low grass, and non-grass. The charging station model recognizes objects including charging stations.
[0094] Furthermore, at least one image recognition model has an adjustable frame rate, which represents the number of images recognized within a preset time period. An adjustable frame rate refers to a frame rate that can be varied, for example, in real time based on image recognition results during operation of the mobile device, or in response to user instructions.
[0095] Step S220: Acquire an image within the field of view.
[0096] An image acquisition module can be configured on the self-mobile device to capture images within the field of view in real time. Exemplarily, the image acquisition module is a camera. When the camera's field of view is large, the image coverage area is larger. In some embodiments, the field of view can be 50°, 52°, 58°, 180°, or 360°. In this context, the field of view of the self-mobile device is not limited to within or outside the working area.
[0097] Step S230 , performing image recognition processing on the image based on the recognition frame rates of the multiple image recognition models to obtain an image recognition result.
[0098] Exemplarily, the multiple image recognition models select their respective matching images for image recognition processing according to their respective recognition frame rates, so as to obtain image recognition results corresponding to the respective image recognition models.
[0099] Step S240: Control the movement and / or operation of the mobile device according to the image recognition result.
[0100] The present application sets up multiple image recognition models with different recognition objects, and limits the recognition frame rate of at least one image recognition model to an adjustable frame rate. This achieves the purpose of performing image recognition processing on images within the field of view using models with different recognition frame rates according to different working environments, thereby controlling the movement and / or operation of the self-mobile device according to the image recognition results. Compared with the traditional solution in which the recognition frame rate of the image recognition model remains unchanged, the present application can not only improve the recognition efficiency, but also greatly reduce the computing power required for the model operation. In addition, the present application can also adjust the movement and / or operation of the self-mobile device according to the actual working environment, thereby improving the control accuracy and timeliness of the self-mobile device.
[0101] The following example illustrates how to determine the recognition frame rates of the multiple image recognition models in conjunction with FIG3 .
[0102] Figure 3 shows a schematic diagram of a process for determining the recognition frame rates of multiple image recognition models according to an exemplary embodiment of the present application. As shown in Figure 3, the embodiment of the present application shows two ways to determine the recognition frame rates of multiple image recognition models.
[0103] In some embodiments, the step of determining the recognition frame rates of each of the plurality of image recognition models (ie, step S300 ) includes the following steps S310 and S320 .
[0104] Step S310: Obtaining the working mode and / or historical image recognition results from the mobile device.
[0105] Exemplarily, the working mode includes a main mode and an auxiliary mode, wherein the main mode further includes a first main mode and a second main mode, and the auxiliary mode further includes a regression mode and an edge-cutting mode. In actual application, when the self-mobile device operates in the first main mode, it can distinguish between grass and non-grass, and perform random cutting. When the self-mobile device operates in the second main mode, it can distinguish between grass, target non-grass and other non-grass, and perform random cutting. When the self-mobile device operates in the regression mode, it can distinguish between grass, tall grass, low grass, non-grass and charging stations, and when the reserve power of the self-mobile device is lower than the first preset power, it can identify qualified charging stations for charging. When the self-mobile device operates in the edge-cutting mode, it can distinguish between grass, tall grass, low grass and non-grass, so that the self-mobile device can travel and / or work in the low-grass area along the boundary between grass and non-grass, and / or the boundary between tall grass and low grass.
[0106] The selection of the working mode can be determined by the user, such as the user controlling the mobile device. In addition, the selection of the working mode can also be selected by the mobile device, such as according to a specific working environment.
[0107] In some embodiments, the historical image recognition result refers to the image recognition result of the historical image that is before the current image in time sequence.
[0108] Step S320 : determining the recognition frame rates of the respective image recognition models according to the working mode of the mobile device and / or the historical image recognition results.
[0109] In this implementation, the recognition frequency of each image recognition model is determined based on the working mode of the self-mobile device and / or historical image recognition results, so that the recognition frame rate of each image recognition model can be determined according to the current working status of the self-mobile device, effectively improving the working continuity and stability of the self-mobile device, and reducing the probability of adverse consequences caused by missetting the recognition frame rate of the image recognition model.
[0110] In some other embodiments, the step of determining the recognition frame rates of the respective multiple image recognition models includes the following steps S330, S340 and S350.
[0111] Step S330: Acquire the working mode of the mobile device.
[0112] Step S340: Determine at least one model to be run from a plurality of image recognition models according to the working mode of the mobile device.
[0113] The model to be run mentioned in step S340 can be regarded as the image recognition model called in the current working mode. Exemplarily, after the model to be run is determined, the recognition frame rates of the other models except the model to be run are all 0.
[0114] The following is an example of the recognition frame rate of each image recognition model in different working modes, combined with Table 1.
[0115] Table 1
[0116] As shown in Table 1, the operating modes include the first main mode, the second main mode, the regression mode, and the edge cutting mode. The image recognition models include the first main model, the second main model, the tall and low grass model, and the charging station model. "1 time per frame" indicates that the image recognition model performs image recognition processing once for each frame in the corresponding mode, and "1 time per 3 frames" indicates that the image recognition model performs image recognition processing once for every three frames in the corresponding mode. Furthermore, the usage time of the first and second main models does not overlap.
[0117] Step S350: Determine the recognition frame rate of at least one model to be run.
[0118] The recognition frame rate of at least one model to be run can be determined according to preset regulations; preset rules refer to predefined rules. Exemplarily, the preset rules can characterize the mapping relationship between the recognition frame rates of multiple working modes and multiple image recognition models. For example, the preset rules stipulate that there is a mapping relationship between "the first main mode" and "the recognition frame rate of the first main model is 1 frame 1 time". Then, when the working mode is determined to be the first main mode, the recognition frame rate of the first main model is determined to be 1 frame 1 time. For another example, the preset rules stipulate that there is a mapping relationship between "edge cutting mode" and "the recognition frame rate of the high and low grass model is 1 time in 3 frames". Then, when the working mode is determined to be the edge cutting mode, the recognition frame rate of the high and low grass model is determined to be 1 time in 3 frames.
[0119] This implementation method can select the model to be run according to the working mode of the self-mobile device, and determine the recognition frame rate of the model to be run according to preset rules, thereby achieving the purpose of selectively running the actually required model according to the actual working situation in advance. It not only saves computing power, but also greatly improves the working efficiency of the self-mobile device.
[0120] In some embodiments, determining the recognition frame rate of at least one model to be run according to preset rules includes: obtaining historical image recognition results; and determining the recognition frame rate of at least one model to be run according to the historical image recognition results and the preset rules. For example, the recognition frame rate of the model to be run is dynamically adjusted according to the historical image recognition results and the preset rules. In other words, when determining the recognition frame rate of the model to be run, the embodiments of the present application refer not only to the preset rules but also to the historical image recognition results. This arrangement further improves the robustness of the determined recognition frame rate.
[0121] The following uses FIG4 as an example to illustrate how to determine at least one model to be run from multiple image recognition models.
[0122] Figure 4 is a schematic diagram of a process for determining at least one model to be run from multiple image recognition models, provided by an exemplary embodiment of the present application. As shown in Figure 4, in this embodiment of the present application, the model to be run is determined based on the operating mode of the mobile device, specifically including the following three methods.
[0123] The first method: if the multiple image recognition models include a first main model, and the working mode of the mobile device is the first main mode, then execute step S410: determine the first main model as the model to be run.
[0124] That is, as long as the first main model is included in multiple image recognition models and the operating mode of the mobile device is the first main mode, the first main model is determined as the model to be run. For example, when the first main model is used for internal random cutting, the recognition frame rate of other models is adjusted to 0. For example, the first main model is a binary classification model, and the objects recognized by the first main model include grass and non-grass.
[0125] The second method: if the multiple image recognition models include a second main model, and the working mode of the mobile device is the second main mode, then execute step S420: determine the second main model as the model to be run.
[0126] That is to say, as long as the second main model is included in multiple image recognition models and the working mode of the self-mobile device is the second main mode, then the second main model will be determined as the model to be run. For example, when the second main model is used for internal random cutting, the recognition frame rate of other models is adjusted to 0. Exemplarily, the second main model is a multi-classification model, which is mutually replaceable with the binary classification model and cannot be used at the same time. For example, the recognition objects corresponding to the second main model include grass, target non-grass and other non-grass, and the target non-grass includes at least one of fallen leaves, soil and stone slabs.
[0127] The third method: If the multiple image recognition models include at least one main model and at least one secondary model, and the working mode of the mobile device is the auxiliary mode, then execute step S430: determine the at least one main model and at least one secondary model as the models to be run.
[0128] That is to say, if multiple image recognition models include both main models and secondary models, and the working mode of the self-mobile device is auxiliary mode, the main model and secondary model that match the auxiliary mode are determined as models to be run according to the specific situation of the auxiliary mode. For example, in some embodiments, when the working mode is regression mode (that is, the auxiliary mode is regression mode), at least one main model, high and low grass model, and charging station model are determined as models to be run. In other embodiments, when the working mode is edge cutting mode (that is, the auxiliary mode is edge cutting mode), at least one main model and high and low grass model are determined as models to be run.
[0129] The above embodiments provide three methods for determining the model to be run based on the operating mode of the self-mobile device. It is understood that at least one of the above three methods can be selected to determine the model to be run based on the actual operating conditions of the self-mobile device. The three methods do not need to exist simultaneously, and the embodiments of this application do not impose a unified limitation on this.
[0130] FIG5 is a flow chart illustrating how to determine at least one primary model and at least one secondary model as models to be run when the operating mode is auxiliary mode, according to an exemplary embodiment of the present application. As shown in FIG5 , in the embodiment of the present application, determining the models to be run in auxiliary mode specifically includes the following two methods.
[0131] The first way: if the auxiliary mode is the regression mode, step S510 is executed: at least one main model, a tall and low grass model, and a charging station model are determined as models to be run.
[0132] That is, when the operating mode is return mode, at least one of the main model, the tall and low grass model, and the charging station model are determined as models to be run. Because the mobile device needs to find a charging station during the return charging process and may encounter obstacles on the way back, at least one of the main model, the tall and low grass model, and the charging station model are determined as models to be run.
[0133] The second method: if the auxiliary mode includes the edge cutting mode, step S520 is executed: at least one main model and a tall and low grass model are determined as models to be run.
[0134] That is, when the operating mode is edge cutting mode, at least one main model and a high and low grass model are determined as models to be run. Because obstacles may be hidden in the tall grass during edge cutting by the self-moving device, at least one main model and a high and low grass model are determined as models to be run.
[0135] The above embodiment provides two methods for determining the model to be run in the auxiliary mode. It is understood that at least one of the above two methods can be selected to determine the model to be run based on the actual working conditions of the mobile device. Both methods do not need to exist at the same time, and the embodiments of this application do not impose a unified limitation on this.
[0136] The following examples illustrate several different implementations of determining the recognition frame rate of at least one model to be run based on historical image recognition results and preset rules, with reference to Figure 6. The preset rules may represent a mapping relationship between historical image recognition results and a method for determining the recognition frame rate.
[0137] FIG6 is a flow chart showing a method for determining the recognition frame rate of at least one model to be run based on historical image recognition results and preset rules, provided by an exemplary embodiment of the present application. As shown in FIG6 , the embodiment of the present application provides six implementation methods according to different actual situations. Furthermore, these six implementation methods are divided according to whether the historical image recognition results represent whether the target object is recognized. Among them, the target object includes one or more identifiable objects of the self-mobile device, such as the target objects include tall grass and charging stations.
[0138] If the historical image recognition results indicate that the target object was not recognized, there are two possible implementation methods: an implementation method based on step S610 and an implementation method based on steps S620 and S630. If the historical image recognition results indicate that the target object was recognized, there are four possible implementation methods: an implementation method based on step S640, an implementation method based on step S650, an implementation method based on steps S660, S670, and S680, and an implementation method based on step S690.
[0139] The following first introduces an implementation method based on step S610 and an implementation method based on steps S620 and S630 when the historical image recognition result indicates that the target object is not recognized.
[0140] 6 , in one implementation, when the historical image recognition result indicates that the target object is not recognized, step S610 may be performed: determining the recognition frame rate of each to-be-run model according to a preset frame rate corresponding to each to-be-run model.
[0141] The preset rules include: selecting a method for determining the recognition frame rate based on the historical image recognition results. Specifically, when the historical image recognition results indicate that the target object has not been recognized, the recognition frame rate can be determined based on the preset frame rate. Exemplarily, the preset rules can be set to determine the recognition frame rate of each model to be run based on the preset frame rate corresponding to each model to be run when the historical image recognition results indicate that the target object has not been recognized. For example, if the preset rules can be set to determine the recognition frame rate based on the preset frame rate when the historical image recognition results indicate that the target object has not been recognized, the preset frame rate can be set to 2 frames once, then the recognition frame rate of each model to be run is 2 frames once. The preset frame rate can be set according to actual conditions.
[0142] 6 , in another implementation, when the historical image recognition result indicates that the target object is not recognized, the following steps S620 and S630 may be performed.
[0143] Step S620: Obtain preset mapping information.
[0144] It can be set in the preset rules that, when the historical image recognition results indicate that the target object has not been recognized, the preset frame rate corresponding to each model to be run is determined according to the preset mapping information and the working mode, and the recognition frame rate of each model to be run is determined according to the preset frame rate corresponding to each model to be run. The preset mapping information represents the preset frame rate corresponding to each image recognition model in each working mode. The preset mapping information can be set according to actual conditions, or as shown in Table 1 above. For example, for the same image recognition model, the corresponding preset frame rates in different working modes are not exactly the same. For example, in the regression mode and the edge cutting mode, the preset frame rate of the tall grass model is 1 time for 3 frames. For another example, in the regression mode and the edge cutting mode, the preset frame rates of the charging station model are 1 time for 3 frames and 0 respectively.
[0145] Step S630: Determine the recognition frame rate of each model to be run according to the preset mapping information and the working mode.
[0146] Step S630 may be performed by determining the preset frame rate corresponding to each model to be run as the recognition frame rate of each model to be run.
[0147] When the target object is not identified, the preset frame rate of each model to be run in the current working mode is determined according to the preset mapping information and working mode, and the recognition frame rate of each model to be run is determined based on the preset frame rate corresponding to each model to be run in the current working mode, thereby ensuring that the self-mobile device can relatively stably perform conventional movement and / or work processes when the target object is not identified, and reducing the probability of adverse consequences such as downtime due to unreasonable setting of the model's recognition frame rate.
[0148] Exemplarily, it can be set in the preset rules that, when the historical image recognition result indicates that the target object is not recognized, the recognition frame rate of each model to be run is determined according to the preset frame rate corresponding to each model to be run. For example, if it can be set in the preset rules that, when the historical image recognition result indicates that the target object is not recognized, there is a mapping relationship between "regression mode", "the preset frame rate of at least one main model is 1 frame 1 time, the preset frame rate of the charging station model is 3 frames 1 time, and the preset frame rate of the high and low grass model is 3 frames 1 time", then, when it is determined that the working mode is the regression mode and the historical image recognition result indicates that the target object is not recognized, the recognition frame rate of at least one main model is determined to be 1 frame 1 time, the recognition frame rate of the charging station model is determined to be 3 frames 1 time, and the recognition frame rate of the high and low grass model is determined to be 3 frames 1 time. For another example, the preset rules stipulate that when the historical image recognition results indicate that the target object has not been recognized, there is a mapping relationship between "edge cutting mode", "recognition frame rate of at least one main model is once per frame, and recognition frame rate of high and low grass model is once per three frames". Then, when the working mode is determined to be edge cutting mode and the historical image recognition results indicate that the target object has not been recognized, the preset frame rate of at least one main model is determined to be once per frame, and the preset frame rate of the high and low grass model is determined to be once per three frames. It can be seen that based on the above preset rules, when the historical image recognition results indicate that the target object has not been recognized, low-frequency detection of some necessary models to be run (such as high and low grass models and / or charging station models) can be maintained, thereby avoiding occupying a large amount of computing power.
[0149] The following describes an implementation method based on step S640, an implementation method based on step S650, an implementation method based on steps S660, S670 and S680, and an implementation method based on step S690 when the historical image recognition result indicates that the target object has been recognized.
[0150] 6 , in another implementation, when the historical image recognition result indicates that the target object is recognized, step S640 may be executed: increasing the recognition frame rate of the target model in at least one to-be-run model based on a preset rule.
[0151] The target object includes one or more identifiable objects from the mobile device. The target model is the model corresponding to the target object, i.e., the model capable of identifying the target object. Increasing the target model's recognition frame rate is intended to improve target object recognition efficiency and reduce latency in identifying the target object. Preset rules include selecting a method for determining the recognition frame rate based on historical image recognition results. Specifically, if the historical image recognition results indicate that the target object has been recognized, the target model's recognition frame rate may be increased.
[0152] Exemplarily, the recognition frame rate of the target model is increased by a preset value. Alternatively, the recognition frame rate of the target model is increased until it reaches a preset maximum frame rate. For example, the preset rules provide that, when the historical image recognition results indicate that the target object has been recognized, there is a mapping relationship between "regression mode" and "increasing the recognition frame rate of the charging station model." Then, when the working mode is determined to be regression mode and the historical image recognition results indicate that the target object has been recognized, the recognition frame rate of the charging station model is increased by one frame at a time until it reaches the maximum frame rate, or the recognition frame rate of the charging station model is directly determined as the maximum frame rate. For another example, the preset rules provide that, when the historical image recognition results indicate that the target object has been recognized, there is a mapping relationship between "edge cutting mode" and "increasing the recognition frame rate of the high and low grass model." Then, when the working mode is determined to be edge cutting mode and the historical image recognition results indicate that the target object has been recognized, the recognition frame rate of the high and low grass model is increased by one frame at a time until it reaches the maximum frame rate, or the recognition frame rate of the high and low grass model is directly determined as the maximum frame rate.
[0153] 6 , in another implementation, when the historical image recognition result indicates that the target object has been recognized, step S650 may be executed: when the distribution state of the target object meets a preset condition, the recognition frame rate of the target model may be increased based on a preset rule.
[0154] Exemplarily, the distribution state of the target objects is determined based on the shape, position, area, angle, and distance from the mobile device of the target objects.
[0155] For example, when the high and low grass model is used for image recognition, when the area of grass from the bottom upward in the image is greater than a preset area threshold, it is determined that high grass is encountered.
[0156] For example, when using a charging station model for image recognition, if the historical image recognition results indicate that the distance between the mobile device and the charging station is less than a second predetermined distance, and the charging station's posture meets predetermined conditions, then the charging station is detected. The charging station's posture is represented based on data such as the charging station's angle and position.
[0157] The embodiment of the present application can adjust the recognition frame rate of the target model according to the distribution state of the target object, thereby achieving the purpose of more accurately adjusting the recognition frame rate of the target model, reducing the probability of premature adjustment or delayed adjustment, and thus achieving full utilization of computing power.
[0158] 6 , in another implementation, when the historical image recognition result indicates that the target object has been recognized, the following steps S660 , S670 , and S680 may be performed.
[0159] Step S660 : When the image recognition result indicates that multiple target objects are recognized, priority information is obtained.
[0160] Priority information represents the order of priority among multiple target objects. In different working modes, different target objects are assigned different priorities.
[0161] Step S670: Determine a priority object among the identified multiple target objects according to the priority information.
[0162] In some embodiments, the image recognition model includes a tall and low grass model and a charging station model. The recognition objects corresponding to the tall and low grass model include tall grass, low grass, and non-grass. The recognition objects corresponding to the charging station model include charging stations. In addition, the priority of the charging station is higher than that of the tall grass, that is, the priority object is the charging station.
[0163] Step S680: Increase the recognition frame rate of the model corresponding to the priority object.
[0164] In the case where the image recognition result indicates that multiple target objects have been identified, the embodiment of the present application further classifies the multiple target objects identified. Specifically, the priority order among the multiple target objects is used to determine the priority object among the multiple target objects, thereby increasing the recognition frame rate of the model corresponding to the priority object. It can be seen that the embodiment of the present application can not only further improve the utilization rate of computing power and avoid unnecessary waste of computing power, but also more reasonably allocate the recognition frame rate of each model.
[0165] Continuing with FIG6 , in another implementation, if the historical image recognition results indicate that the target object has been recognized, step S690 may be performed: reducing the recognition frame rate of other models in the at least one to-be-run model based on a preset rule. The other models are models other than the target model in the at least one to-be-run model.
[0166] The preset rules include: selecting a method for determining the recognition frame rate based on historical image recognition results. Specifically, when the historical image recognition results indicate that the target object has been recognized, the recognition frame rates of other models can be reduced.
[0167] For example, the preset rules specify that, when the historical image recognition results indicate recognition of the target object, a mapping relationship exists between "regression mode" and "reducing the recognition frame rate of at least one main model and the tall and low grass model." Therefore, if the operating mode is determined to be regression mode and the historical image recognition results indicate recognition of the target object, the recognition frame rate of at least one main model and the tall and low grass model is set to 0. For another example, the preset rules specify that, when the historical image recognition results indicate recognition of the target object, a mapping relationship exists between "edge-cutting mode" and "reducing the recognition frame rate of at least one main model." Therefore, if the operating mode is determined to be edge-cutting mode and the historical image recognition results indicate recognition of the target object, the recognition frame rate of at least one main model and the tall and low grass model is set to 0. In this case, the self-mobile device's operating environment contains tall grass, which may be obstructed by obstacles. Therefore, only the tall and low grass model needs to be used to identify the tall and low grass, and then the device needs to move along the boundary between the tall and low grass. The recognition frame rates of other models to be run (such as the first main model) can be adjusted to 0.
[0168] In other embodiments, in edge cutting mode, when tall grass is detected, only the tall and low grass models are set as the models to be run, and the current frame is used to move along the boundary between the tall and low grass. When leaving the tall grass area, if no tall grass is detected, the recognition frame rate of all models to be run (including the tall and low grass models) is set to the preset frame rate.
[0169] When historical image recognition results indicate that the target object has been identified, embodiments of the present application indirectly increase the recognition frame rate of the target model by reducing the recognition frame rates of other models in at least one of the models to be run, thereby enriching the methods for adjusting the recognition frame rates of the models to be run. In particular, when computing power is insufficient to support increasing the recognition frame rate of the target model, embodiments of the present application can also achieve the purpose of increasing the recognition frame rate of the target model.
[0170] 7 , an example is given below to illustrate how to perform image recognition processing on an image based on the recognition frame rates of the respective multiple image recognition models to obtain an image recognition result.
[0171] Figure 7 is a schematic diagram of a process for performing image recognition processing on an image based on the recognition frame rates of each of multiple image recognition models to obtain an image recognition result, provided by an exemplary embodiment of the present application. As shown in Figure 7, the steps of performing image recognition processing on an image based on the recognition frame rates of each of multiple image recognition models to obtain an image recognition result may include steps S710, S720, and S730.
[0172] Step S710: Determine the serial number corresponding to the image.
[0173] The number represents the shooting order when the images are shot. For example, the number corresponding to the first image shot is 1, the number corresponding to the first image shot is 2, and the number corresponding to the first image shot is 3.
[0174] Step S720: determining at least one target operating model from the plurality of image recognition models based on the serial numbers and the recognition frame rates of the plurality of image recognition models.
[0175] In some embodiments, the target running model among the multiple image recognition models refers to the model that needs to be run among the multiple image recognition models for the current frame image.
[0176] Step S730: running the model based on at least one target, performing image recognition processing on the image, and obtaining an image recognition result.
[0177] For example, if the target operating model includes a first main model and its recognition frame rate is once per frame, then image recognition processing is performed on each captured image using the first main model, such as images numbered 1, 2, 3, 4, etc. For another example, if the target operating model includes a tall and low grass model and its recognition frame rate is once per three frames, then image recognition processing is performed on every three captured images using the tall and low grass model, such as images numbered 1, 4, 7, 10, etc.
[0178] Because the numbers corresponding to the images can represent the order in which the images were captured, the embodiments of the present application can accurately determine which images the target operation model needs to process. In other words, the embodiments of the present application determine whether the target operation model should process the image based on the numbers corresponding to the images, thereby achieving the purpose of accurately recognizing images based on the recognition frame rate of the target operation model.
[0179] Figure 10 is a schematic diagram of a process for determining the recognition frame rate of each of the multiple image recognition models based on the operating mode of the self-mobile device and / or historical image recognition results, provided by an exemplary embodiment of the present application. As shown in Figure 10, determining the recognition frame rate of each of the multiple image recognition models based on the operating mode of the self-mobile device and / or historical image recognition results may include steps S1001, S1002, and S1003.
[0180] Step S1001: When the working mode of the mobile device is the regression mode, obtain historical image recognition results.
[0181] In some embodiments, the homecoming mode can be triggered when the voltage of the mobile device falls below a preset voltage threshold. For example, if the maximum operating voltage of the mobile device is 60V, the voltage threshold can be set to 40V. When the operating voltage of the mobile device falls below 40V, the homecoming mode is triggered. In homecoming mode, the mobile device stops its current task and moves to the target object.
[0182] Furthermore, return mode can also be triggered under user control. For example, if a user needs to return their mobile device to a target object, they can use their smart terminal to send a return command to their mobile device. After the mobile device receives the return command, return mode is triggered. In return mode, the mobile device stops its current task and returns to the target object.
[0183] Additionally, homing mode can be triggered when the mobile device detects rain. To prevent damage to the work surface during rainy conditions, homing mode is triggered when the mobile device's rain sensor detects rain. In homing mode, the mobile device stops its current task and returns to the target object.
[0184] After the mobile device triggers regression mode, it can obtain historical image recognition results for all image recognition models enabled during the previous period. The previous period can be the time required for each enabled image recognition model to process several frames of images before the current moment, for example, the processing time for 10, 5, or 3 frames. It should be noted that a mobile device can have multiple image recognition models, and the enabled image recognition models vary in different operating modes or stages within each mode. This approach can reduce the power consumption of the mobile device and improve its battery life. For example, a mobile device may have three image recognition models. In one mode, only the first and second image recognition models are enabled; in the first stage of another mode, only the second and third image recognition models are enabled; and in the second stage of another mode, the first, second, and third image recognition models are all enabled. In this embodiment, all enabled image recognition models are required to acquire images within their field of view for processing, while disabled image recognition models do not acquire historical images for processing. This reduces the power consumption of the mobile device.
[0185] In the embodiments of this specification, the historical image recognition results are binary codes. After obtaining the binary codes, the specific meaning expressed by each binary code can be determined according to the preset rules of each image recognition model. For example, the output of the first image recognition model 00 indicates that the recognition result is empty, the output [00, 01] indicates that the recognition result is the presence of the first target in the historical image, and the output [00, 02] indicates that the recognition result is the presence of the second target in the historical image. The specific meaning expressed by the binary code can be designed by those skilled in the art according to their needs and is not limited herein.
[0186] Step S1002: When the historical image recognition result indicates that the target object is recognized, obtain preset mapping information, wherein the preset mapping information indicates the image recognition model enabled at each stage in the regression mode and the corresponding preset recognition frame rate.
[0187] In this article, image recognition models are distinguished by model type and can include a primary model, a secondary model, and a marker recognition model. Specifically, the primary model can be a semantic segmentation model, which is used to identify background (including people, animals), low grass, roads, soil, fences, fallen leaves, and tall grass. The secondary model is an object detection model, which is used to identify charging stations, irrigation heads, and RFID. The marker recognition model is used to identify markers on charging stations. In this article, the markers can be QR codes, barcodes, or special patterns.
[0188] In this paper, the phases within each mode are executed sequentially. For example, in regression mode, the first and second phases are executed sequentially. Each phase requires different target objects to be identified. After detecting the target object required for each phase, the device enters that phase and proceeds and / or operates according to the control logic for that phase. In one embodiment, if no target object is detected, the operating mode or phase is not adjusted. This method protects the autonomous mobile device from falling or wandering outside its operating area.
[0189] The preset mapping information will be described below using a table, such as the preset mapping information table shown in Table 2.
[0190] Table 2
[0191] In this article, the full frame rate can be preset based on the hardware performance of the mobile device. For average hardware performance, the full frame rate can be set to three frames per second. For mobile devices with stronger hardware performance, the full frame rate can be set to ten frames per second, although this article does not impose any restrictions on this. 0 frames indicates that the image recognition model is not enabled. It should be emphasized that in some cases, if the hardware performance of the mobile device is strong, the 0-frame image recognition model can also run at a lower recognition frame rate.
[0192] In this paper, the first phase is triggered by a regression command, where the regression command can be generated for the three conditions mentioned above, including low battery condition, user-specified condition, and rain condition. The second phase identifies the charging station.
[0193] As shown in the regression model diagram of FIG11 , the first stage 1101 in the figure represents the route taken by the mobile device 1104 in the first stage 1101 , and the second stage 1102 represents the route taken by the mobile device 1104 in the second stage 1102 .
[0194] Step S1003: Determine the recognition frame rate of each image recognition model according to the preset mapping information.
[0195] This step specifically includes:
[0196] In response to the first stage 1101 in the regression mode, the primary model and the secondary model are enabled according to the preset mapping information, and the recognition frame rates of the primary model and the secondary model are controlled to be a preset frame rate, wherein the first stage 1101 is triggered by the regression instruction from the mobile device 1104;
[0197] In the first stage 1101, the primary model identifies a boundary object and, after identifying the boundary object, controls the self-mobile device 1104 to move toward and along the boundary and / or work. In some possible cases, the right wheel of the self-mobile device 1104 moves along the boundary. At this time, the secondary model searches for a charging station 1103. If the charging station 1103 is not found, the first stage 1101 continues to move along the edge. In this context, the charging station 1103 is not limited to being within the working area or the working area.
[0198] In response to the second stage 1102 in the regression mode, according to the preset mapping information, the secondary model and the marker recognition model are enabled and the primary model is disabled, and the recognition frame rates of the secondary model and the marker recognition model are controlled to be the preset frame rate, wherein the second stage 1102 is triggered according to the recognition result of the secondary model;
[0199] In the second stage 1102, the secondary model recognizes the charging station 1103. At this time, the main model is turned off and the marker recognition model is enabled. According to the preset mapping information, the recognition frame rates of the secondary model and the marker recognition model are set to the full frame rate. At this time, the secondary model recognizes the charging station 1103 and moves and / or works towards the charging station 1103. In the second stage 1102, due to the certain distance from the charging station 1103, the marker recognition model cannot accurately recognize the logo, so the recognition result output by the marker recognition model is empty. In the decision to control the self-mobile device 1104, the output result of the secondary model has a greater weight than the output result of the marker recognition model.
[0200] In the second phase 1103, when the mobile device 1104 is relatively close to the charging station 1103, the landmark recognition model recognizes the landmark and controls the mobile device 1104 to fine-tune its position so that the charging port of the mobile device 1104 can dock with the charging head of the charging station 1103. In the decision-making process for controlling the mobile device 1104, the output of the secondary model is weighted less than the output of the landmark recognition model.
[0201] Through the above method, the frame rate of the image recognition model can be adjusted multiple times when the mobile device 1104 returns, thereby reducing the power consumption of the mobile device 1104 in the return mode, and preventing the situation where the remaining power of the mobile device is low and cannot return to the charging station 1103 when the working area is large.
[0202] As an embodiment of this specification, before determining the recognition frame rates of the multiple image recognition models, the method includes:
[0203] Select multiple image recognition models from the preset image recognition model library according to the working environment.
[0204] Through the above method, you can switch models in different working environments. The specific instructions are as follows:
[0205] As shown in FIG12 , some embodiments of the present application also mention a model switching method, including:
[0206] S1201, determining a working environment in response to an environment detection instruction, wherein the working environment includes a first environment and a second environment;
[0207] S1202. Select multiple image recognition models from a preset image recognition model library according to the working environment, wherein the preset image recognition model library includes at least one image recognition model corresponding to the first environment and at least one image recognition model corresponding to the second environment, and the image recognition model corresponding to the first environment and the image recognition model corresponding to the second environment have the same recognition function.
[0208] Through the above method, a segmentation model that is more suitable for the environment under the same image recognition model can be used in different environments, so that the recognition results can be more accurate, thereby enabling the mobile device to work efficiently in a variety of environments and improving its operating efficiency.
[0209] In this article, the image recognition model library may include multiple image recognition models. For example, multiple image recognition models can be divided into four image recognition models according to type: A, B, C, and D. Among them, the A and B models can each be further divided into two types: A1 and A2, and B1 and B2 according to the environment. Therefore, the image recognition model library includes six models: A1, A2, B1, B2, C, and D. A1 and B1 correspond to the first environment, and A2 and B2 correspond to the second environment. In the first environment, A1, B1, C, and D can be selected. In the second environment, A2, B2, C, and D can be selected.
[0210] In some embodiments, selecting at least one image recognition model from a preset image recognition model library according to the working environment includes:
[0211] Determining whether the working environment meets preset environmental conditions;
[0212] If the conditions are met, selecting at least one image recognition model corresponding to the first environment from the preset image recognition model library;
[0213] If not, at least one image recognition model corresponding to the second environment is selected from the preset image recognition model library.
[0214] In this article, the preset environmental conditions may include a lumen threshold, time, or a preset brightness threshold. For example, when the environmental condition is a lumen threshold, the mobile device detects the lumen value of the current environment. When the lumen value is greater than the lumen threshold, the current environment is determined to be the first environment. When the lumen value is less than the lumen threshold, the current environment is determined to be the second environment. The lumen threshold can be determined based on multiple measurements of daytime light intensity. When the environmental condition is time, the mobile device obtains the lighting conditions of the area published on a third-party website at the current moment. When the third-party website determines that the current moment is daytime, the corresponding environment is the first environment; when the third-party website determines that the current moment is nighttime, the corresponding environment is the second environment.
[0215] In addition, when the preset environmental condition is a brightness threshold, the brightness values of the current image and at least one historical image of the working environment may be used to determine whether the current environment is a daytime environment.
[0216] In some embodiments, the first environment is a daytime environment and the second environment is a nighttime environment;
[0217] The selecting of multiple image recognition models from a preset image recognition model library according to the working environment includes:
[0218] Determine the working environment;
[0219] When the working environment is the daytime environment, selecting a plurality of image recognition models corresponding to the daytime environment from the preset image recognition model library;
[0220] When the working environment is the night environment, a plurality of image recognition models corresponding to the night environment are selected from the preset image recognition model library.
[0221] Specifically, a variety of methods can be used to determine the current working environment of the mobile device. In the embodiments of this article, the working environment can be divided into daytime and nighttime. Generally speaking, the light intensity is stronger during the day, and the contrast of the colors in the historical pictures is stronger; while the light intensity is weaker at night, and the contrast of the colors in the historical pictures is weaker. In order to enable the image recognition model to recognize images more accurately, when training each image recognition model, the training set is also divided into a daytime image training set and a nighttime image training set. For example, the initial model (including a semantic segmentation model or a target detection model) is trained to respectively train an image recognition model corresponding to daytime images and an image recognition model corresponding to nighttime images. Then, when using the semantic segmentation model for image recognition, the daytime semantic segmentation model can be used during the day, and the nighttime semantic segmentation model can be used at night, thereby greatly improving the image recognition accuracy.
[0222] In some embodiments, determining the working environment includes:
[0223] Acquiring a current image and at least one historical image of the working environment;
[0224] determining a brightness value of the working environment based on the current image and at least one historical image;
[0225] Determine whether the brightness value meets the brightness threshold
[0226] When the brightness value meets the brightness threshold, the working environment is the daytime environment;
[0227] When the brightness value does not meet the brightness threshold, the working environment is the night environment.
[0228] In this embodiment, image processing software can be used to obtain RGB (RGB color mode, color system) data of the current image and at least one historical image respectively, and then a brightness processing algorithm can be used to convert the RGB data into YUV (luma, chrominance) data, which represents the brightness of the image. In this article, the brightness threshold can be determined by averaging the brightness values corresponding to multiple daytime environment images. For example, the brightness value of a historical image of the daytime environment on the first day is 500, the brightness value of a historical image of the daytime environment on the second day is 700, and the brightness value of a historical image of the daytime environment on the third day is 600. Then the average brightness value of the three days can be calculated as 600 and used as the brightness threshold. When the brightness value of the historical image exceeds 600, the current environment is determined to be a daytime environment. When the brightness value of the historical image is less than 600, the current environment is determined to be a nighttime environment. The brightness threshold can also be set manually, which is not limited in this article.
[0229] When the brightness value meets the brightness threshold, you can choose to select image recognition models A1, B1, C and D in the preset image recognition library; when the brightness value does not meet the brightness threshold, you can choose to select image recognition models A2, B2, C and D in the preset image recognition library.
[0230] In this paper, the same type of image recognition model can be trained using training sets of both daytime and nighttime images. This ultimately yields several image recognition models of the same type for different environments, which can then be used in the desired environment. This approach improves the recognition accuracy of the image recognition model and avoids the situation where the model's recognition accuracy is lowered when using a nighttime model in a daytime environment or vice versa.
[0231] Some embodiments of the present application also mention a self-moving device, which is configured to travel and / or work in a work area. The self-moving device includes: a body, and a drive module, a vision module, and a control module arranged on the body; wherein the drive module is configured to drive the self-moving device to move according to a drive instruction; the vision module is configured to capture images; the control module is connected to the drive module and the vision module respectively, and is configured to: determine the recognition frame rate of each of multiple image recognition models, the recognition objects corresponding to the multiple image recognition models are different, the recognition frame rate of at least one image recognition model is an adjustable frame rate, and the recognition frame rate represents the number of images recognized within a preset time; obtain images within the field of view; perform image recognition processing on the images based on the recognition frame rates of each of the multiple image recognition models to obtain image recognition results; and control the movement and / or operation of the self-moving device according to the image recognition results.
[0232] It should be understood that the operations and functions of the control module in the above-mentioned mobile device can refer to the control methods provided in Figures 1 to 7 above, and in order to avoid repetition, they will not be described here.
[0233] Exemplary devices
[0234] The method embodiments and scenario embodiments of the present application are described in detail above in conjunction with Figures 1 to 7 . The device embodiment of the present application is described in detail below in conjunction with Figure 8 . It should be understood that the description of the method embodiment corresponds to the description of the device embodiment. Therefore, for portions not described in detail, reference can be made to the above method embodiment.
[0235] FIG8 is a schematic diagram of the structure of a control device provided by an exemplary embodiment of the present application. For example, the control device is applied to a self-moving device configured to travel and / or operate in a work area. As shown in FIG8 , the control device 80 provided by the embodiment of the present application includes:
[0236] Determination module 810, configured to determine a recognition frame rate of each of a plurality of image recognition models, wherein the plurality of image recognition models have different recognition functions and / or recognition algorithms, and the recognition frame rate of at least one image recognition model is an adjustable frame rate, wherein the recognition frame rate represents the number of images recognized within a preset time period;
[0237] An acquisition module 820 is used to acquire an image within the field of view;
[0238] The recognition module 830 is used to perform image recognition processing on the image based on the recognition frame rates of the multiple image recognition models to obtain an image recognition result;
[0239] The control module 840 is used to control the movement and / or operation of the mobile device according to the image recognition result.
[0240] In one embodiment of the present application, the determination module 810 is also used to obtain the working mode and / or historical image recognition results of the self-mobile device, and determine the recognition frame rate of each of the multiple image recognition models based on the working mode and / or historical image recognition results of the self-mobile device.
[0241] In one embodiment of the present application, the determination module 810 is also used to obtain the working mode of the self-mobile device, determine at least one model to be run from multiple image recognition models based on the working mode of the self-mobile device, and determine the recognition frame rate of each of the at least one model to be run.
[0242] In one embodiment of the present application, the determination module 810 is further used to obtain historical image recognition results, and determine the recognition frame rate of at least one model to be run according to the historical image recognition results and preset rules.
[0243] In one embodiment of the present application, the plurality of image recognition models include a first main model, and the first main model corresponds to the recognition objects including grass and non-grass. In addition, the determination module 810 is further configured to, when the operating mode is the first main mode, determine the first main model as the model to be run.
[0244] In one embodiment of the present application, the multiple image recognition models include a second primary model. The second primary model's corresponding recognition objects include grass, target non-grass, and other non-grass. The target non-grass includes at least one of fallen leaves, dirt, and stone slabs. Furthermore, determination module 810 is further configured to, when the operating mode is the second primary mode, determine the second primary model as the model to be run.
[0245] In one embodiment of the present application, the plurality of image recognition models include at least one main model and at least one secondary model. In addition, the determination module 810 is further configured to, when the working mode is the auxiliary mode, determine the at least one main model and the at least one secondary model as the models to be run.
[0246] In one embodiment of the present application, at least one sub-model includes a tall and low grass model and / or a charging station model. The identification objects corresponding to the tall and low grass model include tall grass, low grass and non-grass. The identification objects corresponding to the charging station model include a charging station.
[0247] In an embodiment of the present application, the determination module 810 is further configured to, when the working mode is the regression mode, determine at least one main model, a tall and low grass model, and a charging station model as models to be run.
[0248] In an embodiment of the present application, the determination module 810 is further configured to, when the working mode is the edge cutting mode, determine at least one main model and a tall and low grass model as models to be run.
[0249] In one embodiment of the present application, the determination module 810 is also used to determine the recognition frame rate of each model to be run according to the preset frame rate corresponding to each model to be run when the historical image recognition result indicates that the target object is not recognized, and the target object includes one or more identifiable objects from the mobile device.
[0250] In one embodiment of the present application, the determination module 810 is also used to obtain preset mapping information when the historical image recognition results indicate that the target object was not recognized. The preset mapping information represents the preset frame rate corresponding to each image recognition model in each working mode; and determine the recognition frame rate of each model to be run based on the preset mapping information and the working mode.
[0251] In one embodiment of the present application, the determination module 810 is also used to increase the recognition frame rate of the target model in at least one model to be run when the historical image recognition result indicates that the target object has been recognized, where the target object includes one or more identifiable objects from the mobile device, and the target model is a model corresponding to the target object.
[0252] In one embodiment of the present application, the determination module 810 is further configured to increase the recognition frame rate of the target model when the historical image recognition result indicates that the target object has been recognized and the distribution state of the target object meets a preset condition.
[0253] In one embodiment of the present application, the determination module 810 is further configured to increase the recognition frame rate of the target model to a preset maximum frame rate.
[0254] In one embodiment of the present application, the determination module 810 is also used to, when the image recognition result indicates that multiple target objects have been identified, obtain priority information, the priority information representing the priority order among the multiple target objects; determine the priority object among the multiple identified target objects based on the priority information; increase the recognition frame rate of the model corresponding to the priority object, and the model corresponding to the priority object is the target model.
[0255] In one embodiment of the present application, at least one image recognition model includes a tall and low grass model and a charging station model. The recognition objects corresponding to the tall and low grass model include tall grass, low grass, and non-grass. The recognition objects corresponding to the charging station model include charging stations. The priority of charging stations is higher than that of tall grass.
[0256] In one embodiment of the present application, the determination module 810 is also used to reduce the recognition frame rate of other models in at least one model to be run when the historical image recognition results indicate that the target object has been recognized, where the other models are models other than the target model in at least one model to be run.
[0257] In one embodiment of the present application, the recognition module 830 is also used to determine the number corresponding to the image, where the number represents the shooting order when the image is taken; based on the number and the recognition frame rates of each of the multiple image recognition models, determine at least one target operation model among the multiple image recognition models; based on the at least one target operation model, perform image recognition processing on the image to obtain an image recognition result.
[0258] It should be understood that the operations and functions of the determination module 810, acquisition module 820, identification module 830 and control module 840 in the control device 80 provided in Figure 8 can refer to the control methods provided in Figures 1 to 7 above. In order to avoid repetition, they will not be repeated here.
[0259] The electronic device according to an embodiment of the present application is described below with reference to Figure 9. Figure 9 is a schematic diagram showing the structure of an electronic device provided by an exemplary embodiment of the present application.
[0260] As shown in FIG. 9 , the electronic device 90 includes one or more processors 901 and a memory 902 .
[0261] The processor 901 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 90 to perform desired functions.
[0262] The memory 902 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), a hard disk, flash memory, etc. One or more computer program instructions may be stored on a computer-readable storage medium, and the processor 901 may execute the program instructions to implement the methods of the various embodiments of the present application described above and / or other desired functions. Various contents such as images of a work area, image recognition models, etc. may also be stored in the computer-readable storage medium.
[0263] In one example, the electronic device 90 may further include an input device 903 and an output device 904 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0264] The input device 903 may include, for example, a keyboard, a mouse, and the like.
[0265] The output device 904 can output various information to the outside, including image recognition results, etc. The output device 904 can include, for example, a display, a speaker, a printer, a communication network and its connected remote output device, etc.
[0266] Of course, for the sake of simplicity, FIG9 only shows some of the components of the electronic device 90 that are relevant to the present application, omitting components such as a bus, input / output interfaces, etc. In addition, the electronic device 90 may further include any other appropriate components depending on the specific application.
[0267] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes the steps in the method according to various embodiments of the present application described above in this specification.
[0268] The computer program product may be written in any combination of one or more programming languages to implement the program code for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0269] In addition, an embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the steps of the method according to various embodiments of the present application described above in this specification.
[0270] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can, for example, include but is not limited to a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0271] The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this application are merely illustrative and not restrictive, and it should not be assumed that these advantages, strengths, and effects are required of each embodiment of this application. In addition, the specific details disclosed above are merely illustrative and facilitating understanding, and are not restrictive. The above details do not limit this application to necessarily being implemented using the above specific details.
[0272] The block diagrams of the devices, devices, equipment, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0273] It should also be noted that in the apparatus, device, and method of the present application, each component or each step can be decomposed and / or recombined, and such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0274] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0275] The above description has been provided for the purpose of illustration and description. Furthermore, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A control method, characterized in that: Applied to a self-moving device, the self-moving device is configured to travel and / or work in a working area, the method comprising: Determining a recognition frame rate of each of a plurality of image recognition models, wherein each of the plurality of image recognition models has a different recognition function and / or recognition algorithm, and the recognition frame rate of at least one of the image recognition models is an adjustable frame rate, and the recognition frame rate represents the number of images recognized within a preset time; Acquire images within the field of view; Based on the recognition frame rates of the multiple image recognition models, the image is subjected to image recognition processing to obtain an image recognition result; The self-moving device is controlled to move and / or operate according to the image recognition result.
2. The method according to claim 1, characterized in that The determining of the recognition frame rates of the plurality of image recognition models includes: Obtaining the working mode and / or historical image recognition results of the mobile device; The recognition frame rates of the multiple image recognition models are determined according to the working mode of the mobile device and / or the historical image recognition results.
3. The method according to claim 1, characterized in that: The determining of the recognition frame rates of the plurality of image recognition models includes: Obtaining the working mode of the mobile device; Determining at least one model to be run from among the plurality of image recognition models according to the working mode of the self-mobile device; Determine a recognition frame rate of the at least one model to be run.
4. The method according to claim 3, characterized in that The determining of the recognition frame rate of the at least one model to be run includes: Obtain historical image recognition results; According to the historical image recognition result and the preset rule, the recognition frame rate of the at least one model to be run is determined.
5. The method according to claim 3 or 4, characterized in that: The multiple image recognition models include a first main model, and the recognition objects corresponding to the first main model include grass and non-grass; Among them, determining at least one model to be run from the multiple image recognition models according to the working mode of the self-equipped device includes: when the working mode is the first main mode, determining the first main model as the model to be run.
6. The method according to claim 3 or 4, characterized in that: The plurality of image recognition models include a second main model, and the recognition objects corresponding to the second main model include grass, target non-grass, and other non-grass, and the target non-grass includes at least one of fallen leaves, soil, and stone slabs; Wherein, determining at least one model to be run from the multiple image recognition models according to the working mode of the self-equipped device includes: when the working mode is the second main mode, determining the second main model as the model to be run.
7. The method according to claim 3 or 4, characterized in that: The plurality of image recognition models include at least one main model and at least one secondary model; Wherein, determining at least one model to be run from the plurality of image recognition models according to the working mode of the self-mobile device comprises: when the working mode is the auxiliary mode, at least one of the main models and at least one of the secondary models The model to be run is determined.
8. The method according to claim 7, characterized in that The at least one sub-model includes a tall and low grass model and / or a charging station model. The identification objects corresponding to the tall and low grass model include tall grass, low grass and non-grass. The identification objects corresponding to the charging station model include a charging station.
9. The method according to claim 8, characterized in that When the working mode is the auxiliary mode, determining at least one of the main models and at least one of the secondary models as the models to be run includes: When the working mode is the regression mode, at least one of the main model, the tall and low grass model and the charging station model is determined as the model to be operated.
10. The method according to claim 8, characterized in that When the working mode is the auxiliary mode, determining at least one of the main models and at least one of the secondary models as the models to be run includes: When the working mode is the edge cutting mode, at least one of the main model and the tall and low grass model is determined as the model to be run.
11. The method according to claim 4, characterized in that The determining, according to the historical image recognition result and the preset rule, the recognition frame rate of each of the at least one model to be run comprises: When the historical image recognition result indicates that the target object is not recognized, the recognition frame rate of each model to be run is determined according to the preset frame rate corresponding to each model to be run, and the target object includes one or more identifiable objects of the self-mobile device.
12. The method according to claim 11, characterized in that When the historical image recognition result indicates that the target object is not recognized, determining the recognition frame rate of each of the models to be run according to the preset frame rate corresponding to each of the models to be run, includes: When the historical image recognition result indicates that the target object is not recognized, obtaining preset mapping information, wherein the preset mapping information indicates a preset frame rate corresponding to each of the image recognition models in each of the working modes; According to the preset mapping information and the working mode, the recognition frame rate of each of the models to be run is determined.
13. The method according to claim 4, characterized in that The determining, according to the historical image recognition result and the preset rule, the recognition frame rate of each of the at least one model to be run comprises: In the case where the historical image recognition result indicates that a target object has been identified, the recognition frame rate of the target model in the at least one model to be run is increased, the target object includes one or more identifiable objects of the self-mobile device, and the target model is a model corresponding to the target object.
14. The method according to claim 13, characterized in that When the historical image recognition result indicates that the target object is recognized, increasing the recognition frame rate of the target model in the at least one model to be run includes: When the historical image recognition result indicates that the target object is recognized and the distribution state of the target object meets a preset condition, the recognition frame rate of the target model is increased.
15. The method according to claim 13, characterized in that The increasing the recognition frame rate of the target model in the at least one model to be run includes: Increase the recognition frame rate of the target model to a preset maximum frame rate.
16. The method according to claim 13, characterized in that When the historical image recognition result indicates that the target object is recognized, increasing the recognition frame rate of the target model in the at least one model to be run includes: In the case where the image recognition result indicates that a plurality of the target objects are recognized, obtaining priority information, wherein the priority information indicates a priority order among the plurality of the target objects; Determining a priority object among the multiple identified target objects according to the priority information; The recognition frame rate of the model corresponding to the priority object is increased, and the model corresponding to the priority object is the target model.
17. The method according to claim 16, characterized in that The at least one image recognition model includes the tall and low grass model and the charging station model. The recognition objects corresponding to the tall and low grass model include tall grass, low grass and non-grass. The recognition objects corresponding to the charging station model include charging stations. The priority of the charging station is higher than the priority of the tall grass.
18. The method according to claim 4, characterized in that The determining, according to the historical image recognition result and the preset rule, the recognition frame rate of each of the at least one model to be run comprises: In the case where the historical image recognition result indicates that the target object is recognized, the recognition frame rate of other models in the at least one model to be run is reduced, and the other models are models other than the target model in the at least one model to be run.
19. The method according to claim 1, characterized in that The performing image recognition processing on the image based on the recognition frame rates of the respective image recognition models to obtain an image recognition result includes: Determine the serial numbers corresponding to the images, where the serial numbers represent the order in which the images were taken; Determining at least one target operation model among the plurality of image recognition models based on the number and the recognition frame rates of the respective plurality of image recognition models; Based on the at least one target operation model, image recognition processing is performed on the image to obtain the image recognition result.
20. The method according to claim 2, characterized in that The determining, according to the working mode of the mobile device and / or the historical image recognition results, the recognition frame rates of the respective image recognition models includes: When the working mode of the self-mobile device is a regression mode, obtaining a historical image recognition result; In the case where the historical image recognition result indicates that the target object is recognized, obtaining preset mapping information, wherein the preset mapping information indicates the image recognition model enabled at each stage in the regression mode and the corresponding preset recognition frame rate; According to the preset mapping information, the recognition frame rate of each image recognition model is determined.
21. The method according to claim 20, characterized in that The target object includes a charging station.
22. The method according to claim 20 or 21, characterized in that The plurality of image recognition models include a primary model, a secondary model and a marker recognition model; The step of determining the recognition frame rate of each image recognition model according to the preset mapping information includes: In response to the first stage in the regression mode, according to the preset mapping information, the main model and the secondary model are enabled, and the recognition frame rates of the main model and the secondary model are controlled to be a preset frame rate, wherein the first stage is triggered according to the regression instruction of the self-mobile device; In response to the second stage in the regression mode, according to the preset mapping information, the secondary model and the marker recognition model are enabled and the main model is stopped, and the recognition frame rate of the secondary model and the marker recognition model is controlled to be the preset frame rate, wherein the second stage is triggered according to the recognition result of the secondary model.
23. The method according to claim 22, characterized in that The recognition result of the secondary model is that the charging station is recognized.
24. The method according to claim 1, characterized in that Before determining the recognition frame rates of the respective multiple image recognition models, the method includes: Select multiple image recognition models from the preset image recognition model library according to the working environment.
25. The method according to claim 24, characterized in that The selecting of multiple image recognition models from a preset image recognition model library according to the working environment includes: determining a working environment in response to an environment detection instruction, wherein the working environment includes a first environment and a second environment; According to the working environment, multiple image recognition models are selected from a preset image recognition model library, wherein the preset image recognition The model library includes at least one image recognition model corresponding to the first environment and at least one image recognition model corresponding to the second environment. The image recognition model corresponding to the first environment and the image recognition model corresponding to the second environment have the same recognition function.
26. The method according to claim 25, characterized in that The selecting a plurality of image recognition models from a preset image recognition model library according to the working environment comprises: Determining whether the working environment meets the preset environmental conditions; If the conditions are met, selecting at least one image recognition model corresponding to the first environment from the preset image recognition model library; If not satisfied, at least one image recognition model corresponding to the second environment is selected from the preset image recognition model library.
27. The method according to claim 25, characterized in that The first environment is a daytime environment, and the second environment is a nighttime environment; The selecting a plurality of image recognition models from a preset image recognition model library according to the working environment comprises: Determine the working environment; When the working environment is the daytime environment, selecting a plurality of image recognition models corresponding to the daytime environment from the preset image recognition model library; When the working environment is the night environment, a plurality of image recognition models corresponding to the night environment are selected from the preset image recognition model library.
28. The method according to claim 27, characterized in that The determining the working environment includes: Acquire a current image and at least one historical image of the working environment; Determining a brightness value of the working environment according to the current image and at least one historical image; Determine whether the brightness value meets the brightness threshold When the brightness value meets the brightness threshold, the working environment is the daytime environment; When the brightness value does not meet the brightness threshold, the working environment is the night environment.
29. A self-propelled device, characterized in that: The self-moving device is configured to travel and / or work in a working area, and the self-moving device comprises: a fuselage, and a driving module, a visual module and a control module arranged on the fuselage; wherein, The driving module is configured to drive the self-moving device to move according to the driving instruction; The visual module is configured to collect images; The control module is connected to the driving module and the visual module respectively, and is configured as follows: Determining a recognition frame rate of each of a plurality of image recognition models, wherein each of the plurality of image recognition models has a different recognition function and / or recognition algorithm, and the recognition frame rate of at least one of the image recognition models is an adjustable frame rate, and the recognition frame rate represents the number of images recognized within a preset time; Acquire images within the field of view; Based on the recognition frame rates of the multiple image recognition models, the image is subjected to image recognition processing to obtain an image recognition result; The self-moving device is controlled to move and / or operate according to the image recognition result.
30. A control device, characterized in that: Applied to a self-moving device, the self-moving device is configured to travel and / or work in a working area, the device comprising: A determination module, used to determine a recognition frame rate of each of a plurality of image recognition models, wherein the plurality of image recognition models have different recognition functions and / or recognition algorithms, and the recognition frame rate of at least one of the image recognition models is an adjustable frame rate, wherein the recognition frame rate represents the number of images recognized within a preset time; An acquisition module, used for acquiring images within the field of view; A recognition module, configured to perform image recognition processing on the image based on the recognition frame rates of the respective image recognition models to obtain an image recognition result; The control module is used to control the movement and / or operation of the self-moving device according to the image recognition result.
31. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 28.
32. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to execute the method described in any one of claims 1 to 28.
