Image processing method and device, electronic equipment, storage medium and moving tool

By converting the image data of the old data source into the perspective of the new data source, and using learning model training, the problem of low algorithm module development efficiency caused by the difference in data quality from different data sources in the autonomous driving system is solved, and the image data of the old and new data sources is realized. The consistency of data imaging improves development efficiency and data utilization.

CN118587665APending Publication Date: 2024-09-03BEIJING ZHIXINGZHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310201921.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-02
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The quality of data collected from different data sources in the autonomous driving system is uneven, resulting in low efficiency in algorithm module development and debugging, and the inability to adapt algorithm modules developed from old data sources.

Method used

By converting the image data collected from the old data source into image data from the perspective of the new data source, and using the learning model for training, the learning model can learn the imaging method of the old data source without changing the perspective of the new data source. This enables image data collected from new data sources to use algorithm modules developed based on old data sources.

Benefits of technology

It improves the development and debugging efficiency of the algorithm module, achieves consistency between the image data collected by the new data source and the imaging method of the old data source, and enhances the utilization of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587665A
    Figure CN118587665A
Patent Text Reader

Abstract

The invention relates to an image processing method and device, electronic equipment, a storage medium and a mobile tool. The method comprises the following steps: controlling a new data source and an old data source to carry out image acquisition on the same scene; based on the first image data acquired by the new data source and the second image data acquired by the old data source, converting the second image data into third image data under the view angle of the new data source; in the process of training the learning model, taking the first image data as input of the learning model, and obtaining fourth image data output by the learning model; taking the fourth image data and the third image data as input of a loss function, controlling the loss function to carry out loss calculation, and generating an adjustment coefficient for the learning model; the learning model is controlled to carry out self coefficient adjustment based on the adjustment coefficient; and after it is determined that training of the learning model is completed, the learning model is used for carrying out image recognition processing on the image data collected by the new data source, and the development and debugging efficiency of an algorithm module is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to image processing methods, devices, electronic devices, storage media, and mobile tools. Background Art

[0002] With the development of science and technology, the application of autonomous driving technology is becoming more and more extensive. In autonomous driving technology, data collection occupies an important position. In the current market, there are many types of data sources for data collection, and the hardware and software of each manufacturer are different, which ultimately results in uneven data quality. Taking image acquisition as an example, the images collected by cameras from different manufacturers have great differences in imaging quality and imaging style. The autonomous driving system is a complex system that generally requires different data sources. With the iteration of technological progress, how to adapt the data collected by these different data sources has also become a key problem that autonomous driving technology needs to solve.

[0003] In the related art, the above problems are generally solved by fine-tuning the algorithm. Specifically, for the algorithm module developed for the new data source, in order to adapt to the data collected by the new data source, the algorithm module itself needs to be adjusted. In other words, every time the data source is updated, the logic and key parameters of the algorithm module need to be modified to adapt to the new data. Obviously, this method cannot adapt to the algorithm module developed for the old data source, thereby reducing the development and debugging efficiency of the algorithm module. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present application provides an image processing method, an apparatus, an electronic device, a storage medium, and a mobile tool to improve the development and debugging efficiency of the algorithm module.

[0005] The first aspect of the present application provides an image processing method, comprising:

[0006] Control the new data source and the old data source to collect images for the same scene;

[0007] Based on the first image data collected by the new data source and the second image data collected by the old data source, converting the second image data into third image data under the perspective of the new data source;

[0008] In the process of training the learning model, taking the first image data as input of the learning model, and obtaining fourth image data output by the learning model;

[0009] Using the fourth image data and the third image data as inputs of a loss function, controlling the loss function to perform loss calculation, and generating an adjustment coefficient for the learning model;

[0010] Controlling the learning model to adjust its own coefficient based on the adjustment coefficient;

[0011] After determining that the training of the learning model is completed, the learning model is used to perform image recognition processing on the image data collected by the new data source.

[0012] Optionally, controlling the new data source and the old data source to collect images for the same scene includes:

[0013] The new data source and the old data source are controlled to simultaneously collect images for the same scene, and a timestamp tag is given to each collected image data.

[0014] Optionally, the converting the first image data collected by the new data source and the second image data collected by the old data source into third image data from the perspective of the new data source includes:

[0015] Determine the first image data collected by the new data source and the second image data collected by the old data source having the same timestamp tag;

[0016] Determine at least one pair of key points having an associated relationship in the first image data and the second image data; wherein one key point of the pair of key points comes from the first image data, and the other key point comes from the second image data;

