Coordinate correction method, device, storage medium and electronic device

By determining the feature map in the target image and the original image and performing coordinate correction, the problem of low coordinate correction accuracy caused by image scaling is solved, the detection accuracy is improved, and it is suitable for the real-time network environment of embedded devices.

CN112164109BActive Publication Date: 2024-09-06ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010653896.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-08
Publication Date
2024-09-06
Estimated Expiration
2040-07-08

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of coordinate correction caused by image scaling is low. Especially in real-time networks in embedded devices, the detection accuracy is affected, and there is no effective solution.

Method used

By detecting the coordinates of the target point in the target image, the feature map of the target point is determined, and combined with the feature maps of multiple corresponding original points in the original image, the coordinates of the original image are corrected to compensate for the coordinate error introduced by lossy scaling.

Benefits of technology

The accuracy of coordinate correction is improved, the loss of detection accuracy is reduced, and it is suitable for real-time network environments in embedded devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112164109B
    Figure CN112164109B
Patent Text Reader

Abstract

The embodiment of the present invention provides a coordinate correction method, device, storage medium and electronic device, wherein the method comprises: detecting the coordinates of a target point included in a target image, wherein the target image is an image whose size is suitable for a target neural network after the original image is reduced according to a reduction ratio; determining a feature map of a target area of ​​the target point based on the coordinates of the target point; determining a region feature map of multiple original points included in a neighborhood corresponding to the target point in the original image; and performing coordinate correction on the original image based on the feature map of the target point and the feature maps of the multiple original points. Through the present invention, the problem of low accuracy of coordinate correction existing in the related art is solved, and the effect of improving the correction accuracy is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a coordinate correction method, device, storage medium and electronic device. Background Art

[0002] Image target detection technology has always played an important role in the field of image processing, laying a solid foundation for subsequent image recognition, behavior analysis, and event analysis. It is particularly important today with the rise of artificial intelligence and image big data. Target detection involves many aspects, including people, animals, plants, vehicles, fire, water, smoke, etc. The accuracy of detection is the benchmark for measuring detection performance, especially for the detection of small targets, where accuracy is a direct decisive factor. In related technologies, improving the coordinate accuracy of the detection network mainly considers network performance improvement, subsequent correction modules, and early image processing.

[0003] In the related art, the correction of the network detection coordinates can be enhanced in the image input link to achieve feature enhancement and more accurate target detection. For example, various measures are added to the Convolutional Neural Networks (CNN) part to optimize the network and improve performance. There is also a post-processing module that corrects the coordinates after obtaining the detection coordinates. However, in the actual application equipment, especially embedded devices, the real-time network is time-consuming, and the images are sent to the CNN network after being scaled. The detection coordinates obtained in this way are all obtained at the resolution of the input network. The coordinates of the input network are then converted to the coordinates of the original image. Since image scaling is lossy, this part of the loss will cause a loss of detection accuracy.

[0004] It can be seen from this that the related art has the problem of low coordinate correction accuracy.

[0005] Currently, no effective solution has been proposed for the above-mentioned problems existing in the related technologies. Summary of the invention

[0006] Embodiments of the present invention provide a coordinate correction method, device, storage medium and electronic device to at least solve the problem of low coordinate correction accuracy existing in the related art.

[0007] According to one embodiment of the present invention, there is provided a coordinate correction method, comprising: detecting the coordinates of a target point included in a target image, wherein the target image is an image whose size is suitable for a target neural network after reducing an original image according to a reduction ratio; determining a feature map of a target area of ​​the target point based on the coordinates of the target point; determining an area feature map of a plurality of original points included in a neighborhood corresponding to the target point in the original image; and performing coordinate correction on the original image based on the feature map of the target point and the feature maps of the plurality of original points.

[0008] According to another embodiment of the present invention, there is provided a coordinate correction device, comprising: a detection module for detecting the coordinates of a target point included in a target image, wherein the target image is an image whose size is suitable for a target neural network after reducing the original image according to a reduction ratio; a first determination module for determining a feature map of a target area of ​​the target point based on the coordinates of the target point; a second determination module for determining area feature maps of multiple original points included in a neighborhood corresponding to the target point in the original image; and a correction module for performing coordinate correction on the original image based on the feature map of the target point and the feature maps of the multiple original points.