[0017] Obtaining the image coordinates of each key point in the at least one pair of key points in the respective image data;

[0018] determining a perspective transformation matrix based on the image coordinates of the at least one pair of key points;

[0019] The second image data is converted into third image data under the perspective of the new data source based on the perspective transformation matrix.

[0020] Optionally, the determining at least one pair of key points having an associated relationship in the first image data and the second image data includes:

[0021] At least one pair of key points marked by a user for a same position of a same object in the first image data and the second image data is obtained.

[0022] Optionally, the determining at least one pair of key points having an associated relationship in the first image data and the second image data includes:

[0023] Determine at least one key point in the first image data and at least one key point in the second image data by a feature point detection algorithm;

[0024] Determine at least one pair of key points satisfying an association condition from the key points based on a matching algorithm;

[0025] Among them, at least one pair of key points that meet the association condition corresponds to the same position for the same object.

[0026] Optionally, the taking the fourth image data and the third image data as inputs of a loss function, controlling the loss function to perform loss calculation, and generating an adjustment coefficient for the learning model includes:

[0027] The fourth image data and the third image data having the same timestamp label are simultaneously used as inputs of a loss function, and the loss function is controlled to calculate an adjustment coefficient for the learning model based on an error between the fourth image data and the third image data.

[0028] Optionally, controlling the new data source and the old data source to simultaneously collect images for the same scene includes:

[0029] A new data source and an old data source installed on the same rigid mechanical part are controlled to simultaneously collect images for the same scene during vehicle driving; wherein the rigid mechanical part is installed at a specified position of the vehicle.

[0030] A second aspect of the present application provides an image processing device, comprising:

[0031] A first control unit, used to control the new data source and the old data source to collect images for the same scene;

[0032] A first conversion unit, configured to convert the second image data into third image data under the perspective of the new data source based on the first image data collected by the new data source and the second image data collected by the old data source;

[0033] a first acquisition unit, configured to use the first image data as an input of the learning model to acquire fourth image data output by the learning model during training of the learning model;

[0034] a first generating unit, configured to use the fourth image data and the third image data as inputs of a loss function, control the loss function to perform loss calculation, and generate an adjustment coefficient for the learning model;

[0035] A first adjustment unit, used for controlling the learning model to adjust its own coefficient based on the adjustment coefficient;

[0036] The first processing unit is used to perform image recognition processing on the image data collected by the new data source by using the learning model after determining that the learning model training is completed.

[0037] A third aspect of the present application provides an electronic device, including:

[0038] Processor; and

[0039] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.

[0040] A fourth aspect of the present application provides a non-transitory machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.

[0041] A fifth aspect of the present application provides a mobile tool, comprising a plurality of data sources and the electronic device as described above, wherein the data source is communicatively connected with the electronic device.

[0042] In the technical solution provided by the present application, the second image data collected by the old data source is converted into the third image data from the perspective of the new data source, so that the first image data collected by the new data source is used as the input of the learning model, and the third image data is used to supervise the learning model, so that the learning model can learn the imaging mode of the old data source without changing the perspective of the new data source. Then, after the image data of the new data source is recognized and processed using the trained learning model, the image data of the new data source can be converted into image data with the same imaging mode as the old data source without changing the perspective of the image data of the new data source, so that the image data collected by the new data source can use the algorithm module developed based on the old data source, thereby improving the development and debugging efficiency of the algorithm module.

[0043] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The above and other objects, features and advantages of the present application will become more apparent through a more detailed description of exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0045] Figure 1 is a flowchart of an image processing method shown in a method embodiment of the present application;

[0046] Figure 2 is a schematic diagram showing a method embodiment of the present application in which the data source is a camera;

[0047] Figure 3 is a schematic diagram of the position of a rigid mechanical part installed on a vehicle, shown in a method embodiment of the present application;

[0048] Figure 4 is a flowchart of an image processing method shown in another method embodiment of the present application;

[0049] Figure 5 is a schematic diagram for key points shown in another method embodiment of the present application;

[0050] Figure 6 is a flowchart of an image processing method shown in another method embodiment of the present application;

[0051] Figure 7 is a schematic diagram of learning model training shown in yet another method embodiment of the present application;

[0052] Figure 8 is a structural schematic diagram of an image processing device shown in an embodiment of the present application;

[0053] Fig. 9 is a structural schematic diagram of a first conversion unit in an image processing device shown in another device embodiment of the present application;

[0054] Fig.10 It is a structural schematic diagram of an electronic device shown in yet another device embodiment of the present application. DETAILED DESCRIPTION

[0055] The preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0056] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0057] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0058] A method embodiment of the present application provides an image processing method, such as Figure 1 As shown, the method may include the following process:

[0059] Step 101: Control the new data source and the old data source to collect images for the same scene;

[0060] The new data source and the old data source are both image acquisition devices used to acquire image data. The new data source and the old data source in this application refer to devices with different data source hardware and / or software, for example, the two data sources are of different models, or the two data sources are from different manufacturers, or the parameters of the image data acquired by the two data sources are different, etc.

[0061] Take the camera as an example, Figure 2 As shown, it is assumed that the old data source is camera A and the new data source is camera B. The imaging quality and style of camera B are different from those of camera A.

[0062] In the present application, the new data source and the old data source are controlled to perform image acquisition for the same scene. Specifically, the new data source and the old data source can be installed on the same rigid mechanical part to ensure the stability of image acquisition, and the rigid mechanical part can be installed on a vehicle, such as an autonomous driving vehicle, to achieve image acquisition during the driving process of the vehicle. The rigid mechanical part is installed at a specified position of the vehicle. Figure 3 The figure shows a plurality of designated positions where the rigid mechanical part can be installed on the vehicle, and the rigid mechanical part with the new data source and the old data source installed can be installed at any designated position. Figure 3 It does not constitute a limitation on the designated position, and other positions on the vehicle where rigid mechanical parts can be installed are also within the protection scope of this application.

[0063] Step 102: based on the first image data collected by the new data source and the second image data collected by the old data source, convert the second image data into third image data under the perspective of the new data source;

[0064] Even if two data sources are capturing images of the same scene, the perspectives of the two data sources are different. The purpose of this application is to make the imaging method of the new data source, such as imaging quality and imaging style, as consistent as possible with the old data source without changing the perspective of the new data source. Therefore, before training the learning model, the second image data captured by the old data source is first converted into the third image data under the perspective of the new data source, so that the perspective of the image capture of the new data source can be maintained when the learning model is subsequently trained.

[0065] Among them, the imaging method can be reflected in various aspects such as image tone, image brightness, image clarity, image sharpness, and image distortion.

[0066] It should be noted that the image data collected by the new data source and the image data collected by the old data source are used for training the learning model, so multiple frames of image data are required. In the present application, the number of first image data collected by the new data source can be consistent with the number of second image data collected by the old data source, and when the second image data is converted, all the second image data can be converted into third image data from the perspective of the new data source.

[0067] Step 103: during the training process of the learning model, using the first image data as input of the learning model to obtain fourth image data output by the learning model;

[0068] The learning model is a pre-built machine learning model, including but not limited to one of a decision tree model, a linear model, a non-linear model, a neural network model, etc.

[0069] When training the learning model, the first image data collected by the new data source is used as a training sample input to the learning model, thereby obtaining the fourth image data output by the learning model.

[0070] Step 104: using the fourth image data and the third image data as inputs of a loss function, controlling the loss function to perform loss calculation, and generating an adjustment coefficient for the learning model;

[0071] The input of the loss function includes the fourth image data output by the learning model and the third image data converted from the old data source. That is to say, this application uses the third image data as the true value for training the learning model, and generates an adjustment coefficient for the learning model through the calculation of the loss function.

[0072] Step 105: Control the learning model to adjust its own coefficient based on the adjustment coefficient;

[0073] Optionally, controlling the learning model to adjust its own coefficient based on the adjustment coefficient includes: back-propagating the adjustment coefficient gradient to the learning model, and controlling the learning model to adjust its own coefficient based on an adjustment system of gradient back-propagation.

[0074] Step 106: After determining that the learning model training is completed, use the learning model to perform image recognition processing on the image data collected by the new data source.

[0075] Since the perspective of the third image data is consistent with that of the new data source, but the imaging method is different, by using the third image data as the true value of the training learning model, the trained learning model can make the imaging method of the output image data as consistent as possible with the imaging method of the old data source without changing the perspective of image acquisition of the new data source.

[0076] Then, after using the trained learning model to identify and process the image data of the new data source, it is possible to process the image data of the new data source into image data with an imaging method consistent with that of the old data source without changing the perspective of the image data of the new data source. The image data can use the algorithm module developed based on the old data source, and there is no need to adjust the algorithm module developed based on the old data source.