[0009] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0010] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0011] Through the present invention, after detecting the coordinates of the target point in the image whose size is suitable for the target neural network after the reduction processing, the feature map of the target point is determined, and then the feature maps of multiple original points included in the field corresponding to the target point in the original image are determined, and the coordinates of the original image are corrected according to the feature map of the target point and the feature maps of the multiple original points. By using the feature map of the target point and the feature maps of the multiple original points to correct the coordinates of the original image, the coordinate error introduced by the lossy scaling can be compensated. Therefore, the problem of low accuracy of coordinate correction existing in the related art can be solved, and the effect of improving the correction accuracy can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a hardware structure block diagram of a mobile terminal of a coordinate correction method according to an embodiment of the present invention;

[0013] Figure 2 is a flow chart of a coordinate correction method according to an embodiment of the present invention;

[0014] Figure 3 is a flow chart of a coordinate correction method according to a specific embodiment of the present invention;

[0015] Figure 4 is a structural block diagram of a coordinate correction device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0016] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0017] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0018] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a coordinate correction method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0019] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the coordinate correction method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0020] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0021] In this embodiment, a coordinate correction method is provided. Figure 2 is a flow chart of a coordinate correction method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0022] Step S202, detecting the coordinates of the target points included in the target image, wherein the target image is an image whose size is suitable for the target neural network after the original image is reduced according to the reduction ratio;

[0023] Step S204, determining a feature map of a target area of ​​the target point based on the coordinates of the target point;

[0024] Step S206, determining a regional feature map of a plurality of original points included in a neighborhood corresponding to the target point in the original image;

[0025] Step S208: performing coordinate correction on the original image based on the feature map of the target point and the feature maps of the plurality of original points.

[0026] In the above embodiment, the original picture can be a picture taken by a shooting device, or an input picture, or a picture extracted from a multimedia file. The target neural network can be a convolutional neural network CNN, or other neural networks.

[0027] In the above embodiment, the resolution of the original image can be w ori ,h ori , the size of the input to the target neural network can be w net ,h net , the scaling ratio can be ratio x ,ratio y , the coordinates of the target points included in the detected target image can be x no ,y no ,w no ,h no Then, according to the coordinates of the target point, the feature map Feat of the target point can be determined. n , and determine the feature maps of multiple original points in the neighborhood corresponding to the target point in the original image, and perform coordinate correction on the original image according to the above two feature maps, that is, convert the coordinates of the target point included in the detected target image to the coordinates x of the original image resolution oo ,y oo ,w oo ,h oo The coordinates of the target point can be the coordinates of a fixed point. Since the offsets of all points are actually the same, there is no need to calculate the coordinates of multiple points. Only one fixed point can be used for coordinate mapping, which saves calculation time. In addition, in practical applications, the number of the above target points can also be multiple, that is, the offsets of the coordinates of multiple target points are determined, and then the offsets of the image are determined based on the offsets of the coordinates of the multiple target points. When determining the features, the entire area or local area where the target is located can be used as the feature calculation range.

[0028] Optionally, the executor of the above steps may be a background processor, or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device, wherein the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a computer, a mobile phone or other terminal, but is not limited thereto.

[0029] Through the present invention, after detecting the coordinates of the target point in the image whose size is suitable for the target neural network after being reduced, the characteristics of the target point are determined, and then the characteristics of multiple original points included in the field corresponding to the target point in the original image are determined, and the coordinates of the original image are corrected according to the characteristics of the target point and the characteristics of the multiple original points. The coordinates of the original image are corrected using the characteristics of the target point and the characteristics of the multiple original points, which can compensate for the coordinate error introduced by lossy scaling. Therefore, the problem of low accuracy of coordinate correction existing in the related art can be solved, and the effect of improving the correction accuracy can be achieved.