[0077] It can be seen that in this embodiment, the second image data collected by the old data source is converted into the third image data from the perspective of the new data source, so that the first image data collected by the new data source is used as the input of the learning model, and the third image data is used to supervise the learning model, so that the learning model can learn the imaging method of the old data source without changing the perspective of the new data source. Then, after the image data of the new data source is recognized and processed using the trained learning model, the image data of the new data source can be converted into image data with the same imaging method as the old data source without changing the perspective of the image data of the new data source, so that the image data collected by the new data source can use the algorithm module developed based on the old data source, thereby improving the development and debugging efficiency of the algorithm module.

[0078] Another method embodiment of the present application provides an image processing method, such as Figure 4 As shown, the method may include the following steps:

[0079] Step 401: Control the new data source and the old data source to simultaneously collect images for the same scene, and assign a timestamp tag to each collected image data;

[0080] By controlling the new data source and the old data source to simultaneously collect images for the same scene, the image data collected by the two data sources can be aligned in time.

[0081] Optionally, controlling the new data source and the old data source to simultaneously capture images for the same scene may include: controlling the new data source and the old data source installed on the same rigid mechanical part to simultaneously capture images for the same scene during vehicle driving.

[0082] Step 402: Determine the first image data collected by the new data source and the second image data collected by the old data source that have the same timestamp tag;

[0083] In the present application, part of the first image data and the second image data with the same timestamp label can be determined from the multiple frames of first image data collected by the new data source and the multiple frames of second image data collected by the old data source to determine the perspective transformation matrix to reduce the amount of calculation.

[0084] For example, assuming that the new data source collects 100 frames of first image data and the old data source collects 100 frames of second image data, 2 to 5 groups of first image data and second image data with the same timestamp label can be determined, and these groups of image data can be used to determine the perspective transformation matrix. Each group includes one frame of first image data and one frame of second image data with the same timestamp label.

[0085] Step 403: determining at least one pair of key points having an associated relationship in the first image data and the second image data;

[0086] Among them, one key point of the pair of key points comes from the first image data, and the other key point comes from the second image data having the same timestamp label as the first image data.

[0087] At least one pair of key points satisfying the association relationship may correspond to the same position for the same object.

[0088] This embodiment provides two implementation methods for determining key points.

[0089] The first implementation method:

[0090] The step of determining at least one pair of key points having an associated relationship in the first image data and the second image data in step 403 may include:

[0091] At least one pair of key points marked by a user for a same position of a same object in the first image data and the second image data is obtained.

[0092] In this manner, the user can respectively mark at least one pair of key points having an associated relationship in the first image data and the second image data having the same timestamp label.

[0093] In the specific implementation process, the user can mark the same position of the same object in the first image data and the second image data with the same timestamp label at the same time (the marking time difference is within the threshold range), so that the system can identify a pair of key points with a correlation relationship. If multiple pairs need to be marked, after marking one pair, the next pair of key points will be marked in the same way.

[0094] Alternatively, the user may annotate a pair of key points in a sequential order, such as for the first image data and the second image data with the same timestamp tag, the user first annotates the first image data, then marks the second image data at the same position for the same object, and confirms the two key points as a pair of key points with an associated relationship by clicking on the confirmation operation. If multiple pairs need to be annotated, after annotating one pair, the next pair of key points is annotated in the same manner.

[0095] Of course, the present application is not limited to the above manual identification method, and other marking methods that can realize marking a pair of key points with an associated relationship are also within the protection scope of the present application.

[0096] The second implementation method:

[0097] The step of determining at least one pair of key points having an associated relationship in the first image data and the second image data in step 403 may include:

[0098] (1.1) determining at least one key point in the first image data and at least one key point in the second image data by a feature point detection algorithm;

[0099] (1.2) Determine at least one pair of key points satisfying an association condition from the key points based on a matching algorithm.

[0100] This method corresponds to an automatic recognition method, that is, at least one pair of key points can be determined from the first image data and the second image data having the same timestamp label through a feature point detection algorithm and a matching algorithm.

[0101] Figure 5 Four pairs of key points that meet the association condition in the first image data and the second image data with the same timestamp label are shown. The left side is the first image data, and the right side is the second image data; the four pairs of key points are (A1, A2), (B1, B2), (C1, C2), and (D1, D2).

[0102] Step 404: Obtaining the image coordinates of each key point in the at least one pair of key points in the respective image data;