[0030] In an exemplary embodiment, determining the regional features of a plurality of original points included in the neighborhood corresponding to the target point in the original image comprises: determining the neighborhood corresponding to the target point in the original image based on the reduction ratio; and determining a feature map of the plurality of original points included in the neighborhood. In this embodiment, the reduction of the original image may be the original neighborhood ratio. x *ratio y The matrix information of is represented by a point on the corresponding target image. Therefore, the neighborhood corresponding to the target point in the original image can be determined according to the reduction ratio, and the feature map of the neighborhood corresponding to the target point in the original image can be calculated. The reduction ratio can be set manually or calculated based on the resolution, size, etc. of the original image and the resolution, size, etc. of the input image required by the target neural network.

[0031] In an exemplary embodiment, before the coordinate correction of the original image is performed based on the feature map of the target point and the feature maps of the multiple original points, the method further includes: calculating the first original point corresponding to the target point in the original image based on the reduction ratio; the coordinate correction of the original image based on the feature map of the target point and the feature maps of the multiple original points includes: determining the feature map of the second original point with the greatest similarity to the feature map of the target point from the feature maps of the multiple original points; and correcting the coordinates of the first original point to the coordinate position of the second original point. In this embodiment, the ratio in the original image can be determined according to the reduction ratio. x *ratio y The coordinates of each point in the neighborhood of x, y in the original image correspond to the coordinates of a point in the target image. x *ratio y , recorded in ratio x *ratio y Integral graph, calculate point by point, and finally get ratio x *ratio y Feature map value, Feat o0 ,Feato1 ,Feat o2 ....,Feat og , where g = ratio x *ratio y Comparison value Feat n and Feat o0 ,Feat o1 ,Feat o2 ....,Feat og The similarity of Feat is obtained. o? , and then translate the coordinates x,y of the original image to Feat o? The coordinates of the original image are corrected. x *ratio y The coordinates of each point in the neighborhood of can be

[0032]

[0033] Among them, the characteristic map value can be calculated by the following method:

[0034] Method 1: The sum of all points in the area where the small image target (corresponding to the above target image) is located or a representative area of ​​the area, and the sum of the pixels in the area starting from each offset point in the original image nri0 ,sum nri1 …sum nrin , the offset area represented by the value closest to sum is the corrected area, and sum is Feat, which is the fastest.

[0035] Method 2: Frame difference between the target area or a representative area of ​​the area in the small image and the corresponding images represented by each offset point corresponding to the original image, subabs0, subabs1…subabs n ,The position of the candidate with the smallest frame difference is the position to be corrected, and the subabs is Feat.

[0036] Method 3: Find the point (x, y) with the largest gradient in the small image, intercept a certain area near the point and calculate the gradient map Grad, (x, y) and map it to the coordinates (x ori ,y ori ), take ratio x *ratio y The gradient map of the large image grad ori0 ,grad ori1 …grad orin , find the grad with the smallest error ori? , here grad means Feat.

[0037] Method 4: Make an integral map Integ of the area where the target is located in the small image or a representative area of ​​the area, and the integral map Integ of each corresponding image represented by each offset point corresponding to the original image ori0 , Integer ori1 …Integ orin Various features, such as Haar and Hog, can be calculated on the integral graph, and the closest position among these features can be compared, which is the position to be corrected, feat_haar = Feat or feat_hog = Feat.

[0038] In an exemplary embodiment, before detecting the coordinates of the target point included in the received target image, the method further includes: determining the reduction ratio based on the resolution of the original image and the resolution of the image supported by the target neural network; and reducing the original image according to the reduction ratio to obtain the target image. The reduction ratio can be determined according to the resolution of the original image and the resolution of the image supported by the target neural network. After determining the reduction ratio, the original image is reduced according to the reduction ratio.

[0039] The coordinate correction is described below in conjunction with a specific implementation method:

[0040] Figure 3 is a flow chart of a coordinate correction method according to a specific embodiment of the present invention. Figure 3 As shown, the process includes:

[0041] Step 0: Scale the original image. For example, the resolution of the original image is w ori ,h ori , scale the image to the input size of the deep learning network (corresponding to the target neural network above) wnet,h net The scaling ratio is ratio x ,ratio y .

[0042] Step 1: Enhance the scaled image to obtain the target image.

[0043] Step 2: Input the target image into the CNN network.

[0044] Step 3: The post-processing module corrects the target image. Detect the coordinates x of the target image no ,y no ,w no ,h no ,

[0045] Step 4, coordinate mapping, maps the coordinates of the target point in the target image with the coordinates of each point in the area corresponding to the target point in the original image.

[0046] Step 5: Calculate the feature map of the target point in the target image, Feat n .

[0047] Step 6: The large image (corresponding to the original image) is reduced to the ratio of the large image neighborhood. x *ratio y The matrix information of is represented by a point on the corresponding small image (corresponding to the above target image), and is reversed to the coordinate points of the original image according to the scaling method, taking the ratio x *ratio y For every point in the neighborhood of

[0048] The neighborhood around x,y in the original image corresponds to a point in the network input image. The ratio of each point x *ratio y , recorded in ratio x *ratio y feature map, calculate point by point, and finally get the ratio x *ratio y Feature map value, Feat o0 ,Feat o1 ,Feat o2 ....,Feat og ,g=ratio x *ratio y Among them, the characteristic map value can be calculated by the following method:

[0049] Method 1: The sum of all points in the area where the target of the small image is located or a representative area of ​​the area, and the sum of the pixels in the area starting from each offset point in the original image nri0 ,sum nri1 …sum nrin , the offset area represented by the value closest to sum is the corrected area, and sum is Feat, which is the fastest.

[0050] Method 2: Frame difference between the target area or a representative area of ​​the area in the small image and the corresponding images represented by each offset point corresponding to the original image, subabs0, subabs1…subabs n ,The position of the candidate with the smallest frame difference is the position to be corrected, and the subabs is Feat.

[0051] Method 3: Find the point (x, y) with the largest gradient in the small image, intercept a certain area near the point to calculate the gradient map Grad, (x, y) and map it to the coordinates of the large image (xori, yori), and take the ratio x *ratio y The gradient map of the large image grad ori0 ,grad ori1 …grad orin , find the grad with the smallest error ori? , here grad means Feat.

[0052] Method 4: Make an integral map Integ of the area where the target is located in the small image or a representative area of ​​the area, and the integral map Integ of each corresponding image represented by each offset point corresponding to the original image ori0 , Integer ori1 …Integ orin Various features, such as Haar and Hog, can be calculated on the integral graph, and the closest position among these features can be compared, which is the position to be corrected, feat_haar = Feat or feat_hog = Feat.

[0053] Step 7, value Feat n and Feat o0 ,Feat o1 ,Feat o2 ....,Feat og Compare the similarities and get the most similar value Feat o? , and then translate the coordinates x,y of the original image to Feat o? The coordinates of where.

[0054] It should be noted that steps 0-4 describe the process of the deep learning detection network, among which steps 0, 1, and 3 are optional steps. When there is a high demand for coordinate correction, you can choose to execute steps 0, 1, and 3 to improve the accuracy of coordinate correction. When the requirement for coordinate correction is not high, you can selectively execute steps 0, 1, and 3 to increase the execution speed.

[0055] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0056] In this embodiment, a coordinate correction device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0057] Figure 4 is a structural block diagram of a coordinate correction device according to an embodiment of the present invention. Figure 4 As shown, the device comprises:

[0058] A detection module 42, configured to detect the coordinates of a target point included in a target image, wherein the target image is an image whose size is suitable for a target neural network after the original image is reduced according to a reduction ratio;

[0059] A first determining module 44, configured to determine a feature map of a target area of ​​the target point based on the coordinates of the target point;

[0060] A second determination module 46 is used to determine a regional feature map of a plurality of original points included in a neighborhood corresponding to the target point in the original image;

[0061] The correction module 48 is used to correct the coordinates of the original image based on the feature map of the target point and the feature maps of the plurality of original points.