[0103] Step 405: determining a perspective transformation matrix based on the image coordinates of the at least one pair of key points;

[0104] A perspective transformation matrix can be determined for a set of first image data and second image data with the same timestamp. If there are multiple sets of first image data and second image data with the same timestamp label, multiple perspective transformation matrices will be determined. In this case, the average of the multiple perspective transformation matrices can be taken.

[0105] Step 406: Convert the second image data into third image data under the perspective of the new data source based on the perspective transformation matrix;

[0106] All the second image data collected by the old data source are transformed using the perspective transformation matrix, so that all the second image data can be transformed into third image data under the perspective of the new data source.

[0107] Step 407: during the training of the learning model, using the first image data as input of the learning model to obtain fourth image data output by the learning model;

[0108] Step 408: using the fourth image data and the third image data as inputs of a loss function, controlling the loss function to perform loss calculation, and generating an adjustment coefficient for the learning model;

[0109] Step 409: Control the learning model to adjust its own coefficient based on the adjustment coefficient;

[0110] Step 410: After determining that the learning model training is completed, use the learning model to perform image recognition processing on the image data collected by the new data source.

[0111] It can be seen that in this embodiment, by controlling the new data source and the old data source to simultaneously perform image acquisition for the same scene, and assigning a timestamp label to each acquired image data, the first image data acquired by the new data source and the second image data acquired by the old data source with the same timestamp label are determined, thereby determining at least one pair of key points with an associated relationship in the first image data and the second image data, obtaining the image coordinates of each key point in the at least one pair of key points in the respective image data, and determining the perspective transformation matrix based on the image coordinates of the at least one pair of key points, thereby achieving the determination of the perspective transformation matrix, thereby enabling the second image data acquired by the old data source to be converted into the third image data under the perspective of the new data source, and using the third image data to supervise the learning model, so that the learning model can learn the imaging mode of the old data source without changing the perspective of the new data source. Then, after the image data of the new data source is recognized and processed by using the trained learning model, the image data of the new data source can be converted into image data with the same imaging mode as the old data source without changing the perspective of the image data of the new data source, thereby enabling the image data acquired by the new data source to use the algorithm module developed based on the old data source, thereby improving the development and debugging efficiency of the algorithm module;

[0112] Moreover, it can make full use of the image data collected by the old data source, thus improving the utilization rate of the data.

[0113] Another method embodiment of the present application provides an image processing method, such as Figure 6 As shown, the method may include the following steps:

[0114] Step 601: Control the new data source and the old data source to simultaneously collect images for the same scene, and assign a timestamp tag to each collected image data;

[0115] Step 602: based on the first image data collected by the new data source and the second image data collected by the old data source, convert the second image data into third image data under the perspective of the new data source;

[0116] Step 603: during the training process of the learning model, using the first image data as input of the learning model, and obtaining fourth image data output by the learning model;

[0117] Step 604: using the fourth image data and the third image data having the same timestamp label as inputs of a loss function at the same time, and controlling the loss function to calculate an adjustment coefficient for the learning model based on an error between the fourth image data and the third image data;

[0118] The loss function determines an adjustment coefficient of the learning model based on an error between the third image data and the fourth image data having the same timestamp label.

[0119] Step 605: Control the learning model to adjust its own coefficient based on the adjustment coefficient;

[0120] Specifically, the adjustment coefficient gradient output by the loss function can be back-propagated to the learning model. The gradient back-propagation process can be understood as a process of obtaining partial derivatives of the adjustment coefficients, so that the learning model adjusts its own coefficients in the direction of the adjustment coefficients of the gradient back-propagation.

[0121] like Figure 7 As shown in the figure, taking the camera as the data source as an example, camera A is used as the old data source, and camera B is used as the new data source. During the training of the learning model, the image data of camera B is used as input, and the image data output by the learning model and the image data of camera A after perspective transformation are used as inputs of the loss function at the same time, so that the loss function adjusts the system gradient through loss calculation and transmits it back to the learning model. Through the action of the loss function, the training process of the learning model can be realized.

[0122] Step 606: After determining that the learning model training is completed, use the learning model to perform image recognition processing on the image data collected by the new data source.

[0123] In this embodiment, the second image data collected by the old data source is converted into the third image data from the perspective of the new data source, so that the first image data collected by the new data source is used as the input of the learning model, and the third image data is used to supervise the learning model, so that the learning model can learn the imaging method of the old data source without changing the perspective of the new data source. Then, after the image data of the new data source is recognized and processed using the trained learning model, the image data of the new data source can be converted into image data with the same imaging method as the old data source without changing the perspective of the image data of the new data source, so that the image data collected by the new data source can use the algorithm module developed based on the old data source, thereby improving the development and debugging efficiency of the algorithm module.

[0124] Corresponding to the aforementioned application function implementation method embodiments, the present application also provides an image processing device, an electronic device and corresponding embodiments.

[0125] An apparatus embodiment of the present application provides an image processing apparatus, such as Figure 8 As shown, the device may include: a first control unit 110, a first conversion unit 120, a first acquisition unit 130, a first generation unit 140, a first adjustment unit 150 and a first processing unit 160; wherein:

[0126] A first control unit 110, used to control the new data source and the old data source to collect images for the same scene;

[0127] A first conversion unit 120, configured to convert the second image data into third image data under the perspective of the new data source based on the first image data collected by the new data source and the second image data collected by the old data source;

[0128] A first acquisition unit 130, configured to use the first image data as an input of the learning model to acquire fourth image data output by the learning model during training of the learning model;

[0129] A first generating unit 140, configured to use the fourth image data and the third image data as inputs of a loss function, control the loss function to perform loss calculation, and generate an adjustment coefficient for the learning model;

[0130] A first adjustment unit 150, configured to control the learning model to adjust its own coefficient based on the adjustment coefficient;

[0131] The first processing unit 160 is used to perform image recognition processing on the image data collected by the new data source by using the learning model after determining that the training of the learning model is completed.

[0132] In this embodiment, the second image data collected by the old data source is converted into the third image data from the perspective of the new data source, so that the first image data collected by the new data source is used as the input of the learning model, and the third image data is used to supervise the learning model, so that the learning model can learn the imaging method of the old data source without changing the perspective of the new data source. Then, after the image data of the new data source is recognized and processed using the trained learning model, the image data of the new data source can be converted into image data with the same imaging method as the old data source without changing the perspective of the image data of the new data source, so that the image data collected by the new data source can use the algorithm module developed based on the old data source, thereby improving the development and debugging efficiency of the algorithm module.

[0133] In another device embodiment of the present application, the first control unit includes: a first control module, used to control the new data source and the old data source to simultaneously collect images for the same scene, and assign a timestamp label to each collected image data.

[0134] Optionally, the first control module is specifically used to control a new data source and an old data source installed on the same rigid mechanical part to simultaneously collect images for the same scene during the driving of the vehicle;

[0135] Wherein, the rigid mechanical part is installed at a designated position of the vehicle.

[0136] like Fig. 9 As shown, the first conversion unit 120 includes: a first determination module 1201, a second determination module 1202, a first acquisition module 1203, a third determination module 1204 and a first conversion module 1205; wherein:

[0137] A first determining module 1201 is used to determine the first image data collected by the new data source and the second image data collected by the old data source that have the same timestamp tag;

[0138] A second determining module 1202 is used to determine at least one pair of key points having an associated relationship in the first image data and the second image data; wherein one key point of the pair of key points comes from the first image data, and the other key point comes from the second image data;

[0139] A first acquisition module 1203 is used to acquire the image coordinates of each key point in the at least one pair of key points in the respective image data;

[0140] A third determining module 1204 is used to determine a perspective transformation matrix based on the image coordinates of the at least one pair of key points;

[0141] The first conversion module 1205 is used to convert the second image data into third image data under the perspective of the new data source based on the perspective transformation matrix.

[0142] In one embodiment, the second determining module 1202 is specifically configured to obtain at least one pair of key points marked by a user for the same position of the same object in the first image data and the second image data.

[0143] In another embodiment, the second determination module 1202 is specifically used to determine at least one key point in the first image data and at least one key point in the second image data through a feature point detection algorithm, and determine at least one pair of key points that meet the association condition from the key points based on a matching algorithm.

[0144] Among them, at least one pair of key points that meet the association condition corresponds to the same position for the same object.

[0145] In another device embodiment of the present application, a first generating unit includes: a first computing module, used to simultaneously use the fourth image data and the third image data having the same timestamp label as inputs of a loss function, and to control the loss function to calculate an adjustment coefficient for the learning model based on the error between the fourth image data and the third image data.

[0146] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.

[0147] Fig.10 It is a structural schematic diagram of an electronic device shown in yet another device embodiment of the present application.

[0148] See also Fig.10 , the electronic device 1000 includes a memory 1010 and a processor 1020 .