[0062] In an exemplary embodiment, the second determination module 46 includes: a first determination unit, configured to determine a neighborhood corresponding to the target point in the original image based on the reduction ratio; and a second determination unit, configured to determine a feature map of a plurality of the original points included in the neighborhood.

[0063] In an exemplary embodiment, the device also includes: a calculation module, which is used to calculate the first original point corresponding to the target point in the original image based on the reduction ratio before correcting the coordinates of the original image based on the feature map of the target point and the feature maps of multiple original points; the correction module 48 includes: a third determination unit, which is used to determine the feature map of the second original point with the greatest similarity to the feature map of the target point from the feature maps of multiple original points; and a correction unit, which is used to correct the coordinates of the first original point to the coordinate position of the second original point.

[0064] In an exemplary embodiment, the device also includes: a third determination module, used to determine the reduction ratio based on the resolution of the original image and the resolution of the image supported by the target neural network; a processing module, used to reduce the original image according to the reduction ratio to obtain the target image.

[0065] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0066] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0067] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0068] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0069] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0070] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0071] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0072] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A coordinate correction method, characterized in that: include: Detecting the coordinates of a target point included in a target image, wherein the target image is an image whose size is suitable for a target neural network after reducing the original image according to a reduction ratio; Determine a feature map of a target area of ​​the target point based on the coordinates of the target point; Determine a regional feature map of a plurality of original points included in a neighborhood corresponding to the target point in the original image; Performing coordinate correction on the original image based on the feature map of the target point and the feature maps of the plurality of original points; Before performing coordinate correction on the original image based on the feature map of the target point and the feature maps of the plurality of original points, the method further comprises: calculating a first original point in the original image corresponding to the target point based on the reduction ratio; The coordinate correction of the original image based on the feature map of the target point and the feature maps of multiple original points includes: determining the feature map of the second original point with the greatest similarity to the feature map of the target point from the feature maps of multiple original points; and correcting the coordinates of the first original point to the coordinate position of the second original point.

2. The method according to claim 1, characterized in that: Determining a regional feature map of a plurality of original points included in a neighborhood corresponding to the target point in the original picture includes: Determine a neighborhood corresponding to the target point in the original image based on the reduction ratio; Determine a feature map of the plurality of original points included in the neighborhood.

3. The method according to claim 1, characterized in that Before detecting the coordinates of the target point included in the received target image, the method further includes: Determining the reduction ratio based on the resolution of the original image and the resolution of the image supported by the target neural network; The original image is scaled down according to the scaling ratio to obtain the target image.

4. A coordinate correction device, characterized in that: include: A detection module, used to detect the coordinates of a target point included in a target image, wherein the target image is an image whose size is suitable for a target neural network after the original image is reduced according to a reduction ratio; A first determining module, configured to determine a feature map of a target area of ​​the target point based on the coordinates of the target point; A second determination module is used to determine a regional feature map of a plurality of original points included in a neighborhood corresponding to the target point in the original image; A correction module, used for performing coordinate correction on the original image based on the feature map of the target point and the feature maps of the plurality of original points; The device further includes: a calculation module, configured to calculate a first original point in the original image corresponding to the target point based on the reduction ratio before performing coordinate correction on the original image based on the feature map of the target point and the feature maps of the plurality of original points; The correction module includes: a third determination unit, used to determine the feature map of the second original point with the greatest similarity to the feature map of the target point from the feature maps of the multiple original points; and a correction unit, used to correct the coordinates of the first original point to the coordinate position of the second original point.

5. The device according to claim 4, characterized in that The second determining module comprises: A first determining unit, configured to determine a neighborhood corresponding to the target point in the original image based on the reduction ratio; The second determining unit is used to determine the feature maps of the multiple original points included in the neighborhood.

6. The device according to claim 4, characterized in that The device also includes: A third determination module, configured to determine the reduction ratio based on the resolution of the original image and the resolution of the image supported by the target neural network; The processing module is used to reduce the original image according to the reduction ratio to obtain the target image.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 3 when executed.

8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 3.