[0149] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0150] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0151] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.

[0152] The scheme of the present application has been described in detail above with reference to the accompanying drawings. In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, refer to the relevant description of other embodiments. Those skilled in the art should also know that the actions and modules involved in the description are not necessarily required for the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application can be adjusted in order, merged and deleted according to actual needs, and the modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0153] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0154] Alternatively, the present application can also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or electronic device, server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0155] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.

[0156] The present application also provides a mobile tool, including multiple data sources and the electronic device as described above, wherein the data source is communicatively connected with the electronic device.

[0157] The data source may be the data source described above.

[0158] Mobile tools include but are not limited to vehicles with six autonomous driving technology levels, L0-L5, as set by the Society of Automotive Engineers International (SAE International) or the Chinese national standard "Automotive Driving Automation Classification", for example, vehicle equipment or robot equipment with the following functions:

[0159] (1) Passenger-carrying function, such as family cars and buses;

[0160] (2) Cargo-carrying functions, such as ordinary trucks, van trucks, trailer trucks, closed trucks, tank trucks, flatbed trucks, container trucks, dump trucks, trucks with special structures, etc.;

[0161] (3) Tool functions, such as logistics delivery vehicles, automated guided vehicles (AGVs), patrol cars, cranes, hoists, excavators, bulldozers, forklifts, road rollers, loaders, off-road engineering vehicles, armored engineering vehicles, sewage treatment vehicles, sanitation vehicles, vacuum trucks, floor scrubbers, water sprinklers, sweeping robots, food delivery robots, shopping guide robots, lawn mowers, golf carts, etc.;

[0162] (4) Entertainment functions, such as entertainment vehicles, amusement park self-driving devices, balance vehicles, etc.;

[0163] (5) Special rescue functions, such as fire trucks, ambulances, power repair vehicles, engineering rescue vehicles, etc.

[0164] This application does not strictly limit the types of mobile tools, and no exhaustive list is given here.

[0165] The present application also provides a computer program product, which, when executed on a computer, is suitable for executing a program that initializes the following image processing method steps:

[0166] Control the new data source and the old data source to collect images for the same scene;

[0167] Based on the first image data collected by the new data source and the second image data collected by the old data source, converting the second image data into third image data under the perspective of the new data source;

[0168] In the process of training the learning model, taking the first image data as input of the learning model, and obtaining fourth image data output by the learning model;

[0169] Using the fourth image data and the third image data as inputs of a loss function, controlling the loss function to perform loss calculation, and generating an adjustment coefficient for the learning model;

[0170] Controlling the learning model to adjust its own coefficient based on the adjustment coefficient;

[0171] After determining that the training of the learning model is completed, the learning model is used to perform image recognition processing on the image data collected by the new data source.

[0172] Optionally, controlling the new data source and the old data source to collect images for the same scene includes:

[0173] The new data source and the old data source are controlled to simultaneously collect images for the same scene, and a timestamp tag is given to each collected image data.

[0174] Optionally, the converting the first image data collected by the new data source and the second image data collected by the old data source into third image data from the perspective of the new data source includes:

[0175] Determine the first image data collected by the new data source and the second image data collected by the old data source having the same timestamp tag;

[0176] Determine at least one pair of key points having an associated relationship in the first image data and the second image data; wherein one key point of the pair of key points comes from the first image data, and the other key point comes from the second image data;

[0177] Obtaining the image coordinates of each key point in the at least one pair of key points in the respective image data;

[0178] determining a perspective transformation matrix based on the image coordinates of the at least one pair of key points;

[0179] The second image data is converted into third image data under the perspective of the new data source based on the perspective transformation matrix.

[0180] Optionally, the determining at least one pair of key points having an associated relationship in the first image data and the second image data includes:

[0181] At least one pair of key points marked by a user for a same position of a same object in the first image data and the second image data is obtained.

[0182] Optionally, the determining at least one pair of key points having an associated relationship in the first image data and the second image data includes:

[0183] Determine at least one key point in the first image data and at least one key point in the second image data by a feature point detection algorithm;

[0184] Determine at least one pair of key points satisfying an association condition from the key points based on a matching algorithm;

[0185] At least one pair of key points satisfying the association condition corresponds to the same position of the same object.

[0186] Optionally, the taking the fourth image data and the third image data as inputs of a loss function, controlling the loss function to perform loss calculation, and generating an adjustment coefficient for the learning model includes:

[0187] The fourth image data and the third image data having the same timestamp label are simultaneously used as inputs of a loss function, and the loss function is controlled to calculate an adjustment coefficient for the learning model based on an error between the fourth image data and the third image data.

[0188] Optionally, controlling the new data source and the old data source to simultaneously collect images for the same scene includes:

[0189] A new data source and an old data source installed on the same rigid mechanical part are controlled to simultaneously collect images for the same scene during vehicle driving; wherein the rigid mechanical part is installed at a specified position of the vehicle.

[0190] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, a program segment or a code, and the part of the module, the program segment or the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or the flow chart, and the combination of the square boxes in the block diagram and / or the flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0191] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. Image processing methods, It is characterized in that include: Control the new data source and the old data source to collect images for the same scene; Based on the first image data collected by the new data source and the second image data collected by the old data source, converting the second image data into third image data under the perspective of the new data source; In the process of training the learning model, taking the first image data as input of the learning model, and obtaining fourth image data output by the learning model; Using the fourth image data and the third image data as inputs of a loss function, controlling the loss function to perform loss calculation, and generating an adjustment coefficient for the learning model; Controlling the learning model to adjust its own coefficient based on the adjustment coefficient; After determining that the training of the learning model is completed, the learning model is used to perform image recognition processing on the image data collected by the new data source.

2. The method according to claim 1, It is characterized in that The controlling the new data source and the old data source to collect images for the same scene includes: The new data source and the old data source are controlled to simultaneously collect images for the same scene, and a timestamp tag is given to each collected image data.

3. The method according to claim 2, It is characterized in that The converting the second image data into third image data from the perspective of the new data source based on the first image data collected by the new data source and the second image data collected by the old data source comprises: Determine the first image data collected by the new data source and the second image data collected by the old data source having the same timestamp tag; Determine at least one pair of key points having an associated relationship in the first image data and the second image data; wherein one key point of the pair of key points comes from the first image data, and the other key point comes from the second image data; Obtaining the image coordinates of each key point in the at least one pair of key points in the respective image data; determining a perspective transformation matrix based on the image coordinates of the at least one pair of key points; The second image data is converted into third image data under the perspective of the new data source based on the perspective transformation matrix.

4. The method according to claim 3, It is characterized in that The determining of at least one pair of key points having an associated relationship in the first image data and the second image data comprises: At least one pair of key points marked by a user for a same position of a same object in the first image data and the second image data is obtained.

5. The method according to claim 3, It is characterized in that The determining of at least one pair of key points having an associated relationship in the first image data and the second image data comprises: Determine at least one key point in the first image data and at least one key point in the second image data by a feature point detection algorithm; Determine at least one pair of key points satisfying an association condition from the key points based on a matching algorithm; At least one pair of key points satisfying the association condition corresponds to the same position of the same object.

6. The method according to claim 2, It is characterized in that The step of using the fourth image data and the third image data as inputs of a loss function, controlling the loss function to perform loss calculation, and generating an adjustment coefficient for the learning model includes: The fourth image data and the third image data having the same timestamp label are simultaneously used as inputs of a loss function, and the loss function is controlled to calculate an adjustment coefficient for the learning model based on an error between the fourth image data and the third image data.

7. The method according to claim 2, It is characterized in that The controlling the new data source and the old data source to simultaneously collect images for the same scene includes: A new data source and an old data source installed on the same rigid mechanical part are controlled to simultaneously collect images for the same scene during vehicle driving; wherein the rigid mechanical part is installed at a specified position of the vehicle.

8. Image processing device, It is characterized in that include: A first control unit, used to control the new data source and the old data source to collect images for the same scene; A first conversion unit, configured to convert the second image data into third image data under the perspective of the new data source based on the first image data collected by the new data source and the second image data collected by the old data source; a first acquisition unit, configured to use the first image data as an input of the learning model to acquire fourth image data output by the learning model during training of the learning model; a first generating unit, configured to use the fourth image data and the third image data as inputs of a loss function, control the loss function to perform loss calculation, and generate an adjustment coefficient for the learning model; A first adjustment unit, used for controlling the learning model to adjust its own coefficient based on the adjustment coefficient; The first processing unit is used to perform image recognition processing on the image data collected by the new data source by using the learning model after determining that the learning model training is completed.

9. An electronic device, It is characterized in that include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 7.

10. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 7.

11. A mobile tool, It is characterized in that The device comprises a plurality of data sources and the electronic device as claimed in claim 9, wherein the data sources are communicatively connected with the electronic device.